Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
ItemListWidget.php
1 <?php
2 /**
3  * Gentics Portal.Node PHP
4  * Author & Copyright (c) by Gentics Software GmbH
5  * sales@gentics.com
6  * http://www.gentics.com
7  * Licenses can be found in the LICENSE.txt file in the root-folder of this installation
8  * You must not use this software without a valid license agreement.
9  *
10  */
11 ?>
12 
13 <div class="shoppingcart_itemlist">
14  <div class="itemlist_title"><?php echo ShoppingcartModule::t($this->title); ?></div>
15  <ul class="<?php echo $this->class ?>">
16  <?php foreach($model as $item): ?>
17  <a <?php if($this->link_items_to_page){echo "href='".($item->item_referrer)?$item->item_referrer: $item->referrer."'";} ?>>
18  <li>
19  <span class="item_title"><?php echo $item->title ?></span>
20  <span class="item_quantity"><?php echo $item->quantity ?></span>
21  </li>
22  </a>
23  <?php endforeach; ?>
24 
25  <?php if(!count($model)): ?>
26  <li> <?php echo ShoppingcartModule::t('Cart is empty'); ?> </li>
27  <?php endif; ?>
28  </ul>
29  <div class="to_shoppingcart">
30  <?php
31  if(count($model)):
32  echo CHtml::link(ShoppingcartModule::t('All items').'&nbsp;&raquo;',
33  Yii::app()->createUrl($this->shoppingcart_link),array('class'=>'metanavlink all-items-link'));
34  endif;
35  ?>
36  </div>
37 </div>