コード例 #1
0
 /**
  * @param string $name
  * @param array $options
  */
 public function __construct($name, $options = [])
 {
     $this->service = $this->services[$name];
     $this->serviceIcon = FA::icon($this->service['icon']);
     $this->caption = $this->serviceIcon . $this->defaultCaption . $this->service['name'];
     Html::addCssClass($options, self::BTN);
     Html::addCssClass($options, self::BTN_BLOCK);
     Html::addCssClass($options, self::BTN_SOCIAL);
     Html::addCssClass($options, self::BTN . '-' . $name);
     $this->options = $options;
 }
コード例 #2
0
					</li>
				</ul>
			</li><!-- Multi-Level Dropdown -->
			<li>
				<a href="#"><?php 
echo FA::fw('files-o');
?>
 Sample Pages<?php 
echo $arrowIcon;
?>
</a>
				<?php 
echo Nav::widget(['encodeLabels' => false, 'options' => ['class' => 'nav nav-second-level'], 'items' => [['label' => 'Blank Page', 'url' => ['/site/page', 'view' => 'blank']], ['label' => '<span class="glyphicon glyphicon-user fa-fw"></span> Signup Page', 'url' => ['/site/signup'], 'visible' => Yii::$app->user->isGuest], ['label' => '<span class="fa fa-lock fa-fw"></span> Login Page', 'url' => ['/site/login'], 'visible' => Yii::$app->user->isGuest]]]);
?>
			</li><!-- Sample Pages -->
			<li>
				<a href="#"><?php 
echo FA::fw('coffee');
?>
 Developer<?php 
echo $arrowIcon;
?>
</a>
				<?php 
echo Nav::widget(['encodeLabels' => false, 'options' => ['class' => 'nav nav-second-level'], 'items' => [['label' => '<span class="fa fa-file-code-o fa-fw"></span> Gii', 'url' => ['/gii']], ['label' => '<span class="fa fa-dashboard fa-fw"></span> Debug', 'url' => ['/debug']]]]);
?>
			</li><!-- Developer -->
		</ul>
	</div>
</section>
コード例 #3
0
	<div class="row">
		<div class="col-lg-12">


		</div>
	</div>

	<!-- /### NOTE ### -->

	<!-- this goes on every site file in p2made demos -->
	<br><div class="alert alert-success" role="alert">
		<ul class="fa-ul">
			<li>
				<?php 
echo FA::fw(FA::_CODE)->li()->size(FA::SIZE_LARGE);
?>
 <code><?php 
echo __FILE__;
?>
</code>
			</li>
		</ul>
	</div>

</div><!-- /#content-wrapper -->


<!-- ##### ^ ##### ^ MARKER / SEPARATOR ^ ##### ^ ##### -->

コード例 #4
0
 */
?>
<div id="content-wrapper">
	<?php 
echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]);
?>

	<div class="jumbotron">
		<h1><?php 
echo Html::encode($this->title);
?>
</h1>
		Icons bundled with
		<a href="http://getbootstrap.com" target="_blank">
			Bootstrap <?php 
echo FA::icon(FA::_EXTERNAL_LINK);
?>
		</a>.
	</div>

	<div class="body-content">

		<section>
			<div class="panel panel-info">
				<div class="panel-heading">All Glyphicons</div>
				<div class="panel-body">
					<div class="row">
					<?php 
foreach ($glyphicons as $icon) {
    ?>
						<div class="fa col-md-4">
コード例 #5
0
 by Pedro fp, on the
			<a href="https://en.wikipedia.org/wiki/Sunshine_Coast,_Queensland" target="_blank">
				Sunshine Coast <?php 
echo FA::icon(FA::_EXTERNAL_LINK);
?>
			</a> of
			<a href="https://en.wikipedia.org/wiki/Queensland" target="_blank">
				Queensland <?php 
echo FA::icon(FA::_EXTERNAL_LINK);
?>
			</a>,
			<a href="https://en.wikipedia.org/wiki/Australia" target="_blank">
				Australia <?php 
echo FA::icon(FA::_EXTERNAL_LINK);
?>
			</a>
			<?php 
echo FA::icon('copyright');
?>
 <?php 
echo date('Y');
?>
		</p>

		<p class="pull-right"><?php 
echo Yii::powered();
?>
</p>
	</div>
</footer>