diff --git a/view/theme/plusfuture/css/singlepost.css b/view/theme/plusfuture/css/singlepost.css new file mode 100644 index 0000000..e79854c --- /dev/null +++ b/view/theme/plusfuture/css/singlepost.css @@ -0,0 +1,5 @@ +.toplevel_item{ + width: 100%; + margin-left: unset; + margin-right: unset; +} \ No newline at end of file diff --git a/view/theme/plusfuture/php/config.php b/view/theme/plusfuture/php/config.php index b3ab721..3415147 100644 --- a/view/theme/plusfuture/php/config.php +++ b/view/theme/plusfuture/php/config.php @@ -38,6 +38,7 @@ class plusfutureConfig { $arr = array(); $arr['narrow_navbar'] = get_pconfig(local_channel(),'plusfuture', 'narrow_navbar' ); + $arr['singlepost'] = get_pconfig(local_channel(),'plusfuture', 'singlepost' ); $arr['nav_bg'] = get_pconfig(local_channel(),'plusfuture', 'nav_bg' ); $arr['nav_icon_colour'] = get_pconfig(local_channel(),'plusfuture', 'nav_icon_colour' ); $arr['nav_active_icon_colour'] = get_pconfig(local_channel(),'plusfuture', 'nav_active_icon_colour' ); @@ -65,6 +66,7 @@ class plusfutureConfig { if (isset($_POST['plusfuture-settings-submit'])) { set_pconfig(local_channel(), 'plusfuture', 'narrow_navbar', $_POST['plusfuture_narrow_navbar']); + set_pconfig(local_channel(), 'plusfuture', 'singlepost', $_POST['plusfuture_singlepost']); set_pconfig(local_channel(), 'plusfuture', 'nav_bg', $_POST['plusfuture_nav_bg']); set_pconfig(local_channel(), 'plusfuture', 'nav_icon_colour', $_POST['plusfuture_nav_icon_colour']); set_pconfig(local_channel(), 'plusfuture', 'nav_active_icon_colour', $_POST['plusfuture_nav_active_icon_colour']); @@ -97,6 +99,7 @@ class plusfutureConfig { '$expert' => $expert, '$title' => t("Theme settings"), '$narrow_navbar' => array('plusfuture_narrow_navbar',t('Narrow navbar'),$arr['narrow_navbar'], '', array(t('No'),t('Yes'))), + '$singlepost' => array('plusfuture_singlepost',t('Singlepost'),$arr['singlepost'], '', array(t('No'),t('Yes'))), '$nav_bg' => array('plusfuture_nav_bg', t('Navigation bar background color'), $arr['nav_bg']), '$nav_icon_colour' => array('plusfuture_nav_icon_colour', t('Navigation bar icon color '), $arr['nav_icon_colour']), '$nav_active_icon_colour' => array('plusfuture_nav_active_icon_colour', t('Navigation bar active icon color '), $arr['nav_active_icon_colour']), diff --git a/view/theme/plusfuture/php/style.php b/view/theme/plusfuture/php/style.php index 7742e35..6585027 100644 --- a/view/theme/plusfuture/php/style.php +++ b/view/theme/plusfuture/php/style.php @@ -14,6 +14,7 @@ if(! App::$install) { $nav_icon_colour = get_pconfig($uid, 'plusfuture', 'nav_icon_colour'); $nav_active_icon_colour = get_pconfig($uid, 'plusfuture', 'nav_active_icon_colour'); $banner_colour = get_pconfig($uid,'plusfuture','banner_colour'); + $singlepost = get_pconfig($uid,'plusfuture','singlepost'); $narrow_navbar = get_pconfig($uid,'plusfuture','narrow_navbar'); $link_colour = get_pconfig($uid, 'plusfuture', 'link_colour'); $schema = get_pconfig($uid,'plusfuture','schema'); @@ -116,6 +117,9 @@ if(file_exists('view/theme/plusfuture/css/style.css')) { if($narrow_navbar && file_exists('view/theme/plusfuture/css/narrow_navbar.css')) { $x .= file_get_contents('view/theme/plusfuture/css/narrow_navbar.css'); } + if($singlepost && file_exists('view/theme/plusfuture/css/singlepost.css')) { + $x .= file_get_contents('view/theme/plusfuture/css/singlepost.css'); + } if($schemecss) { $x .= $schemecss;