BP: Added theme option to use user stylesheet to config.inc.php and index.tpl. Also added lang variables for it to German and English lang files, and prepared Bulgarian lang files.

This commit is contained in:
Matthias Mees 2007-12-04 11:29:35 +00:00
parent efd81bf146
commit d6f894d704
8 changed files with 16 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Translator: Ivan Cenov (jwalker@hotmail.bg)
// Colorsets
@define('THEME_COLORSET', 'Цветова схема');
@define('USER_STYLESHEET','');
// Layout
@define('LAYOUT_TYPE','Общо оформление (B = Статия, S = Странична приставка, CF = Първо съдържанието)');
@define('LAYOUT_SBS','Три колони S-B-S');

View File

@ -1,6 +1,7 @@
<?php
// Colorsets
@define('THEME_COLORSET', 'Farbwahl');
@define('USER_STYLESHEET','Zusätzliches Benutzerstylesheet einbinden. Dieses Stylesheet muss vom Benutzer im Template-Verzeichnis angelegt werden. Es muss user.css heißen und kann benutzt werden, um ausgewählte Styles zu überschreiben.');
// Layout
@define('LAYOUT_TYPE','Layout des Blogs (B = Blogeinträge, S = Seitenleiste, CF = Content first)');
@define('LAYOUT_SBS','Dreispaltig S-B-S');

View File

@ -1,6 +1,7 @@
<?php
// Colorsets
@define('THEME_COLORSET', 'Colorset');
@define('USER_STYLESHEET','Use additional user stylesheet. Users have to create this stylesheet in the template directory. It has to be named user.css and can be used to override selected styles.');
// Layout
@define('LAYOUT_TYPE','Blog layout (B = Blog entriee, S = Sidebar, CF = Content first)');
@define('LAYOUT_SBS','Three columns S-B-S');

View File

@ -31,6 +31,14 @@ $template_config = array(
'default' => 'purple',
'select_values' => $colorsets
),
array(
'var' => 'userstylesheet',
'name' => USER_STYLESHEET,
'type' => 'radio',
'default' => 'false',
'radio' => array('value' => array('true', 'false'),
'desc' => array(YES, NO))
),
array(
'var' => 'layouttype',
'name' => LAYOUT_TYPE,

View File

@ -50,6 +50,8 @@
{if $template_option.jscolumns == 'true'}<script type="text/javascript" src="{$serendipityHTTPPath}templates/{$template}/js/p7_eqCols2_10.js"></script>{/if}
<!-- print media stylesheet -->
<link rel="stylesheet" type="text/css" href="{serendipity_getFile file="print.css"}" media="print" />
<!-- additional user stylesheet: this can be used to override selected styles -->
{if $template_option.userstylesheet == 'true'}<link rel="stylesheet" type="text/css" href="{serendipity_getFile file="user.css"}" media="screen" />{/if}
</head>
<body{if $template_option.jscolumns == 'true'} onload="P7_equalCols2(0,{if $template_option.layouttype != '1col'}'content','DIV',{/if}'serendipityLeftSideBar','DIV','serendipityRightSideBar','DIV')"{/if}>

View File

@ -6,6 +6,7 @@ Translator: Ivan Cenov (jwalker@hotmail.bg)
// Colorsets
@define('THEME_COLORSET', 'Цветова схема');
@define('USER_STYLESHEET','');
// Layout
@define('LAYOUT_TYPE','Общо оформление (B = Статия, S = Странична приставка, CF = Първо съдържанието)');
@define('LAYOUT_SBS','Три колони S-B-S');

View File

@ -1,6 +1,7 @@
<?php
// Colorsets
@define('THEME_COLORSET', 'Farbwahl');
@define('USER_STYLESHEET','Zusätzliches Benutzerstylesheet einbinden. Dieses Stylesheet muss vom Benutzer im Template-Verzeichnis angelegt werden. Es muss user.css heißen und kann benutzt werden, um ausgewählte Styles zu überschreiben.');
// Layout
@define('LAYOUT_TYPE','Layout des Blogs (B = Blogeinträge, S = Seitenleiste, CF = Content first)');
@define('LAYOUT_SBS','Dreispaltig S-B-S');

View File

@ -1,6 +1,7 @@
<?php
// Colorsets
@define('THEME_COLORSET', 'Colorset');
@define('USER_STYLESHEET','Use additional user stylesheet. Users have to create this stylesheet in the template directory. It has to be named user.css and can be used to override selected styles.');
// Layout
@define('LAYOUT_TYPE','Blog layout (B = Blog entriee, S = Sidebar, CF = Content first)');
@define('LAYOUT_SBS','Three columns S-B-S');