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


PHP fn_url函数代码示例

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


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

示例1: formBill

 public function formBill($order_transaction, $order_info, $processor_data)
 {
     $order_total = fn_format_rate_value($order_info['total'], 'F', 2, '.', '', '');
     $user = str_replace(array('+', ' ', '(', ')', '-'), '', $order_info['payment_info']['phone']);
     $data = array('txn_id' => $order_transaction, 'from' => $processor_data['processor_params']['shop_id'], 'to' => '+' . $user, 'summ' => $order_total, 'currency' => $this->_currency, 'successUrl' => fn_url("payment_notification.return?payment=qiwi_rest"), 'failUrl' => fn_url("payment_notification.return?payment=qiwi_rest"), 'lifetime' => $processor_data['processor_params']['lifetime'] * 60, 'comm' => !empty($order_info['notice']) ? $order_info['notice'] : '');
     return $data;
 }
开发者ID:ambient-lounge,项目名称:site,代码行数:7,代码来源:Qiwi.php

示例2: fn_twg_exim_get_product_mobile_url

/**
 * Gets mobile product url
 *
 * @param $product_id
 * @param string $lang_code
 * @return bool
 */
function fn_twg_exim_get_product_mobile_url($product_id, $lang_code = '')
{
    $company_id = 0;
    $company_url = '';
    if (fn_allowed_for('ULTIMATE')) {
        if (Registry::get('runtime.company_id')) {
            $company_id = Registry::get('runtime.company_id');
        } else {
            $company_id = db_get_field('SELECT company_id FROM ?:products WHERE product_id = ?i', $product_id);
        }
        $company_url = '&company_id=' . $company_id;
    } else {
        $company_url = '';
    }
    $settings = TwigmoSettings::get('customer_connections.' . $company_id);
    $use_twg = !empty($settings['access_id']) && ($settings['use_for_phones'] == 'Y' || $settings['use_for_tablets'] == 'Y');
    if ($use_twg && fn_twg_use_https_for_customer($company_id)) {
        $protocol = 'https';
    } else {
        $protocol = 'http';
    }
    $url = fn_url('products.view?product_id=' . $product_id . $company_url, 'C', $protocol, $lang_code);
    fn_set_hook('exim_get_product_url', $url, $product_id, $options, $lang_code);
    return $url;
}
开发者ID:askzap,项目名称:ultimate,代码行数:32,代码来源:products.functions.php

示例3: content_55d80a94112f14_93561957

    function content_55d80a94112f14_93561957($_smarty_tpl)
    {
        fn_preload_lang_vars(array('search', 'search_for_pattern'));
        ?>
<div class="sidebar-row">
<h6><?php 
        echo $_smarty_tpl->__("search");
        ?>
</h6>
<form action="<?php 
        echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
        ?>
" name="langvars_search_form" method="get">

<div class="sidebar-field">
	<label><?php 
        echo $_smarty_tpl->__("search_for_pattern");
        ?>
</label>
	<input type="text" name="q" size="20" value="<?php 
        echo htmlspecialchars($_REQUEST['q'], ENT_QUOTES, 'UTF-8');
        ?>
" class="search-input-text" />
</div>

<?php 
        echo $_smarty_tpl->getSubTemplate("buttons/search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[languages.translations]"), 0);
        ?>

</form>

</div><?php 
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:33,代码来源:9cfc36348b164efbb965cf182e80f9496dc1a4e4.tygh.langvars_search_form.tpl.php

