<?php
/**
 * Represents the view for the administration dashboard.
 *
 * @package   Glossary
 * @author    Codeat <support@codeat.co>
 * @copyright 2016 GPL 3.0+
 * @license   GPL-2.0+
 * @link      http://codeat.co
 *
 * @phpcs:disable WordPress.Security.EscapeOutput
 */
?>
<div id="tabs-shortcodes" class="metabox-holder">
	<div class="postbox">
		<h3 class="hndle"><span><?php _e( 'Purge the shortcode/widget plugin cache', GT_TEXTDOMAIN ); ?></span>
		</h3>
		<div class="inside"><p>
			<?php _e( 'Glossary uses a <b>cache</b>, based on WordPress transients to improve the performance in shortcodes or widgets. Usually they last 24 hours but is possible to clean them manually pressing this button. [<a href="https://docs.codeat.co/glossary/faq/#how-can-i-clean-up-plugin-transients" target="_blank">Documentation</a>]', GT_TEXTDOMAIN ); ?>
			<a href="<?php echo esc_html( add_query_arg( 'gl_purge_transient', true ) ); ?>#tabs-shortcodes" class="button button-primary" style="float:right"><?php _e( 'Purge plugin transients', GT_TEXTDOMAIN ); ?></a>
		</p></div>
	</div>
	<div class="postbox">
		<h3 class="hndle"><span><?php _e( 'Shortcodes available in Free version', GT_TEXTDOMAIN ); ?></span>
		</h3>
		<div class="inside">
			<ul>
				<li><b>[glossary-cats]</b> - <?php _e( 'This shortcode will generate an index for your Glossary that will create an indexed page, for all your key terms.', GT_TEXTDOMAIN ); ?> [<a href='http://docs.codeat.co/glossary/shortcodes/#list-of-categories' target='_blank'>Documentation</a>]</li>
				<li><span style="color:red"><?php _e( 'Cached', GT_TEXTDOMAIN ); ?></span> <b>[glossary-terms]</b> - <?php _e( 'This shortcode will generate a list of your glossary\'s terms.', GT_TEXTDOMAIN ); ?> [<a href='http://docs.codeat.co/glossary/shortcodes/#list-of-terms' target='_blank'>Documentation</a>]</li>
			</ul>
		</div>
	</div>

	<div class="postbox">
		<h3 class="hndle"><span><?php _e( 'Shortcodes available in PRO version', GT_TEXTDOMAIN ); ?></span></h3>
		<div class="inside">
			<ul>
				<li><span style="color:red"><?php _e( 'Cached', GT_TEXTDOMAIN ); ?></span> <b>[glossary-list]</b> - <?php _e( 'This PRO shortcode will generate an index for your Glossary that will create an indexed page.', GT_TEXTDOMAIN ); ?> [<a href='http://docs.codeat.co/glossary/shortcodes/#glossary-index-premium' target='_blank'>Documentation</a>]</li>
				<li><b>[glossary]</b> - <?php _e( 'To parse a specific portion of content, wrap it inside this shortcode. This will enforce rendition with all terms known to Glossary linked therein. Useful in cases where Page Builders like Visual Composers or other components interfere with proper execution.', GT_TEXTDOMAIN ); ?> [<a href='https://docs.codeat.co/glossary/shortcodes/#parse-content-premium' target='_blank'>Documentation</a>]</li>
				<li><b>[glossary-ignore]</b> - <?php _e( 'To prevent Glossary from processing a term, wrap with this shortcode.', GT_TEXTDOMAIN ); ?> [<a href='https://docs.codeat.co/glossary/shortcodes/#ignore-terms-premium' target='_blank'>Documentation</a>]</li>
			</ul>
		</div>
	</div>
</div>
