<settings module="professional_rating">
	<section name="general">
		<option type="status" name="dpc_status_professional_rating" module="professional_rating" title="{@text:Rating}" description-intro="{@text:Extend the comment function with ratings, which then can be displayed with stars in search engine results pages and increase the click rate on your site. Use the shortcode, php code or widget to display the summary of your ratings as a preview in the above the fold area of your site, to prove keen customers or visitors.}" description="{@text:You can decide if your visitors should only rate your content or if they should also be able to write a review in your comments. Maybe you also want to improve through the reviews, too. This shows Google that you count on your visitors opinion and their opinion helps the search engine to improve its results. So that’s why ratings and reviews are that important.}" helptext="{@text:Let your visitors rate and review your website’s contents and increase the possibility to appear in search results with the highlighted star ratings.}" helplink-de="https://delucks.com/wordpress-seo-plugin/optimierung-anleitung/bewertungen/" helplink-en="https://delucks.com/en/wordpress-seo-plugin/optimization-tips-tutorial/ratings/">
			<value label="{@text:Activated}" class="btn btn-success" value="1" addToDom="class,value"/>
			<value label="{@text:Deactivated}" class="btn btn-warning" addToDom="class,value,data-target" toggle="posttypes"/>
		</option>
		<option type="section" section="config" />
		<option type="section" section="schema" />
		<option type="section" section="show" />
		<option type="section" section="settingsToggle five-margin" />
		<option type="section" section="position" />
	</section>

	<section name="config">

		<option type="wrapper" width="12">
			<option type="htmlelement" element="br"/>
			<option type="heading" size="4" value="{@text:Frontend view}"/>
		</option>
		<option type="each" source="@function:getCustomPostTypes" namespace="type" sourceParams="attachment,revision,nav_menu_item,product_variation,shop_order,shop_coupon,elementor_library">
			<option type="wrapper" width="6" class="col-sm-12 col-xs-12" hasWrap="no" data-expert_mode="true" addToDom="data-expert_mode">
				<option type="select" label="{@text:View for} {@ns:type|label}" name="view_{@ns:type|name}" class="form-control select2" addToDom="class" >
					<value label="{@text:5 Stars}" value=""/>
					<value label="{@text:Thumbs}" value="thumbs" />
				</option>
			</option>
		</option>
		
		<option type="htmlelement" element="clear"/>
		<option type="htmlelement" element="br"/>
		<option type="htmlelement" element="br"/>

		<option type="wrapper" width="6" class="col-sm-6 col-xs-12">
			<option type="heading" size="4" value="{@text:Star rating symbol}"/>
			<option type="selectImg" id="rating_symbol" label="{@text:Posts}" name="rating_symbol" class="form-control" unicode="true" addToDom="class" items="starfilled,staroutline,heartoutline,heart,heartalt,smiley,smileyalt"/>
		</option>
		<option type="wrapper" width="6" class="col-sm-6 col-xs-12">
			<option type="heading" size="4" value="{@text:Positive thumb rating symbol}"/>
			<option type="selectImg" id="rating_symbol_thumbsup" label="{@text:Posts}" name="rating_symbol_thumbsup" class="form-control" unicode="true" addToDom="class" items="thumbsup,thumbsup-alt1,thumbsup-alt2,thumbsup-alt3"/>
			
			<option type="htmlelement" element="clear"/>
			<option type="htmlelement" element="hr"/>
			<option type="heading" size="4" value="{@text:Negative thumb rating symbol}"/>
			<option type="selectImg" id="rating_symbol_thumbsdown" label="{@text:Posts}" name="rating_symbol_thumbsdown" class="form-control" unicode="true" addToDom="class" items="thumbsdown,thumbsdown-alt1,thumbsdown-alt2,thumbsdown-alt3"/>
		</option>

		<option type="htmlelement" element="clear"/>
		<option type="htmlelement" element="br"/>

		<option type="wrapper" width="6" class="col-sm-6 col-xs-12">
			<option type="heading" size="4" value="{@text:Color empty}"/>
			<option type="colorpicker" icon="fa-star" name="starEmpty" description="{@text:This color will be used for empty rating symbols}" class="form-control" addToDom="class" />
		</option>
		<option type="wrapper" width="6" class="col-sm-6 col-xs-12">
			<option type="heading" size="4" value="{@text:Color rated}"/>
			<option type="colorpicker" icon="fa-star"  name="starRated" description="{@text:This color will be used for rated/selected rating symbols}" class="form-control" addToDom="class"/>
		</option>

		
		<option type="htmlelement" element="clear"/>
		<option type="htmlelement" element="br"/>

		<option type="wrapper" width="6" class="col-sm-4 col-xs-12">
			<option type="checkbox" id="newRow" name="newRow" label="{@text:Rating in new row}" class="icheckbox_square-blue form-control" addToDom="class" />
		</option>

		<option type="wrapper" width="6" class="col-sm-4 col-xs-12">
			<option type="checkbox" id="link_legend" name="link_legend" label="{@text:Link legend to comment form}" class="icheckbox_square-blue form-control" value="" addToDom="class" />
		</option>

		<option type="wrapper" width="6" class="col-sm-4 col-xs-12">
			<option type="checkbox" id="show_legend_no_rating_text" name="show_legend_no_rating_text" label="{@text:Note text if not rated}" class="icheckbox_square-blue form-control" value="" addToDom="class" />
		</option>

		<option type="wrapper" width="6" class="col-sm-3 col-xs-12">
			<option type="checkbox" id="forceComments" name="forceComments" label="{@text:Rating Stars as mandatory field}" class="icheckbox_square-blue form-control" value="" addToDom="class" />
		</option>

		<option type="wrapper" width="6">
			<option type="checkbox" id="companyCommentField" name="companyCommentField" label="{@text:Add company input field}" class="icheckbox_square-blue form-control" value="" addToDom="class" />
		</option>

		<option type="wrapper" width="6">
			<option type="checkbox" id="gdprCommentCheckbox" name="gdprCommentCheckbox" label="{@text:Add privacy notice checkbox}" class="icheckbox_square-blue form-control" value="" addToDom="class" />
		</option>
	</section>

	<section name="position">
		<option type="wrapper" width="4">
			<option type="copycode" id="ratingShortcode" name="{@text:Shortcode}" text="[dpc_rating]" addToDom="id" />
		</option>
		<option type="wrapper" width="4">
			<option type="copycode" id="ratingPhp" name="{@text:PHP}" text="&amp;lt;?php echo function_exists('dpc_rating')  ? dpc_rating() : ''; ?&amp;gt;" addToDom="id" />
		</option>
		<option type="wrapper" width="4" class="col-sm-6 col-xs-12">
			<option type="link" target="_blank" link="./widgets.php" icon-class="fa fa-arrow-right" class="widget-area" text="{@text:Use it as a widget}" addToDom="target"/>
		</option>
	</section>
	<section name="show">
		<option type="wrapper" width="11" class="col-sm-12 col-xs-12"></option>
		<option type="wrapper" width="1" class="col-sm-1 col-xs-2 button-right-padding no-padding">
			<option type="toggleButton" class="toggle-button btn btn-link black " data-toggle="settingsToggle" addToDom="class,data-toggle"/>
			<option type="htmlelement" element="clear"/>
			<option type="htmlelement" element="br"/>
		</option>
	</section>

	<!-- toggle -->
	<section name="settingsToggle five-margin" hide="true">
		<!-- <option type="wrapper" width="5" class="col-sm-6 col-xs-12">
			<option type="checkbox" id="use_unicode_stars" name="use_unicode_stars" label="{@text:Improve performance by deactivating iconfonts in frontend and use unicode stars instead}" class="icheckbox_square-blue form-control" value="" addToDom="class" />
		</option> -->

		<option type="each" source="@function:getLanguages" namespace="lang">
			<option type="wrapper" width="6" class="col-sm-6 col-xs-12">
				<option type="heading" size="4" value="{@text:Text} ({@ns:lang|name})"/>
				<option type="text" label="{@text:Button/Link}" placeholder="{@text:Rate}" value="" name="{@ns:lang|lang_key}][textIntial" class="form-control" addToDom="placeholder,class"/>
				<option type="text" label="{@text:Commentate button}" placeholder="{@text:Commentate}" value="" name="{@ns:lang|lang_key}][textCommentButton" class="form-control" addToDom="placeholder,class"/>
				<option type="text" label="{@text:Hide comment form button}" placeholder="{@text:Hide comment form}" value="" name="{@ns:lang|lang_key}][textHideCommentFormButton" class="form-control" addToDom="placeholder,class"/>
				<option type="text" label="{@text:Review received}" placeholder="{@text:Thanks for your review}" name="{@ns:lang|lang_key}][textRated" class="form-control" addToDom="placeholder,class"/>
			</option>

			<option type="wrapper" width="6" class="col-sm-12 col-xs-12">
				<option type="heading" size="4" value=""/>
				<option type="text" label="{@text:Error}" placeholder="{@text:An error has occurred}" name="{@ns:lang|lang_key}][textError" class="form-control" addToDom="placeholder,class"/>
				<option type="text" label="{@text:Not rated}" placeholder="{@text:You did not add a rating}" name="{@ns:lang|lang_key}][textNotRated" class="form-control" addToDom="placeholder,class"/>
				<option type="text" label="{@text:Note text}" sortable="true" name="{@ns:lang|lang_key}][legend_no_rating_text" value="" class="form-control" placeholder="{@text:No ratings have been added yet}"  addToDom="class"/>
				<option type="text" label="{@text:Form field label}" sortable="true" name="{@ns:lang|lang_key}][form_field_label" value="" class="form-control" placeholder="{@text:Your rating}"  addToDom="class"/>
			</option>

			<option type="wrapper" width="12" class="col-sm-12 col-xs-12">
				<option type="text" id="companyCommentFieldLabel" name="{@ns:lang|lang_key}][companyCommentFieldLabel" label="{@text:Company input label}" class="form-control" addToDom="class" hide="true" displayElement="companyCommentField" displayType="contents" displayValue="on"/>
				<option type="heading" size="4" value="{@text:Legend}" />
 				<option type="taglist" sortable="true" name="{@ns:lang|lang_key}][legend" value="" preselection="&#216;,[average],[maxrating],[number],[stars],[bestrating],[worstrating],[commentcount],[br],[ratinglink]"/>
			</option>

			<option type="wrapper" width="12" class="col-sm-12 col-xs-12">
				<option type="textarea" id="gdprCommentText" name="{@ns:lang|lang_key}][gdprCommentText" label="{@text:Privacy notice text}" style="width:96%; height:150px;" hide="true" displayElement="gdprCommentCheckbox" displayType="contents" displayValue="on" addToDom="style,class" />
			</option>
		</option>
	</section>
	<!-- toggle END -->

	<section name="schema">
		<option hasWrap="no" type="wrapper" width="6" class="col-sm-12 col-xs-12">
			<option type="select" label="{@text:Gutenberg Block Toggle}" name="gutenberg_toggle" class="form-control select2" addToDom="class">
				<value label="{@text:No display}" value="" />
				<value label="{@text:Show comment form}" value="form" />
				<value label="{@text:Link to comment form}" value="anchor" />
			</option>
		</option>
		<option hasWrap="no" type="wrapper" width="6" class="col-sm-12 col-xs-12">
			<option type="select" label="{@text:Rateable is}" name="showSearchFieldIn" class="form-control select2" multiple="multiple" addToDom="class,multiple" source="@function:getCustomPostTypes" sourceParams="attachment,revision,nav_menu_item,product_variation,shop_order,shop_coupon,elementor_library" >
			</option>
		</option>
		
		
		
		<option type="wrapper" width="12">
			<option type="htmlelement" element="br"/>
			<option type="heading" size="6" value="{@text:Microdata type}"/>
		</option>
		<option type="each" source="@function:getCustomPostTypes" namespace="type" sourceParams="attachment,revision,nav_menu_item,product_variation,shop_order,shop_coupon,elementor_library">
			<option type="wrapper" width="6" class="col-sm-12 col-xs-12" hasWrap="no" data-expert_mode="false" addToDom="data-expert_mode">
				<option type="select" label="{@text:Type of} {@ns:type|label}" name="schema_{@ns:type|name}" class="form-control select2" addToDom="class" >
					<value label="{@text:Please select}" value=""/>
					<value label="{@text:CreativeWork}" value="CreativeWork" />
					<value label="{@text:LocalBusiness}" value="LocalBusiness" />
					<value label="{@text:Product}" value="Product" />
					<value label="{@text:JobPosting}" value="JobPosting" />
				</option>
			</option>
		</option>

		<option type="htmlelement" element="clear"/>
	</section>

	<section name="copy">
		<option type="wrapper" width="3">
			<option type="copycode" id="ratingShortcode" name="{@text:Shortcode}" text="[dpc_rating]" />
		</option>
		<option type="wrapper" width="4">
			<option type="copycode" id="ratingPhp" name="{@text:Shortcode}" text="&amp;lt;?php echo dpc_rating; ?&amp;gt;" />
		</option>
	</section>

	<defaults>
		<var name="newRow" value="on" />
		<var name="starEmpty" value="#515256" />
		<var name="starHover" value="#000000" />
		<var name="starRated" value="#FAAD3A" />
		<var name="rating_symbol" value="star" />
		<var name="show_legend" value="on" />
		<var name="link_legend" value="on" />
		<var name="gutenberg_toggle" value="form" />
		<var name="showSearchFieldIn" value="post,page" function="explode" />
		<var name="legend" value="&#216;,[average],/,[number]" />
		<var name="testimonialRating" value="on" />
		<var name="de][legend" value="&#216;,[average],von,[maxrating],basierend,auf,[number],Bewertungen" />
		<var name="en][legend" value="&#216;,[average],of,[maxrating],based,on,[number],ratings" />


	</defaults>
</settings>