Dotclear

source: themes/customCSS/_public.php @ 3874:ab8368569446

Revision 3874:ab8368569446, 624 bytes checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

short notation for array (array() → [])

RevLine 
[0]1<?php
[3731]2/**
3 * @brief Custom, a theme for Dotclear 2
4 *
5 * @package Dotclear
6 * @subpackage Themes
7 *
8 * @copyright Olivier Meunier & Association Dotclear
9 * @copyright GPL-2.0-only
10 */
11
[3531]12namespace themes\customcss;
13
[3730]14if (!defined('DC_RC_PATH')) {return;}
[0]15
[3874]16$core->addBehavior('publicHeadContent', [__NAMESPACE__ . '\tplCustomTheme', 'publicHeadContent']);
[0]17
18class tplCustomTheme
19{
[3730]20    public static function publicHeadContent($core)
21    {
22        echo
23        '<style type="text/css">' . "\n" .
24        '@import url(' . $core->blog->settings->system->public_url . '/custom_style.css);' . "\n" .
25            "</style>\n";
26    }
[0]27}
Note: See TracBrowser for help on using the repository browser.

Sites map