File manager - Edit - /home/lmsyaran/public_html/update/html.tar
Back
com_hikashop/category/listing.php 0000644 00000014406 15120131370 0013205 0 ustar 00 <?php /** * @package HikaShop for Joomla! * @version 4.4.1 * @author hikashop.com * @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php ob_start(); $title_key = 'show_page_heading'; $titleType = 'h1'; if($this->module) { $title_key = 'showtitle'; $titleType = 'h2'; } $title = $this->params->get($title_key); if(empty($title) && $title_key == 'show_page_heading') { $params = JComponentHelper::getParams('com_menus'); $title = $params->get($title_key); } if(!empty($title) && hikaInput::get()->getVar('hikashop_front_end_main', 0)){ if($this->module) { $heading = $this->params->get('title'); } else { $heading = $this->params->get('page_title'); if($this->params->get('page_heading')){ $heading = $this->params->get('page_heading'); } } ?> <<?php echo $titleType; ?>> <?php echo $heading; ?> </<?php echo $titleType; ?>> <?php } if(!$this->module){ $val = hikaInput::get()->getVar('hikashop_front_end_main',0); hikaInput::get()->set('hikashop_front_end_main',0); if(isset($this->element->category_canonical) && !empty($this->element->category_canonical)){ $canonicalUrl = hikashop_cleanURL(hikashop_translate($this->element->category_canonical)); $doc = JFactory::getDocument(); $doc->addHeadLink($canonicalUrl, 'canonical'); } if(($this->params->get('show_image') && !empty($this->element->file_path))|| ($this->params->get('show_description')&&!empty($this->element->category_description))){ ?> <div class="hikashop_category_description"> <?php if($this->params->get('show_image') && !empty($this->element->file_path)){ jimport('joomla.filesystem.file'); if(JFile::exists($this->image->getPath($this->element->file_path,false))){ ?> <img src="<?php echo $this->image->getPath($this->element->file_path); ?>" class="hikashop_category_image" title="<?php echo $this->escape(@$this->element->file_description); ?>" alt="<?php echo $this->escape(@$this->element->file_name); ?>"/> <?php } } if($this->params->get('show_description',1)&&!empty($this->element->category_description)){ ?> <div class="hikashop_category_description_content"> <?php echo JHTML::_('content.prepare',$this->element->category_description); ?> </div> <?php } ?> </div> <?php } if(!empty($this->fields)){ ?> <?php ob_start(); $this->fieldsClass->prefix = ''; foreach($this->fields as $fieldName => $oneExtraField) { if(!empty($this->element->$fieldName)){ ?> <tr class="hikashop_category_custom_<?php echo $oneExtraField->field_namekey;?>_line"> <td class="key"> <span id="hikashop_category_custom_name_<?php echo $oneExtraField->field_id;?>" class="hikashop_category_custom_name"> <?php echo $this->fieldsClass->getFieldName($oneExtraField);?> </span> </td> <td> <span id="hikashop_category_custom_value_<?php echo $oneExtraField->field_id;?>" class="hikashop_category_custom_value"> <?php echo $this->fieldsClass->show($oneExtraField,$this->element->$fieldName); ?> </span> </td> </tr> <?php } } $custom_fields_html = ob_get_clean(); if(!empty($custom_fields_html)){ ?> <div id="hikashop_category_custom_info_main" class="hikashop_category_custom_info_main"> <h4><?php echo JText::_('CATEGORY_ADDITIONAL_INFORMATION');?></h4> <table class="hikashop_category_custom_info_main_table"> <?php echo $custom_fields_html; ?> </table> </div> <?php } } hikaInput::get()->set('hikashop_front_end_main',$val); } $layout_type = $this->params->get('layout_type'); if(empty($layout_type) || $layout_type=='table') $layout_type = 'div'; $html = $this->loadTemplate($layout_type); if(!empty($html)) echo '<div class="hikashop_subcategories_listing">'.$html.'</div>'; if(!$this->module){ $data = $this->params->get('data'); if(empty($data)) { $hk_p = $this->params->get('hk_product'); if(!empty($hk_p)) { $data = new stdClass(); $data->hk_product = $hk_p; } } if(isset($data->hk_product) && (is_object($data->hk_product) || is_array($data->hk_product))) { $js = ''; $empty=''; jimport('joomla.html.parameter'); $params = new HikaParameter($empty); foreach($data->hk_product as $k => $v){ $params->set($k,$v); } $params->set('content_synchronize', 1); $main_div_name = 'hikashop_category_information_module_'.$params->get('id'); $params->set('main_div_name',$main_div_name); echo '<div class="hikashop_submodules" style="clear:both">'.hikashop_getLayout('product', 'listing', $params, $js).'</div>'; } else if(!empty($this->modules)){ $html = ''; jimport('joomla.application.module.helper'); foreach($this->modules as $module){ $html .= JModuleHelper::renderModule($module); } if(!empty($html)){ echo '<div class="hikashop_submodules" style="clear:both">'.$html.'</div>'; } } } $html = ob_get_clean(); if(!empty($html)){ $category_id = 0; if(!empty($this->element->category_id)) $category_id = $this->element->category_id; if(!empty($this->row->category_id)) $category_id = $this->row->category_id; ?> <div id="<?php echo $this->params->get('main_div_name');?>" class="hikashop_category_information hikashop_categories_listing_main hikashop_category_listing_<?php echo $category_id; ?>"> <?php echo $html; ?> </div> <?php } ?> com_virtuemart/category/default.php 0000644 00000015563 15120131370 0013561 0 ustar 00 <?php /** * * Show the products in a category * * @package VirtueMart * @subpackage * @author RolandD * @author Max Milbers * @todo add pagination * @link https://virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: default.php 10307 2020-04-29 08:31:27Z Milbo $ */ defined ('_JEXEC') or die('Restricted access'); if (vRequest::getInt('dynamic',false) and vRequest::getInt('virtuemart_product_id',false)) { if (!empty($this->products)) { if($this->fallback){ $p = $this->products; $this->products = array(); $this->products[0] = $p; vmdebug('Refallback'); } echo shopFunctionsF::renderVmSubLayout($this->productsLayout,array('products'=>$this->products,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating)); } return ; } ?> <div class="category-view"> <?php $js = " jQuery(document).ready(function () { jQuery('.orderlistcontainer').hover( function() { jQuery(this).find('.orderlist').stop().show()}, function() { jQuery(this).find('.orderlist').stop().hide()} ) }); "; vmJsApi::addJScript('vm-hover',$js); if ($this->show_store_desc and !empty($this->vendor->vendor_store_desc)) { ?> <div class="vendor-store-desc"> <?php echo $this->vendor->vendor_store_desc; ?> </div> <?php } if (!empty($this->showcategory_desc) and empty($this->keyword)){ if(!empty($this->category)) { ?> <div class="category_description"> <?php echo $this->category->category_description; ?> </div> <?php } if(!empty($this->manu_descr)) { ?> <div class="manufacturer-description"> <?php echo $this->manu_descr; ?> </div> <?php } } // Show child categories if ($this->showcategory and empty($this->keyword)) { if (!empty($this->category->haschildren)) { echo ShopFunctionsF::renderVmSubLayout('categories',array('categories'=>$this->category->children, 'categories_per_row'=>$this->categories_per_row)); } } if (!empty($this->products) or ($this->showsearch or $this->keyword !== false)) { ?> <div class="browse-view"> <?php if ($this->showsearch or $this->keyword !== false) { //id taken in the view.html.php could be modified $category_id = vRequest::getInt ('virtuemart_category_id', 0); ?> <!--BEGIN Search Box --> <div class="virtuemart_search"> <form action="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=category&limitstart=0', FALSE); ?>" method="get"> <?php if(!empty($this->searchCustomList)) { ?> <div class="vm-search-custom-list"> <?php echo $this->searchCustomList ?> </div> <?php } ?> <?php if(!empty($this->searchCustomValuesAr)) { ?> <div class="vm-search-custom-values"> <?php echo ShopFunctionsF::renderVmSubLayoutAsGrid( 'searchcustomvalues', array ( 'searchcustomvalues' => $this->searchCustomValuesAr, 'options' => array ( 'items_per_row' => array ( 'xs' => 2, 'sm' => 2, 'md' => 2, 'lg' => 2, 'xl' => 2, ), ), ) ); ?> </div> <?php } ?> <div class="vm-search-custom-search-input"> <input name="keyword" class="inputbox" type="text" size="40" value="<?php echo $this->keyword ?>"/> <input type="submit" value="<?php echo vmText::_ ('COM_VIRTUEMART_SEARCH') ?>" class="button" onclick="this.form.keyword.focus();"/> <?php //echo VmHtml::checkbox ('searchAllCats', (int)$this->searchAllCats, 1, 0, 'class="changeSendForm"'); ?> <span class="vm-search-descr"> <?php echo vmText::_('COM_VM_SEARCH_DESC') ?></span> </div> <!-- input type="hidden" name="showsearch" value="true"/ --> <input type="hidden" name="view" value="category"/> <input type="hidden" name="option" value="com_virtuemart"/> <input type="hidden" name="virtuemart_category_id" value="<?php echo $category_id; ?>"/> <input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?>"/> </form> </div> <!-- End Search Box --> <?php /*if($this->keyword !== false){ ?><h3><?php echo vmText::sprintf('COM_VM_SEARCH_KEYWORD_FOR', $this->keyword); ?></h3><?php }*/ $j = 'jQuery(document).ready(function() { jQuery(".changeSendForm") .off("change",Virtuemart.sendCurrForm) .on("change",Virtuemart.sendCurrForm); })'; vmJsApi::addJScript('sendFormChange',$j); } ?> <?php // Show child categories if(!empty($this->orderByList)) { ?> <div class="orderby-displaynumber"> <div class="floatleft vm-order-list"> <?php echo $this->orderByList['orderby']; ?> <?php echo $this->orderByList['manufacturer']; ?> </div> <div class="vm-pagination vm-pagination-top"> <?php echo $this->vmPagination->getPagesLinks (); ?> <span class="vm-page-counter"><?php echo $this->vmPagination->getPagesCounter (); ?></span> </div> <div class="floatright display-number"><?php echo $this->vmPagination->getResultsCounter ();?><br/><?php echo $this->vmPagination->getLimitBox ($this->category->limit_list_step); ?></div> <div class="clear"></div> </div> <!-- end of orderby-displaynumber --> <?php } ?> <?php if (!empty($this->category->category_name)) { ?> <h1><?php echo vmText::_($this->category->category_name); ?></h1> <?php } ?> <?php if (!empty($this->products)) { //revert of the fallback in the view.html.php, will be removed vm3.2 if($this->fallback){ $p = $this->products; $this->products = array(); $this->products[0] = $p; vmdebug('Refallback'); } echo shopFunctionsF::renderVmSubLayout($this->productsLayout,array('products'=>$this->products,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating)); if(!empty($this->orderByList)) { ?> <div class="vm-pagination vm-pagination-bottom"><?php echo $this->vmPagination->getPagesLinks (); ?><span class="vm-page-counter"><?php echo $this->vmPagination->getPagesCounter (); ?></span></div> <?php } } elseif ($this->keyword !== false) { echo vmText::_ ('COM_VIRTUEMART_NO_RESULT') . ($this->keyword ? ' : (' . $this->keyword . ')' : ''); } ?> </div> <?php } ?> </div> <?php if(VmConfig::get ('ajax_category', false)){ $j = "Virtuemart.container = jQuery('.category-view'); Virtuemart.containerSelector = '.category-view';"; /*$j = "Virtuemart.container = jQuery('.main'); Virtuemart.containerSelector = '.main';";*/ vmJsApi::addJScript('ajax_category',$j); vmJsApi::jDynUpdate(); } ?> <!-- end browse-view --> com_virtuemart/sublayouts/productss.php 0000644 00000000035 15120131370 0014544 0 ustar 00 <?php var_dump($viewData); index.html 0000644 00000000204 15120131370 0006526 0 ustar 00 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> </body> </html>