appification of the pdl editor and move advanced_theming to theme settings where it belongs
This commit is contained in:
@@ -54,6 +54,7 @@ class RedbasicConfig {
|
||||
$arr['converse_width']=get_pconfig(local_channel(),"redbasic","converse_width");
|
||||
$arr['top_photo']=get_pconfig(local_channel(),"redbasic","top_photo");
|
||||
$arr['reply_photo']=get_pconfig(local_channel(),"redbasic","reply_photo");
|
||||
$arr['advanced_theming'] = get_pconfig(local_channel(), 'redbasic', 'advanced_theming');
|
||||
return $this->form($arr);
|
||||
}
|
||||
|
||||
@@ -80,15 +81,15 @@ class RedbasicConfig {
|
||||
set_pconfig(local_channel(), 'redbasic', 'converse_width', $_POST['redbasic_converse_width']);
|
||||
set_pconfig(local_channel(), 'redbasic', 'top_photo', $_POST['redbasic_top_photo']);
|
||||
set_pconfig(local_channel(), 'redbasic', 'reply_photo', $_POST['redbasic_reply_photo']);
|
||||
set_pconfig(local_channel(), 'redbasic', 'advanced_theming', $_POST['redbasic_advanced_theming']);
|
||||
}
|
||||
}
|
||||
|
||||
function form($arr) {
|
||||
|
||||
if(get_pconfig(local_channel(), 'system', 'advanced_theming'))
|
||||
if(get_pconfig(local_channel(), 'redbasic', 'advanced_theming'))
|
||||
$expert = 1;
|
||||
|
||||
|
||||
$o .= replace_macros(get_markup_template('theme_settings.tpl'), array(
|
||||
'$submit' => t('Submit'),
|
||||
'$baseurl' => z_root(),
|
||||
@@ -112,6 +113,7 @@ class RedbasicConfig {
|
||||
'$converse_width' => array('redbasic_converse_width',t('Set maximum width of content region in pixel'),$arr['converse_width'], t('Leave empty for default width')),
|
||||
'$top_photo' => array('redbasic_top_photo', t('Set size of conversation author photo'), $arr['top_photo']),
|
||||
'$reply_photo' => array('redbasic_reply_photo', t('Set size of followup author photos'), $arr['reply_photo']),
|
||||
'$advanced_theming' => ['redbasic_advanced_theming', t('Show more custom theme settings'), $arr['advanced_theming'], '', [t('No'), t('Yes')]]
|
||||
));
|
||||
|
||||
return $o;
|
||||
|
||||
Reference in New Issue
Block a user