/** * 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'); $contentId = ZtShortcodesHelperCommon::getUniqueString('zt-content-'); ?> <div class="accordion-section"> <a class="accordion-section-title<?php echo $attributes->get('active') == "yes" ? ' active' : ''; ?> " href="#<?php echo $contentId; ?> "><i class="fa <?php echo $attributes->get('active') == "yes" ? 'fa-minus' : 'fa-plus'; ?> "></i><?php echo $attributes->get('title'); ?> </a>
/** * 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'); $parentId = ZtShortcodesHelperCommon::getUniqueString('zt-accordion-'); ?> <div class="accordion<?php echo ' accordion-' . $attributes->get('type'); ?> " id="<?php echo $parentId; ?> "> <!-- Sub content --> <?php echo $content; ?> </div>
/** * Prepare attributes for this tag * @param array $atts * @param type $tag * @return type */ public function init($atts, $tag) { $atts['id'] = ZtShortcodesHelperCommon::getUniqueString($tag); return $atts; }
* @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'); ?> <div class="carousel-wrap"> <div class="carousel-slider" id="<?php echo ZtShortcodesHelperCommon::getUniqueString('zt-carousel-'); ?> " data-items="<?php echo $attributes->get('showItem'); ?> " data-duration="<?php echo $attributes->get('duration'); ?> " data-responsinve="<?php echo $attributes->get('enableReponsive'); ?> ">
$tabs = $ztShortcodes['tabs'][$attributes->get('id')]; $hrefs = array(); ?> <div role="tabpanel" class="zt-tabs zt-tab-<?php echo $attributes->get('type'); ?> "> <?php if ($attributes->get('type') != 'bottom-tabs') { ?> <ul class="nav nav-tabs"> <?php foreach ($tabs as $key => $tab) { $tabkey = str_replace(" ", "-", $tab['attributes']->get('title')); $hrefs[$key] = ZtShortcodesHelperCommon::getUniqueString(strtolower($tabkey)); ?> <li class="<?php echo $tab['attributes']->get('active') == 'yes' ? 'active' : ''; ?> "> <a href="#<?php echo $hrefs[$key]; ?> " data-toggle="tab"> <?php echo $tab['attributes']->get('title'); ?> </a>