<settings module="professional_externallinks">
	<section name="general">
		<option type="status" name="dpc_status_professional_externallinks" module="professional_externallinks" title="{@text:Links}" description-intro="{@text:With this module you can control the behavior of the website concerning outgoing links, because meaningful build in links prove your contents’ quality.}" description="{@text:To prove the reliability of your contents you should insert continuative links. But, to avoid losing visitors after clicking on your outgoing links you should enable opening up a new browser window with the reffered website. Additionally, your contents’ link value will be inherited to the external websites. In this module you can control your entire website on what should happen with external links. For example you can set that your collection of (a huge amount of) external links should not depreciate its link value to (all) of the linked sites.}" helptext="{@text:Activate the link management module, to set up standard rules about how to treat external links in connection to your whole website.}" helplink-de="https://delucks.com/wordpress-seo-plugin/optimierung-anleitung/links/" helplink-en="https://delucks.com/en/wordpress-seo-plugin/optimization-tips-tutorial/links/">
			<value label="{@text:Activated}" class="btn btn-success" value="1" addToDom="class,value"/>
			<value label="{@text:Deactivated}" class="btn btn-warning" addToDom="class,value"/>
		</option>
		<option type="section" section="exceptions" />
	</section>
	<section name="exceptions">
		<option type="wrapper" width="4">
			<option type="select" name="external" label="{@text:Links of external domains}" class="form-control" multiple="multiple" addToDom="class,multiple">
				<value label="{@text:Open in new window}" value="blank" />
				<value label="{@text:Devalue, no follow}" value="noFollow" />
			</option>
		</option>
		<option type="wrapper" width="4">
			<option type="select" label="{@text:Limit to}" name="include" class="form-control select2" multiple="multiple" addToDom="class,multiple" source="@function:getCustomPostTypes" sourceParams="attachment,revision,nav_menu_item,product_variation,shop_order,shop_coupon" />
		</option>
		<option type="htmlelement" element="clear" />

		<option type="wrapper" width="11">
			<option type="taglist" label="{@text:Exceptions}" name="exceptions" value="" preselection="" />
		</option>
	</section>
	<section name="manager" skipWrapper="true">
		<option type="htmlelement" element="clear" />
		<option type="postAction" module="professional_externallinks" action="managerUpdate" />
		<option type="var" key="object_id" value="@function:getObejctId" />
		<option type="hidden" name="object_id" value="{@var:object_id}" />
		<!-- <option type="each" source="@method:professional_externallinks:getContentLinksById" namespace="links" sourceParams="{@var:object_id}">
			<option type="wrapper" width="6">
				<option type="select" name="links][{@NS:links|host}" label="{@NS:links|host}" value="{@NS:links|rating}" class="form-control select2">
					<value value="" label="{@text:ignore}" />
					<value value="1" label="{@text:follow}" />
					<value value="0" label="{@text:no follow}" />
				</option>
			</option>
		</option> -->
		<option type="wrapper" width="6" class="padding-right-60" addToDom="class">
			<option type="table" class="table" id="external-links" addToDom="id">
				<option type="thead">
					<option type="th" label="{@text:External links}" />
					<option type="th" class="follow" label="{@text:Follow}" addToDom="class"/>
				</option>
				<option type="tbody">
					<option type="each" source="@method:professional_externallinks:getContentLinksById" namespace="links" sourceParams="{@var:object_id}">
						<option type="if" condition="{@NS:links|empty}" operator="==" value="true">
							<option type="td">
									<option type="paragraph" text="{@text:No links were found}" />
							</option>
							<option type="td" />
						</option>
						<option type="if" condition="{@NS:links|empty}" operator="==" value="false">
							<option type="tr">
								<option type="td">
									<option type="icon" class="glyphicon glyphicon-arrow-right" />
									<option type="paragraph" text="{@NS:links|host}" />
								</option>
								<option type="td" class="follow" addToDom="class">
									<option type="select" name="links][{@NS:links|host}" class="form-control switch-follow" addToDom="class" value="{@NS:links|rating}">
										<value label="{@text:--}" value="" />
										<value label="{@text:Yes}" value="1" />
										<value label="{@text:No}" value="0" />
									</option>
								</option>
							</option>
						</option>
					</option>
				</option>
			</option>
		</option>
	</section>

	<defaults>
		<var name="external" value="blank,noFollow" function="explode"/>
		<var name="include" value="post" function="explode"/>
	</defaults>
</settings>