Example #1
0
 /**
  * Whether using the admin-side submenu module or just using the menu tmpl (from the dashboard view),
  * tells Citruscart to display the submenu
  * 
  * @param $menu
  * @return unknown_type
  */
 function display($menu_name = 'submenu')
 {
     /* Get the application */
     $app = JFactory::getApplication();
     if (!$this->isSubmenuEnabled()) {
         $menu = CitruscartMenu::getInstance($menu_name);
     } else {
         $app->input->set('citruscart_display_submenu', '1');
         //JRequest::setVar('Citruscart_display_submenu', '1'); // tells the Citruscart_admin_submenu module to display
     }
 }
Example #2
0
# Technical Support:  Forum - http://citruscart.com/forum/index.html
# Fork of Tienda
# @license GNU/GPL  Based on Tienda by Dioscouri Design http://www.dioscouri.com.
-------------------------------------------------------------------------*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
JHTML::_('stylesheet', 'menu.css', 'media/citruscart/css/');
JHtml::_('script', 'media/citruscart/js/citruscart.js', false, false);
JHTML::_('script', 'joomla.javascript.js', 'includes/js/');
Citruscart::load('CitruscartGrid', 'library.grid');
$items = $this->items;
$state = $this->state;
Citruscart::load("CitruscartHelperRoute", 'helpers.route');
$router = new CitruscartHelperRoute();
Citruscart::load('CitruscartHelperProduct', 'helpers.product');
$menu = CitruscartMenu::getInstance($this->submenu);
$products_model = $this->getModel('products');
?>

<script type="text/javascript">
citruscartJQ(document).ready(function(){
	DisplaySharingOptions( <?php 
echo $this->row->privacy;
?>
, 0 );

    citruscartJQ('.privatize-wishlist').on('change', function(){
        el = citruscartJQ(this);
        privacy = el.val();
        if (privacy > 0) {
            Citruscart.privatizeWishlist(<?php 
Example #3
0
# author    Citruscart Team - Citruscart http://www.citruscart.com
# copyright Copyright (C) 2014 - 2019 Citruscart.com All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://citruscart.com
# Technical Support:  Forum - http://citruscart.com/forum/index.html
-------------------------------------------------------------------------*/
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.model');
JHTML::_('behavior.modal');
JHtml::_('script', 'media/citruscart/js/citruscart.js', false, false);
JHtml::_('stylesheet', 'media/citruscart/css/menu.css');
$state = $this->state;
$form = $this->form;
$items = $this->items;
$tmpl = isset($this->tmpl) ? $this->tmpl : "";
$menu = CitruscartMenu::getInstance();
/* Get the applications */
$app = JFactory::getApplication();
?>

<div class='componentheading'>
    <h3><?php 
echo JText::_('COM_CITRUSCART_MANAGE_YOUR_ADDRESSES');
?>
</h3>
</div>

  <div class="naviagtion header">
	<?php 
require_once JPATH_SITE . '/administrator/components/com_citruscart/helpers/toolbar.php';
$toolbar = new CitruscartToolBar();
Example #4
0
 /**
  * Displays a submenu if there is one and if hidemainmenu is not set
  * @param $selected
  * @return unknown_type
  **/
 function displaySubmenu($selected = '')
 {
     if (!JFactory::getApplication()->input->getInt('hidemainmenu') && empty($this->hidemenu)) {
         $menu = CitruscartMenu::getInstance();
     }
 }