/** * Whether using the admin-side submenu module or just using the menu tmpl (from the dashboard view), * tells Tienda to display the submenu * * @param $menu * @return unknown_type */ function display($menu_name = 'submenu') { if (!$this->isSubmenuEnabled()) { $menu = TiendaMenu::getInstance($menu_name); } else { JRequest::setVar('tienda_display_submenu', '1'); // tells the tienda_admin_submenu module to display } }
</a> <?php } else { ?> <a href="<?php echo $item[1]; ?> "><?php echo $item[0]; ?> </a> <?php } } $names = explode(' ', $item[0]); $name = strtolower($names[0]); //$submenu = new TiendaMenu( 'submenu_' . $name, '1' ); $submenu = TiendaMenu::getInstance('submenu_' . $name, '1'); $submenu_items = $submenu->_menu->getItems(); ?> <ul class="submenu_dropdown"> <?php foreach ($submenu_items as $submenu_item) { ?> <li> <?php if ($submenu_item[2] == 1) { ?> <a class="active" href="<?php echo $submenu_item[1]; ?> "><?php echo $submenu_item[0];
<?php defined('_JEXEC') or die('Restricted access'); JHTML::_('stylesheet', 'menu.css', 'media/com_tienda/css/'); JHTML::_('script', 'tienda.js', 'media/com_tienda/js/'); JHTML::_('script', 'joomla.javascript.js', 'includes/js/'); Tienda::load('TiendaGrid', 'library.grid'); $items = @$this->items; $state = @$this->state; Tienda::load("TiendaHelperRoute", 'helpers.route'); $router = new TiendaHelperRoute(); Tienda::load('TiendaHelperProduct', 'helpers.product'); $menu = TiendaMenu::getInstance(@$this->submenu); $products_model = $this->getModel('products'); ?> <script type="text/javascript"> tiendaJQ(document).ready(function(){ DisplaySharingOptions( <?php echo $this->row->privacy; ?> , 0 ); tiendaJQ('.privatize-wishlist').on('change', function(){ el = tiendaJQ(this); privacy = el.val(); if (privacy > 0) { Tienda.privatizeWishlist(<?php echo $this->row->wishlist_id; ?> , privacy, function(response){
/** * Displays a submenu if there is one and if hidemainmenu is not set * * @param $selected * @return unknown_type */ function displaySubmenu($selected = '') { if (!JRequest::getInt('hidemainmenu') && empty($this->hidemenu)) { $menu = TiendaMenu::getInstance(); } }
<?php defined('_JEXEC') or die('Restricted access'); JHTML::_('stylesheet', 'menu.css', 'media/com_tienda/css/'); $state = @$this->state; $form = @$this->form; $items = @$this->items; $menu = TiendaMenu::getInstance(); ?> <div class='componentheading'> <span><?php echo JText::_('COM_TIENDA_MY_DOWNLOADS'); ?> </span> </div> <?php if ($menu) { $menu->display(); } ?> <form action="<?php echo JRoute::_(@$form['action'] . "&limitstart=" . @$state->limitstart); ?> " method="post" name="adminForm" enctype="multipart/form-data"> <table> <tr> <td align="left" width="100%">
<?php /** * @package Tienda * @author Dioscouri * @link http://www.dioscouri.com * @copyright Copyright (C) 2010 Dioscouri. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php */ /** ensure this file is being included by a parent file */ defined('_JEXEC') or die('Restricted access'); // Check the registry to see if our Tienda class has been overridden if (!class_exists('Tienda')) { JLoader::register("Tienda", JPATH_ADMINISTRATOR . "/components/com_tienda/defines.php"); } if (class_exists('Tienda')) { Tienda::load('TiendaMenu', 'library.menu'); $hide = JRequest::getInt('hidemainmenu'); $menu = TiendaMenu::getInstance('submenu'); $app = JFactory::getApplication(); $document = JFactory::getDocument(); require JModuleHelper::getLayoutPath('mod_tienda_admin_submenu'); }