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


PHP smarty_function_script函数代码示例

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


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

示例1: content_55ccf16de3f093_82615807

 function content_55ccf16de3f093_82615807($_smarty_tpl)
 {
     if (!is_callable('smarty_function_script')) {
         include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
     }
     echo smarty_function_script(array('src' => "js/tygh/previewers/" . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_image_previewer'] . ".previewer.js"), $_smarty_tpl);
 }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:7,代码来源:237c188fb4246d2856c9fa0a7cd8321ea822608e.tygh.previewer.tpl.php

示例2: content_55db8bdb7dc285_36548049

 function content_55db8bdb7dc285_36548049($_smarty_tpl)
 {
     if (!is_callable('smarty_function_script')) {
         include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
     }
     echo smarty_function_script(array('src' => "js/addons/seo/func.js"), $_smarty_tpl);
 }
开发者ID:AlanIsrael0,项目名称:market,代码行数:7,代码来源:3617729f6c51c3bc4579e3305e9bdeab8623c2c4.tygh.scripts.post.tpl.php

示例3: content_55dc7ca79c4f85_65632726

 function content_55dc7ca79c4f85_65632726($_smarty_tpl)
 {
     if (!is_callable('smarty_function_script')) {
         include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
     }
     echo smarty_function_script(array('src' => "js/tygh/previewers/" . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_image_previewer'] . ".previewer.js"), $_smarty_tpl);
 }
开发者ID:AlanIsrael0,项目名称:market,代码行数:7,代码来源:9b85795aa006408c8bcbf52cb2e8275efdbec598.tygh.previewer.tpl.php

示例4: content_55ccdf8630db88_05660707

 function content_55ccdf8630db88_05660707($_smarty_tpl)
 {
     if (!is_callable('smarty_function_script')) {
         include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
     }
     echo smarty_function_script(array('src' => "js/addons/seo/func.js"), $_smarty_tpl);
 }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:7,代码来源:68fad72d05319165ae60f2013ae38dd962ae181c.tygh.scripts.post.tpl.php

示例5: content_55db8bdb7defc2_46995987

 function content_55db8bdb7defc2_46995987($_smarty_tpl)
 {
     if (!is_callable('smarty_function_script')) {
         include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
     }
     echo smarty_function_script(array('src' => "js/addons/hybrid_auth/func.js"), $_smarty_tpl);
 }
开发者ID:AlanIsrael0,项目名称:market,代码行数:7,代码来源:733a1db3eef17ab59f4d05c1a6d9b6cce1ce8e9e.tygh.scripts.post.tpl.php

示例6: content_55ccdf8630b1a0_08184262

    function content_55ccdf8630b1a0_08184262($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        echo smarty_function_script(array('src' => "js/addons/buy_together/func.js"), $_smarty_tpl);
        ?>

<?php 
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:10,代码来源:35591f7619cbcce2014720fd0348328dd2075194.tygh.scripts.post.tpl.php

示例7: content_55cddb243ea151_79018599

    function content_55cddb243ea151_79018599($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        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();
            echo smarty_function_script(array('src' => "js/tygh/previewers/" . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_image_previewer'] . ".previewer.js"), $_smarty_tpl);
            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/previewer.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "common/previewer.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_script(array('src' => "js/tygh/previewers/" . (string) $_smarty_tpl->tpl_vars['settings']->value['Appearance']['default_image_previewer'] . ".previewer.js"), $_smarty_tpl);
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:42,代码来源:73eeafdffd93d1d2914cca99610ef081ce77287e.tygh.previewer.tpl.php

示例8: content_55ccec9cc493e2_70495317

    function content_55ccec9cc493e2_70495317($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        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();
            echo smarty_function_script(array('src' => "js/addons/hybrid_auth/func.js"), $_smarty_tpl);
            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/hybrid_auth/hooks/index/scripts.post.tpl" id="<?php 
                    echo smarty_function_set_id(array('name' => "addons/hybrid_auth/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 {
            echo smarty_function_script(array('src' => "js/addons/hybrid_auth/func.js"), $_smarty_tpl);
        }
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:42,代码来源:332b51ef1c4fc7989ec6553a3078ae477e9914e4.tygh.scripts.post.tpl.php

示例9: content_55e61f9b306642_99798759

    function content_55e61f9b306642_99798759($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        echo smarty_function_script(array('src' => "js/tygh/node_cloning.js"), $_smarty_tpl);
        ?>


<?php 
        $_smarty_tpl->tpl_vars["tag_level"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['tag_level']->value) === null || $tmp === '' ? "1" : $tmp, null, 0);
        if ($_smarty_tpl->tpl_vars['only_delete']->value != "Y") {
            if (!$_smarty_tpl->tpl_vars['hide_add']->value) {
                echo $_smarty_tpl->getSubTemplate("buttons/add_empty_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_onclick' => "Tygh." . "\$" . "('#box_' + this.id).cloneNode(" . (string) $_smarty_tpl->tpl_vars['tag_level']->value . "); " . (string) $_smarty_tpl->tpl_vars['on_add']->value, 'item_id' => $_smarty_tpl->tpl_vars['item_id']->value), 0);
            }
            if (!$_smarty_tpl->tpl_vars['hide_clone']->value) {
                echo $_smarty_tpl->getSubTemplate("buttons/clone_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_onclick' => "Tygh." . "\$" . "('#box_' + this.id).cloneNode(" . (string) $_smarty_tpl->tpl_vars['tag_level']->value . ", true);", 'item_id' => $_smarty_tpl->tpl_vars['item_id']->value), 0);
            }
        }
        echo $_smarty_tpl->getSubTemplate("buttons/remove_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_delete' => $_smarty_tpl->tpl_vars['only_delete']->value, 'but_class' => "cm-delete-row"), 0);
    }
开发者ID:AlanIsrael0,项目名称:market,代码行数:21,代码来源:c005d0eed4fc76f6cea19c4f153147c05f0e4aea.tygh.multiple_buttons.tpl.php

示例10: content_55ccecdbe676b9_13312280

    function content_55ccecdbe676b9_13312280($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        echo smarty_function_script(array('src' => "js/tygh/node_cloning.js"), $_smarty_tpl);
        ?>


<?php 
        $_smarty_tpl->tpl_vars["tag_level"] = new Smarty_variable(($tmp = @$_smarty_tpl->tpl_vars['tag_level']->value) === null || $tmp === '' ? "1" : $tmp, null, 0);
        if ($_smarty_tpl->tpl_vars['only_delete']->value != "Y") {
            if (!$_smarty_tpl->tpl_vars['hide_add']->value) {
                echo $_smarty_tpl->getSubTemplate("buttons/add_empty_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_onclick' => "Tygh." . "\$" . "('#box_' + this.id).cloneNode(" . (string) $_smarty_tpl->tpl_vars['tag_level']->value . "); " . (string) $_smarty_tpl->tpl_vars['on_add']->value, 'item_id' => $_smarty_tpl->tpl_vars['item_id']->value), 0);
            }
            if (!$_smarty_tpl->tpl_vars['hide_clone']->value) {
                echo $_smarty_tpl->getSubTemplate("buttons/clone_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_onclick' => "Tygh." . "\$" . "('#box_' + this.id).cloneNode(" . (string) $_smarty_tpl->tpl_vars['tag_level']->value . ", true);", 'item_id' => $_smarty_tpl->tpl_vars['item_id']->value), 0);
            }
        }
        echo $_smarty_tpl->getSubTemplate("buttons/link_to_product.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_onclick' => "alert('test legatura cu un produs');", 'item_id' => $_smarty_tpl->tpl_vars['option_variant_id']->value, 'product_id' => $_smarty_tpl->tpl_vars['product_id']->value, 'linked_product_id' => $_smarty_tpl->tpl_vars['required_product_id']->value), 0);
        echo $_smarty_tpl->getSubTemplate("buttons/remove_item.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('only_delete' => $_smarty_tpl->tpl_vars['only_delete']->value, 'but_class' => "cm-delete-row"), 0);
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:22,代码来源:5f08bb47abe1ad028ee67707cb03e32f215c0f89.tygh.multiple_buttons.tpl.php

示例11: content_55cceca0400fe4_85591749

    function content_55cceca0400fe4_85591749($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        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('save_and_close', 'specify_options', 'specify_options', 'save_and_close', 'specify_options', 'specify_options', 'total_list_price', 'price_for_all', 'add_all_to_cart', 'sign_in_to_view_price', 'save_and_close', 'specify_options', 'specify_options', 'save_and_close', 'specify_options', 'specify_options', 'total_list_price', 'price_for_all', 'add_all_to_cart', 'sign_in_to_view_price'));
        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 
            echo smarty_function_script(array('src' => "js/tygh/exceptions.js"), $_smarty_tpl);
            ?>


<?php 
            if ($_smarty_tpl->tpl_vars['chains']->value) {
                ?>

    <?php 
                if (!$_smarty_tpl->tpl_vars['config']->value['tweaks']['disable_dhtml'] && !$_smarty_tpl->tpl_vars['no_ajax']->value) {
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["is_ajax"] = new Smarty_variable(true, null, 0);
                    ?>
    <?php 
                }
                ?>
    
    <?php 
                $_smarty_tpl->tpl_vars["chain"] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars["chain"]->_loop = false;
                $_smarty_tpl->tpl_vars["key"] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['chains']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars["chain"]->key => $_smarty_tpl->tpl_vars["chain"]->value) {
                    $_smarty_tpl->tpl_vars["chain"]->_loop = true;
                    $_smarty_tpl->tpl_vars["key"]->value = $_smarty_tpl->tpl_vars["chain"]->key;
                    ?>
        <?php 
                    $_smarty_tpl->tpl_vars["obj_prefix"] = new Smarty_variable("bt_" . (string) $_smarty_tpl->tpl_vars['chain']->value['chain_id'], null, 0);
                    ?>
        <form <?php 
                    if ($_smarty_tpl->tpl_vars['is_ajax']->value) {
                        ?>
class="cm-ajax cm-ajax-full-render"<?php 
                    }
                    ?>
 action="<?php 
                    echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
                    ?>
" method="post" name="chain_form_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                    ?>
" enctype="multipart/form-data">
        <input type="hidden" name="redirect_url" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8');
                    ?>
" />
        <input type="hidden" name="result_ids" value="cart_status*,wish_list*" />
        <?php 
                    if (!$_smarty_tpl->tpl_vars['stay_in_cart']->value || $_smarty_tpl->tpl_vars['is_ajax']->value) {
                        ?>
            <input type="hidden" name="redirect_url" value="<?php 
                        echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8');
                        ?>
" />
        <?php 
                    }
                    ?>
        <input type="hidden" name="product_data[<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                    ?>
][chain]" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                    ?>
" />
        <input type="hidden" name="product_data[<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
_<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['chain_id'], ENT_QUOTES, 'UTF-8');
                    ?>
][product_id]" value="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['chain']->value['product_id'], ENT_QUOTES, 'UTF-8');
                    ?>
" />

        <?php 
                    echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['chain']->value['name']), 0);
                    ?>
//.........这里部分代码省略.........
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:c4d2ce5e9e4f5d23cac9a757872deb34365f3afd.tygh.buy_together.tpl.php

示例12: content_55dc7cba1ff3d0_79057342

    function content_55dc7cba1ff3d0_79057342($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_block_inline_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php';
        }
        fn_preload_lang_vars(array('period', 'all', 'this_day', 'this_week', 'this_month', 'this_year', 'yesterday', 'previous_week', 'previous_month', 'previous_year', 'last_24hours', 'last_n_days', 'last_n_days', 'custom', 'select_dates'));
        if ($_smarty_tpl->tpl_vars['display']->value != "form") {
            ?>
    <div class="nowrap">
        <div class="form-inline">
<?php 
        } else {
            ?>
    <div class="sidebar-field">
<?php 
        }
        ?>
       <label for="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
        ?>
period_selects"><?php 
        echo $_smarty_tpl->__("period");
        ?>
:</label>
            <select name="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
        ?>
period" id="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['prefix']->value, ENT_QUOTES, 'UTF-8');
        ?>
period_selects">
                <option value="A" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "A" || !$_smarty_tpl->tpl_vars['period']->value) {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("all");
        ?>
</option>
                <optgroup label="=============">
                    <option value="D" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "D") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("this_day");
        ?>
</option>
                    <option value="W" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "W") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("this_week");
        ?>
</option>
                    <option value="M" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "M") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("this_month");
        ?>
</option>
                    <option value="Y" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "Y") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("this_year");
        ?>
</option>
                </optgroup>
                <optgroup label="=============">
                    <option value="LD" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "LD") {
            ?>
selected="selected"<?php 
        }
        ?>
><?php 
        echo $_smarty_tpl->__("yesterday");
        ?>
</option>
                    <option value="LW" <?php 
        if ($_smarty_tpl->tpl_vars['period']->value == "LW") {
            ?>
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:57474c6e4564ece9d7213eeff0f44d06d38c7991.tygh.period_selector.tpl.php

示例13: content_55e61f9ba13292_82585819

    function content_55e61f9ba13292_82585819($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_block_inline_script')) {
            include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php';
        }
        fn_preload_lang_vars(array('new_option', 'add_option', 'new_option', 'add_option', 'apply_to_products', 'global', 'edit', 'view', 'view', 'editing_option', 'no_data', 'options'));
        echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl);
        ?>


    <?php 
        $_smarty_tpl->smarty->_tag_stack[] = array('inline_script', array());
        $_block_repeat = true;
        echo smarty_block_inline_script(array(), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo '<script';
            ?>
 type="text/javascript">
    function fn_check_option_type(value, tag_id)
    {
        var id = tag_id.replace('option_type_', '').replace('elm_', '');
        Tygh.$('#tab_option_variants_' + id).toggleBy(!(value == 'S' || value == 'R' || value == 'C'));
        Tygh.$('#required_options_' + id).toggleBy(!(value == 'I' || value == 'T' || value == 'F'));
        Tygh.$('#extra_options_' + id).toggleBy(!(value == 'I' || value == 'T'));
        Tygh.$('#file_options_' + id).toggleBy(!(value == 'F'));

        if (value == 'C') {
            var t = Tygh.$('table', '#content_tab_option_variants_' + id);
            Tygh.$('.cm-non-cb', t).switchAvailability(true); // hide obsolete columns
            Tygh.$('tbody:gt(1)', t).switchAvailability(true); // hide obsolete rows

        } else if (value == 'S' || value == 'R') {
            var t = Tygh.$('table', '#content_tab_option_variants_' + id);
            Tygh.$('.cm-non-cb', t).switchAvailability(false); // show all columns
            Tygh.$('tbody', t).switchAvailability(false); // show all rows
            Tygh.$('#box_add_variant_' + id).show(); // show "add new variants" box

        } else if (value == 'I' || value == 'T') {
            Tygh.$('#extra_options_' + id).show(); // show "add new variants" box
        }
    }
    <?php 
            echo '</script';
            ?>
><?php 
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo smarty_block_inline_script(array(), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        ?>



<?php 
        $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null);
        ob_start();
        ?>

    <?php 
        if ($_smarty_tpl->tpl_vars['object']->value == "global") {
            ?>
        <?php 
            $_smarty_tpl->tpl_vars["select_languages"] = new Smarty_variable(true, null, 0);
            ?>
        <?php 
            $_smarty_tpl->tpl_vars["delete_target_id"] = new Smarty_variable("pagination_contents", null, 0);
            ?>
    <?php 
        } else {
            ?>
        <?php 
            $_smarty_tpl->tpl_vars["delete_target_id"] = new Smarty_variable("product_options_list", null, 0);
            ?>
    <?php 
        }
        ?>

    <?php 
        echo $_smarty_tpl->getSubTemplate("common/pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>


    <?php 
        if (!($_smarty_tpl->tpl_vars['runtime']->value['company_id'] && $_smarty_tpl->tpl_vars['product_data']->value['shared_product'] == "Y" && $_smarty_tpl->tpl_vars['runtime']->value['company_id'] != $_smarty_tpl->tpl_vars['product_data']->value['company_id'])) {
            ?>
        <?php 
            $_smarty_tpl->_capture_stack[0][] = array("toolbar", null, null);
            ob_start();
            ?>
            <?php 
            $_smarty_tpl->_capture_stack[0][] = array("add_new_picker", null, null);
            ob_start();
            ?>
                <?php 
            if ($_smarty_tpl->tpl_vars['product_data']->value) {
//.........这里部分代码省略.........
开发者ID:AlanIsrael0,项目名称:market,代码行数:101,代码来源:a4bd9c94c9f9495a03c76b23392c886e9ec2c034.tygh.manage.tpl.php

示例14: content_55cddb242ef289_50758274

    function content_55cddb242ef289_50758274($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        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('add_to_cart', 'options', 'add_to_cart', 'options'));
        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 (count($_smarty_tpl->tpl_vars['option_variants_to_product_array_strings']->value) > 0) {
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["optionsWithVariantsLinkedToProductsKeys"] = new Smarty_variable(array_keys($_smarty_tpl->tpl_vars['option_variants_to_product_array_strings']->value), null, 0);
                ?>
    <?php 
                $_smarty_tpl->tpl_vars["optionsWithVariantsLinkedToProducts"] = new Smarty_variable(implode(',', $_smarty_tpl->tpl_vars['optionsWithVariantsLinkedToProductsKeys']->value), null, 0);
                ?>
    <input type="hidden" id="options_with_variants_linked_to_products" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['optionsWithVariantsLinkedToProducts']->value, ENT_QUOTES, 'UTF-8');
                ?>
">
    <input type="hidden" id="options_variants_user_set" value="<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['options_variants_user_set']->value, ENT_QUOTES, 'UTF-8');
                ?>
">
<?php 
            }
            ?>

<div class="ty-quick-view__wrapper">
    
    <?php 
            $_smarty_tpl->_capture_stack[0][] = array("val_hide_form", null, null);
            ob_start();
            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();
            }
            ?>
    <?php 
            $_smarty_tpl->_capture_stack[0][] = array("val_capture_options_vs_qty", null, null);
            ob_start();
            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();
            }
            ?>
    <?php 
            $_smarty_tpl->_capture_stack[0][] = array("val_capture_buttons", null, null);
            ob_start();
            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();
            }
            ?>
    <?php 
            $_smarty_tpl->_capture_stack[0][] = array("val_no_ajax", null, null);
            ob_start();
            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();
            }
//.........这里部分代码省略.........
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:15ca7cd4c68400c8a35cbdce0839edee2145c02f.tygh.quick_view.tpl.php

示例15: content_55ccdf864081b0_25610907

    function content_55ccdf864081b0_25610907($_smarty_tpl)
    {
        if (!is_callable('smarty_function_script')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.script.php';
        }
        if (!is_callable('smarty_block_hook')) {
            include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/block.hook.php';
        }
        fn_preload_lang_vars(array('marketplace', 'marketplace_find_more', 'installed_addons', 'browse_all_available_addons', 'no_data', 'no_data', 'upload_addon', 'upload_addon', 'addons'));
        echo $_smarty_tpl->getSubTemplate("views/profiles/components/profiles_scripts.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('states' => fn_get_all_states(1)), 0);
        ?>


<?php 
        echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_script(array('src' => "js/tygh/filter_table.js"), $_smarty_tpl);
        ?>

<?php 
        echo smarty_function_script(array('src' => "js/tygh/fileuploader_scripts.js"), $_smarty_tpl);
        ?>



    <script type="text/javascript">
        (function(_, $) {
            $(document).ready(function(){
                var search_field = $("#elm_addon");
                var search_clear = $("#elm_addon_clear");

                // Init plugin
                search_field.ceFilterTable({
                    table: ".table-addons",
                    empty: ".no-items"
                });

                // Clear input
                search_clear.on("click", function() {
                    search_field.val("").trigger("input");
                    search_clear.addClass("hidden");
                });
                
                // Show clear button if search filed isn't empty
                search_field.on("keyup input", function() {
                    if(search_field.val().length > 0) {
                        search_clear.removeClass("hidden");
                    } else {
                        search_clear.addClass("hidden");
                    }
                });

            });
        }(Tygh, Tygh.$));
    </script>


<?php 
        $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null);
        ob_start();
        ?>

<?php 
        $_smarty_tpl->_capture_stack[0][] = array("sidebar", null, null);
        ob_start();
        ?>
    <?php 
        echo $_smarty_tpl->getSubTemplate("views/addons/components/addons_search_form.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('dispatch' => "addons.manage"), 0);
        ?>

    <hr>
    <div class="sidebar-row marketplace">
        <h6><?php 
        echo $_smarty_tpl->__("marketplace");
        ?>
</h6>
        <p class="marketplace-link"><?php 
        echo $_smarty_tpl->__("marketplace_find_more", array("[href]" => $_smarty_tpl->tpl_vars['config']->value['resources']['marketplace_url']));
        ?>
</p>
    </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();
        }
        ?>

<?php 
        $_smarty_tpl->tpl_vars["c_url"] = new Smarty_variable(rawurlencode($_smarty_tpl->tpl_vars['config']->value['current_url']), null, 0);
//.........这里部分代码省略.........
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:101,代码来源:9c1de2010ec947e31a28fdd705d8f3a99aee0dac.tygh.manage.tpl.php


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