function execute() { global $PHP_SELF, $oscTemplate, $categories, $current_category_id; $OSCOM_Db = Registry::get('Db'); $OSCOM_Language = Registry::get('Language'); if (basename($PHP_SELF) == 'index.php' && $current_category_id > 0) { $Qmeta = $OSCOM_Db->prepare('select categories_seo_description, categories_seo_keywords from :table_categories_description where categories_id = :categories_id and language_id = :language_id'); $Qmeta->bindInt(':categories_id', $current_category_id); $Qmeta->bindInt(':language_id', $OSCOM_Language->getId()); $Qmeta->execute(); $meta = $Qmeta->fetch(); if (tep_not_null($meta['categories_seo_description'])) { $oscTemplate->addBlock('<meta name="description" content="' . HTML::output($meta['categories_seo_description']) . '" />' . PHP_EOL, $this->group); } if (tep_not_null($meta['categories_seo_keywords']) && MODULE_HEADER_TAGS_CATEGORY_SEO_KEYWORDS_STATUS == 'True') { $oscTemplate->addBlock('<meta name="keywords" content="' . HTML::output($meta['categories_seo_keywords']) . '" />' . PHP_EOL, $this->group); } } }
function execute() { global $PHP_SELF, $oscTemplate, $Qproduct, $product_exists; $OSCOM_Db = Registry::get('Db'); $OSCOM_Language = Registry::get('Language'); if (isset($_GET['products_id'])) { if (isset($Qproduct) && $product_exists === true) { $Qmeta = $OSCOM_Db->prepare('select pd.products_seo_description, pd.products_seo_keywords from :table_products p, :table_products_description pd where p.products_status = :products_status and p.products_id = :products_id and pd.products_id = p.products_id and pd.language_id = :language_id'); $Qmeta->bindInt(':products_status', 1); $Qmeta->bindInt(':products_id', $_GET['products_id']); $Qmeta->bindInt(':language_id', $OSCOM_Language->getId()); $Qmeta->execute(); $meta = $Qmeta->fetch(); if (tep_not_null($meta['products_seo_description'])) { $oscTemplate->addBlock('<meta name="description" content="' . HTML::output($meta['products_seo_description']) . '" />' . PHP_EOL, $this->group); } if (tep_not_null($meta['products_seo_keywords']) && MODULE_HEADER_TAGS_PRODUCT_META_KEYWORDS_STATUS != 'Search') { $oscTemplate->addBlock('<meta name="keywords" content="' . HTML::output($meta['products_seo_keywords']) . '" />' . PHP_EOL, $this->group); } } } }
function execute() { global $PHP_SELF, $oscTemplate; $OSCOM_Db = Registry::get('Db'); if (tep_not_null(MODULE_HEADER_TAGS_GOOGLE_ANALYTICS_ID)) { if (MODULE_HEADER_TAGS_GOOGLE_ANALYTICS_JS_PLACEMENT != 'Header') { $this->group = 'footer_scripts'; } $header = '<script> var _gaq = _gaq || []; _gaq.push([\'_setAccount\', \'' . HTML::output(MODULE_HEADER_TAGS_GOOGLE_ANALYTICS_ID) . '\']); _gaq.push([\'_trackPageview\']);' . "\n"; if (MODULE_HEADER_TAGS_GOOGLE_ANALYTICS_EC_TRACKING == 'True' && basename($PHP_SELF) == 'checkout_success.php' && isset($_SESSION['customer_id'])) { $Qorder = $OSCOM_Db->get('orders', ['orders_id', 'billing_city', 'billing_state', 'billing_country'], ['customers_id' => $_SESSION['customer_id']], 'date_purchased desc', 1); if ($Qorder->fetch() !== false) { $totals = array(); $Qtotals = $OSCOM_Db->get('orders_total', ['value', 'class'], ['orders_id' => $Qorder->valueInt('orders_id')]); while ($Qtotals->fetch()) { $totals[$Qtotals->value('class')] = $Qtotals->value('value'); } $header .= ' _gaq.push([\'_addTrans\', \'' . $Qorder->valueInt('orders_id') . '\', // order ID - required \'' . HTML::output(STORE_NAME) . '\', // store name \'' . (isset($totals['ot_total']) ? $this->format_raw($totals['ot_total'], DEFAULT_CURRENCY) : 0) . '\', // total - required \'' . (isset($totals['ot_tax']) ? $this->format_raw($totals['ot_tax'], DEFAULT_CURRENCY) : 0) . '\', // tax \'' . (isset($totals['ot_shipping']) ? $this->format_raw($totals['ot_shipping'], DEFAULT_CURRENCY) : 0) . '\', // shipping \'' . $Qorder->valueProtected('billing_city') . '\', // city \'' . $Qorder->valueProtected('billing_state') . '\', // state or province \'' . $Qorder->valueProtected('billing_country') . '\' // country ]);' . "\n"; $Qproducts = $OSCOM_Db->prepare('select op.products_id, pd.products_name, op.final_price, op.products_quantity from :table_orders_products op, :table_products_description pd, :table_languages l where op.orders_id = :orders_id and op.products_id = pd.products_id and pd.language_id = l.languages_id and l.code = :code'); $Qproducts->bindInt(':orders_id', $Qorder->valueInt('orders_id')); $Qproducts->bindValue(':code', DEFAULT_LANGUAGE); $Qproducts->execute(); while ($Qproducts->fetch()) { $Qcategory = $OSCOM_Db->prepare('select cd.categories_name from :table_categories_description cd, :table_products_to_categories p2c, :table_languages l where p2c.products_id = :products_id and p2c.categories_id = cd.categories_id and cd.language_id = l.languages_id and l.code = :code'); $Qcategory->bindInt(':products_id', $Qproducts->valueInt('products_id')); $Qcategory->bindValue(':code', DEFAULT_LANGUAGE); $Qcategory->execute(); $header .= ' _gaq.push([\'_addItem\', \'' . $Qorder->valueInt('orders_id') . '\', // order ID - required \'' . $Qproducts->valueInt('products_id') . '\', // SKU/code - required \'' . $Qproducts->valueProtected('products_name') . '\', // product name \'' . $Qcategory->valueProtected('categories_name') . '\', // category \'' . $this->format_raw($Qproducts->value('final_price')) . '\', // unit price - required \'' . $Qproducts->valueInt('products_quantity') . '\' // quantity - required ]);' . "\n"; } $header .= ' _gaq.push([\'_trackTrans\']); //submits transaction to the Analytics servers' . "\n"; } } $header .= ' (function() { var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true; ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\'; var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s); })(); </script>' . "\n"; $oscTemplate->addBlock($header, $this->group); } }
function getOutput() { $OSCOM_Db = Registry::get('Db'); $days = array(); for ($i = 0; $i < 7; $i++) { $days[date('Y-m-d', strtotime('-' . $i . ' days'))] = 0; } $Qorders = $OSCOM_Db->query('select date_format(customers_info_date_account_created, "%Y-%m-%d") as dateday, count(*) as total from :table_customers_info where date_sub(curdate(), interval 7 day) <= customers_info_date_account_created group by dateday'); while ($Qorders->fetch()) { $days[$Qorders->value('dateday')] = $Qorders->value('total'); } $days = array_reverse($days, true); $chart_label = HTML::output(OSCOM::getDef('module_admin_dashboard_total_customers_chart_link')); $chart_label_link = OSCOM::link(FILENAME_CUSTOMERS); $data_labels = json_encode(array_keys($days)); $data = json_encode(array_values($days)); $output = <<<EOD <h5 class="text-center"><a href="{$chart_label_link}">{$chart_label}</a></h5> <div id="d_total_customers"></div> <script> \$(function() { var data = { labels: {$data_labels}, series: [ {$data} ] }; var options = { fullWidth: true, height: '200px', showPoint: false, showArea: true, axisY: { labelInterpolationFnc: function skipLabels(value, index) { return index % 2 === 0 ? value : null; } } } var chart = new Chartist.Line('#d_total_customers', data, options); chart.on('draw', function(context) { if (context.type === 'line') { context.element.attr({ style: 'stroke: green;' }); } else if (context.type === 'area') { context.element.attr({ style: 'fill: green;' }); } }); }); </script> EOD; return $output; }
function execute() { global $oscTemplate; if (defined('META_SEO_TITLE') && strlen(META_SEO_TITLE) > 0) { $oscTemplate->setTitle(HTML::output(META_SEO_TITLE) . OSCOM::getDef('module_header_tags_pages_seo_separator') . $oscTemplate->getTitle()); } if (defined('META_SEO_DESCRIPTION') && strlen(META_SEO_DESCRIPTION) > 0) { $oscTemplate->addBlock('<meta name="description" content="' . HTML::output(META_SEO_DESCRIPTION) . '" />' . "\n", $this->group); } if (defined('META_SEO_KEYWORDS') && strlen(META_SEO_KEYWORDS) > 0) { $oscTemplate->addBlock('<meta name="keywords" content="' . HTML::output(META_SEO_KEYWORDS) . '" />' . "\n", $this->group); } }
function execute() { global $PHP_SELF, $oscTemplate; $OSCOM_Db = Registry::get('Db'); $OSCOM_Language = Registry::get('Language'); if (basename($PHP_SELF) == 'index.php') { if (isset($_GET['manufacturers_id']) && is_numeric($_GET['manufacturers_id'])) { $Qmeta = $OSCOM_Db->get('manufacturers_info', ['manufacturers_seo_description', 'manufacturers_seo_keywords'], ['manufacturers_id' => (int) $_GET['manufacturers_id'], 'languages_id' => $OSCOM_Language->getId()]); if ($Qmeta->fetch() !== false) { if (tep_not_null($Qmeta->value('manufacturers_seo_description'))) { $oscTemplate->addBlock('<meta name="description" content="' . HTML::output($Qmeta->value('manufacturers_seo_description')) . '" />' . PHP_EOL, $this->group); } if (tep_not_null($Qmeta->value('manufacturers_seo_keywords')) && MODULE_HEADER_TAGS_MANUFACTURERS_SEO_KEYWORDS_STATUS == 'True') { $oscTemplate->addBlock('<meta name="keywords" content="' . HTML::output($Qmeta->value('manufacturers_seo_keywords')) . '" />' . PHP_EOL, $this->group); } } } } }
$Qupdate->bindInt(':products_id', $Qproduct->valueInt('products_id')); $Qupdate->bindInt(':language_id', $OSCOM_Language->getId()); $Qupdate->execute(); if ($new_price = tep_get_products_special_price($Qproduct->valueInt('products_id'))) { $products_price = '<del>' . $currencies->display_price($Qproduct->valueDecimal('products_price'), tep_get_tax_rate($Qproduct->valueInt('products_tax_class_id'))) . '</del> <span class="productSpecialPrice" itemprop="price" content="' . $currencies->display_raw($new_price, tep_get_tax_rate($Qproduct->valueInt('products_tax_class_id'))) . '">' . $currencies->display_price($new_price, tep_get_tax_rate($Qproduct->valueInt('products_tax_class_id'))) . '</span>'; } else { $products_price = '<span itemprop="price" content="' . $currencies->display_raw($Qproduct->valueDecimal('products_price'), tep_get_tax_rate($Qproduct->valueInt('products_tax_class_id'))) . '">' . $currencies->display_price($Qproduct->valueDecimal('products_price'), tep_get_tax_rate($Qproduct->valueInt('products_tax_class_id'))) . '</span>'; } if ($Qproduct->value('products_date_available') > date('Y-m-d H:i:s')) { $products_price .= '<link itemprop="availability" href="http://schema.org/PreOrder" />'; } elseif (STOCK_CHECK == 'true' && $Qproduct->valueInt('products_quantity') < 1) { $products_price .= '<link itemprop="availability" href="http://schema.org/OutOfStock" />'; } else { $products_price .= '<link itemprop="availability" href="http://schema.org/InStock" />'; } $products_price .= '<meta itemprop="priceCurrency" content="' . HTML::output($_SESSION['currency']) . '" />'; $products_name = '<a href="' . OSCOM::link('product_info.php', 'products_id=' . $Qproduct->valueInt('products_id')) . '" itemprop="url"><span itemprop="name">' . $Qproduct->value('products_name') . '</span></a>'; if (!empty($Qproduct->value('products_model'))) { $products_name .= '<br /><small>[<span itemprop="model">' . $Qproduct->value('products_model') . '</span>]</small>'; } ?> <?php echo HTML::form('cart_quantity', OSCOM::link('product_info.php', tep_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'class="form-horizontal" role="form"'); ?> <div itemscope itemtype="http://schema.org/Product"> <div class="page-header"> <div class="row"> <h1 class="col-sm-8"><?php
if (PRODUCT_LIST_WEIGHT > 0) { $extra_list_contents .= '<dt>' . OSCOM::getDef('table_heading_weight') . '</dt>'; $extra_list_contents .= '<dd>' . $Qlisting->value('products_weight') . '</dd>'; } if (tep_not_null($extra_list_contents)) { $prod_list_contents .= ' <dl class="dl-horizontal list-group-item-text">'; $prod_list_contents .= $extra_list_contents; $prod_list_contents .= ' </dl>'; } if (PRODUCT_LIST_PRICE > 0 || PRODUCT_LIST_BUY_NOW > 0) { $prod_list_contents .= ' <div class="row">'; if (PRODUCT_LIST_PRICE > 0) { if (tep_not_null($Qlisting->valueDecimal('specials_new_products_price'))) { $prod_list_contents .= ' <div class="col-xs-6" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><meta itemprop="priceCurrency" content="' . HTML::output($_SESSION['currency']) . '" /><div class="btn-group" role="group"><button type="button" class="btn btn-default"><del>' . $currencies->display_price($Qlisting->valueDecimal('products_price'), tep_get_tax_rate($Qlisting->valueInt('products_tax_class_id'))) . '</del></span> <span class="productSpecialPrice" itemprop="price" content="' . $currencies->display_raw($Qlisting->valueDecimal('specials_new_products_price'), tep_get_tax_rate($Qlisting->valueInt('products_tax_class_id'))) . '">' . $currencies->display_price($Qlisting->valueDecimal('specials_new_products_price'), tep_get_tax_rate($Qlisting->valueInt('products_tax_class_id'))) . '</span></button></div></div>'; } else { $prod_list_contents .= ' <div class="col-xs-6" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><meta itemprop="priceCurrency" content="' . HTML::output($_SESSION['currency']) . '" /><div class="btn-group" role="group"><button type="button" class="btn btn-default"><span itemprop="price" content="' . $currencies->display_raw($Qlisting->valueDecimal('products_price'), tep_get_tax_rate($Qlisting->valueInt('products_tax_class_id'))) . '">' . $currencies->display_price($Qlisting->valueDecimal('products_price'), tep_get_tax_rate($Qlisting->valueInt('products_tax_class_id'))) . '</span></button></div></div>'; } } if (PRODUCT_LIST_BUY_NOW > 0) { $prod_list_contents .= ' <div class="col-xs-6 text-right">' . HTML::button(OSCOM::getDef('image_button_buy_now'), 'fa fa-shopping-cart', OSCOM::link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'sort', 'cPath')) . 'action=buy_now&products_id=' . $Qlisting->valueInt('products_id')), null, 'btn-success btn-sm btn-product-listing btn-buy') . '</div>'; } $prod_list_contents .= ' </div>'; } $prod_list_contents .= ' </div>'; $prod_list_contents .= ' </div>'; $prod_list_contents .= '</div>'; } echo '<div id="products" class="row list-group" itemtype="http://schema.org/ItemList">'; echo ' <meta itemprop="numberOfItems" content="' . (int) $Qlisting->getPageSetTotalRows() . '" />'; echo $prod_list_contents; echo '</div>';
function execute() { global $oscTemplate; $oscTemplate->addBlock('<noscript><div class="no-script"><div class="no-script-inner">' . HTML::output(OSCOM::getDef('module_header_tags_noscript_text')) . '</div></div></noscript>', $this->group); $oscTemplate->addBlock('<style>.no-script { border: 1px solid #ddd; border-width: 0 0 1px; background: #ffff90; font: 14px verdana; line-height: 2; text-align: center; color: #2f2f2f; } .no-script .no-script-inner { margin: 0 auto; padding: 5px; } .no-script p { margin: 0; }</style>', $this->group); }
</td> <td class="main" align="right" valign="top"><?php echo HTML::image(OSCOM::linkImage('Shop/' . $rInfo->products_image), $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> </td> </tr> </table> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" class="main"><strong><?php echo OSCOM::getDef('entry_review'); ?> </strong><br /><br /><?php echo nl2br(HTML::output(tep_break_string($rInfo->reviews_text, 15))); ?> </td> </tr> </table></td> </tr> <tr> <td class="main"><strong><?php echo OSCOM::getDef('entry_rating'); ?> </strong> <?php echo HTML::image(OSCOM::linkImage('Shop/stars_' . $rInfo->reviews_rating . '.gif'), OSCOM::getDef('text_of_5_stars', ['reviews_rating' => $rInfo->reviews_rating])); ?> <small>[<?php echo OSCOM::getDef('text_of_5_stars', ['reviews_rating' => $rInfo->reviews_rating]); ?>
echo OSCOM::getDef('table_heading_comments'); ?> </th> <th class="text-right"><?php echo OSCOM::getDef('table_heading_customer_notified'); ?> </th> </tr> </thead> <tbody> <?php $Qhistory = $OSCOM_Db->get('orders_status_history', ['orders_status_id', 'date_added', 'customer_notified', 'comments'], ['orders_id' => $oID], 'date_added desc'); if ($Qhistory->fetch() !== false) { do { echo ' <tr>' . "\n" . ' <td valign="top">' . DateTime::toShort($Qhistory->value('date_added'), true) . '</td>' . "\n" . ' <td valign="top">' . $orders_status_array[$Qhistory->valueInt('orders_status_id')] . '</td>' . "\n" . ' <td valign="top">' . nl2br(HTML::output($Qhistory->value('comments'))) . ' </td>' . "\n" . ' <td class="text-right" valign="top">'; if ($Qhistory->valueInt('customer_notified') === 1) { echo HTML::image(OSCOM::linkImage('icons/tick.gif'), OSCOM::getDef('icon_tick')); } else { echo HTML::image(OSCOM::linkImage('icons/cross.gif'), OSCOM::getDef('icon_cross')); } echo '</td>' . "\n" . ' </tr>' . "\n"; } while ($Qhistory->fetch()); } else { echo ' <tr>' . "\n" . ' <td colspan="4">' . OSCOM::getDef('text_no_order_history') . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </tbody> </table> </div>
function execute() { global $oscTemplate; $oscTemplate->addBlock('<link rel="publisher" href="' . HTML::output(MODULE_HEADER_TAGS_GPUBLISHER_ID) . '" />' . PHP_EOL, $this->group); }
function tep_create_sort_heading($sortby, $colnum, $heading) { global $PHP_SELF; $sort_prefix = ''; $sort_suffix = ''; if ($sortby) { $sort_prefix = '<a href="' . OSCOM::link($PHP_SELF, tep_get_all_get_params(array('page', 'info', 'sort')) . 'page=1&sort=' . $colnum . ($sortby == $colnum . 'a' ? 'd' : 'a')) . '" title="' . HTML::output(OSCOM::getDef('text_sort_products') . ($sortby == $colnum . 'd' || substr($sortby, 0, 1) != $colnum ? OSCOM::getDef('text_ascendingly') : OSCOM::getDef('text_descendingly')) . OSCOM::getDef('text_by') . $heading) . '" class="productListing-heading">'; $sort_suffix = (substr($sortby, 0, 1) == $colnum ? substr($sortby, 1, 1) == 'a' ? '+' : '-' : '') . '</a>'; } return $sort_prefix . $heading . $sort_suffix; }
function execute() { global $oscTemplate; $oscTemplate->addBlock('<link rel="search" type="application/opensearchdescription+xml" href="' . OSCOM::link('opensearch.php', '', false) . '" title="' . HTML::output(STORE_NAME) . '" />', $this->group); }
public function getPageSetLinks($parameters = null) { global $PHP_SELF; $number_of_pages = ceil($this->page_set_total_rows / $this->page_set_results_per_page); if (empty($parameters)) { $parameters = ''; } if (!empty($parameters)) { parse_str($parameters, $p); if (isset($p[$this->page_set_keyword])) { unset($p[$this->page_set_keyword]); } $parameters = !empty($p) ? http_build_query($p) . '&' : ''; } $pages = []; for ($i = 1; $i <= $number_of_pages; $i++) { $pages[] = ['id' => $i, 'text' => $i]; } $output = '<ul class="pagination">'; if ($number_of_pages > 1) { $output .= '<li>' . HTML::selectField('pageset' . $this->page_set_keyword, $pages, $this->page_set, 'style="vertical-align: top; display: inline-block; float: left; width: 80px;" data-pageseturl="' . HTML::output(OSCOM::link($PHP_SELF, $parameters . $this->page_set_keyword . '=PAGESETGOTO')) . '"') . '</li>'; } else { $output .= '<li class="disabled"><a class="text-center" style="width: 80px;">1</a></li>'; } // previous button if ($this->page_set > 1) { $output .= '<li><a href="' . OSCOM::link($PHP_SELF, $parameters . $this->page_set_keyword . '=' . ($this->page_set - 1)) . '" title="' . OSCOM::getDef('prevnext_title_previous_page') . '" class="text-center" style="width: 80px;"><span class="fa fa-fw fa-chevron-left"></span></a></li>'; } else { $output .= '<li class="disabled"><a class="text-center" style="width: 80px;"><span class="fa fa-fw fa-chevron-left"></span></a></li>'; } // next button if ($this->page_set < $number_of_pages && $number_of_pages != 1) { $output .= '<li><a href="' . OSCOM::link($PHP_SELF, $parameters . $this->page_set_keyword . '=' . ($this->page_set + 1)) . '" title="' . OSCOM::getDef('prevnext_title_next_page') . '" class="text-center" style="width: 80px;"><span class="fa fa-fw fa-chevron-right"></span></a></li>'; } else { $output .= '<li class="disabled"><a class="text-center" style="width: 80px;"><span class="fa fa-fw fa-chevron-right"></span></a></li>'; } $output .= '</ul>'; if ($number_of_pages > 1) { $output .= <<<EOD <script> \$(function() { \$('select[name="pageset{$this->page_set_keyword}"]').on('change', function() { window.location = \$(this).data('pageseturl').replace('PAGESETGOTO', \$(this).children(':selected').val()); }); }); </script> EOD; } return $output; }
function ht_datepicker_jquery_edit_pages($values, $key) { global $PHP_SELF; $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); $files_array = array(); if ($dir = @dir(OSCOM::getConfig('dir_root', 'Shop'))) { while ($file = $dir->read()) { if (!is_dir(OSCOM::getConfig('dir_root', 'Shop') . $file)) { if (substr($file, strrpos($file, '.')) == $file_extension) { $files_array[] = $file; } } } sort($files_array); $dir->close(); } $values_array = explode(';', $values); $output = ''; foreach ($files_array as $file) { $output .= HTML::checkboxField('ht_datepicker_jquery_file[]', $file, in_array($file, $values_array)) . ' ' . HTML::output($file) . '<br />'; } if (!empty($output)) { $output = '<br />' . substr($output, 0, -6); } $output .= HTML::hiddenField('configuration[' . $key . ']', '', 'id="htrn_files"'); $output .= '<script> function htrn_update_cfg_value() { var htrn_selected_files = \'\'; if ($(\'input[name="ht_datepicker_jquery_file[]"]\').length > 0) { $(\'input[name="ht_datepicker_jquery_file[]"]:checked\').each(function() { htrn_selected_files += $(this).attr(\'value\') + \';\'; }); if (htrn_selected_files.length > 0) { htrn_selected_files = htrn_selected_files.substring(0, htrn_selected_files.length - 1); } } $(\'#htrn_files\').val(htrn_selected_files); } $(function() { htrn_update_cfg_value(); if ($(\'input[name="ht_datepicker_jquery_file[]"]\').length > 0) { $(\'input[name="ht_datepicker_jquery_file[]"]\').change(function() { htrn_update_cfg_value(); }); } }); </script>'; return $output; }
?> "><?php echo HTML::image(OSCOM::linkImage($product['products_image']), $product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'itemprop="image"'); ?> </a> <div class="caption"> <p class="text-center"><a itemprop="url" href="<?php echo OSCOM::link('product_info.php', 'products_id=' . (int) $product['products_id']); ?> "><span itemprop="name"><?php echo $product['products_name']; ?> </span></a></p> <hr> <p class="text-center" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><meta itemprop="priceCurrency" content="<?php echo HTML::output($_SESSION['currency']); ?> " /><span itemprop="price" content="<?php echo $currencies->display_raw($product['products_price'], tep_get_tax_rate($product['products_tax_class_id'])); ?> "><?php echo $currencies->display_price($product['products_price'], tep_get_tax_rate($product['products_tax_class_id'])); ?> </span></p> <div class="text-center"> <div class="btn-group"> <a href="<?php echo OSCOM::link('product_info.php', tep_get_all_get_params(array('action')) . 'products_id=' . (int) $product['products_id']); ?> " class="btn btn-default" role="button"><?php echo OSCOM::getDef('module_content_in_new_products_button_view');
echo HTML::output(MODULE_HEADER_TAGS_OPENSEARCH_SITE_DESCRIPTION); ?> </Description> <?php if (tep_not_null(MODULE_HEADER_TAGS_OPENSEARCH_SITE_CONTACT)) { echo ' <Contact>' . HTML::output(MODULE_HEADER_TAGS_OPENSEARCH_SITE_CONTACT) . '</Contact>' . "\n"; } if (tep_not_null(MODULE_HEADER_TAGS_OPENSEARCH_SITE_TAGS)) { echo ' <Tags>' . HTML::output(MODULE_HEADER_TAGS_OPENSEARCH_SITE_TAGS) . '</Tags>' . "\n"; } if (tep_not_null(MODULE_HEADER_TAGS_OPENSEARCH_SITE_ATTRIBUTION)) { echo ' <Attribution>' . HTML::output(MODULE_HEADER_TAGS_OPENSEARCH_SITE_ATTRIBUTION) . '</Attribution>' . "\n"; } if (MODULE_HEADER_TAGS_OPENSEARCH_SITE_ADULT_CONTENT == 'True') { echo ' <AdultContent>True</AdultContent>' . "\n"; } if (tep_not_null(MODULE_HEADER_TAGS_OPENSEARCH_SITE_ICON)) { echo ' <Image height="16" width="16" type="image/x-icon">' . HTML::output(MODULE_HEADER_TAGS_OPENSEARCH_SITE_ICON) . '</Image>' . "\n"; } if (tep_not_null(MODULE_HEADER_TAGS_OPENSEARCH_SITE_IMAGE)) { echo ' <Image height="64" width="64" type="image/png">' . HTML::output(MODULE_HEADER_TAGS_OPENSEARCH_SITE_IMAGE) . '</Image>' . "\n"; } ?> <InputEncoding>UTF-8</InputEncoding> <Url type="text/html" method="get" template="<?php echo OSCOM::link('advanced_search_result.php', 'keywords={searchTerms}', false); ?> " /> </OpenSearchDescription> <?php require 'includes/application_bottom.php';