本文整理汇总了PHP中Yii::powered方法的典型用法代码示例。如果您正苦于以下问题:PHP Yii::powered方法的具体用法?PHP Yii::powered怎么用?PHP Yii::powered使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Yii
的用法示例。
在下文中一共展示了Yii::powered方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
]);
if (!empty($this->params['top-menu']) && isset($this->params['nav-items'])) {
echo Nav::widget([
'options' => ['class' => 'nav navbar-nav'],
'items' => $this->params['nav-items'],
]);
}
echo Nav::widget([
'options' => ['class' => 'nav navbar-nav navbar-right'],
'items' => $this->context->module->navbar,
]);
NavBar::end();
?>
<div class="container">
<?= $content ?>
</div>
<footer class="footer">
<div class="container">
<p class="pull-right"><?= Yii::powered() ?></p>
</div>
</footer>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
示例2: isset
<div class="container">
<?php
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
<?php
echo $content;
?>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="pull-left">© Order Processing <?php
echo date('Y');
?>
</p>
<p class="pull-right"><?php
echo Yii::powered();
?>
</p>
</div>
</footer>
<?php
$this->endBody();
?>
</body>
</html>
<?php
$this->endPage();
示例3: date
<div id="page">
<?php
echo $content;
?>
<div class="clear"></div>
<div id="footer" >
Copyright © <?php
echo date('Y');
?>
by EMIS.DB
All Rights Reserved.
<p> <?php
echo Yii::powered() . " ver." . Yii::getVersion();
?>
</p>
</div><!-- footer -->
</div><!-- page -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>-->
<?php
Yii::app()->getClientScript()->registerCoreScript('jquery', CClientScript::POS_END);
Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl . '/css/bootstrap/js/bootstrap.min.js', CClientScript::POS_END);
?>
</body>
</html>
示例4: if
array('label'=>'Logout ('.Yii::app()->user->name.')'
, 'url'=>Yii::app()->user->ui->logoutUrl
, 'visible'=>!Yii::app()->user->isGuest),
/* array('label'=>'Ingresar', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
array('label'=>'r ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)*/
)
)); ?>
</div><!-- mainmenu -->
<?php if(isset($this->breadcrumbs)):?>
<?php $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
'links'=>$this->breadcrumbs,
)); ?><!-- breadcrumbs -->
<?php endif?>
<?php echo $content; ?>
<div class="clear"></div>
<div id="footer">
Copyright © <?php echo date('Y'); ?> by Verónica Nin<br/>
<a href="http://www.uncoma.edu.ar/">Universidad Nacional del Comahue</a><br/>
All Rights Reserved<br/>
<?php echo Yii::powered(); ?>
</div><!-- footer -->
</div><!-- page -->
</body>
</html>
示例5: date
?>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="pull-left">© <?php
echo date('Y');
?>
</p>
<p class="pull-right"><?php
echo str_replace('Yii', 'Yii2', Yii::powered());
?>
</p>
</div>
</footer>
<?php
yii\widgets\Pjax::end();
?>
<?php
$this->endBody();
?>
</body>
</html>
<?php
示例6: isset
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
<?php
echo $content;
?>
</div>
</div>
<footer class="footer" style="background-color: #212121; color: #FFFFFF;">
<div class="container">
<p class="pull-left">© My Company <?php
echo date('Y');
?>
</p>
<p class="pull-right"><?php
echo Yii::powered() . ' ' . Yii::getVersion();
?>
</p>
</div>
</footer>
<!-- Go To Top
============================================= -->
<div id="gotoTop" class="icon-angle-up"></div>
<?php
$this->endBody();
?>
</body>
</html>
<?php
示例7:
<?php
use yii\helpers\Html;
$html['powered'] = Yii::powered();
$this->beginContent('@service/views/layouts/base.php');
echo $this->renderFile('@service/views/elements/nav.php');
// Render CSS
$init_css = <<<CSS
@media (max-width: 479px) {
.navbar-fixed-top + .main-container {
padding-top: 30px;
}
.navbar-fixed-top.navbar-collapse + .main-container {
padding-top: 45px;
}
}
CSS;
$this->registerCss($init_css);
$html = <<<HTML
<div class="main-container" id="main-container">
\t\t<div class="main-container-inner">
\t\t\t<div class="page-content">
\t\t\t\t{$content}
\t\t\t</div>
\t\t</div>
\t\t<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
\t\t\t<i class="icon-double-angle-up icon-only bigger-110"></i>
\t\t</a>
\t</div>
<div class="mtm copyright_normal text-center">{$html['powered']} © 2015 </div>
HTML;
示例8:
<?php
use yii\bootstrap\Nav;
Nav::begin();
echo Nav::widget(['options' => ['class' => 'nav-pills nav-stacked'], 'encodeLabels' => false, 'items' => [['label' => ' ', 'options' => ['class' => 'nav-header disabled'], 'visible' => !Yii::$app->user->isGuest], ['label' => '<i class="glyphicon glyphicon-pencil"></i> เขียนบทความ', 'url' => ['/admin/article/update'], 'visible' => Yii::$app->user->can('Editor')], ['label' => '<i class="glyphicon glyphicon-book"></i> บริหารบทความ', 'url' => ['/admin/article/index'], 'visible' => Yii::$app->user->can('Editor')], ['label' => '<i class="glyphicon glyphicon-book"></i> บริหารเอกสารดาวน์โหลด', 'url' => ['/admin/document/index'], 'active' => Yii::$app->controller->id == 'document', 'visible' => Yii::$app->user->can('Editor')], ['label' => '<i class="glyphicon glyphicon-folder-open"></i> บริหารหมวดหมู่บทความ', 'url' => ['/admin/categories/index'], 'active' => Yii::$app->controller->id == 'categories', 'visible' => Yii::$app->user->can('Authority')], ['label' => '<i class="glyphicon glyphicon-tasks"></i> บริหารเมนูเว็บไซต์', 'url' => ['/admin/menus/index'], 'active' => Yii::$app->controller->id == 'menus', 'visible' => Yii::$app->user->can('Editor')], ['label' => '<i class="glyphicon glyphicon-picture"></i> บริหารภาพสไลด์', 'url' => ['/admin/slider/index'], 'active' => Yii::$app->controller->id == 'slider', 'visible' => Yii::$app->user->can('Administrator')], ['label' => '<i class="glyphicon glyphicon-picture"></i> บริหารภาพกิจกรรม', 'url' => ['/admin/gallery/index'], 'active' => Yii::$app->controller->id == 'gallery', 'visible' => Yii::$app->user->can('Administrator')], ['label' => '<i class="glyphicon glyphicon-user"></i> บริหารข้อมูลผู้ใช้', 'url' => ['/admin/user/index'], 'active' => Yii::$app->controller->id == 'user', 'visible' => Yii::$app->user->can('Authority')], ['label' => '<i class="glyphicon glyphicon-stats"></i> สถิติการเยื่ยมชมเว็บไซต์', 'url' => ['/admin/stat/index'], 'active' => Yii::$app->controller->id == 'stat', 'visible' => !Yii::$app->user->isGuest]]]);
Nav::end();
echo '<br/>' . Yii::powered() . ': ' . Yii::getVersion();
示例9: date
</section>
</aside>
<div class="content-wrapper">
akaak
</div>
<footer class="footer">
<div class="container">
<p class="pull-left">© Gosend <?php
echo date('Y');
?>
</p>
<p class="pull-right"><?php
echo Yii::powered() . ' - Gosend';
?>
</p>
</div>
</footer>
示例10: array_map
NavBar::begin(['brandLabel' => \Yii::$app->name, 'brandUrl' => \Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]);
?>
<?php
echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => [['label' => \Yii::t('frontend', 'Home'), 'url' => ['/site/index']], ['label' => \Yii::t('frontend', 'About'), 'url' => ['/page/view', 'slug' => 'about']], ['label' => \Yii::t('frontend', 'Articles'), 'url' => ['/article/index']], ['label' => \Yii::t('frontend', 'Contact'), 'url' => ['/site/contact']], ['label' => \Yii::t('frontend', 'Signup'), 'url' => ['/user/sign-in/signup'], 'visible' => \Yii::$app->user->isGuest], ['label' => \Yii::t('frontend', 'Login'), 'url' => ['/user/sign-in/login'], 'visible' => \Yii::$app->user->isGuest], ['label' => \Yii::$app->user->isGuest ? '' : \Yii::$app->user->identity->getPublicIdentity(), 'visible' => !\Yii::$app->user->isGuest, 'items' => [['label' => \Yii::t('frontend', 'Settings'), 'url' => ['/user/default/index']], ['label' => \Yii::t('frontend', 'Backend'), 'url' => \Yii::getAlias('@backendUrl'), 'visible' => \Yii::$app->user->can('manager')], ['label' => \Yii::t('frontend', 'Wallet'), 'url' => \Yii::getAlias('@walletUrl')], ['label' => \Yii::t('frontend', 'Logout'), 'url' => ['/user/sign-in/logout'], 'linkOptions' => ['data-method' => 'post']]]], ['label' => \Yii::t('frontend', 'Language'), 'items' => array_map(function ($code) {
return ['label' => \Yii::$app->params['availableLocales'][$code], 'url' => ['/site/set-locale', 'locale' => $code], 'active' => \Yii::$app->language === $code];
}, array_keys(\Yii::$app->params['availableLocales']))]]]);
?>
<?php
NavBar::end();
?>
<?php
echo $content;
?>
</div>
<footer class="footer">
<div class="container">
<p class="pull-left">© Rafalsky.com <?php
echo date('Y');
?>
</p>
<p class="pull-right"><?php
echo \Yii::powered();
?>
</p>
</div>
</footer>
<?php
$this->endContent();
示例11: date
<?php
use fourteenmeister\extensions\SemanticUI\collections\Menu;
echo Menu::widget(['id' => 'footer', 'options' => ['tag' => 'footer', 'class' => 'small bottom fixed'], 'items' => [['label' => '© Custom Yii2 Advanced ' . date('Y'), 'url' => 'https://github.com/fourteenmeister/yii2-app-advanced', 'encode' => false, 'options' => ['class' => 'header', 'target' => '_blank']]], 'rightMenuItems' => [['label' => Yii::powered(), 'encode' => false, 'options' => ['style' => 'display: block;']]]]);
示例12: array
<?php
$this->widget('zii.widgets.CBreadcrumbs', array('links' => $this->breadcrumbs));
?>
<!-- breadcrumbs -->
<?php
}
?>
<?php
echo $content;
?>
<p class="clear" />
</div><!-- page -->
</div> <!--wrap-right-->
<p class="clear"/>
<div id="footer" style="margin-top:5px;">
<?php
echo trim(Yii::powered() . " ver." . Yii::getVersion());
?>
</div>
</div> <!--wrapper-->
</body>
</html>
示例13: isset
<div class="containerd" style="padding:1%">
<?php
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>
<?php
echo $content;
?>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="pull-left">© My Company <?php
echo date('Y');
?>
</p>
<p class="pull-right"><?php
Yii::powered();
?>
Kenk Dev</p>
</div>
</footer>
<?php
$this->endBody();
?>
</body>
</html>
<?php
$this->endPage();