<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

?>
<h1><?php _e( 'instruction and help with using ShortCodes - please read carefully', 'amazilon' ); ?></h1>
<div class="block">
    <p><?php _e( 'At this site you see the different ShortCodes, with which you can recall the particular information via API-access. There is always a simple and extended example shown. To understand the functionality, you should copy and insert an example ShortCode into an article.',
			'amazilon' ); ?></p>
</div>


<div class="block">
    <h2><?php _e( 'This is how ShortCodes are used', 'amazilon' ); ?></h2>
    <ol style="margin-top:0px;" start="1" type="1">
        <li><?php _e( 'Select the ShortCode for the wanted information. ', 'amazilon' ); ?></li>
        <li><?php _e( 'Copy the product ASIN at Amazon.com: <a href="https://amazilon.com/faq/#asin" target="_blank"> Find product ASIN at Amazon</a>',
				'amazilon' ); ?></li>
        <li><?php _e( 'Copy the ShortCode and insert into your article at the wanted position.', 'amazilon' ); ?></li>
        <li><?php _e( 'Insert the product-ASIN into the field \'asin=""\'', 'amazilon' ); ?></li>
        <li><?php _e( 'Save product/site so the wanted information will be shown, where the ShortCode is within the article.',
				'amazilon' ); ?></li>
    </ol>

    <p>
		<?php echo sprintf( __( 'You can easily generate many ShortCodes with %s.', 'amazilon' ),
			'<span class="dashicons dashicons-admin-settings"></span> <a href="' . admin_url( 'options-general.php?page=amazilon-generators#generator-1' ) . '">' . __( 'Shortcode generator',
				'amazilon' ) . '</a>' ); ?><br/>
		<?php echo sprintf( __( 'You can generate many ShortCodes for canned buttons with %s.', 'amazilon' ),
			'<span class="dashicons dashicons-format-gallery"></span> <a href="' . admin_url( 'options-general.php?page=amazilon-generators#generator-2' ) . '">' . __( 'Button generator',
				'amazilon' ) . '</a>' ); ?><br/>
		<?php echo sprintf( __( 'You can generate many ShortCodes for canned submittals with %s.', 'amazilon' ),
			'<span class="dashicons dashicons-format-aside"></span> &nbsp;<a href="' . admin_url( 'options-general.php?page=amazilon-generators#generator-3' ) . '">' . __( 'Template generator',
				'amazilon' ) . '</a>' ); ?>
    </p>
</div>

