Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
ShoppingCartNavigateWidget.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 <div class="navigation">
13  <?php $shoppingcart_link = substr($_SERVER['REDIRECT_URL'],1); ?>
14  <?php for($s = 1; $s <= $stepsCount; $s++): ?>
15  <div class='<?php if($s == $step)echo " active"; if(Yii::app()->user->getState('step_'.$s)==true)echo " passed" ?>'>
16  <a href="<?php if($s!=$step){
17  echo Yii::app()->createUrl($shoppingcart_link)."?step=$s";
18  }
19  ?>">
20  <?php echo ShoppingcartModule::t('Step').' '.$s; ?>
21  </a>
22  </div>
23  <?php endfor; ?>
24 </div>