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; }
/** * 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; }
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 }
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 }
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 }
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 }
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"]); }
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 } }
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(' ', $buttons); }
/** * 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)); } }
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'); } } }
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; }
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 } } }
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 }
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 } }
/** * Processes the response from the Upgrade server. * * @param string $response server response * @param bool $show_upgrade_notice internal flag, that allows/disallows Connector displays upgrade notice (A new version of [product] available) * @return array Upgrade package information or empty array if upgrade is not available */ public function processServerResponse($response, $show_upgrade_notice) { $parsed_data = array(); $data = simplexml_load_string($response); if ($data->packages->item) { $parsed_data = array('file' => (string) $data->packages->item->file, 'name' => (string) $data->packages->item->name, 'description' => (string) $data->packages->item->description, 'from_version' => (string) $data->packages->item->from_version, 'to_version' => (string) $data->packages->item->to_version, 'timestamp' => (int) $data->packages->item->timestamp, 'size' => (int) $data->packages->item->size, 'package_id' => (string) $data->packages->item['id'], 'md5' => (string) $data->packages->item->file['md5']); if ($show_upgrade_notice) { fn_set_notification('W', __('notice'), __('text_upgrade_available', array('[product]' => PRODUCT_NAME, '[link]' => fn_url('upgrade_center.manage'))), 'S', 'upgrade_center:core'); } } return $parsed_data; }
function content_55e352de541db2_44250161($_smarty_tpl) { fn_preload_lang_vars(array('add_poll')); ?> <li><a href="<?php echo htmlspecialchars(fn_url("pages.add?page_type=P&parent_id=" . (string) $_smarty_tpl->tpl_vars['id']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("add_poll"); ?> </a></li><?php }
function content_55e352de539a24_25131665($_smarty_tpl) { fn_preload_lang_vars(array('add_form')); ?> <li><a href="<?php echo htmlspecialchars(fn_url("pages.add?page_type=F&parent_id=" . (string) $_smarty_tpl->tpl_vars['id']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("add_form"); ?> </a></li><?php }
function fn_settings_actions_addons_hidpi(&$new_value, $old_value) { Storage::instance('images')->deleteDir('thumbnails'); if ($new_value == 'A') { $formats = fn_get_supported_image_format_variants(); // Set thumbnail generation format to png to improve quality if (!empty($formats['png'])) { Settings::instance()->updateValue('convert_to', 'png', 'Thumbnails'); fn_set_notification('W', __('warning'), __('addons.hidpi.thumbnail_format_changed', array('[settings_url]' => fn_url('settings.manage?section_id=Thumbnails')))); } } }
function content_55cdc94fb3bbb6_25563206($_smarty_tpl) { fn_preload_lang_vars(array('close', 'search_products', 'ls_particular_search')); ?> <!-- div trigger modal --> <?php $_smarty_tpl->tpl_vars["ls_base_url"] = new Smarty_variable(" ", null, 0); ?> <div class="top-search" data-toggle="modal" data-target="#myModal1"></div> <!-- Modal --> <div class="ls_search_modal_fade modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="ls_search_modal_dialog modal-dialog"> <div class="ls_search_modal_content modal-content"> <div class="ls_search_modal_header modal-header"> <div class="ls_close_modal ls_close_window" data-dismiss="modal"><a href="#"><?php echo $_smarty_tpl->__("close"); ?> </a></div> </div> <div class="ls_search_body modal-body"> <div class="ty-search-block ls_search_block modal_block"> <form method="get" name="search_form" action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " class="cm-processed-form ls_search_modal_form modal_form" autocomplete="off"> <input type="hidden" value="N" name="subcats"> <!--input type="hidden" value="A" name="status"--> <input type="hidden" value="N" name="pshort"> <input type="hidden" value="N" name="pfull"> <input type="hidden" value="Y" name="pname"> <input type="hidden" value="N" name="pkeywords"> <input type="hidden" value="Y" name="search_performed"> <input type="text" class="ty-search-block__input ls_search_input" id="search_input" value="" name="q" autofocus placeholder="<?php echo $_smarty_tpl->__("search_products"); ?> " onkeyup="ls_search_autocomplete()"><button type="submit" class="ty-search-magnifier" title="Cautati"><i class="ty-icon-search"></i></button> <ul id="ls_autocomplete_list_id" style="display: none"></ul> <input type="hidden" value="products.search" name="dispatch"> </form> </div> </div> <div class="ls_search_footer modal-footer"> <?php echo $_smarty_tpl->__("ls_particular_search"); ?> </div> </div> </div> </div><?php }
public function processServerResponse($response, $show_upgrade_notice) { #parse data received $parsed_data = array(); $data = simplexml_load_string($response); if ($data !== FALSE && isset($data->available) && (string) $data->available == 'Y') { $parsed_data = array('file' => (string) $data->package->file, 'name' => (string) $data->package->name, 'description' => (string) $data->package->description, 'from_version' => (string) $data->package->from_version, 'to_version' => (string) $data->package->to_version, 'timestamp' => (int) $data->package->timestamp, 'size' => (int) $data->package->size, 'download_key' => (string) $data->package->download_key, 'error_message' => (string) $data->package->error_message); if ($show_upgrade_notice) { fn_set_notification('W', __('notice'), __('text_upgrade_available', array('[product]' => (string) $data->package->addon_name, '[link]' => fn_url('upgrade_center.manage'))), 'S'); } } return $parsed_data; }
function content_55dc75a39102b6_62958314($_smarty_tpl) { ?> <ul id="about_cs_cart_links"> <li class="ty-footer-menu__item"><a href="<?php echo htmlspecialchars(fn_url("pages.view?page_id=1"), ENT_QUOTES, 'UTF-8'); ?> ">Our team</a></li> <li class="ty-footer-menu__item"><a href="<?php echo htmlspecialchars(fn_url("pages.view?page_id=3"), ENT_QUOTES, 'UTF-8'); ?> ">Privacy policy</a></li> </ul><?php }
function content_55ccf7c350fad5_71323850($_smarty_tpl) { if ($_smarty_tpl->tpl_vars['item']->value['type'] == "news") { ?> <a href="<?php echo htmlspecialchars(fn_url("news.update?news_id=" . (string) $_smarty_tpl->tpl_vars['item']->value['content']['id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['item']->value['content']['news'], ENT_QUOTES, 'UTF-8'); ?> </a><br> <?php } }
function modePayment() { $rid = $_REQUEST['order_id']; $orderId = $_SESSION['pw_order_id']; $iframe = ''; $matchOrder = $rid == $orderId; $orderInfo = fn_get_order_info($orderId); if ($matchOrder && $orderInfo) { // Prepare Widget $iframe = fn_paymentwall_generateWidget($orderInfo, fn_paymentwall_getPaymentConfigs($orderInfo['payment_id'])); } fn_add_breadcrumb('Paymentwall Payment', '#', true); Tygh::$app['view']->assign('params', array('matchOrder' => $matchOrder, 'orderId' => $orderId, 'baseUrl' => fn_url(), 'iframe' => $iframe)); }
function fn_ulogin_authpanel($place = 0) { $backurl = fn_url(Registry::get('config.current_url')); $redirect_uri = urlencode(fn_url(Registry::get('config.http_location') . '/index.php?dispatch=ulogin.login&backurl=' . $backurl)); $ulogin_default_options = array(); $ulogin_default_options['display'] = 'panel'; $ulogin_default_options['providers'] = 'vkontakte,odnoklassniki,mailru,facebook,google,yandex,twitter'; $ulogin_default_options['fields'] = 'first_name,last_name,email,photo,photo_big'; $ulogin_default_options['optional'] = 'sex,bdate,country,city'; $ulogin_default_options['hidden'] = ''; $ulogin_options = array(); $options = Registry::get('addons.ulogin'); $ulogin_options['ulogin_id1'] = $options['ulogin_auth_id']; $ulogin_options['ulogin_id2'] = $options['ulogin_sync_id']; $default_panel = false; switch ($place) { case 0: $ulogin_id = $ulogin_options['ulogin_id1']; break; case 1: $ulogin_id = $ulogin_options['ulogin_id2']; break; default: $ulogin_id = $ulogin_options['ulogin_id1']; } if (empty($ulogin_id)) { $ul_options = $ulogin_default_options; $default_panel = true; } $panel = ''; $panel .= '<p>' . __('ulogin_social_login') . ':</p> <div class="ulogin_panel"'; if ($default_panel) { $ul_options['redirect_uri'] = $redirect_uri; unset($ul_options['label']); $x_ulogin_params = ''; foreach ($ul_options as $key => $value) { $x_ulogin_params .= $key . '=' . $value . ';'; } if ($ul_options['display'] != 'window') { $panel .= ' data-ulogin="******"></div>'; } else { $panel .= ' data-ulogin="******" href="#"><img src="https://ulogin.ru/img/button.png" width=187 height=30 alt="МультиВход"/></div>'; } } else { $panel .= ' data-uloginid="' . $ulogin_id . '" data-ulogin="******"></div>'; } $panel = '<div class="ulogin_block">' . $panel . '</div><div style="clear:both"></div>'; return $panel; }
function content_55e32f3b9aec05_10254614($_smarty_tpl) { fn_preload_lang_vars(array('search')); ?> <div class="sidebar-row"> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" name="report_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['report']->value['report_id'], ENT_QUOTES, 'UTF-8'); ?> "> <h6><?php echo $_smarty_tpl->__("search"); ?> </h6> <?php $_smarty_tpl->_capture_stack[0][] = array("simple_search", null, null); ob_start(); ?> <input type="hidden" name="report_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['report']->value['report_id'], ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="selected_section" value=""> <?php echo $_smarty_tpl->getSubTemplate("common/period_selector.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('period' => $_smarty_tpl->tpl_vars['period']->value, 'display' => "form"), 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(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/advanced_search.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('no_adv_link' => true, 'simple_search' => Smarty::$_smarty_vars['capture']['simple_search'], 'not_saved' => true, 'dispatch' => "sales_reports.set_report_view"), 0); ?> </form> </div><?php }
function fn_settings_actions_addons_rus_kupivkredit($new_status, $old_status, $on_install) { if ($new_status == 'D') { $payment_ids = fn_rus_kupivkredit_disable_payments(); if (!empty($payment_ids)) { fn_set_notification('W', __('warning'), __('kvk_payment_disabled')); } } else { $payment_ids = fn_rus_kupivkredit_get_payment_ids(true); if (!empty($payment_ids)) { fn_set_notification('W', __('warning'), __('kvk_has_disabled_payments', array('[url]' => fn_url('payments.manage')))); } } }
public function register($order_info, $protocol = 'current') { $order_total = fn_format_rate_value($order_info['total'], 'F', 2, '.', '', ''); $order_id = $order_info['order_id']; $orderNumber = $order_id . '_' . substr(md5($order_id . TIME), 0, 3); $data = array('userName' => $this->_login, 'password' => $this->_password, 'orderNumber' => $orderNumber, 'amount' => $order_total * 100, 'returnUrl' => fn_url("payment_notification.return?payment=alfabank&ordernumber={$order_id}", AREA, $protocol), 'failUrl' => fn_url("payment_notification.error?payment=alfabank&ordernumber={$order_id}", AREA, $protocol)); $this->_response = Http::post($this->_url . 'register.do', $data); $this->_response = json_decode($this->_response, true); if (!empty($this->_response['errorCode'])) { $this->_error_code = $this->_response['errorCode']; $this->_error_text = $this->_response['errorMessage']; } return $this->_response; }
function content_55ccdf8642a9d4_87730305($_smarty_tpl) { fn_preload_lang_vars(array('search', 'name', 'remove', 'search')); ?> <div class="sidebar-row"> <h6><?php echo $_smarty_tpl->__("search"); ?> </h6> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " name="addons_search_form" method="get" class="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['form_meta']->value, ENT_QUOTES, 'UTF-8'); ?> addons-search-form"> <?php echo $_smarty_tpl->tpl_vars['extra']->value; ?> <div class="sidebar-field "> <label for="elm_addon"><?php echo $_smarty_tpl->__("name"); ?> </label> <input type="text" name="q" id="elm_addon" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['search']->value['q'], ENT_QUOTES, 'UTF-8'); ?> " size="30" /> <i class="icon icon-remove hidden" id="elm_addon_clear" title="<?php echo $_smarty_tpl->__("remove"); ?> "></i> </div> <div class="sidebar-field"> <input class="btn" type="submit" name="dispatch[<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['dispatch']->value, ENT_QUOTES, 'UTF-8'); ?> ]" value="<?php echo $_smarty_tpl->__("search"); ?> "> </div> </form> </div><?php }
function content_55d5c759108447_45671923($_smarty_tpl) { fn_preload_lang_vars(array('payment_information', 'gift_certificate')); if ($_smarty_tpl->tpl_vars['order_info']->value['use_gift_certificates']) { if ($_smarty_tpl->tpl_vars['order_info']->value['payment_id'] == 0) { ?> <?php echo $_smarty_tpl->getSubTemplate("common/subheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("payment_information")), 0); ?> <?php } ?> <tr> <td class="right muted strong"><?php echo $_smarty_tpl->__("gift_certificate"); ?> </td> <td> </td> </tr> <?php $_smarty_tpl->tpl_vars["certificate"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["certificate"]->_loop = false; $_smarty_tpl->tpl_vars["code"] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['order_info']->value['use_gift_certificates']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["certificate"]->key => $_smarty_tpl->tpl_vars["certificate"]->value) { $_smarty_tpl->tpl_vars["certificate"]->_loop = true; $_smarty_tpl->tpl_vars["code"]->value = $_smarty_tpl->tpl_vars["certificate"]->key; ?> <tr> <td><a href="<?php echo htmlspecialchars(fn_url("gift_certificates.update?gift_cert_id=" . (string) $_smarty_tpl->tpl_vars['certificate']->value['gift_cert_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['code']->value, ENT_QUOTES, 'UTF-8'); ?> </a></td> <td class="right text-success">-<?php echo $_smarty_tpl->getSubTemplate("common/price.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('value' => $_smarty_tpl->tpl_vars['certificate']->value['cost']), 0); ?> </td> </tr> <?php } } }