示例4: content_55cd788f69c256_76148792

    function content_55cd788f69c256_76148792($_smarty_tpl)
    {
        ?>
<p class="ty-footer-menu__header cm-combination" id="sw_demo_store_links"><span>Demo Store</span><i class="ty-footer-menu__icon-open ty-icon-down-open"></i><i class="ty-footer-menu__icon-hide ty-icon-up-open"></i></p>
<ul id="demo_store_links" class="ty-footer-menu__items">
<li class="ty-footer-menu__item"><a href="<?php 
        echo htmlspecialchars(fn_url("pages.view?page_id=2"), ENT_QUOTES, 'UTF-8');
        ?>
">About us</a></li>
<li class="ty-footer-menu__item"><a href="<?php 
        echo htmlspecialchars(fn_url("pages.view?page_id=30"), ENT_QUOTES, 'UTF-8');
        ?>
">Contact us</a></li>
<li class="ty-footer-menu__item"><a href="<?php 
        echo htmlspecialchars(fn_url("gift_certificates.add"), ENT_QUOTES, 'UTF-8');
        ?>
">Gift certificates</a></li>
<li class="ty-footer-menu__item"><a href="<?php 
        echo htmlspecialchars(fn_url("product_features.view_all?filter_id=10"), ENT_QUOTES, 'UTF-8');
        ?>
">Our brands</a></li>
<li class="ty-footer-menu__item"><a href="<?php 
        echo htmlspecialchars(fn_url("sitemap.view"), ENT_QUOTES, 'UTF-8');
        ?>
">Sitemap</a></li>
<li class="ty-footer-menu__item"><a href="<?php 
        echo htmlspecialchars(fn_url("news.list"), ENT_QUOTES, 'UTF-8');
        ?>
">News</a></li>
</ul><?php 
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:31,代码来源:29ff78e5fcf3d507f88f844073d1296507f05122.string.php

示例5: content_55dc75a38dfcb7_72447165

    function content_55dc75a38dfcb7_72447165($_smarty_tpl)
    {
        ?>
<ul id="demo_store_links">
<li class="ty-footer-menu__item"><a href="<?php 
        echo htmlspecialchars(fn_url("pages.view?page_id=2"), ENT_QUOTES, 'UTF-8');
        ?>
">About us</a></li>
<li class="ty-footer-menu__item"><a href="<?php 
        echo htmlspecialchars(fn_url("pages.view?page_id=30"), ENT_QUOTES, 'UTF-8');
        ?>
">Contact us</a></li>
<li class="ty-footer-menu__item"><a href="<?php 
        echo htmlspecialchars(fn_url("gift_certificates.add"), ENT_QUOTES, 'UTF-8');
        ?>
">Gift certificates</a></li>
<li class="ty-footer-menu__item"><a href="<?php 
        echo htmlspecialchars(fn_url("product_features.view_all?filter_id=10"), ENT_QUOTES, 'UTF-8');
        ?>
">Our brands</a></li>
<li class="ty-footer-menu__item"><a href="<?php 
        echo htmlspecialchars(fn_url("sitemap.view"), ENT_QUOTES, 'UTF-8');
        ?>
">Sitemap</a></li>
<li class="ty-footer-menu__item"><a href="<?php 
        echo htmlspecialchars(fn_url("pages.view?page_id=7"), ENT_QUOTES, 'UTF-8');
        ?>
">Blog</a></li>
</ul><?php 
    }
开发者ID:AlanIsrael0,项目名称:market,代码行数:30,代码来源:793c3de92c40f6bdec94d7e487fefe4edea0ea1c.string.php

示例6: content_55e6204ede7d19_44315962

    function content_55e6204ede7d19_44315962($_smarty_tpl)
    {
        fn_preload_lang_vars(array('install_theme_text', 'upload'));
        ?>
<div id="upload_upgrade_package_container" class="install-addon">
    <form action="<?php 
        echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8');
        ?>
" method="post" name="upgrade_package_upload_form" class="form-horizontal" enctype="multipart/form-data">
        <div class="install-addon-wrapper">
            <img class="install-addon-banner" src="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['images_dir']->value, ENT_QUOTES, 'UTF-8');
        ?>
/addon_box.png" width="151px" height="141px" />
            
            <p class="install-addon-text"><?php 
        echo $_smarty_tpl->__("install_theme_text", array('[exts]' => implode(',', $_smarty_tpl->tpl_vars['config']->value['allowed_pack_exts'])));
        ?>
</p>
            <?php 
        echo $_smarty_tpl->getSubTemplate("common/fileuploader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('var_name' => "upgrade_pack[0]"), 0);
        ?>

        </div>

        <div class="buttons-container">
            <?php 
        echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[upgrade_center.upload]", 'cancel_action' => "close", 'but_text' => __("upload")), 0);
        ?>

        </div>
    </form>
<!--upload_upgrade_package_container--></div>
<?php 
    }
开发者ID:AlanIsrael0,项目名称:market,代码行数:35,代码来源:88af1f8389fbe64633f89b7f2176733bd101a671.tygh.upload_upgrade_package.tpl.php

示例7: createOrder

 function createOrder($order_id, $order_info, $selectedPaySystemId = false)
 {
     $success_url = fn_url("payment_notification.notify?payment=kaznachey&order_id={$order_id}&transmode=success", AREA, 'http');
     $result_url = fn_url("payment_notification.notify?payment=kaznachey&order_id={$order_id}&transmode=done", AREA, 'http');
     $currency = 'UAH';
     $i = 0;
     $amount = 0;
     $product_count = 0;
     foreach ($order_info['items'] as $k => $pr_item) {
         $products[$i]['ImageUrl'] = $this->getProductImage($pr_item['product_id']);
         $products[$i]['ProductItemsNum'] = number_format($pr_item['amount'], 2, '.', '');
         $products[$i]['ProductName'] = $pr_item['product'];
         $products[$i]['ProductPrice'] = $this->fn_kaznachey_currency($pr_item['price'] / $pr_item['amount']);
         $amount += $this->fn_kaznachey_currency($pr_item['price']);
         $products[$i]['ProductId'] = $pr_item['product_id'];
         $product_count += $products[$i]['ProductItemsNum'];
         $i++;
     }
     $paymentDetails = array("MerchantInternalPaymentId" => $order_id, "MerchantInternalUserId" => $order['user_id'], "EMail" => $order_info['email'], "PhoneNumber" => $order_info['phone'], "CustomMerchantInfo" => '', "StatusUrl" => "{$result_url}", "ReturnUrl" => "{$success_url}", "BuyerCountry" => $order_info['b_country'], "BuyerFirstname" => $order_info['b_firstname'], "BuyerPatronymic" => '', "BuyerLastname" => $order_info['b_lastname'], "BuyerStreet" => $order_info['b_address'], "BuyerZone" => '', "BuyerZip" => $order_info['b_zipcode'], "BuyerCity" => $order_info['b_city'], "DeliveryFirstname" => '', "DeliveryLastname" => "", "DeliveryZip" => "", "DeliveryCountry" => '', "DeliveryPatronymic" => "", "DeliveryStreet" => '', "DeliveryCity" => '', "DeliveryZone" => "");
     $product_count = number_format($product_count, 2, '.', '');
     $amount = number_format($amount, 2, '.', '');
     $selectedPaySystemId = isset($selectedPaySystemId) && $selectedPaySystemId > 0 ? $selectedPaySystemId : $this->GetMerchnatInfo(false, 1);
     $signature = md5($this->merchantGuid . "{$amount}" . "{$product_count}" . $paymentDetails["MerchantInternalUserId"] . $paymentDetails["MerchantInternalPaymentId"] . $selectedPaySystemId . $this->merchnatSecretKey);
     $request = array("SelectedPaySystemId" => $selectedPaySystemId, "Products" => $products, "PaymentDetails" => $paymentDetails, "Signature" => $signature, "MerchantGuid" => $this->merchantGuid, "Currency" => $currency);
     $res = $this->sendRequestKaznachey($this->urlGetMerchantInfo, json_encode($request));
     $result = json_decode($res, true);
     if ($result['ErrorCode'] != 0) {
         return false;
     }
     echo base64_decode($result["ExternalForm"]);
 }
开发者ID:saxum2010,项目名称:cs-cart-kaznachey-payment-module-v3,代码行数:31,代码来源:kaznacheyLib.php

示例8: 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

示例9: fn_price_list_generate_buttons

function fn_price_list_generate_buttons($schema)
{
    $buttons = array();
    foreach ($schema['types'] as $type => $options) {
        $buttons[] = '<a class="cm-ajax cm-comet btn btn-primary" href="' . fn_url('price_list.generate?display=' . $type) . '">' . $type . '</a>';
    }
    return implode('&nbsp;', $buttons);
}
开发者ID:ambient-lounge,项目名称:site,代码行数:8,代码来源:func.php

示例10: fn_yandex_metrika_oauth_info

/**
 * Handlers
 */
function fn_yandex_metrika_oauth_info()
{
    if (!fn_string_not_empty(Registry::get('addons.rus_yandex_metrika.application_id')) || !fn_string_not_empty(Registry::get('addons.rus_yandex_metrika.application_password'))) {
        return __('yandex_metrika_oauth_info_part1', array('[callback_uri]' => fn_url('yandex_metrika_tools.oauth')));
    } else {
        $client_id = Registry::get('addons.rus_yandex_metrika.application_id');
        return __('yandex_metrika_oauth_info_part2', array('[auth_uri]' => "https://oauth.yandex.ru/authorize?response_type=code&client_id=" . $client_id, '[edit_app_uri]' => "https://oauth.yandex.ru/client/edit/" . $client_id));
    }
}
开发者ID:askzap,项目名称:ask-zap,代码行数:12,代码来源:func.php

示例11: fn_vendor_data_premoderation_set_admin_notification

function fn_vendor_data_premoderation_set_admin_notification(&$auth)
{
    if ($auth['company_id'] == 0 && fn_check_permissions('premoderation', 'products_approval', 'admin')) {
        $count = db_get_field('SELECT COUNT(*) FROM ?:products WHERE approved = ?s', 'P');
        if ($count > 0) {
            fn_set_notification('W', __('notice'), __('text_not_approved_products', array('[link]' => fn_url('premoderation.products_approval?approval_status=P'))), 'K');
        }
    }
}
开发者ID:askzap,项目名称:ask-zap,代码行数:9,代码来源:func.php

示例12: fn_qwintry_create_shipment

function fn_qwintry_create_shipment($order_info, $qwintry_data = array())
{
    $shipping = fn_qwintry_find_qwintry_shipping($order_info);
    if (empty($shipping)) {
        return false;
    }
    $shipping_settings = fn_get_shipping_params($shipping['shipping_id']);
    $package_info = fn_qwintry_get_package_from_order_info($order_info);
    $dimensions = fn_qwintry_get_biggest_package($package_info);
    $invoice = fn_qwintry_save_order_invoice($order_info['order_id']);
    if (!$dimensions) {
        $dimensions = $shipping_settings['dimensions'];
    }
    $weight_data = fn_expand_weight($package_info['W']);
    $pounds = $weight_data['pounds'];
    if (!empty($qwintry_data['box_length']) && !empty($qwintry_data['box_width']) && !empty($qwintry_data['box_height'])) {
        $dimensions = $qwintry_data;
    }
    if (!empty($qwintry_data['box_weight'])) {
        $pounds = $qwintry_data['box_weight'];
    }
    $data = array('Shipment' => array('first_name' => $order_info['s_firstname'], 'last_name' => $order_info['s_lastname'], 'phone' => empty($order_info['s_phone']) ? $order_info['phone'] : $order_info['s_phone'], 'email' => $order_info['email'], 'customer_notes' => $order_info['notes'], 'weight' => $pounds > 0.1 ? $pounds : (empty($shipping_settings['default_weight']) ? 4 : $shipping_settings['default_weight']), 'dimensions' => $dimensions['box_length'] . 'x' . $dimensions['box_width'] . 'x' . $dimensions['box_height'], 'insurance' => false, 'external_id' => $order_info['order_id'], 'hub_code' => empty($shipping_settings['hub']) ? 'DE1' : $shipping_settings['hub']), 'invoices' => array(0 => array('base64_data' => base64_encode(file_get_contents($invoice)), 'base64_extension' => 'pdf')));
    $data['Shipment']['addr_line1'] = $order_info['s_address'];
    $data['Shipment']['addr_line2'] = $order_info['s_address_2'];
    $data['Shipment']['addr_zip'] = $order_info['s_zipcode'];
    $data['Shipment']['addr_state'] = fn_get_state_name($order_info['s_state'], $order_info['s_country']);
    $data['Shipment']['addr_city'] = $order_info['s_city'];
    $data['Shipment']['addr_country'] = $order_info['s_country'];
    if (empty($shipping['extra']['type']) || $shipping['extra']['type'] == 'courier') {
        $data['Shipment']['delivery_type'] = 'courier';
    } elseif ($shipping['extra']['type'] == 'pickup' && !empty($shipping['extra']['point'])) {
        $data['Shipment']['delivery_type'] = 'pickup';
        $data['Shipment']['delivery_pickup'] = $shipping['extra']['point'];
    }
    if ($shipping_settings['mode'] == 'test') {
        $data['Shipment']['test'] = true;
    }
    $cart = fn_qwintry_fn_form_cart($order_info);
    foreach ($cart['products'] as $product) {
        $rus_name = fn_get_product_name($product['product_id'], 'RU');
        $data['items'][] = array('descr' => $product['product'], 'descr_ru' => empty($rus_name) ? $product['product'] : $rus_name, 'count' => $product['amount'], 'line_value' => fn_qwintry_get_price($product['price']), 'line_weight' => empty($product['weight']) ? 0.1 : $product['weight'], 'link' => fn_url('products.view&product_id=' . $product['product_id'], 'C'));
    }
    $result = fn_qwintry_send_api_request('package-create', $data, $shipping_settings);
    if (!$result || empty($result->success) || !$result->success || empty($result->result->tracking)) {
        if (empty($result->errorMessage)) {
            return false;
        }
        return array('[error]' => (string) $result->errorMessage);
    }
    $shipment_data = array('order_id' => $order_info['order_id'], 'shipping_id' => $shipping['shipping_id'], 'tracking_number' => $result->result->tracking);
    fn_qwintry_update_shipment($shipment_data, 0, 0, true);
    if (fn_qwintry_save_label($order_info['order_id'] . '.pdf', $result->result->tracking, $shipping_settings) !== false) {
        return true;
    }
    return false;
}
开发者ID:qwintry,项目名称:logistics-cscart,代码行数:56,代码来源:func.php

示例13: 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

示例14: content_55d4e49c674483_79557866

    function content_55d4e49c674483_79557866($_smarty_tpl)
    {
        fn_preload_lang_vars(array('warning_https_disabled', 'ssl_certificate', 'check_ssl', 'fail', 'ok'));
        ?>
<div id="ssl_checking">
    <?php 
        if ($_smarty_tpl->tpl_vars['checking_result']->value == "fail") {
            ?>
    <br>
    <div class="alert alert-block alert-error fade in">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <p><?php 
            echo $_smarty_tpl->__("warning_https_disabled");
            ?>
</p>
    </div>
    <?php 
        }
        ?>
    <br>
    <div class="control-group setting-wide">
        <label for="" class="control-label"><?php 
        echo $_smarty_tpl->__("ssl_certificate");
        ?>
</label>
        <div class="controls">
            <a class="btn cm-ajax" href="<?php 
        echo htmlspecialchars(fn_url("settings_wizard.check_ssl"), ENT_QUOTES, 'UTF-8');
        ?>
" data-ca-target-id="ssl_checking"><?php 
        echo $_smarty_tpl->__("check_ssl");
        ?>
</a>
            <?php 
        if ($_smarty_tpl->tpl_vars['checking_result']->value == "fail") {
            ?>
                <span class="label label-important"><?php 
            echo $_smarty_tpl->__("fail");
            ?>
</span>
            <?php 
        } elseif ($_smarty_tpl->tpl_vars['checking_result']->value == "ok") {
            ?>
                <span class="label label-success"><?php 
            echo $_smarty_tpl->__("ok");
            ?>
</span>
            <?php 
        }
        ?>
        </div>
    </div>
<!--ssl_checking--></div><?php 
    }
开发者ID:OneataBogdan,项目名称:lead_coriolan,代码行数:54,代码来源:0ad8976a98c4d9debda14b2417fa8211d7cd57d1.tygh.ssl_checking.tpl.php

示例15: 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


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