Dotclear

source: themes/papierpeint/_public.php @ 22

Revision 22, 932 bytes checked in by olivier, 15 years ago (diff)

Added Steven's themes: Flavin, Papier Peint and Warped.

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3#
4# Copyright (c) 2008 Steven Tlucek
5#
6# This work is licensed under the Creative Commons
7# Attribution-Share Alike 3.0 Unported License.
8# To view a copy of this license, visit
9# http://creativecommons.org/licenses/by-sa/3.0/ or send a
10# letter to Creative Commons, 171 Second Street, Suite 300,
11# San Francisco, California, 94105, USA.
12#
13# -- END LICENSE BLOCK ------------------------------------
14if (!defined('DC_RC_PATH')) { return; }
15
16$core->addBehavior('publicHeadContent','papierpeint_publicHeadContent');
17
18function papierpeint_publicHeadContent(&$core)
19{
20     $style = $core->blog->settings->papierpeint_style;
21     if (!preg_match('/^1930|1950|1970$/',$style)) {
22          $style = '1950';
23     }
24     
25     $url = $core->blog->settings->themes_url.'/'.$core->blog->settings->theme;
26     echo '<style type="text/css">'."\n".
27     "@import url(".$url."/".$style.".css);\n".
28     "</style>\n";
29}
30?>
Note: See TracBrowser for help on using the repository browser.

Sites map