<div class="header-controls">
                <a href="#" class="open-menu"><i class="fa fa-navicon"></i></a>
                <a h-ref="#" class="open-slide"><i class="fa fa-chevron-down"></i></a>
                
                <a id="ad_btn" class="btn btn-default btn-lg" href="<?php 
echo Url::to(['elan/index']);
?>
" style="float:left;">
                    <i id="ad_icon" class="fa fa-plus"></i>
                    <?php 
echo Yii::t('yii', 'Create advert');
?>
                </a>
                
                <?php 
echo \lajax\languagepicker\widgets\LanguagePicker::widget(['itemTemplate' => '<li><a href="{link}" title="{language}"><i id="{language}"></i> {name}</a></li>', 'activeItemTemplate' => '<a href="{link}" title="{language}"><i id="{language}"></i> {name}</a>', 'parentTemplate' => '<div class="language-picker dropdown-list {size}" style="float:right; margin-right: 20px;"><div>{activeItem}<ul>{items}</ul></div></div>', 'languageAsset' => 'lajax\\languagepicker\\bundles\\LanguageLargeIconsAsset', 'languagePluginAsset' => 'lajax\\languagepicker\\bundles\\LanguagePluginAsset']);
?>
                <!--<div style="float:right;">
                <input type="text" class="form-control" placeholder="Search" style="width: 20%;">
                <div  class="btn btn-default"><i class="fa fa-search" style="margin-right: 3px;"></i>Axtar</div>
                </div>-->
            </div>
            
        </div>
        
        



        <div class="snap-drawers">
            <!-- Left Sidebar -->
echo '/cats/86';
?>
">
                            <div><?php 
echo Yii::t('yii', 'Other');
?>
</div>
                            </a>
                        </li>
	
                        
                    </ul>
              </div>
                
                <?php 
echo \lajax\languagepicker\widgets\LanguagePicker::widget(['itemTemplate' => '<a href="{link}" title="{language}" style="display:block;"><i id="{language}"></i>{name}</a>', 'activeItemTemplate' => '<a href="{link}" title="{language}"><i id="{language}"></i> {name}</a>', 'parentTemplate' => '<div class="language-picker {size}" style="float:right; margin-right: 20px; position: relative;
bottom: 7px;"><div>{activeItem}{items}</div></div>', 'languageAsset' => 'lajax\\languagepicker\\bundles\\LanguageLargeIconsAsset', 'languagePluginAsset' => 'lajax\\languagepicker\\bundles\\LanguagePluginAsset']);
?>
                <!--<div style="float:right;">
                <input type="text" class="form-control" placeholder="Search" style="width: 20%;">
                <div  class="btn btn-default"><i class="fa fa-search" style="margin-right: 3px;"></i>Axtar</div>
                </div>-->
            </div>
            
        </div>
        
        



        <div class="snap-drawers">
            <!-- Left Sidebar -->
?>
        <!--[if lt IE 9]>
             <script src="js/html5.js"></script>
        <![endif]-->
    </head>
    <body>
        <?php 
$this->beginBody();
?>

        <div class="wrap">


            <div class="navbar-text pull-right">
                <?php 
echo \lajax\languagepicker\widgets\LanguagePicker::widget(['skin' => \lajax\languagepicker\widgets\LanguagePicker::SKIN_DROPDOWN, 'size' => \lajax\languagepicker\widgets\LanguagePicker::SIZE_LARGE]);
?>
            </div>

            <?php 
$navItems = [];
$navItems = Menu::toItems('main');
NavBar::begin(['brandLabel' => 'My Company', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
if (Yii::$app->user->isGuest) {
    array_push($navItems, ['label' => 'Sign In', 'url' => ['/user/login']]);
} else {
    array_push($navItems, ['label' => 'Logout (' . Yii::$app->user->identity->username . ')', 'url' => ['/user/logout'], 'linkOptions' => ['data-method' => 'post']]);
}
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $navItems]);
echo \lajax\translatemanager\widgets\ToggleTranslate::widget(['position' => \lajax\translatemanager\widgets\ToggleTranslate::POSITION_TOP_RIGHT, 'template' => '<a href="javascript:void(0);" id="toggle-translate" class="{position}" data-language="{language}"><i></i> {text}</a><div id="translate-manager-div"></div>', 'frontendTranslationAsset' => 'lajax\\translatemanager\\bundles\\FrontendTranslationAsset', 'frontendTranslationPluginAsset' => 'lajax\\translatemanager\\bundles\\FrontendTranslationPluginAsset']);
NavBar::end();
Exemple #4
0
}
// translations
if (Yii::$app->user->can('permission_admin')) {
    $menuItems[] = ['label' => 'Tranlations', 'url' => ['/translatemanager/language']];
}
if (Yii::$app->user->isGuest) {
    $menuItems[] = ['label' => 'Signup', 'url' => ['/site/signup']];
    $menuItems[] = ['label' => 'Login', 'url' => ['/site/login']];
} else {
    $menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']];
}
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]);
?>
    <div class="navbar-text pull-right">
        <?php 
