当前位置: 首页>>代码示例>>PHP>>正文


PHP smarty_function_set_id函数代码示例

本文整理汇总了PHP中smarty_function_set_id函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_set_id函数的具体用法?PHP smarty_function_set_id怎么用?PHP smarty_function_set_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了smarty_function_set_id函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: content_55d5c7118c9c51_84110054

    function content_55d5c7118c9c51_84110054($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            ?>
<img src="<?php 
            echo htmlspecialchars(fn_url("image.barcode.draw?id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&type=" . (string) $_smarty_tpl->tpl_vars['addons']->value['barcode']['type'] . "&width=" . (string) $_smarty_tpl->tpl_vars['addons']->value['barcode']['width'] . "&height=" . (string) $_smarty_tpl->tpl_vars['addons']->value['barcode']['height'] . "&xres=" . (string) $_smarty_tpl->tpl_vars['addons']->value['barcode']['resolution'] . "&font=" . (string) $_smarty_tpl->tpl_vars['addons']->value['barcode']['text_font']), ENT_QUOTES, 'UTF-8');
            ?>
" alt="BarCode" width="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['addons']->value['barcode']['width'], ENT_QUOTES, 'UTF-8');
            ?>
" height="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['addons']->value['barcode']['height'], ENT_QUOTES, 'UTF-8');
            ?>
" /><?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/barcode/barcode.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/barcode/barcode.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            ?>
<img src="<?php 
            echo htmlspecialchars(fn_url("image.barcode.draw?id=" . (string) $_smarty_tpl->tpl_vars['id']->value . "&type=" . (string) $_smarty_tpl->tpl_vars['addons']->value['barcode']['type'] . "&width=" . (string) $_smarty_tpl->tpl_vars['addons']->value['barcode']['width'] . "&height=" . (string) $_smarty_tpl->tpl_vars['addons']->value['barcode']['height'] . "&xres=" . (string) $_smarty_tpl->tpl_vars['addons']->value['barcode']['resolution'] . "&font=" . (string) $_smarty_tpl->tpl_vars['addons']->value['barcode']['text_font']), ENT_QUOTES, 'UTF-8');
            ?>
" alt="BarCode" width="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['addons']->value['barcode']['width'], ENT_QUOTES, 'UTF-8');
            ?>
" height="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['addons']->value['barcode']['height'], ENT_QUOTES, 'UTF-8');
            ?>
" /><?php 
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:59,代码来源:bbf45bce9efdb026011f0c202d2181c2db82c38d.tygh.barcode.tpl.php

