1
0

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 f7deca1328
commit a85d8e308d
8 changed files with 16 additions and 0 deletions

@ -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');

@ -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');

@ -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');

@ -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,

@ -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}>

@ -6,6 +6,7 @@ Translator: Ivan Cenov (jwalker@hotmail.bg)
// Colorsets
@define('THEME_COLORSET', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>');
@define('USER_STYLESHEET','');
// Layout
@define('LAYOUT_TYPE','<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (B = <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, S = <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, CF = <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)');
@define('LAYOUT_SBS','<27><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> S-B-S');

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

@ -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');