<?php
   if(!defined('ABSPATH'))
    die('Restricted Access');
?>
<?php
	JSSTincluder::getJSModel('jssupportticket')->jsst_get_theme_colors();
	$jsst_color1 = jssupportticket::$jsst_colors['color1'];
    $jsst_color3 = jssupportticket::$jsst_colors['color3'];
?>
<div id="jsstadmin-wrapper">
    <div id="jsstadmin-leftmenu">
        <?php  JSSTincluder::getClassesInclude('jsstadminsidemenu'); ?>
    </div>
    <div id="jsstadmin-data">
		<div id="jsstadmin-wrapper-top">
		    <div id="jsstadmin-wrapper-top-left">
		        <div id="jsstadmin-breadcrunbs">
		            <ul>
		                <li><a href="?page=jssupportticket" title="<?php echo esc_attr(__('Dashboard','js-support-ticket')); ?>"><?php echo esc_html(__('Dashboard','js-support-ticket')); ?></a></li>
		                <li><?php echo esc_html(__('Shortcodes','js-support-ticket')); ?></li>
		            </ul>
		        </div>
		    </div>
		    <div id="jsstadmin-wrapper-top-right">
		        <div id="jsstadmin-config-btn">
		            <a title="<?php echo esc_attr(__('Configuration','js-support-ticket')); ?>" href="<?php echo esc_url(admin_url("admin.php?page=configuration")); ?>">
		                <img alt = "<?php echo esc_attr(__('Configuration','js-support-ticket')); ?>" src="<?php echo esc_url(JSST_PLUGIN_URL); ?>includes/images/config.png" />
		            </a>
		        </div>
    	        <div id="jsstadmin-config-btn" class="jssticketadmin-help-btn">
    	            <a href="<?php echo esc_url(admin_url("admin.php?page=jssupportticket&jstlay=help")); ?>" title="<?php echo esc_attr(__('Help','js-support-ticket')); ?>">
    	                <img alt = "<?php echo esc_attr(__('Help','js-support-ticket')); ?>" src="<?php echo esc_url(JSST_PLUGIN_URL); ?>includes/images/help.png" />
    	            </a>
    	        </div>
		        <div id="jsstadmin-vers-txt">
		            <?php echo esc_html(__("Version",'js-support-ticket')); ?>:
		            <span class="jsstadmin-ver"><?php echo esc_html(JSSTincluder::getJSModel('configuration')->getConfigValue('versioncode')); ?></span>
		        </div>
		    </div>
		</div>
    	<div id="jsstadmin-head">
            <h1 class="jsstadmin-head-text"><?php echo esc_html(__('Shortcodes', 'js-support-ticket')); ?></h1>
            <a target="blank" href="https://www.youtube.com/watch?v=mN6xsD2u2CI" class="jsstadmin-add-link black-bg button js-cp-video-popup" title="<?php echo esc_attr(__('Watch Video', 'js-support-ticket')); ?>">
                <img alt = "<?php echo esc_attr(__('arrow','js-support-ticket')); ?>" src="<?php echo esc_url(JSST_PLUGIN_URL); ?>includes/images/play-btn.png"/>
                <?php echo esc_html(__('Watch Video','js-support-ticket')); ?>
            </a>
        </div>
    	<div id="jsstadmin-data-wrp" class="p0">
			<div id="jsst-shortcode-wrapper">
				<div class="jsst-shortcode-1"><?php echo esc_html(__('JS Help Desk / JS Support Ticket Control Panel','js-support-ticket')); ?></div>
				<div class="jsst-shortcode-2"><?php echo "[jssupportticket]"; ?></div>
				<div class="jsst-shortcode-3"><?php echo esc_html(__("JS Help Desk / JS Support Ticket main control panel",'js-support-ticket')); ?></div>
			</div>
			<div id="jsst-shortcode-wrapper">
				<div class="jsst-shortcode-1"><?php echo esc_html(__('Add Ticket','js-support-ticket')); ?></div>
				<div class="jsst-shortcode-2"><?php echo "[jssupportticket_addticket]"; ?></div>
				<div class="jsst-shortcode-3"><?php echo esc_html(__("Add new ticket form for both user and agent",'js-support-ticket')); ?></div>
			</div>
			<?php if(in_array('multiform', jssupportticket::$_active_addons)){ ?>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__('Add Ticket Using Multiform','js-support-ticket')); ?></div>
					<?php 
						$jsst_multiforms = jssupportticket::$jsst_data[0]['multiforms'];
						foreach ($jsst_multiforms as $jsst_multiform) {
						 	echo '<div class="jsst-shortcode-2">
						 		[jssupportticket_addticket_multiform formid='.esc_attr($jsst_multiform->id).']';
					 			echo '<span class="jsst-shortcode-name">('.esc_html($jsst_multiform->title).'</span>';
						 		if (isset($jsst_multiform->departmentname)) {
						 			echo '<span class="jsst-shortcode-dept"> - '.esc_html($jsst_multiform->departmentname).')</span>';
						 		} else {
						 			echo '<span class="jsst-shortcode-dept">)</span>';
						 		}
					 		echo '</div>';
						} ?>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("Add new ticket form for both user and agent",'js-support-ticket')); ?></div>
				</div>
			<?php } ?>
			<div id="jsst-shortcode-wrapper">
				<div class="jsst-shortcode-1"><?php echo esc_html(__('My Tickets','js-support-ticket')); ?></div>
				<div class="jsst-shortcode-2"><?php echo "[jssupportticket_mytickets]"; ?></div>
				<div class="jsst-shortcode-3"><?php echo esc_html(__("My tickets for both user and agent",'js-support-ticket')); ?></div>
			</div>
			<?php if(in_array('download', jssupportticket::$_active_addons)){ ?>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__('Downloads','js-support-ticket')); ?></div>
					<div class="jsst-shortcode-2"><?php echo "[jssupportticket_downloads]"; ?></div>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("List downloads",'js-support-ticket')); ?></div>
				</div>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__('Latest Downloads','js-support-ticket')); ?></div>
					<div class="jsst-shortcode-2"><?php echo "[jssupportticket_downloads_latest]"; ?></div>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("Show latest downloads. Options",'js-support-ticket')).': text_color="'.esc_attr($jsst_color3).'" '. esc_html(__("and",'js-support-ticket')).' background_color="'.esc_attr($jsst_color1).'" '. esc_html(__("i.e.",'js-support-ticket')).' [jssupportticket_downloads_latest text_color="'.esc_attr($jsst_color3).'" background_color="'.esc_attr($jsst_color1).'"]'; ?></div>
				</div>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__('Popular Downloads','js-support-ticket')); ?></div>
					<div class="jsst-shortcode-2"><?php echo "[jssupportticket_downloads_popular]"; ?></div>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("Show popular downloads. Options",'js-support-ticket')).': text_color="'.esc_attr($jsst_color3).'" '. esc_html(__("and",'js-support-ticket')).' background_color="'.esc_attr($jsst_color1).'" '. esc_html(__("i.e.",'js-support-ticket')).' [jssupportticket_downloads_popular text_color="'.esc_attr($jsst_color3).'" background_color="'.esc_attr($jsst_color1).'"]'; ?></div>
				</div>
			<?php } ?>
			<?php if(in_array('knowledgebase', jssupportticket::$_active_addons)){ ?>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__('Knowledge Base','js-support-ticket')); ?></div>
					<div class="jsst-shortcode-2"><?php echo "[jssupportticket_knowledgebase]"; ?></div>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("List knowledge base",'js-support-ticket')); ?></div>
				</div>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__('Latest Knowledge Base','js-support-ticket')); ?></div>
					<div class="jsst-shortcode-2"><?php echo "[jssupportticket_knowledgebase_latest]"; ?></div>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("Show latest knowledge base. Options",'js-support-ticket')).': text_color="'.esc_attr($jsst_color3).'" '. esc_html(__("and",'js-support-ticket')).' background_color="'.esc_attr($jsst_color1).'" '. esc_html(__("i.e.",'js-support-ticket')).' [jssupportticket_knowledgebase_latest text_color="'.esc_attr($jsst_color3).'" background_color="'.esc_attr($jsst_color1).'"]'; ?></div>
				</div>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__('Popular Knowledge Base','js-support-ticket')); ?></div>
					<div class="jsst-shortcode-2"><?php echo "[jssupportticket_knowledgebase_popular]"; ?></div>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("Show popular knowledge base. Options",'js-support-ticket')).': text_color="'.esc_attr($jsst_color3).'" '. esc_html(__("and",'js-support-ticket')).' background_color="'.esc_attr($jsst_color1).'" '. esc_html(__("i.e.",'js-support-ticket')).' [jssupportticket_knowledgebase_popular text_color="'.esc_attr($jsst_color3).'" background_color="'.esc_attr($jsst_color1).'"]'; ?></div>
				</div>
			<?php } ?>
			<?php if(in_array('faq', jssupportticket::$_active_addons)){ ?>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__("FAQs",'js-support-ticket')); ?></div>
					<div class="jsst-shortcode-2"><?php echo "[jssupportticket_faqs]"; ?></div>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("List FAQs",'js-support-ticket')); ?></div>
				</div>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__("Latest FAQs",'js-support-ticket')); ?></div>
					<div class="jsst-shortcode-2"><?php echo "[jssupportticket_faqs_latest]"; ?></div>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("Show latest FAQs. Options",'js-support-ticket')).': text_color="'.esc_attr($jsst_color3).'" '. esc_html(__("and",'js-support-ticket')).' background_color="'.esc_attr($jsst_color1).'" '. esc_html(__("i.e.",'js-support-ticket')).' [jssupportticket_faqs_latest text_color="'.esc_attr($jsst_color3).'" background_color="'.esc_attr($jsst_color1).'"]'; ?></div>
				</div>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__("Popular FAQs",'js-support-ticket')); ?></div>
					<div class="jsst-shortcode-2"><?php echo "[jssupportticket_faqs_popular]"; ?></div>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("Show popular FAQs. Options",'js-support-ticket')).': text_color="'.esc_attr($jsst_color3).'" '. esc_html(__("and",'js-support-ticket')).' background_color="'.esc_attr($jsst_color1).'" '. esc_html(__("i.e.",'js-support-ticket')).' [jssupportticket_faqs_popular text_color="'.esc_attr($jsst_color3).'" background_color="'.esc_attr($jsst_color1).'"]'; ?></div>
				</div>
			<?php } ?>
			<?php if(in_array('announcement', jssupportticket::$_active_addons)){ ?>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__('Announcements','js-support-ticket')); ?></div>
					<div class="jsst-shortcode-2"><?php echo "[jssupportticket_announcements]"; ?></div>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("List announcements",'js-support-ticket')); ?></div>
				</div>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__('Latest Announcements','js-support-ticket')); ?></div>
					<div class="jsst-shortcode-2"><?php echo "[jssupportticket_announcements_latest]"; ?></div>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("Show latest announcements. Options",'js-support-ticket')).': text_color="'.esc_attr($jsst_color3).'" '. esc_html(__("and",'js-support-ticket')).' background_color="'.esc_attr($jsst_color1).'" '. esc_html(__("i.e.",'js-support-ticket')).' [jssupportticket_announcements_latest text_color="'.esc_attr($jsst_color3).'" background_color="'.esc_attr($jsst_color1).'"]'; ?></div>
				</div>
				<div id="jsst-shortcode-wrapper">
					<div class="jsst-shortcode-1"><?php echo esc_html(__('Popular Announcements','js-support-ticket')); ?></div>
					<div class="jsst-shortcode-2"><?php echo "[jssupportticket_announcements_popular]"; ?></div>
					<div class="jsst-shortcode-3"><?php echo esc_html(__("Show popular announcements. Options",'js-support-ticket')).': text_color="'.esc_attr($jsst_color3).'" '. esc_html(__("and",'js-support-ticket')).' background_color="'.esc_attr($jsst_color1).'" '. esc_html(__("i.e.",'js-support-ticket')).' [jssupportticket_announcements_popular text_color="'.esc_attr($jsst_color3).'" background_color="'.esc_attr($jsst_color1).'"]'; ?></div>
				</div>
			<?php } ?>
		</div>
	</div>
</div>
