Added global $comicpress_options; to each of the sidebars so they can get the right data.

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-11-22 22:55:17 -08:00
parent 5f02e0bb93
commit 271ed4a37e
13 changed files with 23 additions and 13 deletions

View File

@ -1,4 +1,5 @@
<?php if (comicpress_is_active_sidebar('Above Header')) { ?> <?php global $comicpress_options;
if (comicpress_is_active_sidebar('Above Header')) { ?>
<div id="sidebar-aboveheader" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>"> <div id="sidebar-aboveheader" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Above Header') ) : ?><?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Above Header') ) : ?><?php endif; ?>
</div> </div>

View File

@ -1,4 +1,5 @@
<?php if (comicpress_is_active_sidebar('Blog')) { ?> <?php global $comicpress_options;
if (comicpress_is_active_sidebar('Blog')) { ?>
<div id="sidebar-blog" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>"> <div id="sidebar-blog" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Blog') ) : ?><?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Blog') ) : ?><?php endif; ?>
</div> </div>

View File

@ -1,4 +1,5 @@
<?php if (comicpress_is_active_sidebar('Left of Comic')) { ?> <?php global $comicpress_options;
if (comicpress_is_active_sidebar('Left of Comic')) { ?>
<div id="sidebar-comicleft" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>"> <div id="sidebar-comicleft" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left of Comic') ) : ?><?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left of Comic') ) : ?><?php endif; ?>
</div> </div>

View File

@ -1,4 +1,5 @@
<?php if (comicpress_is_active_sidebar('Right of Comic')) { ?> <?php global $comicpress_options;
if (comicpress_is_active_sidebar('Right of Comic')) { ?>
<div id="sidebar-comicright" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>"> <div id="sidebar-comicright" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right of Comic') ) : ?><?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right of Comic') ) : ?><?php endif; ?>
</div> </div>

View File

@ -1,4 +1,5 @@
<?php if (comicpress_is_active_sidebar('Footer')) { ?> <?php global $comicpress_options;
if (comicpress_is_active_sidebar('Footer')) { ?>
<div id="sidebar-footer" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>"> <div id="sidebar-footer" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer') ) : ?><?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer') ) : ?><?php endif; ?>
</div> </div>

View File

@ -1,4 +1,5 @@
<?php if (comicpress_is_active_sidebar('Header')) { ?> <?php global $comicpress_options;
if (comicpress_is_active_sidebar('Header')) { ?>
<div id="sidebar-header" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>"> <div id="sidebar-header" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Header') ) : ?><?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Header') ) : ?><?php endif; ?>
</div> </div>

View File

@ -1,4 +1,4 @@
<?php <?php global $comicpress_options;
if ($comicpress_options['disable_lrsidebars_frontpage'] && is_home()) { if ($comicpress_options['disable_lrsidebars_frontpage'] && is_home()) {
} else { ?> } else { ?>
<div id="sidebar-left"> <div id="sidebar-left">

View File

@ -1,4 +1,4 @@
<?php <?php global $comicpress_options;
if (!$comicpress_options['disable_default_menubar']) { if (!$comicpress_options['disable_default_menubar']) {
comicpress_menubar(); comicpress_menubar();
} }

View File

@ -1,4 +1,5 @@
<?php if (comicpress_is_active_sidebar('Over Comic')) { ?> <?php global $comicpress_options;
if (comicpress_is_active_sidebar('Over Comic')) { ?>
<div id="sidebar-overcomic" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>"> <div id="sidebar-overcomic" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Over Comic') ) : ?><?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Over Comic') ) : ?><?php endif; ?>
</div> </div>

View File

@ -1,4 +1,5 @@
<?php if (comicpress_is_active_sidebar('Over Blog')) { ?> <?php global $comicpress_options;
if (comicpress_is_active_sidebar('Over Blog')) { ?>
<div id="sidebar-overblog" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>"> <div id="sidebar-overblog" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Over Blog') ) : ?><?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Over Blog') ) : ?><?php endif; ?>
</div> </div>

View File

@ -1,4 +1,4 @@
<?php <?php global $comicpress_options;
if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?> if (!$comicpress_options['disable_lrsidebars_frontpage']) { ?>
<div id="sidebar-right"> <div id="sidebar-right">
<div class="sidebar-head"></div> <div class="sidebar-head"></div>

View File

@ -1,4 +1,5 @@
<?php if (comicpress_is_active_sidebar('Under Comic')) { ?> <?php global $comicpress_options;
if (comicpress_is_active_sidebar('Under Comic')) { ?>
<div id="sidebar-undercomic" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>"> <div id="sidebar-undercomic" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Under Comic') ) : ?><?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Under Comic') ) : ?><?php endif; ?>
</div> </div>

View File

@ -1,4 +1,5 @@
<?php if (comicpress_is_active_sidebar('Under Blog')) { ?> <?php global $comicpress_options;
if (comicpress_is_active_sidebar('Under Blog')) { ?>
<div id="sidebar-underblog" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>"> <div id="sidebar-underblog" class="customsidebar <?php if ($comicpress_options['enable_widgetarea_use_sidebar_css']) { ?> sidebar<?php } ?>">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Under Blog') ) : ?><?php endif; ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Under Blog') ) : ?><?php endif; ?>
</div> </div>