option to disable the left and right sidebars on the index page.
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
2f1ce5e04f
commit
bba4ccaa86
|
@ -171,7 +171,7 @@ $options = array (
|
||||||
|
|
||||||
array(
|
array(
|
||||||
"id" => "comicpress-graphicnav_directory",
|
"id" => "comicpress-graphicnav_directory",
|
||||||
"default" => "scifi",
|
"default" => "default",
|
||||||
"type" => "comicpress-graphicnav_directory"),
|
"type" => "comicpress-graphicnav_directory"),
|
||||||
|
|
||||||
array(
|
array(
|
||||||
|
@ -189,6 +189,11 @@ $options = array (
|
||||||
"default" => "yes",
|
"default" => "yes",
|
||||||
"type" => "comicpress-enable_navigation_in_menubar"),
|
"type" => "comicpress-enable_navigation_in_menubar"),
|
||||||
|
|
||||||
|
array(
|
||||||
|
"id" => "comicpress-disable_lrsidebars_frontpage",
|
||||||
|
"default" => "no",
|
||||||
|
"type" => "comicpress-disable_lrsidebars_frontpage"),
|
||||||
|
|
||||||
|
|
||||||
array("type" => "close")
|
array("type" => "close")
|
||||||
);
|
);
|
||||||
|
|
|
@ -380,6 +380,20 @@ function comicpress_admin() {
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<?php break;
|
||||||
|
case "comicpress-disable_lrsidebars_frontpage": ?>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><strong>Disable the left and right sidebars on the index page?</strong><br /><br />Set to "Yes" and the index page/front page of your site will not display the left and right sidebars.<br /></th>
|
||||||
|
<td valign="top">
|
||||||
|
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> />Yes</label>
|
||||||
|
|
||||||
|
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> />No</label><br />
|
||||||
|
</td>
|
||||||
|
<td valign="top">
|
||||||
|
Minimalists dream.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<?php break;
|
<?php break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,6 +75,7 @@ if (get_option('upload_path') !== false) {
|
||||||
'enable_search_in_menubar' => 'enable_search_in_menubar',
|
'enable_search_in_menubar' => 'enable_search_in_menubar',
|
||||||
'enable_rss_in_menubar' => 'enable_rss_in_menubar',
|
'enable_rss_in_menubar' => 'enable_rss_in_menubar',
|
||||||
'enable_navigation_in_menubar' => 'enable_navigation_in_menubar',
|
'enable_navigation_in_menubar' => 'enable_navigation_in_menubar',
|
||||||
|
'disable_lrsidebars_frontpage' => 'disable_lrsidebars_frontpage',
|
||||||
'contact_in_menubar' => 'contact_in_menubar' ) as $options => $variable_name) {
|
'contact_in_menubar' => 'contact_in_menubar' ) as $options => $variable_name) {
|
||||||
$variables_to_extract[$variable_name] = get_option("comicpress-${options}");
|
$variables_to_extract[$variable_name] = get_option("comicpress-${options}");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<?php global $disable_lrsidebars_frontpage; if ($disable_lrsidebars_frontpage != 'yes') { ?>
|
||||||
<div id="sidebar-left-top"></div>
|
<div id="sidebar-left-top"></div>
|
||||||
<div id="sidebar-left">
|
<div id="sidebar-left">
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
|
@ -21,3 +22,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="sidebar-left-bottom"></div>
|
<div id="sidebar-left-bottom"></div>
|
||||||
|
<?php } ?>
|
|
@ -1,3 +1,4 @@
|
||||||
|
<?php global $disable_lrsidebars_frontpage; if ($disable_lrsidebars_frontpage != 'yes') { ?>
|
||||||
<div id="sidebar-right-top"></div>
|
<div id="sidebar-right-top"></div>
|
||||||
<div id="sidebar-right">
|
<div id="sidebar-right">
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
|
@ -26,3 +27,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="sidebar-right-bottom"></div>
|
<div id="sidebar-right-bottom"></div>
|
||||||
|
<?php } ?>
|
Loading…
Reference in New Issue