Exemple #1
0
<?php

use yii\helpers\Url;
use yii\bootstrap\Modal;
use dosamigos\fileupload\FileUpload;
use app\components\XeditableWidget;
/* @var $this yii\web\View */
/* @var $model app\models\Release */
\app\assets\ReleaseAsset::register($this);
\app\assets\BootboxAsset::register($this);
\app\assets\HandlebarsAsset::register($this);
\app\assets\JsCookieAsset::register($this);
$this->title = $model->artist->getComname() . ' - ' . $model->getComname();
$this->params['breadcrumbs'][] = ['label' => 'Artists', 'url' => ['artist/index']];
$this->params['breadcrumbs'][] = ['label' => $model->artist->getComname(), 'url' => ['release/index', 'id' => $model->artist->id]];
$this->params['breadcrumbs'][] = $this->title;
function echoTrack($track = null, $visible = true)
{
    if ($track) {
        $id = $track->id;
        $comname = $track->getComname();
        $number = $track->number;
        $url = $track->file->getUrl();
    } else {
        $id = '{{id}}';
        $comname = '{{comname}}';
        $number = '{{number}}';
        $url = '{{url}}';
    }
    ?>
    <div id="track-container-<?php 
Exemple #2
0
<?php

/* @var $this \yii\web\View */
/* @var $content string */
use app\assets\HandlebarsAsset;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
AppAsset::register($this);
HandlebarsAsset::register($this);
$this->registerJs('
var STEAMID = ' . Yii::$app->user->identity->steamid . ';
var USERNAME = "******";
');
$this->beginPage();
?>
<!DOCTYPE html>
<html lang="<?php 
echo Yii::$app->language;
?>
">
<head>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?php 
echo Html::csrfMetaTags();