echo \lajax\languagepicker\widgets\LanguagePicker::widget(['skin' => \lajax\languagepicker\widgets\LanguagePicker::SKIN_BUTTON, 'size' => \lajax\languagepicker\widgets\LanguagePicker::SIZE_SMALL]);
?>
    </div>
    <?php 
NavBar::end();
?>

    <div class="container">
        <?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
        <?php 
echo $content;
?>
    </div>
</div>
use yii\helpers\Html;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $searchModel app\models\UsersSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'Translations');
?>
<div class="user-index">
    <div class="mrg-10">
    <span><?php 
echo Yii::t('messages', 'Translation language:');
?>
&nbsp;</span>
    <?php 
echo \lajax\languagepicker\widgets\LanguagePicker::widget(['skin' => \lajax\languagepicker\widgets\LanguagePicker::SKIN_DROPDOWN, 'size' => \lajax\languagepicker\widgets\LanguagePicker::SIZE_SMALL, 'link' => function ($language) {
    return Url::to(['', 'language' => $language]);
}, 'active' => $translationForm->language]);
?>
    </div>
    <?php 
echo $this->render('translation-form', ['model' => $translationForm]);
?>
    <?php 
echo GridView::widget(['dataProvider' => $data_provider, 'filterModel' => $search_model, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['class' => \dosamigos\grid\EditableColumn::className(), 'format' => 'raw', 'attribute' => 'category', 'url' => ['ajax-update', 'language' => $translationForm->language]], ['class' => \dosamigos\grid\EditableColumn::className(), 'attribute' => 'message', 'format' => 'raw', 'url' => ['ajax-update', 'language' => $translationForm->language]], ['class' => \dosamigos\grid\EditableColumn::className(), 'attribute' => 'messageTranslation', 'format' => 'raw', 'url' => ['ajax-update', 'language' => $translationForm->language]], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{delete}', 'buttons' => ['delete' => function ($url, $model, $key) use($translationForm) {
    $url = Url::to(['translation/delete', 'id' => $model->id, 'language' => $translationForm->language]);
    return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, ['title' => Yii::t('yii', 'Delete'), 'data-confirm' => Yii::t('yii', 'Are you sure you want to delete this item?'), 'data-method' => 'post', 'data-pjax' => '0']);
}]]]]);
?>

</div>
Exemple #6
0
                &middot; <a href="<?php 
echo GeneralInfo::getGeneralInfoByType(GeneralInfo::TYPE_CONTACT)->getLink();
?>
" title="<?php 
echo I18n::t('Contact');
?>
" style="opacity: 0.9;"><?php 
echo I18n::t('Contact');
?>
</a>
            </span>
        </div>
        <div style="float:left;width:25%;font-size:0.96em">
            <!--<div id="languageArea">-->
                <?php 
