| Current Path : /home/cbequiperp/www/plugins/system/ztshortcodes/core/html/admin/ |
| Current File : /home/cbequiperp/www/plugins/system/ztshortcodes/core/html/admin/shortcodes.list.php |
<?php
/**
* Zt Shortcodes
* A powerful Joomla plugin to help effortlessly customize your own content and style without HTML code knowledge
*
* @name Zt Shortcodes
* @version 2.0.0
* @package Plugin
* @subpackage System
* @author ZooTemplate
* @email support@zootemplate.com
* @link http://www.zootemplate.com
* @copyright Copyright (c) 2015 ZooTemplate
* @license GPL v2
*/
defined('_JEXEC') or die('Restricted access');
// Convert shortcodes list to groupping
foreach ($list as $tag => $data)
{
$grouped['All'][$tag] = $data;
$grouped[$data['group']][$tag] = $data;
}
?>
<div id="zt-sc-list" class="row-fluid" role="tabpanel" data-example-id="togglable-tabs">
<!-- Nav tabs -->
<ul id="myTab" class="nav nav-tabs">
<?php $first = true; ?>
<?php foreach ($grouped as $groupName => $shortcodes) : ?>
<?php $groupNameAlias = ZtShortcodesHelperCommon::getAlias($groupName); ?>
<li
class="<?php echo ($first) ? 'active' : ''; ?> zt-sc-group-title">
<a
href="#<?php echo $groupNameAlias; ?>"
id="zt-sc-group-tab-<?php echo $groupNameAlias; ?>"
role="tab"
data-toggle="tab"
aria-controls="<?php echo $groupNameAlias; ?>"
aria-expanded="<?php echo ($first) ? 'true' : ''; ?>">
<?php echo $groupName; ?>
</a>
</li>
<?php $first = false; ?>
<?php endforeach; ?>
</ul>
<!-- Tab panes -->
<div id="myTabContent" class="tab-content">
<?php $first = true; ?>
<?php foreach ($grouped as $groupName => $shortcodes) : ?>
<?php $groupNameAlias = ZtShortcodesHelperCommon::getAlias($groupName); ?>
<div
class="tab-pane fade<?php echo ($first) ? ' active in' : ''; ?> zt-sc-group-content"
id="<?php echo $groupNameAlias; ?>"
<!-- Render each shortcodes in a group -->
<ul class="unstyled zt-sc-shortcodes">
<?php foreach ($grouped[$groupName] as $shortcode => $data) : ?>
<?php
$title = (isset($data['description']) ? $data['description'] : '' );
$alias = ZtShortcodesHelperCommon::getAlias($shortcode);
if(trim($alias)=='zt-google-map') {
$api = ZtShortcodesHelperCommon::getAPI();
if ($api) $onclick = 'zt.shortcode.showForm(this);return false;';
else $onclick = 'zt.shortcode.showApiWaring(this);return false;';
} else $onclick = 'zt.shortcode.showForm(this);return false;';
?>
<li class="zt-sc-shortcode">
<a href="#<?php echo ZtShortcodesHelperCommon::getAlias($shortcode); ?>"
onClick="<?php echo $onclick; ?>">
<i class="<?php echo $data['icon']; ?>"></i>
<span class="hasTooltip" data-toggle="tooltip" title="<?php echo $title; ?>"><?php echo $data['name']; ?></span>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php $first = false; ?>
<?php endforeach; ?>
</div>
</div>