Version 1.2.1 ()
------------------------------------------------------------------------ * Bulletproof template can now include custom user stylesheets (*_style.css) in the dropdown of a colorset. (garvinhicking)
This commit is contained in:
parent
9048d79123
commit
ae6d56830b
@ -35,6 +35,12 @@ Version 1.3 ()
|
|||||||
* Full pingback support, fallback trackback method for WordPress
|
* Full pingback support, fallback trackback method for WordPress
|
||||||
blogs. (brockhaus)
|
blogs. (brockhaus)
|
||||||
|
|
||||||
|
Version 1.2.1 ()
|
||||||
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Bulletproof template can now include custom user stylesheets
|
||||||
|
(*_style.css) in the dropdown of a colorset. (garvinhicking)
|
||||||
|
|
||||||
Version 1.2 (August 26th, 2007)
|
Version 1.2 (August 26th, 2007)
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -8,21 +8,35 @@ $probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $sere
|
|||||||
if (file_exists($probelang)) {
|
if (file_exists($probelang)) {
|
||||||
include $probelang;
|
include $probelang;
|
||||||
}
|
}
|
||||||
|
|
||||||
include dirname(__FILE__) . '/lang_en.inc.php';
|
include dirname(__FILE__) . '/lang_en.inc.php';
|
||||||
|
|
||||||
$serendipity['smarty']->assign(array('currpage'=> "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']));
|
$serendipity['smarty']->assign(array('currpage'=> "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']));
|
||||||
|
|
||||||
|
$colorsets = array(
|
||||||
|
'purple' => BP_COLORSET_OPT1,
|
||||||
|
'blue' => BP_COLORSET_OPT2,
|
||||||
|
'green' => BP_COLORSET_OPT3,
|
||||||
|
'blank' => BP_COLORSET_DEF
|
||||||
|
);
|
||||||
|
|
||||||
|
if ($serendipity['GET']['adminModule'] == 'templates') {
|
||||||
|
$css_files = glob(dirname(__FILE__) . '/*_style.css');
|
||||||
|
foreach($css_files AS $css_file) {
|
||||||
|
$css_file = str_replace('_style.css', '', basename($css_file));
|
||||||
|
if (!isset($colorsets[$css_file])) {
|
||||||
|
$colorsets[$css_file] = $css_file;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$template_config = array(
|
$template_config = array(
|
||||||
array(
|
array(
|
||||||
'var' => 'colorset',
|
'var' => 'colorset',
|
||||||
'name' => THEME_COLORSET,
|
'name' => THEME_COLORSET,
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'default' => 'purple',
|
'default' => 'purple',
|
||||||
'select_values' => array('purple' => BP_COLORSET_OPT1,
|
'select_values' => $colorsets
|
||||||
'blue' => BP_COLORSET_OPT2,
|
|
||||||
'green' => BP_COLORSET_OPT3,
|
|
||||||
'blank' => BP_COLORSET_DEF)
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'var' => 'layouttype',
|
'var' => 'layouttype',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user