Files
oav/dotclear._no/themes/japonisant/_public.php
2023-03-20 12:18:38 +01:00

41 lines
1.2 KiB
PHP
Executable File

<?php
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of Dotclear 2.
#
# Copyright (c) 2003-2008 Olivier Meunier and contributors
# Licensed under the GPL version 2.0 license.
# See LICENSE file or
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
if (!defined('DC_RC_PATH')) { return; }
$core->addBehavior('publicHeadContent',array('tplCustomTheme','publicHeadContent'));
class tplCustomTheme
{
public static function publicHeadContent($core)
{
echo
'<style type="text/css">'."\n".
'@import url('.$core->blog->settings->public_url.'/japonisant_style.css);'."\n".
"</style>\n";
}
}
// style pour l'affichage du menu
$core->addBehavior('publicHeadContent','JaponisantStructure_publicHeadContent');
function JaponisantStructure_publicHeadContent($core)
{
$style = $core->blog->settings->themes->JaponisantStructure_style;
if (!preg_match('/^structure-fixed-2col-left|structure-fixed-2col-right$/',$style)) {
$style = 'structure-fixed-2col-right';
}
$url = $core->blog->settings->themes_url.'/'.$core->blog->settings->theme;
echo '<link rel="stylesheet" type="text/css" media="screen" href="'.$url."/".$style.".css\" />\n";
}
?>