File indexing completed on 2025-12-14 05:53:00
0001 <?php 0002 /** 0003 * ocs-webserver 0004 * 0005 * Copyright 2016 by pling GmbH. 0006 * 0007 * This file is part of ocs-webserver. 0008 * 0009 * This program is free software: you can redistribute it and/or modify 0010 * it under the terms of the GNU Affero General Public License as 0011 * published by the Free Software Foundation, either version 3 of the 0012 * License, or (at your option) any later version. 0013 * 0014 * This program is distributed in the hope that it will be useful, 0015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0017 * GNU Affero General Public License for more details. 0018 * 0019 * You should have received a copy of the GNU Affero General Public License 0020 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0021 **/ 0022 0023 $helperMember = new Default_View_Helper_BuildMemberUrl(); 0024 $helperBase = new Default_View_Helper_BuildBaseUrl(); 0025 0026 ?> 0027 0028 <div class="my-products-heading"> 0029 <h1 class="page-title left"><?= $this->translate('Products/Collections') ?></h1> 0030 </div> 0031 0032 <div class="pling-nav-tabs"> 0033 <ul class="nav nav-tabs"> 0034 0035 <li class="<?php echo $this->tab == 'products' ? 'active' : ''; ?>"> 0036 <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'products'); ?>"> 0037 <span class="glyphicon glyphicon-th-list"></span> 0038 <?= $this->translate('Products') ?> 0039 </a> 0040 </li> 0041 0042 <li class="<?php echo $this->tab == 'collections' ? 'active' : ''; ?>"> 0043 <a href="<?php echo $helperMember->buildMemberUrl($this->member->username, 'collections'); ?>"> 0044 <span class="glyphicon glyphicon-th-list"></span> 0045 <?= $this->translate('Collections') ?> 0046 </a> 0047 </li> 0048 <li class="header-menu-left-item <?php echo $this->tab == 'add' ? 'active' : ''; ?>"> 0049 <?php if ($this->mode == 'edit') : ?> 0050 <a href="<?= Zend_Controller_Front::getInstance()->getRequest()->getRequestUri() ?>"> 0051 <span class="glyphicon glyphicon-pencil"></span> 0052 <?= $this->translate('Edit Product') ?> 0053 </a> 0054 <?php else : ?> 0055 <a href="<?php echo Zend_Registry::get('config')->settings->client->default->baseurl_store . '/product/add'; ?>"> 0056 <span class="glyphicon glyphicon-plus"></span> 0057 <?= $this->translate('Add Product') ?> 0058 </a> 0059 <?php endif ?> 0060 </li> 0061 <li class="header-menu-left-item <?php echo $this->tab == 'addcollection' ? 'active' : ''; ?>"> 0062 <?php if ($this->mode == 'editcollection') : ?> 0063 <a href="<?= Zend_Controller_Front::getInstance()->getRequest()->getRequestUri() ?>"> 0064 <span class="glyphicon glyphicon-pencil"></span> 0065 <?= $this->translate('Edit Collection') ?> 0066 </a> 0067 <?php else : ?> 0068 <a href="<?php echo Zend_Registry::get('config')->settings->client->default->baseurl_store . '/collection/add'; ?>"> 0069 <span class="glyphicon glyphicon-plus"></span> 0070 <?= $this->translate('Add Collection') ?> 0071 </a> 0072 <?php endif ?> 0073 </li> 0074 0075 </ul> 0076 </div>