Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
LanguageWidget.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>
13  <?php echo LanguageModule::t('Current language')?>:
14  <?php echo Yii::app()->language?>
15 </div>
16 <?php if (!empty($languages)): ?>
17 <ul>
18  <?php foreach ($languages as $language): ?>
19  <li>
20  <?php echo CHtml::link($language, Yii::app()->createUrl('language/language/change', array('language' => $language, 'return_url' => Yii::app()->request->getRequestUri())))?>
21  </li>
22  <?php endforeach; ?>
23 </ul>
24 <?php endif; ?>