Inheritance: extends yii\web\AssetBundle
コード例 #1
0
 public function testMain()
 {
     AssetBundle::register(\Yii::$app->getView());
 }
コード例 #2
0
ファイル: index.php プロジェクト: BoBRoID/plochadka
    next: '#carousel-next',
    pagination: "#carousel-pagination",
    mousewheel: true,
    swipe: {
        onMouse: true,
        onTouch: true
    }
});

$(function() {
    $("ul.tabs").tabs("> .pane", {effect: 'fade', fadeIn: 200});
});
SCRIPT;
$this->registerJs($js);
\frontend\assets\FeauteredAdsAsset::register($this);
\rmrevin\yii\fontawesome\AssetBundle::register($this);
echo \common\widgets\MapWidget::widget();
?>

<section id="featured-list">
    <div class="container">
        <h3><?php 
echo \Yii::t('site', 'Check out our Premium Featured Ads');
?>
</h3>
        <div id="tabs" class="full">
            <ul class="tabs quicktabs-tabs quicktabs-style-nostyle">
                <li class="grid-feat-ad-style"><a class="" href="#"><?php 
echo '';
?>
</a></li>
コード例 #3
0
ファイル: form.php プロジェクト: NullRefExcep/yii2-cms
<?php

use nullref\cms\assets\TreeAsset;
use nullref\cms\generators\block_migration\Generator;
use rmrevin\yii\fontawesome\AssetBundle;
use wbraganca\fancytree\FancytreeWidget;
use yii\helpers\Html;
use yii\web\JsExpression;
use yii\web\View;
use yii\widgets\ActiveForm;
/* @var $this View */
/* @var $form ActiveForm */
/* @var $generator Generator */
$this->registerAssetBundle(AssetBundle::className());
$this->registerAssetBundle(TreeAsset::className());
?>

<div class="migration-form">
    <?php 
echo $form->field($generator, 'path')->textInput();
echo $form->beginField($generator, 'blocks');
echo Html::activeLabel($generator, 'blocks');
echo FancytreeWidget::widget(['id' => 'blocksTree', 'options' => ['selectMode' => 3, 'source' => Generator::getNestedList($generator->blocks), 'checkbox' => true, 'titlesTabbable' => true, 'clickFolderMode' => 3, 'init' => new JsExpression('app.initTree'), 'select' => new JsExpression('app.selectTreeNode'), 'extensions' => ["glyph", "edit", "wide"], 'activeVisible' => true, 'glyph' => ['map' => ['doc' => "fa fa-file-o", 'docOpen' => "fa fa-file", 'checkbox' => "fa fa-square-o", 'checkboxSelected' => "fa fa-check-square-o", 'checkboxUnknown' => "fa fa-share", 'error' => "fa fa-warning-sign", 'expanderClosed' => "fa fa-plus-square-o", 'expanderLazy' => "fa fa-spinner fa-spin", 'expanderOpen' => "fa fa-minus-square-o", 'folder' => "fa fa-folder-o", 'folderOpen' => "fa fa-folder-open-o", 'loading' => "fa fa-refresh"]]]]);
$form->endField();
?>
</div>
</div>