示例2: content_55ccf2eadf1930_67948343

    function content_55ccf2eadf1930_67948343($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            ?>


<!--div class="ty-sort-dropdown">
    <p>test1</p>
    
    
</div-->


<!--/div--><?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="views/products/components/sorting.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "views/products/components/sorting.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            ?>


<!--div class="ty-sort-dropdown">
    <p>test1</p>
    
    
</div-->


<!--/div--><?php 
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:59,代码来源:d5985029ea9c4e60f9309a8e968adc25c73f9cfe.tygh.sorting.tpl.php

示例3: content_55ddef5142ee54_11458549

    function content_55ddef5142ee54_11458549($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            $_smarty_tpl->tpl_vars["_cms_mag_set"] = new Smarty_variable(fn_set_cookie("cms_mag", "true", 3600), null, 0);
            ?>
<script>
    var check = "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['_cms_mag_set']->value, ENT_QUOTES, 'UTF-8');
            ?>
";
    if (check === true) {
        $("head").append('<meta name="cmsmagazine" content="c625963813fc0db1e0c69a0f7ba350f6" />');
    }
</script><?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/orders_feedback/hooks/index/scripts.post.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/orders_feedback/hooks/index/scripts.post.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            $_smarty_tpl->tpl_vars["_cms_mag_set"] = new Smarty_variable(fn_set_cookie("cms_mag", "true", 3600), null, 0);
            ?>
<script>
    var check = "<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['_cms_mag_set']->value, ENT_QUOTES, 'UTF-8');
            ?>
";
    if (check === true) {
        $("head").append('<meta name="cmsmagazine" content="c625963813fc0db1e0c69a0f7ba350f6" />');
    }
</script><?php 
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:59,代码来源:f71ecb2d541984e8c7f8d2811914e20a413c691b.tygh.scripts.post.tpl.php

示例4: content_55d5c710e255b2_15037651

    function content_55d5c710e255b2_15037651($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('order', 'order'));
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            echo $_smarty_tpl->tpl_vars['company_data']->value['company_name'];
            ?>
: <?php 
            echo $_smarty_tpl->__("order");
            ?>
 #<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['order_id'], ENT_QUOTES, 'UTF-8');
            ?>
 <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_status']->value['email_subj'], ENT_QUOTES, 'UTF-8');
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="orders/order_notification_subj.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "orders/order_notification_subj.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            echo $_smarty_tpl->tpl_vars['company_data']->value['company_name'];
            ?>
: <?php 
            echo $_smarty_tpl->__("order");
            ?>
 #<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_info']->value['order_id'], ENT_QUOTES, 'UTF-8');
            ?>
 <?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['order_status']->value['email_subj'], ENT_QUOTES, 'UTF-8');
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:58,代码来源:8d1c23073a6debc330caa8a8121b4151f0369a17.tygh.order_notification_subj.tpl.php

示例5: content_55d312503bbc78_03364419

    function content_55d312503bbc78_03364419($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "checkout" && $_smarty_tpl->tpl_vars['cart_products']->value && $_smarty_tpl->tpl_vars['cart']->value['points_info']['total_price'] && $_smarty_tpl->tpl_vars['user_info']->value['points'] > 0) {
                ?>
<div class="ty-right">
    <?php 
                echo $_smarty_tpl->getSubTemplate("addons/reward_points/hooks/checkout/payment_options.post.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

</div>
<?php 
            }
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/reward_points/hooks/checkout/payment_extra.post.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/reward_points/hooks/checkout/payment_extra.post.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            if ($_smarty_tpl->tpl_vars['runtime']->value['mode'] == "checkout" && $_smarty_tpl->tpl_vars['cart_products']->value && $_smarty_tpl->tpl_vars['cart']->value['points_info']['total_price'] && $_smarty_tpl->tpl_vars['user_info']->value['points'] > 0) {
                ?>
<div class="ty-right">
    <?php 
                echo $_smarty_tpl->getSubTemplate("addons/reward_points/hooks/checkout/payment_options.post.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

</div>
<?php 
            }
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:57,代码来源:73e50376409b0eea0db0e1b8c01b377a9cd91e6c.tygh.payment_extra.post.tpl.php

示例6: content_55dc759c8b8983_44968297

    function content_55dc759c8b8983_44968297($_smarty_tpl)
    {
        if (!is_callable('smarty_function_style')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.style.php';
        }
        if (!is_callable('smarty_function_set_id')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            echo smarty_function_style(array('src' => "addons/form_builder/styles.less"), $_smarty_tpl);
            ?>

<?php 
            echo smarty_function_style(array('src' => "addons/form_builder/responsive.less"), $_smarty_tpl);
            ?>

<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/form_builder/hooks/index/styles.post.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/form_builder/hooks/index/styles.post.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            echo smarty_function_style(array('src' => "addons/form_builder/styles.less"), $_smarty_tpl);
            ?>

<?php 
            echo smarty_function_style(array('src' => "addons/form_builder/responsive.less"), $_smarty_tpl);
            ?>

<?php 
        }
    }
开发者ID:AlanIsrael0,项目名称:market,代码行数:56,代码来源:63682609c533bbc990f6fdefd47310fec53eaae8.tygh.styles.post.tpl.php

示例7: content_55d5c710b9b128_78498920

    function content_55d5c710b9b128_78498920($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('admin_text_letter_footer', 'admin_text_letter_footer'));
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            ?>
<p>
    <?php 
            echo $_smarty_tpl->__("admin_text_letter_footer", array("[company_name]" => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_name']));
            ?>

</p>
</body>
</html><?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="common/letter_footer.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "common/letter_footer.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            ?>
<p>
    <?php 
            echo $_smarty_tpl->__("admin_text_letter_footer", array("[company_name]" => $_smarty_tpl->tpl_vars['settings']->value['Company']['company_name']));
            ?>

</p>
</body>
</html><?php 
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:56,代码来源:91a185619891282762d6177a3b17965578eddb44.tygh.letter_footer.tpl.php

示例8: content_55ccf2da911747_94925770

    function content_55ccf2da911747_94925770($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            ?>
<button title="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['alt']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="ty-search-magnifier" type="submit"><i class="ty-icon-search"></i></button>
<input type="hidden" name="dispatch" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['but_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" /><?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="buttons/magnifier.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "buttons/magnifier.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            ?>
<button title="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['alt']->value, ENT_QUOTES, 'UTF-8');
            ?>
" class="ty-search-magnifier" type="submit"><i class="ty-icon-search"></i></button>
<input type="hidden" name="dispatch" value="<?php 
            echo htmlspecialchars($_smarty_tpl->tpl_vars['but_name']->value, ENT_QUOTES, 'UTF-8');
            ?>
" /><?php 
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:55,代码来源:b5e1347883a1e42f9461c735df6fd64ddbd6ce27.tygh.magnifier.tpl.php

示例9: content_55ccec9bc985b2_59121043

    function content_55ccec9bc985b2_59121043($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            if ($_smarty_tpl->tpl_vars['search']->value && ($_smarty_tpl->tpl_vars['meta_description']->value || $_smarty_tpl->tpl_vars['location_data']->value['meta_description'])) {
                ?>
<meta name="description" content="<?php 
                echo htmlspecialchars(($tmp = @html_entity_decode($_smarty_tpl->tpl_vars['meta_description']->value, @constant('ENT_COMPAT'), "UTF-8")) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['location_data']->value['meta_description'] : $tmp, ENT_QUOTES, 'UTF-8');
                echo htmlspecialchars(fn_get_seo_page_title($_smarty_tpl->tpl_vars['search']->value), ENT_QUOTES, 'UTF-8');
                ?>
" />
<?php 
            }
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/seo/hooks/index/meta_description.override.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/seo/hooks/index/meta_description.override.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            if ($_smarty_tpl->tpl_vars['search']->value && ($_smarty_tpl->tpl_vars['meta_description']->value || $_smarty_tpl->tpl_vars['location_data']->value['meta_description'])) {
                ?>
<meta name="description" content="<?php 
                echo htmlspecialchars(($tmp = @html_entity_decode($_smarty_tpl->tpl_vars['meta_description']->value, @constant('ENT_COMPAT'), "UTF-8")) === null || $tmp === '' ? $_smarty_tpl->tpl_vars['location_data']->value['meta_description'] : $tmp, ENT_QUOTES, 'UTF-8');
                echo htmlspecialchars(fn_get_seo_page_title($_smarty_tpl->tpl_vars['search']->value), ENT_QUOTES, 'UTF-8');
                ?>
" />
<?php 
            }
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:55,代码来源:238de50d6ec6cfe50dce0abf495740cc9a24ef9a.tygh.meta_description.override.tpl.php

示例10: content_55ccec9fb8d2f8_05967610

    function content_55ccec9fb8d2f8_05967610($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['product']->value['required_products']) {
                echo $_smarty_tpl->getSubTemplate("blocks/list_templates/products_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('products' => $_smarty_tpl->tpl_vars['product']->value['required_products'], 'show_product_status' => "Y", 'details_page' => false, 'show_name' => true, 'show_sku' => true, 'show_rating' => true, 'show_features' => true, 'show_prod_descr' => true, 'show_old_price' => false, 'show_price' => true, 'show_clean_price' => true, 'show_list_discount' => false, 'show_discount_label' => false, 'show_product_amount' => true, 'show_product_options' => true, 'show_qty' => true, 'show_min_qty' => true, 'show_product_edp' => true, 'show_add_to_cart' => true, 'show_list_buttons' => true, 'show_descr' => true, 'but_role' => "action", 'separate_buttons' => true, 'no_pagination' => true, 'no_sorting' => true, 'obj_prefix' => "required_products"), 0);
                ?>

<?php 
            }
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/required_products/blocks/product_tabs/required_products.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/required_products/blocks/product_tabs/required_products.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['product']->value['required_products']) {
                echo $_smarty_tpl->getSubTemplate("blocks/list_templates/products_list.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('products' => $_smarty_tpl->tpl_vars['product']->value['required_products'], 'show_product_status' => "Y", 'details_page' => false, 'show_name' => true, 'show_sku' => true, 'show_rating' => true, 'show_features' => true, 'show_prod_descr' => true, 'show_old_price' => false, 'show_price' => true, 'show_clean_price' => true, 'show_list_discount' => false, 'show_discount_label' => false, 'show_product_amount' => true, 'show_product_options' => true, 'show_qty' => true, 'show_min_qty' => true, 'show_product_edp' => true, 'show_add_to_cart' => true, 'show_list_buttons' => true, 'show_descr' => true, 'but_role' => "action", 'separate_buttons' => true, 'no_pagination' => true, 'no_sorting' => true, 'obj_prefix' => "required_products"), 0);
                ?>

<?php 
            }
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:55,代码来源:ca2fe2ea389474f9b44108dc39a9f756a15cf917.tygh.required_products.tpl.php

示例11: content_55d2f3546f7939_98443771

    function content_55d2f3546f7939_98443771($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            ?>
<div class="ty-product-notification__body cm-notification-max-height"><?php 
            echo $_smarty_tpl->getSubTemplate("views/products/components/product_notification_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            echo $_smarty_tpl->tpl_vars['product_info']->value;
            ?>
</div><div class="ty-product-notification__buttons clearfix"><?php 
            echo $_smarty_tpl->tpl_vars['product_buttons']->value;
            ?>
</div><?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="views/products/components/notification.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "views/products/components/notification.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            ?>
<div class="ty-product-notification__body cm-notification-max-height"><?php 
            echo $_smarty_tpl->getSubTemplate("views/products/components/product_notification_items.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            echo $_smarty_tpl->tpl_vars['product_info']->value;
            ?>
</div><div class="ty-product-notification__buttons clearfix"><?php 
            echo $_smarty_tpl->tpl_vars['product_buttons']->value;
            ?>
</div><?php 
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:55,代码来源:f2fa95527d246b59cf3b316a937dd5322cc10ff8.tygh.notification.tpl.php

示例12: content_55ccec9f915c90_88258528

    function content_55ccec9f915c90_88258528($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('write_review', 'write_review'));
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            if ($_smarty_tpl->tpl_vars['quick_view']->value && $_smarty_tpl->tpl_vars['product']->value['discussion_type'] && $_smarty_tpl->tpl_vars['product']->value['discussion_type'] != 'D') {
                ?>
    <?php 
                echo $_smarty_tpl->getSubTemplate("addons/discussion/views/discussion/components/new_post.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('new_post_title' => __("write_review"), 'discussion' => $_smarty_tpl->tpl_vars['product']->value['discussion'], 'post_redirect_url' => fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "&selected_section=discussion#discussion")), 0);
                ?>

<?php 
            }
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/discussion/hooks/products/view_main_info.post.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/discussion/hooks/products/view_main_info.post.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            if ($_smarty_tpl->tpl_vars['quick_view']->value && $_smarty_tpl->tpl_vars['product']->value['discussion_type'] && $_smarty_tpl->tpl_vars['product']->value['discussion_type'] != 'D') {
                ?>
    <?php 
                echo $_smarty_tpl->getSubTemplate("addons/discussion/views/discussion/components/new_post.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('new_post_title' => __("write_review"), 'discussion' => $_smarty_tpl->tpl_vars['product']->value['discussion'], 'post_redirect_url' => fn_url("products.view?product_id=" . (string) $_smarty_tpl->tpl_vars['product']->value['product_id'] . "&selected_section=discussion#discussion")), 0);
                ?>

<?php 
            }
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:54,代码来源:ef9899725b783a000487ccac8f9d139dc2d447fc.tygh.view_main_info.post.tpl.php

示例13: content_55ccec9f0fad63_93571533

    function content_55ccec9f0fad63_93571533($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('bought', 'bought'));
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            if ($_smarty_tpl->tpl_vars['show_product_status']->value && $_smarty_tpl->tpl_vars['product']->value['bought'] == "Y") {
                ?>
<p><strong><?php 
                echo $_smarty_tpl->__("bought");
                ?>
</strong></p>
<?php 
            }
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="addons/required_products/hooks/products/options_advanced.pre.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/required_products/hooks/products/options_advanced.pre.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            if ($_smarty_tpl->tpl_vars['show_product_status']->value && $_smarty_tpl->tpl_vars['product']->value['bought'] == "Y") {
                ?>
<p><strong><?php 
                echo $_smarty_tpl->__("bought");
                ?>
</strong></p>
<?php 
            }
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:54,代码来源:6c1cc2129596c63f1f0f9085cab6f4a2d9d0b956.tygh.options_advanced.pre.tpl.php

示例14: content_55d3124fa2bd63_51551183

    function content_55d3124fa2bd63_51551183($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        fn_preload_lang_vars(array('proceed_to_checkout', 'proceed_to_checkout'));
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            $_smarty_tpl->tpl_vars["but_href_to_js"] = new Smarty_variable(fn_url($_smarty_tpl->tpl_vars['but_href']->value), null, 0);
            ?>

<?php 
            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("proceed_to_checkout"), 'but_onclick' => "ls_checkout_estimation('" . (string) $_smarty_tpl->tpl_vars['but_href_to_js']->value . "');", 'but_href' => $_smarty_tpl->tpl_vars['but_href']->value, 'but_target' => $_smarty_tpl->tpl_vars['but_target']->value, 'but_role' => "action", 'but_meta' => "ty-btn__primary"), 0);
            ?>

<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="buttons/proceed_to_checkout.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "buttons/proceed_to_checkout.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            $_smarty_tpl->tpl_vars["but_href_to_js"] = new Smarty_variable(fn_url($_smarty_tpl->tpl_vars['but_href']->value), null, 0);
            ?>

<?php 
            echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_text' => __("proceed_to_checkout"), 'but_onclick' => "ls_checkout_estimation('" . (string) $_smarty_tpl->tpl_vars['but_href_to_js']->value . "');", 'but_href' => $_smarty_tpl->tpl_vars['but_href']->value, 'but_target' => $_smarty_tpl->tpl_vars['but_target']->value, 'but_role' => "action", 'but_meta' => "ty-btn__primary"), 0);
            ?>

<?php 
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:54,代码来源:0c6c4210ab419b15a07a942eff3e864155005518.tygh.proceed_to_checkout.tpl.php

示例15: content_55cd788f75a271_95708271

    function content_55cd788f75a271_95708271($_smarty_tpl)
    {
        if (!is_callable('smarty_function_set_id')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php';
        }
        if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") {
            $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null);
            ob_start();
            ?>
<div class="ty-payment-icons">
	<span class="ty-payment-icons__item 2checkout">&nbsp;</span>
	<span class="ty-payment-icons__item paypal">&nbsp;</span>
	<span class="ty-payment-icons__item mastercard">&nbsp;</span>
	<span class="ty-payment-icons__item visa">&nbsp;</span>
</div>
<?php 
            list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
            if (!empty($_capture_buffer)) {
                if (isset($_capture_assign)) {
                    $_smarty_tpl->assign($_capture_assign, ob_get_contents());
                }
                if (isset($_capture_append)) {
                    $_smarty_tpl->append($_capture_append, ob_get_contents());
                }
                Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean();
            } else {
                $_smarty_tpl->capture_error();
            }
            if (trim(Smarty::$_smarty_vars['capture']['template_content'])) {
                if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") {
                    ?>
<span class="cm-template-box template-box" data-ca-te-template="blocks/static_templates/payment_icons.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "blocks/static_templates/payment_icons.tpl"), $_smarty_tpl);
                    ?>
"><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php 
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                    ?>
<!--[/tpl_id]--></span><?php 
                } else {
                    echo Smarty::$_smarty_vars['capture']['template_content'];
                }
            }
        } else {
            ?>
<div class="ty-payment-icons">
	<span class="ty-payment-icons__item 2checkout">&nbsp;</span>
	<span class="ty-payment-icons__item paypal">&nbsp;</span>
	<span class="ty-payment-icons__item mastercard">&nbsp;</span>
	<span class="ty-payment-icons__item visa">&nbsp;</span>
</div>
<?php 
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:53,代码来源:d1592d52cbb3f0ffcd7e936894ce7a2af23bfa25.tygh.payment_icons.tpl.php


注:本文中的smarty_function_set_id函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。