<div class="block">
    <h2><?php _e( 'These ShortCodes are availavble - Overview', 'amazilon' ); ?></h2>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="preis"]</div> <?php _e( 'Displays the product price',
			'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="link" true="$PREIS"]
        </div> <?php _e( 'Displays the product price width a link to the product on Amazon', 'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="streichpreis"]
        </div> <?php _e( 'Displays the old product price before pricve reduction', 'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="bild"]
        </div> <?php _e( 'Displays the product image in 75x75 Pixel widthout a link', 'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="bildMedium"]
        </div> <?php _e( 'Displays the product image in 160x160 Pixel widthout a link', 'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="bildLarge"]
        </div> <?php _e( 'Displays the product image in 500x500 Pixel widthout a link', 'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="link" true="$BILD"]
        </div> <?php _e( 'Displays the product image in 75x75 Pixel width a link to the product on Amazon',
			'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="link" true="$BILDMEDIUM"]
        </div> <?php _e( 'Displays the product image in 160x160 Pixel width a link to the product on Amazon',
			'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="link" true="$BILDLARGE"]
        </div> <?php _e( 'Displays the product image in 500x500 Pixel width a link to the product on Amazon',
			'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="prime"]
        </div> <?php _e( '- Text if the product is available on Amazon Prime.', 'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apnx asin="B000V3IPSU" typ="prime" false="Kein Prime"][/apnx]
        </div> <?php _e( 'Put the desired code between [apnx] [/apnx] if the Amazon product is avaiable by Amazon Prime',
			'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="link"]
        </div> <?php _e( 'Displays a normal hyperlink to the Amazon product', 'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="url"]
        </div> <?php _e( 'Displays only the URL to the Amazon product without a hyperlink', 'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="titel"]</div> <?php _e( 'Displays the product title',
			'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="state"]
        </div> <?php _e( 'Displays the date of catching product information', 'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="rabatt"]
        </div> <?php _e( 'Discount from the old price to the new price in $', 'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn asin="B000V3IPSU" typ="rabatt" template="%"]
        </div> <?php _e( 'Discount from the old price to the new price in %', 'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn typ="template" template="tpl-1" asin="B000V3IPSU"]
        </div> <?php _e( 'Show predefined template number 1 for this ASIN. Available Templates: tpl-1 to tpl-7',
			'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn typ="template" template="tpl-1s" asin="B000V3IPSU"]
        </div> <?php _e( 'Show predefined template number 1 with shadow for this ASIN. Available Templates: tpl-1s to tpl-7s',
			'amazilon' ); ?></div>
    <div class="short">
        <div class="scode">[apn typ="vergleich" asin="0123456789,B0006NXBE8"]
        </div> <?php _e( 'Show comparison table for multiple ASIN. Available as "vergleich" (boxes) and "vergleich2" (table).',
			'amazilon' ); ?></div>
    <br>
</div>

<h2><?php _e( 'ShortCodes explaines by examples', 'amazilon' ); ?></h2>


<div class="block">
    <h2><?php _e( 'Read and printout the price', 'amazilon' ); ?></h2>
    <p><?php _e( 'Easy/Simple', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="preis"]<br/>
		<?php _e( 'Advanced', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="preis" false="<?php _e( 'unknown',
			'amazilon' ); ?>"]<br/>
		<?php _e( 'Shows the simple price as text, can be formated with the WordPress-Editor.', 'amazilon' ); ?>:<br>
        <img src="<?php echo plugins_url( 'gfx/preis-euro.png', __FILE__ ); ?>" style="max-width: 100%;"><br>
        <b><?php _e( 'note', 'amazilon' ); ?>
            :</b> <?php _e( 'If the price can\'t be transferred, for whatever reason, "unknown" will be displayed. ',
			'amazilon' ); ?></p>
</div>

<div class="block">
    <h2><?php _e( 'Display price with link to the product', 'amazilon' ); ?></h2>
    <p>[apn asin="B000V3IPSU" typ="link" true="$PREIS"]</p>
</div>

<div class="block">
    <h2><?php _e( 'Transfer and display discount price.', 'amazilon' ); ?></h2>
    <p><?php _e( 'Easy/Simple', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="streichpreis"]<br/>
		<?php _e( 'Advanced', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="streichpreis" false="unbekannt"]<br/>
		<?php _e( 'Shows the simple discount price as text, can be formated with the WordPress-Editor.',
			'amazilon' ); ?>:<br>
        <img src="<?php echo plugins_url( 'gfx/streichpreis.png', __FILE__ ); ?>" style="max-width: 100%;">
        <br>
		<?php echo sprintf( __( 'By adding the "del"-Tag to the ShortCode, the price will be crossed out. So this:<br> will turn to %s',
			'amazilon' ), '&lt;del&gt;[apn asin="B000V3IPSU" typ="streichpreis" false="' . __( 'unknown',
				'amazilon' ) . '"]&lt;/del&gt;' ); ?>:<br>
        <img src="<?php echo plugins_url( 'gfx/streichpreis-durchgestrichen.png', __FILE__ ); ?>"
             style="max-width: 100%;"> <br>
        <b><?php _e( 'note', 'amazilon' ); ?>
            :</b> <?php _e( 'If the discount price (usually the RRP) can\'t be transferred, for whatever reason, "unknown" will be displayed.',
			'amazilon' ); ?></p>
</div>

<div class="block">
    <h2><?php _e( 'Insert image (max. 75x75 Pixel) without link to amazon.', 'amazilon' ); ?></h2>
    <p><?php _e( 'Easy/Simple', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="bild"]<br/>
		<?php _e( 'Advanced', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="bild" false="http://example.com/no.gif"
        tpl-num="3"]<br/> <br/>
        <b><?php _e( 'note', 'amazilon' ); ?>:</b> <?php _e( 'Shows the third picture.',
			'amazilon' ); ?> <?php _e( 'If the picture can\'t be transferred, for whatever reason, "http://example.com/no.gif" will be displayed.',
			'amazilon' ); ?></p>
</div>

<div class="block">
    <h2><?php _e( 'Insert image (max. 160x160 Pixel) without link to amazon.', 'amazilon' ); ?></h2>
    <p><?php _e( 'Easy/Simple', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="bildMedium"]<br/>
		<?php _e( 'Advanced', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="bildMedium"
        false="http://example.com/no.gif" tpl-num="3"]<br/> <br/>
        <b><?php _e( 'note', 'amazilon' ); ?>:</b> <?php _e( 'Shows the third picture.',
			'amazilon' ); ?> <?php _e( 'If the picture can\'t be transferred, for whatever reason, "http://example.com/no.gif" will be displayed.',
			'amazilon' ); ?></p>
</div>

<div class="block">
    <h2><?php _e( 'Insert image (max. 500x500 Pixel) without link to amazon', 'amazilon' ); ?></h2>
    <p><?php _e( 'Easy/Simple', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="bildLarge"]<br/>
		<?php _e( 'Advanced', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="bildLarge" false="http://example.com/no.gif"
        tpl-num="3"]<br/><br/>
        <b><?php _e( 'note', 'amazilon' ); ?>:</b> <?php _e( 'Shows the third picture.',
			'amazilon' ); ?> <?php _e( 'If the picture can\'t be transferred, for whatever reason, "http://example.com/no.gif" will be displayed.',
			'amazilon' ); ?></p>
</div>


<div class="block">
    <h2><?php _e( 'Display product image and link to the Amazon product ', 'amazilon' ); ?>:</h2>
    <p><?php _e( 'imagesize 75x75 Pixel', 'amazilon' ); ?>:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[apn asin="B000V3IPSU"
        typ="link" true="$BILD"]<br/>
		<?php _e( 'imagesize 160x160 Pixel', 'amazilon' ); ?>: &nbsp;[apn asin="B000V3IPSU" typ="link"
        true="$BILDMEDIUM"]<br/>
		<?php _e( 'imagesize 500x500 Pixel', 'amazilon' ); ?>: &nbsp;[apn asin="B000V3IPSU" typ="link"
        true="$BILDLARGE"]<br/><br/>
		<?php _e( 'special', 'amazilon' ); ?>: [apnx asin="B000V3IPSU" typ="link"
        false="<?php _e( 'No longer available', 'amazilon' ); ?>"]&lt;img
        src="http://example.com/image.jpg"&gt;[/apnx]<br/>
		<?php _e( 'If the item is deliverable, the content will be linked between [apnx] and [/apnx], else displayed as "not longer deliverable". ',
			'amazilon' ); ?></p>
</div>


<div class="block">
    <h2><?php _e( 'Display Prime order as available for the product and show as <b>Text</b>', 'amazilon' ); ?></h2>
    <p><?php _e( 'Easy/Simple', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="prime"]<br/>
		<?php _e( 'Advanced', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="prime" true="<?php _e( 'Available',
			'amazilon' ); ?>" false="<?php _e( 'Not available', 'amazilon' ); ?>"]<br/> <br/>
        <b><?php _e( 'note', 'amazilon' ); ?>
            :</b> <?php _e( 'If information about Prime order can\'t be transferred or the product can\'t be ordered via Prima, "not available" will be displayed, else "available".',
			'amazilon' ); ?><br/>
		<?php _e( 'Standard', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="prime" true="<?php _e( 'Yes',
			'amazilon' ); ?>" false="<?php _e( 'No', 'amazilon' ); ?>"]<br/><br/>
        <b><?php _e( 'Explanation', 'amazilon' ); ?>:</b><br>
        <img src="<?php echo plugins_url( 'gfx/erklaerung.png', __FILE__ ); ?>" style="max-width: 100%;"><br/> <br/>
    </p></div>

<div class="block">
    <h2><?php _e( 'Display Prime order as available for the product and show as <b>Bild</b>.', 'amazilon' ); ?></h2>
    <p>[apnx asin="B000V3IPSU" typ="prime" false="<?php _e( 'Not Available', 'amazilon' ); ?>"]&lt;img
        src="<?php echo plugins_url( 'gfx/prime-bild-verfuegbar.png', __FILE__ ); ?>"&gt;[/apnx]<br/><br/>
		<?php _e( 'If the item is not available via prime, the content will be displayed between [apnx] and [/apnx], else "not available". You can insert a picture from the media galery or the Prime logo, if the status is positive. ',
			'amazilon' ); ?><br>
        <img src="<?php echo plugins_url( 'gfx/prime-bild-verfuegbar.png', __FILE__ ); ?>" style="max-width: 100%;">
    </p>
</div>

<div class="block">
    <h2><?php _e( 'Returns a textlink to the Amazon product', 'amazilon' ); ?></h2>
    <p><?php _e( 'Easy/Simple', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="link"]<br/>
		<?php _e( 'Advanced', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="link"
        false="<?php _e( 'No longer available', 'amazilon' ); ?>"
        true="<?php _e( 'Click here for the article on Amazon', 'amazilon' ); ?>" tag="example-33" rel="follow"]<br/>
        <br/>
        <b><?php _e( 'note', 'amazilon' ); ?>
            :</b> <?php _e( 'If the item-URL can\'t be transferred, for whatever reason, "not deliverable" will be displayed. ',
			'amazilon' ); ?><br/>
        <b><?php _e( 'Nofollo/Follow', 'amazilon' ); ?>
            :</b> <?php _e( 'Change the link from "nofollow" to "follow" with the specification "rel="follow", independently of the Plugin setup.',
			'amazilon' ); ?><br/>
        <b><?php _e( 'Tracking-ID', 'amazilon' ); ?>
            :</b> <?php _e( 'The in the plugin settings deposited associateTag (Tracking ID) will be overwritten with the value „example-33“. That way particular links can be deposited with a divergent amazon Tracking-ID.',
			'amazilon' ); ?><br/><br/>
        <b><?php _e( 'Explanation', 'amazilon' ); ?>:</b><br/>
        <img src="<?php echo plugins_url( 'gfx/erklaerung-link.png', __FILE__ ); ?>" style="max-width: 100%;">
    </p>
</div>

<div class="block">
    <h2><?php _e( 'Read only the URL to the product', 'amazilon' ); ?></h2>
    <p><?php _e( 'Easy/Simple', 'amazilon' ); ?>: [apn asin="B000V3IPSU"
        typ="url"] <?php _e( '- If there is no URL, "#" is returned.', 'amazilon' ); ?><br/>
		<?php _e( 'Advanced', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="url"
        false="<?php _e( 'http://www.amazon.de/', 'amazilon' ); ?>"
        tag="example-33"] <?php _e( 'If the article URL can\'t be transferred, "http://www.amazon.de/" will be shown. The in the configuration deposited associateTag (TrackingID) will be overwritten with the value "example-33".',
			'amazilon' ); ?><br/> <br/>
		<?php _e( 'Usage', 'amazilon' ); ?>
        : <?php _e( 'Only gives out the URL to the item. Can for example be used in the text view as specification within the href=""',
			'amazilon' ); ?><br/><br/>
        <b><?php _e( 'Important', 'amazilon' ); ?>:</b> <?php _e( 'Instead of \" - \' has to be used in a ShortCode.',
			'amazilon' ); ?><br>
        <br/><b><?php _e( 'Example given', 'amazilon' ); ?>:</b> &lt;a href="[apn asin='B000V3IPSU'
        typ='url']"&gt;<?php _e( 'Wanted link text', 'amazilon' ); ?>&lt;/a&gt;
    </p>
</div>

<div class="block">
    <h2><?php _e( 'Read and show product name', 'amazilon' ); ?></h2>
    <p><?php _e( 'Easy/Simple', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="titel"]<br/>
		<?php _e( 'Advanced', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="titel" false="<?php _e( 'Productname',
			'amazilon' ); ?>" max="20"] <?php _e( 'The maximum length of the article will be reduced to 20 signs.',
			'amazilon' ); ?><br/> <br/>
        <b><?php _e( 'note', 'amazilon' ); ?>
            :</b> <?php _e( 'If the product name can\'t be transferred, for whatever reason, "product name" will be displayed.',
			'amazilon' ); ?></p>
</div>

<div class="block">
    <h2><?php _e( 'State of data which are dispensed.', 'amazilon' ); ?></h2>
    <p><?php _e( 'Easy/Simple', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="state"]<br/><br/>
        <b><?php _e( 'please keep in mind', 'amazilon' ); ?>
            :</b> <?php _e( 'You should always name the state of data at the item page, the Amazon API predetermines this as a guideline.',
			'amazilon' ); ?><br/><br/>
		<?php sprintf( __( 'It may occur, that the API doesn\'t provide any data for products. In this case it will automatically be retried to load the data after 5 minutes. At top in the black admin bar you see a dustbin. By clicking the dustbin  %s you delete the cache of the requested data. At the next invocation of the articles the product data will be reread.',
			'amazilon' ), '<span class="dashicons dashicons-trash"></span>' ); ?>
    </p>
</div>

<div class="block">
    <h2><?php _e( 'Do not autoselect available variation.', 'amazilon' ); ?></h2>
    <p><?php _e( 'Usage', 'amazilon' ); ?>: [apn asin="B000V3IPSU" typ="preis" novariants="1"]<br/><br/>
        <b><?php _e( 'note', 'amazilon' ); ?>
            :</b> <?php _e( 'If you want to display the price for a specific variation of that article. Amazilon will not automatically switch to first available variation if specified ASIN is not available.',
			'amazilon' ); ?><br/>
    </p>
</div>
<div class="block">
    <h2><?php _e( 'Further help', 'amazilon' ); ?></h2>
    <p><?php _e( 'Other hints, help and often asked questions can be looked up at: <a href="https://amazilon.com" target="_blank">https://amazilon.com</a>',
			'amazilon' ); ?></p>
</div>
