function content_56b45dfbc8f6b1_17603250($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include 'T:\\home\\stamp-expert.ru\\www\\tools\\smarty\\plugins\\modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
示例#2
0
文件: Editable.php 项目: rjsmelo/tiki
 function __toString()
 {
     global $prefs;
     TikiLib::lib('smarty')->loadPlugin('smarty_modifier_escape');
     if ($prefs['ajax_inline_edit'] != 'y') {
         return $this->inner === null ? '' : $this->inner;
     }
     // block = dialog goes to span as well
     $tag = $this->layout == 'block' ? 'div' : 'span';
     $fieldFetch = smarty_modifier_escape(json_encode($this->fieldFetchUrl));
     $objectStore = smarty_modifier_escape(json_encode($this->objectStoreUrl));
     $label = smarty_modifier_escape($this->label);
     $value = $this->inner;
     if (trim(strip_tags($value)) == '') {
         // When the value is empty, make sure it becomes visible/clickable
         $value .= '&nbsp;';
     }
     $class = "editable-inline";
     if ($this->layout == 'dialog') {
         $class = "editable-dialog";
     }
     if (!$this->fieldFetchUrl) {
         $class .= ' loaded';
     }
     $group = smarty_modifier_escape($this->group);
     return "<{$tag} class=\"{$class}\" data-field-fetch-url=\"{$fieldFetch}\" data-object-store-url=\"{$objectStore}\" data-group=\"{$group}\" data-label=\"{$label}\">{$value}</{$tag}>";
 }
    function content_530ff8ee5f1870_09504325($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<div class="row">
	<div class="col-xs-12 col-md-6">
        <p class="payment_module">
            <a class="cheque" href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getModuleLink('cheque', 'payment', array(), true), 'html', 'UTF-8');
        ?>
" title="<?php 
        echo smartyTranslate(array('s' => 'Pay by check.', 'mod' => 'cheque'), $_smarty_tpl);
        ?>
">
                <?php 
        echo smartyTranslate(array('s' => 'Pay by check', 'mod' => 'cheque'), $_smarty_tpl);
        ?>
 <span><?php 
        echo smartyTranslate(array('s' => '(order processing will be longer)', 'mod' => 'cheque'), $_smarty_tpl);
        ?>
</span>
            </a>
        </p>
    </div>
</div>
<?php 
    }
    function content_563b564fc04e35_58744030($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/home/sumit/public_html/html/ps-hotel-reservation-system/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
    function content_530ff8ef5965c8_84751672($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<!-- MODULE ReferralProgram -->
<fieldset class="account_creation">
	<h3 class="page-subheading"><?php 
        echo smartyTranslate(array('s' => 'Referral program', 'mod' => 'referralprogram'), $_smarty_tpl);
        ?>
</h3>
	<p class="form-group">
		<label for="referralprogram"><?php 
        echo smartyTranslate(array('s' => 'E-mail address of your sponsor', 'mod' => 'referralprogram'), $_smarty_tpl);
        ?>
</label>
		<input class="form-control" type="text" size="52" maxlength="128" id="referralprogram" name="referralprogram" value="<?php 
        if (isset($_POST['referralprogram'])) {
            echo smarty_modifier_escape($_POST['referralprogram'], 'html', 'UTF-8');
        }
        ?>
" />
	</p>
</fieldset>
<!-- END : MODULE ReferralProgram --><?php 
    }
    function content_56fb07c49d1440_88414919($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include 'E:\\www\\etec\\terceiro-modulo\\MKT\\Aula05\\prestashop\\tools\\smarty\\plugins\\modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
    function content_530ff8ed4e11a4_68124514($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<!-- Block search module TOP -->
<div id="search_block_top" class="col-sm-4 clearfix">
	<form id="searchbox" method="get" action="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getPageLink('search'), 'html', 'UTF-8');
        ?>
" >
		<input type="hidden" name="controller" value="search" />
		<input type="hidden" name="orderby" value="position" />
		<input type="hidden" name="orderway" value="desc" />
		<input class="search_query form-control" type="text" id="search_query_top" name="search_query" placeholder="<?php 
        echo smartyTranslate(array('s' => 'Search', 'mod' => 'blocksearch'), $_smarty_tpl);
        ?>
" value="<?php 
        echo stripslashes(smarty_modifier_escape($_smarty_tpl->tpl_vars['search_query']->value, 'htmlall', 'UTF-8'));
        ?>
" />
		<button type="submit" name="submit_search" class="btn btn-default button-search">
			<span><?php 
        echo smartyTranslate(array('s' => 'Search', 'mod' => 'blocksearch'), $_smarty_tpl);
        ?>
</span>
		</button>
	</form>
</div>
<!-- /Block search module TOP --><?php 
    }
    function content_53ae6fda240e81_16756736($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/var/www/vipinsg/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<li class="favoriteproducts">
	<a href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getModuleLink('favoriteproducts', 'account'), 'htmlall', 'UTF-8');
        ?>
" title="<?php 
        echo smartyTranslate(array('s' => 'My favorite products.', 'mod' => 'favoriteproducts'), $_smarty_tpl);
        ?>
">
		<?php 
        if (!$_smarty_tpl->tpl_vars['in_footer']->value) {
            ?>
<i class="icon-heart"></i><?php 
        }
        ?>
		<?php 
        echo smartyTranslate(array('s' => 'My favorite products.', 'mod' => 'favoriteproducts'), $_smarty_tpl);
        ?>

	</a>
</li>
<?php 
    }
    function content_55a5138833f5d9_83377830($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/var/www/html/Collivery-Prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
    function content_530ff8ef5fdf64_66891113($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<!-- MODULE ReferralProgram -->
<p id="referralprogram">
	<i class="icon-flag"></i>
	<?php 
        echo smartyTranslate(array('s' => 'You have earned a voucher worth %s thanks to your sponsor!', 'sprintf' => $_smarty_tpl->tpl_vars['discount_display']->value, 'mod' => 'referralprogram'), $_smarty_tpl);
        ?>

	<?php 
        echo smartyTranslate(array('s' => 'Enter voucher name %s to receive the reduction on this order.', 'sprintf' => $_smarty_tpl->tpl_vars['discount']->value->name, 'mod' => 'referralprogram'), $_smarty_tpl);
        ?>

	<a href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getModuleLink('referralprogram', 'program', array(), true), 'html', 'UTF-8');
        ?>
" title="<?php 
        echo smartyTranslate(array('s' => 'Referral program', 'mod' => 'referralprogram'), $_smarty_tpl);
        ?>
" rel="nofollow"><?php 
        echo smartyTranslate(array('s' => 'View your referral program.', 'mod' => 'referralprogram'), $_smarty_tpl);
        ?>
</a>
</p>
<br />
<!-- END : MODULE ReferralProgram --><?php 
    }
    function content_530ffd72566d03_57090784($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<div id="contact-link">
	<a href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getPageLink('contact', true), 'html', 'UTF-8');
        ?>
" title="<?php 
        echo smartyTranslate(array('s' => 'Contact Us', 'mod' => 'blockcontact'), $_smarty_tpl);
        ?>
"><?php 
        echo smartyTranslate(array('s' => 'Contact Us', 'mod' => 'blockcontact'), $_smarty_tpl);
        ?>
</a>
</div>
<?php 
        if ($_smarty_tpl->tpl_vars['telnumber']->value) {
            ?>
	<span class="shop-phone">
		<i class="icon-phone"></i><?php 
            echo smartyTranslate(array('s' => 'Call us now toll free:', 'mod' => 'blockcontact'), $_smarty_tpl);
            ?>
 <strong><?php 
            echo $_smarty_tpl->tpl_vars['telnumber']->value;
            ?>
</strong>
	</span>
<?php 
        }
    }
    function content_568bfed219ca72_87821085($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include 'C:\\wamp\\www\\prestashop_1.6.1.3_fr\\prestashop\\tools\\smarty\\plugins\\modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
示例#13
0
function smarty_function_favorite($params, $smarty)
{
    global $prefs, $user;
    // Disabled, do nothing
    if (empty($user) || $prefs['user_favorites'] != 'y') {
        return;
    }
    $servicelib = TikiLib::lib('service');
    $smarty = TikiLib::lib('smarty');
    $smarty->loadPlugin('smarty_modifier_escape');
    $url = $servicelib->getUrl(array('controller' => 'favorite', 'action' => 'toggle', 'type' => $params['type'], 'object' => $params['object']));
    $url = smarty_modifier_escape($url, 'url');
    $e_user = smarty_modifier_escape($user);
    if (isset($params['label'])) {
        $label = $params['label'];
    } else {
        $label = tr('Favorite');
    }
    if (isset($params['button_classes'])) {
        $button_classes = $params['button_classes'];
    } else {
        $button_classes = "btn btn-default";
    }
    return '<a class="' . $button_classes . ' favorite-toggle" href="' . $url . '" data-key="favorite_' . $e_user . '"> ' . $label . '</a>';
}
    function content_530ff8edae3cc5_64390621($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<!-- MODULE WishList -->
<li class="lnk_wishlist">
	<a 
	href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['wishlist_link']->value, 'html', 'UTF-8');
        ?>
" 
	title="<?php 
        echo smartyTranslate(array('s' => 'My wishlists', 'mod' => 'blockwishlist'), $_smarty_tpl);
        ?>
">
		<i class="icon-heart"></i>
		<span><?php 
        echo smartyTranslate(array('s' => 'My wishlists', 'mod' => 'blockwishlist'), $_smarty_tpl);
        ?>
</span>
	</a>
</li>
<!-- END : MODULE WishList --><?php 
    }
