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() → [])

Line 
1<?php
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
12namespace themes\customcss;
13
14if (!defined('DC_RC_PATH')) {return;}
15
16$core->addBehavior('publicHeadContent', [__NAMESPACE__ . '\tplCustomTheme', 'publicHeadContent']);
17
18class tplCustomTheme
19{
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    }
27}
Note: See TracBrowser for help on using the repository browser.

Sites map