当前位置: 首页>>代码示例>>PHP>>正文


PHP Yii::powered方法代码示例

本文整理汇总了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() ?>
开发者ID:adsavin,项目名称:car,代码行数:30,代码来源:main.php

示例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">&copy; 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();
开发者ID:Andrew-Yanovich,项目名称:orderprocessing,代码行数:31,代码来源:main.php

示例3: date



<div id="page">
	<?php 
echo $content;
?>

	<div class="clear"></div>

	<div id="footer" >
		Copyright &copy; <?php 
echo date('Y');
?>
 by EMIS.DB
		All Rights Reserved.
	<p>	<?php 
echo Yii::powered() . " ver." . Yii::getVersion();
?>
 &nbsp; </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>
开发者ID:emisdb,项目名称:myii,代码行数:28,代码来源:main_1.php

示例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 &copy; <?php echo date('Y'); ?> by Ver&#243;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>
开发者ID:veronin,项目名称:IMV,代码行数:30,代码来源:main.php

示例5: date

?>
            </div>
    </div>



</div>

<footer class="footer">
    <div class="container">
        <p class="pull-left">&copy; <?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 
开发者ID:nepster-web,项目名称:yii2-test-job,代码行数:31,代码来源:main.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">&copy; 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 
开发者ID:jatuponp,项目名称:discovery,代码行数:31,代码来源:main.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']} &nbsp;&copy 2015 </div>
HTML;
开发者ID:songhongyu,项目名称:datecenter,代码行数:31,代码来源:user.php

示例8:

<?php

use yii\bootstrap\Nav;
Nav::begin();
echo Nav::widget(['options' => ['class' => 'nav-pills nav-stacked'], 'encodeLabels' => false, 'items' => [['label' => '&nbsp;', '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();
开发者ID:jatuponp,项目名称:rgweb,代码行数:7,代码来源:menus.php

示例9: date

			
		</section>
	</aside>

	
   <div class="content-wrapper">
		akaak
   </div>
	<footer class="footer">
		<div class="container">
		<p class="pull-left">&copy; Gosend <?php 
echo date('Y');
?>
</p>
		<p class="pull-right"><?php 
echo Yii::powered() . ' - Gosend';
?>
</p>
		</div>
	</footer>
		

	 
	 
	 
	 
	 
	 
	 
	 
	 
开发者ID:C12D,项目名称:api,代码行数:19,代码来源:main+-+gosent1.php

示例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">&copy; Rafalsky.com <?php 
echo date('Y');
?>
</p>
        <p class="pull-right"><?php 
echo \Yii::powered();
?>
</p>
    </div>
</footer>
<?php 
$this->endContent();
开发者ID:rafalsky,项目名称:home-finance,代码行数:31,代码来源:base.php

示例11: date

<?php

use fourteenmeister\extensions\SemanticUI\collections\Menu;
echo Menu::widget(['id' => 'footer', 'options' => ['tag' => 'footer', 'class' => 'small bottom fixed'], 'items' => [['label' => '&copy; 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;']]]]);
开发者ID:fourteenmeister,项目名称:yii2-app-advanced,代码行数:4,代码来源:footer.php

示例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>
开发者ID:emisdb,项目名称:elyii,代码行数:30,代码来源:main_adm.php

示例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">&copy; 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();
开发者ID:dextercool,项目名称:FreeRadiusManager,代码行数:31,代码来源:main.php


注:本文中的Yii::powered方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。