示例#15
0
function smarty_block_accordion_group($params, $content, $smarty, $repeat)
{
    if ($repeat) {
        return;
    }
    global $accordion_current_group, $accordion_position;
    if (empty($accordion_current_group)) {
        $accordion_current_group = uniqid();
        $accordion_position = 0;
    }
    $smarty->loadPlugin('smarty_modifier_escape');
    $title = smarty_modifier_escape($params['title']);
    $id = $accordion_current_group . '-' . ++$accordion_position;
    $first = $accordion_position == 1 ? 'in' : '';
    return <<<CONTENT
<div class="panel panel-default panel-accordian">
\t<div class="panel-heading">
\t\t<h4 class="panel-title">
\t\t\t<a class="accordion-toggle" data-toggle="collapse" data-parent="#{$accordion_current_group}" href="#{$id}">
\t\t\t\t{$title}
\t\t\t</a>
\t\t</h4>
\t</div>
\t<div id="{$id}" class="panel-collapse collapse {$first}">
\t\t<div class="panel-body">
\t\t\t{$content}
\t\t</div>
\t</div>
</div>
CONTENT;
}
    function content_569a5317e73323_83510119($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include 'Z:\\domains\\localhost\\prestashop\\tools\\smarty\\plugins\\modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
    function content_561f47920ff172_70159583($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include 'C:\\xampp\\htdocs\\mangwale\\tools\\smarty\\plugins\\modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
    function content_52a1fb159f1644_14068828($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/var/www/vhosts/www.a3workout.com/httpdocs/product_shop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<?php 
        if (isset($_smarty_tpl->tpl_vars['errors']->value) && $_smarty_tpl->tpl_vars['errors']->value) {
            ?>
	<div class="error">
		<p><?php 
            if (count($_smarty_tpl->tpl_vars['errors']->value) > 1) {
                echo smartyTranslate(array('s' => 'There are %d errors', 'sprintf' => count($_smarty_tpl->tpl_vars['errors']->value)), $_smarty_tpl);
            } else {
                echo smartyTranslate(array('s' => 'There is %d error', 'sprintf' => count($_smarty_tpl->tpl_vars['errors']->value)), $_smarty_tpl);
            }
            ?>
</p>
		<ol>
		<?php 
            $_smarty_tpl->tpl_vars['error'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['error']->_loop = false;
            $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['errors']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['error']->key => $_smarty_tpl->tpl_vars['error']->value) {
                $_smarty_tpl->tpl_vars['error']->_loop = true;
                $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['error']->key;
                ?>
			<li><?php 
                echo $_smarty_tpl->tpl_vars['error']->value;
                ?>
</li>
		<?php 
            }
            ?>
		</ol>
		<?php 
            if (isset($_SERVER['HTTP_REFERER']) && !strstr($_smarty_tpl->tpl_vars['request_uri']->value, 'authentication') && preg_replace('#^https?://[^/]+/#', '/', $_SERVER['HTTP_REFERER']) != $_smarty_tpl->tpl_vars['request_uri']->value) {
                ?>
			<p class="lnk"><a href="<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER]['secureReferrer'][0][0]->secureReferrer(smarty_modifier_escape($_SERVER['HTTP_REFERER'], 'htmlall', 'UTF-8'));
                ?>
" title="<?php 
                echo smartyTranslate(array('s' => 'Back'), $_smarty_tpl);
                ?>
">&laquo; <?php 
                echo smartyTranslate(array('s' => 'Back'), $_smarty_tpl);
                ?>
</a></p>
		<?php 
            }
            ?>
	</div>
<?php 
        }
    }
    function content_530ff8fb2de181_39675249($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>



<a class="btn btn-default" target="_blank" href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminPdf'), 'html', 'UTF-8');
        ?>
&submitAction=generateOrderSlipPDF&id_order_slip=<?php 
        echo $_smarty_tpl->tpl_vars['order_slip']->value->id;
        ?>
">
	<i class="icon-file-text"></i>
	<?php 
        echo smartyTranslate(array('s' => 'Download credit slip'), $_smarty_tpl);
        ?>

</a>

<?php 
    }
    function content_561cd0c333a4e0_45220471($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include 'E:\\wwwroot\\projects\\web\\Arnaud_Lachaume\\Prestashop\\Source\\prestashop\\tools\\smarty\\plugins\\modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
示例#21
0
function smarty_function_select_all($params, $smarty)
{
    global $prefs;
    static $checkbox_count = -1;
    if ($prefs['javascript_enabled'] == 'n' || !is_array($params) || empty($params['checkbox_names'])) {
        return;
    }
    $checkbox_count++;
    if ($checkbox_count > 0) {
        $id = '_' . $checkbox_count;
    } else {
        $id = '';
    }
    $onclick = '';
    $checkbox_names = $params['checkbox_names'];
    if (!is_array($checkbox_names)) {
        $checkbox_names = explode(',', $checkbox_names);
    }
    if (isset($params['hidden_too']) && $params['hidden_too'] === 'y') {
        $hidden_too = ',true';
    } else {
        $hidden_too = '';
    }
    $smarty->loadPlugin('smarty_modifier_escape');
    foreach ($checkbox_names as $cn) {
        $onclick .= "switchCheckboxes(this.form,'" . htmlspecialchars(smarty_modifier_escape($cn, 'javascript')) . "',this.checked{$hidden_too});";
    }
    return "<div>\n" . '<input name="switcher' . $id . '" id="clickall' . $id . '" type="checkbox" onclick="' . $onclick . '"' . (empty($params['label']) ? ' title="' . tra('Select All') . '"' : '') . '/>' . "\n" . (!empty($params['label']) ? '<label for="clickall' . $id . '">' . $params['label'] . "</label>\n" : '') . "</div>\n";
}
    function content_56bb02121c2226_72607643($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include 'D:\\OpenServer\\domains\\Creative.mu\\tools\\smarty\\plugins\\modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
    function content_530ffd7189afe0_35957301($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        if ($_smarty_tpl->tpl_vars['facebookurl']->value != '') {
            ?>
<div id="fb-root"></div>
<div id="facebook_block" class="col-xs-4">
	<h4 ><?php 
            echo smartyTranslate(array('s' => 'Follow us on facebook', 'mod' => 'blockfacebook'), $_smarty_tpl);
            ?>
</h4>
	<div class="facebook-fanbox">
		<div
			class="fb-like-box"
			data-href="http://www.facebook.com/<?php 
            echo smarty_modifier_escape($_smarty_tpl->tpl_vars['facebookurl']->value, 'html', 'UTF-8');
            ?>
"
			data-colorscheme="light"
			data-show-faces="true"
			data-header="false"
			data-stream="false"
			data-show-border="false">
		</div>
	</div>
</div>
<?php 
        }
    }
    function content_564727d29fbc14_66056181($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/home/activeciuk/www/bap/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
    function content_568d501ec813f4_81251280($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Users/Gauthier/Desktop/G-M-Shop/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
    function content_566d927aadc178_07950536($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>
<li class="tree-folder">
	<span class="tree-folder-name">
		<i class="icon-folder-close"></i>
		<label class="tree-toggler"><a href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['url_shop_group']->value, ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;id_shop_group=<?php 
        echo $_smarty_tpl->tpl_vars['node']->value['id'];
        ?>
"><?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['node']->value['name'], ENT_QUOTES, 'UTF-8', true);
        ?>
</a></label>
	</span>
	<ul class="tree">
		<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['children']->value, 'UTF-8');
        ?>

	</ul>
</li><?php 
    }
示例#27
0
function smarty_block_title($params, $content, $template, &$repeat)
{
    global $prefs, $tiki_p_view_templates, $tiki_p_edit_templates, $tiki_p_admin;
    if ($repeat || empty($content)) {
        return;
    }
    $template->loadPlugin('smarty_function_icon');
    $template->loadPlugin('smarty_modifier_sefurl');
    $template->loadPlugin('smarty_modifier_escape');
    if (!isset($params['help'])) {
        $params['help'] = '';
    }
    if (!isset($params['admpage'])) {
        $params['admpage'] = '';
    }
    if (!isset($params['actions'])) {
        $params['actions'] = '';
    }
    // Set the variable for the HTML title tag
    $template->smarty->assign('headtitle', $content);
    $class = '';
    $current = current_object();
    if (!isset($params['url'])) {
        $params['url'] = smarty_modifier_sefurl($current['object'], $current['type']);
    }
    $metadata = '';
    $coordinates = TikiLib::lib('geo')->get_coordinates($current['type'], $current['object']);
    if ($coordinates) {
        $class = ' geolocated primary';
        $metadata = " data-geo-lat=\"{$coordinates['lat']}\" data-geo-lon=\"{$coordinates['lon']}\"";
        if (isset($coordinates['zoom'])) {
            $metadata .= " data-geo-zoom=\"{$coordinates['zoom']}\"";
        }
    }
    $html = '<h1 class="pagetitle">';
    $html .= '<a class="' . $class . '"' . $metadata . ' href="' . $params['url'] . '">' . smarty_modifier_escape($content) . "</a>\n";
    if ($template->getTemplateVars('print_page') != 'y') {
        if ($prefs['feature_help'] == 'y' && $prefs['helpurl'] != '' && $params['help'] != '') {
            $html .= '<a href="';
            $html .= $prefs['helpurl'] . rawurlencode($params['help']) . '" class="tips btn btn-link" title="' . smarty_modifier_escape($content) . '|' . tra('Help page') . '" target="tikihelp">' . smarty_function_icon(array('name' => 'help'), $template) . "</a>\n";
        }
        if ($prefs['feature_edit_templates'] == 'y' && $tiki_p_edit_templates == 'y' && ($tpl = $template->getTemplateVars('mid'))) {
            $html .= '<a href="tiki-edit_templates.php?template=';
            $html .= $tpl . '" class="tips btn btn-link" title="' . tra('View or edit tpl') . '|' . htmlspecialchars($content) . '">' . smarty_function_icon(array('name' => 'edit'), $template) . "</a>\n";
        } elseif ($prefs['feature_view_tpl'] == 'y' && $tiki_p_view_templates == 'y' && ($tpl = $template->getTemplateVars('mid'))) {
            $html .= '<a href="tiki-edit_templates.php?template=';
            $html .= $tpl . '" class="tips btn btn-link" title="' . tra('View tpl') . '|' . htmlspecialchars($content) . '">' . smarty_function_icon(array('name' => 'view'), $template) . "</a>\n";
        }
        if ($tiki_p_admin == 'y' && $params['admpage'] != '') {
            $html .= '<a class="tips btn btn-link" href="tiki-admin.php?page=';
            $html .= $params['admpage'] . '" title="' . htmlspecialchars($content) . '|' . tra('Settings') . '">' . smarty_function_icon(array('name' => 'settings'), $template) . "</a>\n";
        }
        if ($params['actions'] != '') {
            $html .= $params['actions'];
        }
    }
    $html .= '</h1>';
    return $html;
}
    function content_53ae773ba30036_08048905($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/var/www/vipinsg/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<!-- Breadcrumb -->
<?php 
        if (isset(Smarty::$_smarty_vars['capture']['path'])) {
            $_smarty_tpl->tpl_vars['path'] = new Smarty_variable(Smarty::$_smarty_vars['capture']['path'], null, 0);
        }
        ?>
<div class="breadcrumb">
<div class="breadcrumb_inset">
	<a class="breadcrumb-home" href="<?php 
        echo $_smarty_tpl->tpl_vars['base_dir']->value;
        ?>
" title="<?php 
        echo smartyTranslate(array('s' => 'Return to Home'), $_smarty_tpl);
        ?>
"><i class="icon-home"></i></a>
	<?php 
        if (isset($_smarty_tpl->tpl_vars['path']->value) && $_smarty_tpl->tpl_vars['path']->value) {
            ?>
		<span class="navigation-pipe" <?php 
            if (isset($_smarty_tpl->tpl_vars['category']->value) && isset($_smarty_tpl->tpl_vars['category']->value->id_category) && $_smarty_tpl->tpl_vars['category']->value->id_category == 1) {
                ?>
style="display:none;"<?php 
            }
            ?>
><?php 
            echo smarty_modifier_escape($_smarty_tpl->tpl_vars['navigationPipe']->value, 'html', 'UTF-8');
            ?>
</span> 
		<?php 
            if (!strpos($_smarty_tpl->tpl_vars['path']->value, 'span')) {
                ?>
			<span class="navigation_page"><?php 
                echo $_smarty_tpl->tpl_vars['path']->value;
                ?>
</span>
		<?php 
            } else {
                ?>
			<?php 
                echo $_smarty_tpl->tpl_vars['path']->value;
                ?>

		<?php 
            }
            ?>
	<?php 
        }
        ?>
</div>
</div>
<!-- /Breadcrumb --><?php 
    }
    function content_53ae6fd9d55a95_22640548($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/var/www/vipinsg/tools/smarty/plugins/modifier.escape.php';
        }
        if ($_smarty_tpl->tpl_vars['MENU']->value != '') {
            ?>
</div>
<div class="menu_wrapper">
	<div class="container">
        <div id="menu-wrap" class="clearfix desktop">
            <div id="menu-trigger"><?php 
            echo smartyTranslate(array('s' => 'Categories', 'mod' => 'blocktopmenu'), $_smarty_tpl);
            ?>
<i class="menu-icon icon-plus-sign-alt"></i></div>
                <ul id="menu-custom">
                <?php 
            echo $_smarty_tpl->tpl_vars['MENU']->value;
            ?>

                    <?php 
            if ($_smarty_tpl->tpl_vars['MENU_SEARCH']->value) {
                ?>
                        <li class="search">
                            <form id="searchbox" action="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('search'), ENT_QUOTES, 'UTF-8');
                ?>
" method="get">
                                        <input type="hidden" name="controller" value="search" />
                                <input type="hidden" value="position" name="orderby"/>
                                <input type="hidden" value="desc" name="orderway"/>
                                <input type="text" name="search_query" value="<?php 
                if (isset($_GET['search_query'])) {
                    echo smarty_modifier_escape($_GET['search_query'], 'htmlall', 'UTF-8');
                }
                ?>
" placeholder="Search..." />
                            </form>
                        </li>
                    <?php 
            }
            ?>
                </ul>
            </div>
        </div>
    <script type="text/javascript">
		$(document).ready(function() {
            $('#menu-custom li:has(ul)').addClass('hasSub');
			var i=1;
			$('#menu-custom > li').each(function() {
                $(this).addClass('cat-'+ i);
				i++;
            });
        });
	</script>
<?php 
        }
    }
    function content_530ff8ec99d432_54603318($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_escape')) {
            include '/Applications/MAMP/htdocs/prestashop/tools/smarty/plugins/modifier.escape.php';
        }
        ?>

<div id="contact_block" class="block">
	<h4 class="title_block">
		<?php 
        echo smartyTranslate(array('s' => 'Contact Us', 'mod' => 'blockcontact'), $_smarty_tpl);
        ?>

	</h4>
	<div class="block_content clearfix">
		<p>
			<?php 
        echo smartyTranslate(array('s' => 'Our support hotline is available 24/7.', 'mod' => 'blockcontact'), $_smarty_tpl);
        ?>

		</p>
		<?php 
        if ($_smarty_tpl->tpl_vars['telnumber']->value != '') {
            ?>
			<p class="tel">
				<span class="label"><?php 
            echo smartyTranslate(array('s' => 'Phone:', 'mod' => 'blockcontact'), $_smarty_tpl);
            ?>
</span><?php 
            echo smarty_modifier_escape($_smarty_tpl->tpl_vars['telnumber']->value, 'html', 'UTF-8');
            ?>

			</p>
		<?php 
        }
        ?>
		<?php 
        if ($_smarty_tpl->tpl_vars['email']->value != '') {
            ?>
			<a href="mailto:<?php 
            echo smarty_modifier_escape($_smarty_tpl->tpl_vars['email']->value, 'html', 'UTF-8');
            ?>
" title="<?php 
            echo smartyTranslate(array('s' => 'Contact our expert support team!', 'mod' => 'blockcontact'), $_smarty_tpl);
            ?>
">
				<?php 
            echo smartyTranslate(array('s' => 'Contact our expert support team!', 'mod' => 'blockcontact'), $_smarty_tpl);
            ?>

			</a>
		<?php 
        }
        ?>
	</div>
</div><?php 
    }