/** * prepareExecute * * @return void */ protected function prepareExecute() { $this->checkAccess(); // Assets BootstrapScript::css(); BootstrapScript::script(); // Language TranslatorHelper::loadAll($this, 'ini'); }
/** * prepareExecute * * @return void */ protected function prepareExecute() { $this->checkAccess(); // Assets BootstrapScript::css(); BootstrapScript::script(); Asset::addStyle('admin/css/admin.css'); Asset::addStyle('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css'); // Language TranslatorHelper::loadAll($this, 'ini'); }
/** * Add VueStrap.js * * @see https://yuche.github.io/vue-strap/ * * @return void */ public static function strap() { if (!static::inited(__METHOD__)) { static::core(); BootstrapScript::script(); static::addJS(static::phoenixName() . '/js/vue/vue-strap.min.js'); } }
{{-- Part of Windwalker project. --}} <?php use Phoenix\Asset\Asset; use Phoenix\Script\BootstrapScript; BootstrapScript::css(); BootstrapScript::script(); Asset::addStyle('css/main.css'); Asset::addStyle('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css'); Asset::addStyle('css/github-markdown-css.min.css'); if (is_file(WINDWALKER_PUBLIC . '/media/css/custom.css')) { Asset::addStyle('css/custom.css'); } ?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>{{ \Phoenix\Html\Document::getPageTitle() }}</title> <link rel="shortcut icon" type="image/x-icon" href="{{ $uri['media.path'] }}images/favicon.ico" /> <meta name="generator" content="Windwalker Framework" /> {!! \Phoenix\Html\HtmlHeader::renderMetadata() !!} @yield('meta') {!! \Phoenix\Asset\Asset::renderStyles(true) !!} @yield('style') {!! \Phoenix\Html\HtmlHeader::renderCustomTags() !!} </head> <body class="natika-body {{ $package->getName() }}-body view-{{ $view->name }} layout-{{ $view->layout }} category-{{ isset($currentCategory) ? $currentCategory->get('alias', 'root') : null }}">