echo LanguagePicker::widget(['skin' => LanguagePicker::SKIN_BUTTON, 'size' => LanguagePicker::SIZE_SMALL, 'itemTemplate' => '<a style="white-space:nowrap" href="{link}" title="{language}"><i class="{language}"></i> {name}</a>', 'activeItemTemplate' => '<a style="white-space:nowrap" href="{link}" title="{language}" class="active"><i class="{language}"></i> {name}</a>', 'parentTemplate' => '<div style="float:right" class="language-picker button-list {size}"><div>{items}</div></div>', 'languageAsset' => 'lajax\\languagepicker\\bundles\\LanguageSmallIconsAsset', 'languagePluginAsset' => 'lajax\\languagepicker\\bundles\\LanguagePluginAsset']);
?>
                <?php 
/* echo yii\helpers\Html::dropDownList(
           'languages', // input name
           Yii::$app->language, // value
           frontend\models\Language::getLanguages_codeToLabel(), // option
           [
               'style' => 'border:none;background:none;box-sizing:border-box;float:right;max-width:calc(100%);font-size:1em;color:#222',
               'onChange' => 'window.location.replace("' . yii\helpers\Url::current() . '?language-picker-language="+this.value); '
           ]
   ) */
?>
            <!--</div>-->
        </div>
        <div class="clr"></div>
Exemple #7
0
    echo Url::to(['site/logout']);
    ?>
"><?php 
    echo Yii::t('yii', 'Log out');
    ?>
</a></li>
          </ul>
        </li>
        
           
         <?php 
}
?>
 
        <?php 
echo \lajax\languagepicker\widgets\LanguagePicker::widget(['itemTemplate' => '<li><a class="lang-drop" href="{link}" title="{language}"><i id="{language}"></i> {name}</a></li>', 'activeItemTemplate' => '<a href="#" class="dropdown-toggle " data-toggle="dropdown" role="button" aria-haspopup="true"' . 'aria-expanded="false" title="{language}"><i id="{language}"></i> {name}</a>', 'parentTemplate' => '<li class="language-picker  {size} dropdown">{activeItem}<ul class="dropdown-menu custom-dropdown-menu" >{items}</ul></li>', 'languageAsset' => 'lajax\\languagepicker\\bundles\\LanguageLargeIconsAsset', 'languagePluginAsset' => 'lajax\\languagepicker\\bundles\\LanguagePluginAsset']);
?>
        
            
        
      </ul>

    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
        
                
                
                <!--<div style="float:right;">
                <input type="text" class="form-control" placeholder="Search" style="width: 20%;">
                <div  class="btn btn-default"><i class="fa fa-search" style="margin-right: 3px;"></i>Axtar</div>
Exemple #8
0
<?php

use yii\helpers\Html;
use lajax\languagepicker\widgets\LanguagePicker;
?>
<div id="topbar">
	<div class="container">
		<div class="row">
			<div class="col-sm-6 col-xs-6">	
			<span class="hidden-sm hidden-xs"><i class="icon-location4"></i>FOZ DO IGUAÇU - PR </span><span class="vertical-space"></span> <i class="icon-phone4 hidden-sm hidden-xs"></i>55 45 99148814

			</div>
			<div class="col-sm-6 col-xs-6 text-right">
				<div class="btn-group social-links hidden-sm hidden-xs">
				<?php 
echo LanguagePicker::widget(['skin' => \lajax\languagepicker\widgets\LanguagePicker::SKIN_DROPDOWN, 'size' => \lajax\languagepicker\widgets\LanguagePicker::SIZE_LARGE, 'parentTemplate' => '<div class="language-picker dropdown-list {size}"><div>{activeItem}<ul>{items}</ul></div></div>']);
?>
					<a href="javascript:;" class="btn btn-link"><i class="icon-facebook4"></i></a>
					<a href="javascript:;" class="btn btn-link"><i class="icon-twitter4"></i></a>
				</div>
				<?php 
if (Yii::$app->user->isGuest) {
    ?>
				<?php 
    echo Html::a(Yii::t('coco', 'LOGIN'), ['/user/login'], ['class' => 'login-button']);
    ?>
				<?php 
} else {
    ?>
				<?php 
    echo Html::a(Yii::t('coco', 'ÁREA RESTRITA'), ['/system'], ['class' => 'login-button']);