remove more unused $vars
This commit is contained in:
parent
d1dd883d88
commit
b3ff6da6bc
@ -35,7 +35,6 @@ function theme_content(&$a) {
|
|||||||
$arr['nav_min_opacity']=get_pconfig(local_channel(),"redbasic","nav_min_opacity");
|
$arr['nav_min_opacity']=get_pconfig(local_channel(),"redbasic","nav_min_opacity");
|
||||||
$arr['top_photo']=get_pconfig(local_channel(),"redbasic","top_photo");
|
$arr['top_photo']=get_pconfig(local_channel(),"redbasic","top_photo");
|
||||||
$arr['reply_photo']=get_pconfig(local_channel(),"redbasic","reply_photo");
|
$arr['reply_photo']=get_pconfig(local_channel(),"redbasic","reply_photo");
|
||||||
$arr['sloppy_photos']=get_pconfig(local_channel(),"redbasic","sloppy_photos");
|
|
||||||
return redbasic_form($a, $arr);
|
return redbasic_form($a, $arr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,7 +72,6 @@ function theme_post(&$a) {
|
|||||||
set_pconfig(local_channel(), 'redbasic', 'nav_min_opacity', $_POST['redbasic_nav_min_opacity']);
|
set_pconfig(local_channel(), 'redbasic', 'nav_min_opacity', $_POST['redbasic_nav_min_opacity']);
|
||||||
set_pconfig(local_channel(), 'redbasic', 'top_photo', $_POST['redbasic_top_photo']);
|
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', 'reply_photo', $_POST['redbasic_reply_photo']);
|
||||||
set_pconfig(local_channel(), 'redbasic', 'sloppy_photos', $_POST['redbasic_sloppy_photos']);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,6 @@ if(! $a->install) {
|
|||||||
$converse_width=get_pconfig($uid,"redbasic","converse_width");
|
$converse_width=get_pconfig($uid,"redbasic","converse_width");
|
||||||
$converse_center=get_pconfig($uid,"redbasic","converse_center");
|
$converse_center=get_pconfig($uid,"redbasic","converse_center");
|
||||||
$nav_min_opacity=get_pconfig($uid,'redbasic','nav_min_opacity');
|
$nav_min_opacity=get_pconfig($uid,'redbasic','nav_min_opacity');
|
||||||
$sloppy_photos=get_pconfig($uid,'redbasic','sloppy_photos');
|
|
||||||
$top_photo=get_pconfig($uid,'redbasic','top_photo');
|
$top_photo=get_pconfig($uid,'redbasic','top_photo');
|
||||||
$reply_photo=get_pconfig($uid,'redbasic','reply_photo');
|
$reply_photo=get_pconfig($uid,'redbasic','reply_photo');
|
||||||
|
|
||||||
@ -376,33 +375,15 @@ $options = array (
|
|||||||
'$top_photo' => $top_photo,
|
'$top_photo' => $top_photo,
|
||||||
'$reply_photo' => $reply_photo,
|
'$reply_photo' => $reply_photo,
|
||||||
'$infomess_bgcolour' => $infomess_bgcolour,
|
'$infomess_bgcolour' => $infomess_bgcolour,
|
||||||
'$alert_txtcolour' => $alert_txtcolour,
|
|
||||||
'$alert_bgcolour' => $alert_bgcolour,
|
|
||||||
'$alert_bordercol' => $alert_bordercol,
|
|
||||||
'$alert_gradientcol' => $alert_gradientcol,
|
|
||||||
'$advperm_bgcolour' => $advperm_bgcolour,
|
|
||||||
'$advperm_bordercol' => $advperm_bordercol,
|
|
||||||
'$advperm_gradientcol' => $advperm_gradientcol,
|
|
||||||
'$cal_bgcolour' => $cal_bgcolour,
|
|
||||||
'$chat_txtbgcol' => $chat_txtbgcol,
|
|
||||||
'$fancybox_bgcolour' => $fancybox_bgcolour,
|
|
||||||
'$pmenu_top' => $pmenu_top,
|
'$pmenu_top' => $pmenu_top,
|
||||||
'$pmenu_reply' => $pmenu_reply,
|
'$pmenu_reply' => $pmenu_reply,
|
||||||
'$wwtop' => $wwtop,
|
|
||||||
'$comment_indent' => $comment_indent,
|
'$comment_indent' => $comment_indent,
|
||||||
'$main_width' => $main_width,
|
'$main_width' => $main_width,
|
||||||
'$comment_padding' => $comment_padding,
|
|
||||||
'$admintable_hoverbgcol' => $admintable_hoverbgcol,
|
|
||||||
'$dirpopup_txtcol' => $dirpopup_txtcol,
|
|
||||||
'$dirpopup_linkcol' => $dirpopup_linkcol,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
echo str_replace(array_keys($options), array_values($options), $x);
|
echo str_replace(array_keys($options), array_values($options), $x);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($sloppy_photos && file_exists('view/theme/redbasic/css/sloppy_photos.css')) {
|
|
||||||
echo file_get_contents('view/theme/redbasic/css/sloppy_photos.css');
|
|
||||||
}
|
|
||||||
if($narrow_navbar && file_exists('view/theme/redbasic/css/narrow_navbar.css')) {
|
if($narrow_navbar && file_exists('view/theme/redbasic/css/narrow_navbar.css')) {
|
||||||
echo file_get_contents('view/theme/redbasic/css/narrow_navbar.css');
|
echo file_get_contents('view/theme/redbasic/css/narrow_navbar.css');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user