function run() { $base = publish(__DIR__ . '/google-code-prettify'); js_file($base . '/prettify.js'); css_file($base . '/theme/' . $this->theme . '.css'); js("prettyPrint();"); }
function run() { $base = publish(__DIR__ . '/assets'); css_file($base . '/select2/select2.css'); js_file($base . '/select2/select2.js'); if ($this->i18n === true) { js("\$(function(){\n\t\t\t\tfunction format(state) {\n\t\t\t\t if (!state.id) return state.text; // optgroup\n\t\t\t\t return \"<img class='flag' src='" . $base . "/img/\" + state.id.toLowerCase() + \".png'/>\" + state.text;\n\t\t\t\t} \n\t\t\t\t\$('#i18n').select2({\n\t\t\t\t formatResult: format,\n\t\t\t\t formatSelection: format,\n\t\t\t\t escapeMarkup: function(m) { return m; }\n\t\t\t\t}).change(function(){ \n\t\t\t\t\t\$('#i18nForm').submit();\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t;\n\t\t\t});"); echo $this->render('@app/widget/select2/views/form'); } else { js("\n\t\t \t\$(function(){\n\t\t \t\t\$('select').select2();\n\t\t \t});\n\t\t \n\t\t "); } }
function run() { if ($this->options) { $opts = Json::encode($this->options); } $base = publish(__DIR__ . '/assets'); css_file($base . '/redactor.css'); js_file($base . '/redactor.zh.js'); if (!$this->tag) { return; } js(" \n \t\t\t\$('" . $this->tag . "').redactor({$opts}); \n \t\t"); }
<?php use yii\helpers\Html; use yii\widgets\Menu; yii\web\JqueryAsset::register($this); js_file(http() . 'js/holder.js'); js_file(http() . 'misc/bootstrap/js/bootstrap.js'); css_file(http() . 'misc/bootstrap/css/bootstrap.css'); css_file(http() . 'misc/bootstrap-glyphicons/css/bootstrap-glyphicons.css'); css_file(http() . 'misc/bootstrap/css/docs.css'); js_file(theme_url() . '/app.js'); css_file(theme_url() . '/app.css'); $this->beginPage(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <title>Welcome to MinCMS</title> <?php $this->head(); ?> </head> <body> <div class="navbar navbar-inverse navbar-fixed-top bs-docs-nav"> <div class="container"> <a href="<?php echo url('site/index'); ?> " class="navbar-brand">MinCMS 2.0.1</a>
//select2 widget('select2'); js("\$(function(){\n\t\$('.flash-message').delay(2500).fadeOut();\n});"); $this->beginPage(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <title><?php echo __('backend admin'); ?> </title> <?php $this->head(); css_file('css/admin.css'); ?> </head> <body> <div class="navbar navbar-inverse navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="brand" href="<?php echo url('site/index'); ?>
?> css/style.min.css" rel="stylesheet" media="screen" type="text/css" /> <?php ## Include CSS For pages ## if (isLogin()) { css_file('login'); } if (isCD()) { css_file('cd'); } if (isSettings()) { css_file('settings'); } if (isHome()) { css_file('home'); } ## Header JS for Map Page ## if (isMap()) { echo $map_js; } // return any plugin CSS files if (!$no_plugins_active) { $plugins->getCSS(); } ?> <!-- ALL JS TO BE LOADED INTO THE FOOTER --> </head> <body id="<?php
widget('select2'); $this->beginPage(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <title><?php echo __('backend admin'); ?> </title> <?php $this->head(); css_file('misc/bootstrap/css/docs.css'); css_file('css/admin.css'); css_file(theme_url() . 'css.css'); ?> </head> <body> <?php if (uid() == 1) { ?> <div class="navbar navbar-inverse navbar-fixed-top bs-docs-nav"> <div class="container"> <a class="navbar-brand" href="<?php echo url('core/site/index'); ?> "><?php echo __('backend admin'); ?>