styling by tyler
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
a9c37a265b
commit
c1d2a4fa0c
|
@ -174,6 +174,22 @@ $options = array (
|
||||||
"default" => "scifi",
|
"default" => "scifi",
|
||||||
"type" => "comicpress-graphicnav_directory"),
|
"type" => "comicpress-graphicnav_directory"),
|
||||||
|
|
||||||
|
array(
|
||||||
|
"id" => "comicpress-enable_search_in_menubar",
|
||||||
|
"default" => "no",
|
||||||
|
"type" => "comicpress-enable_search_in_menubar"),
|
||||||
|
|
||||||
|
array(
|
||||||
|
"id" => "comicpress-enable_rss_in_menubar",
|
||||||
|
"default" => "no",
|
||||||
|
"type" => "comicpress-enable_rss_in_menubar"),
|
||||||
|
|
||||||
|
array(
|
||||||
|
"id" => "comicpress-enable_navigation_in_menubar",
|
||||||
|
"default" => "yes",
|
||||||
|
"type" => "comicpress-enable_navigation_in_menubar"),
|
||||||
|
|
||||||
|
|
||||||
array("type" => "close")
|
array("type" => "close")
|
||||||
);
|
);
|
||||||
?>
|
?>
|
|
@ -148,6 +148,45 @@ function comicpress_admin() {
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<?php break;
|
||||||
|
case "comicpress-enable_search_in_menubar": ?>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><strong>Enable Search Form in Menubar?</strong><br /><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>
|
||||||
|
</td>
|
||||||
|
<td valign="top">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php break;
|
||||||
|
case "comicpress-enable_rss_in_menubar": ?>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><strong>Enable RSS Link in Menubar?</strong><br /><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>
|
||||||
|
</td>
|
||||||
|
<td valign="top">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php break;
|
||||||
|
case "comicpress-enable_navigation_in_menubar": ?>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><strong>Enable extra Navigation options in the Menubar?</strong><br /><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>
|
||||||
|
</td>
|
||||||
|
<td valign="top">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<?php break;
|
<?php break;
|
||||||
case "comicpress-contact_in_menubar": ?>
|
case "comicpress-contact_in_menubar": ?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -70,6 +70,9 @@ if (get_option('upload_path') !== false) {
|
||||||
'disable_categories_in_posts' => 'disable_categories_in_posts',
|
'disable_categories_in_posts' => 'disable_categories_in_posts',
|
||||||
'moods_directory' => 'moods_directory',
|
'moods_directory' => 'moods_directory',
|
||||||
'graphicnav_directory' => 'graphicnav_directory',
|
'graphicnav_directory' => 'graphicnav_directory',
|
||||||
|
'enable_search_in_menubar' => 'enable_search_in_menubar',
|
||||||
|
'enable_rss_in_menubar' => 'enable_rss_in_menubar',
|
||||||
|
'enable_navigation_in_menubar' => 'enable_navigation_in_menubar',
|
||||||
'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}");
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.4 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 343 B |
|
@ -15,7 +15,7 @@ Style: Default
|
||||||
.navi {
|
.navi {
|
||||||
width: 66px;
|
width: 66px;
|
||||||
padding: 66px 0 0 0;
|
padding: 66px 0 0 0;
|
||||||
margin: 0 5px;
|
/* margin: 0 5px; */
|
||||||
display: block;
|
display: block;
|
||||||
float: left;
|
float: left;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -42,6 +42,11 @@ Style: Default
|
||||||
background: url('prev.png') no-repeat;
|
background: url('prev.png') no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.navi-comments, .navi-archive, .navi-random, .navi-buyprint {
|
||||||
|
margin: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.navi-buyprint {
|
.navi-buyprint {
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -107,5 +112,6 @@ Style: Default
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic-left .navi-prev, .comic-right .navi-prev, .comic-left .navi-next, .comic-right .navi-next {
|
.comic-left .navi-prev, .comic-right .navi-prev, .comic-left .navi-next, .comic-right .navi-next {
|
||||||
margin: 0 5px;
|
/* margin: 0 5px; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?>
|
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<?php get_calendar() ?>
|
<?php comicpress_calendar() ?>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<?php comicpress_latest_comics() ?>
|
<?php comicpress_latest_comics() ?>
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<div id="sidebar-right">
|
<div id="sidebar-right">
|
||||||
<div class="sidebar">
|
<div class="sidebar">
|
||||||
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?>
|
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?>
|
||||||
|
<br />
|
||||||
<?php comicpress_comic_bookmark() ?>
|
<?php comicpress_comic_bookmark() ?>
|
||||||
|
|
||||||
<?php if (is_cp_theme_style('standard,v')) { ?>
|
<?php if (is_cp_theme_style('standard,v')) { ?>
|
||||||
|
@ -24,13 +25,7 @@
|
||||||
<ul><?php wp_list_categories('title_li=<h2>Categories</h2>') ?></ul>
|
<ul><?php wp_list_categories('title_li=<h2>Categories</h2>') ?></ul>
|
||||||
|
|
||||||
<ul><?php wp_list_bookmarks() ?></ul>
|
<ul><?php wp_list_bookmarks() ?></ul>
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<ul>
|
|
||||||
<?php include(get_template_directory() . '/searchform.php'); ?>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
227
style.css
227
style.css
|
@ -207,110 +207,162 @@ h3, h3 a {
|
||||||
/* THE MENU */
|
/* THE MENU */
|
||||||
|
|
||||||
#menubar {
|
#menubar {
|
||||||
background: #000 /* url('images/menubarbgdark.jpg') repeat-x*/;
|
background: url('images/menu.png');
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
border: 1px solid #999;
|
||||||
|
}
|
||||||
|
|
||||||
#menunav {
|
#menunav {
|
||||||
float: right;
|
float: right;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menunav a {
|
.menunav-search {
|
||||||
width: 25px;
|
padding: 1px 1px 0 0;
|
||||||
height: 25px;
|
float: left;
|
||||||
display: block;
|
}
|
||||||
float: left;
|
|
||||||
color: #fff;
|
|
||||||
font-size: 19px;
|
|
||||||
font-weight: bold;
|
|
||||||
line-height: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menunav a:hover {
|
.menunav-rss {
|
||||||
background: #800;
|
width: 25px;
|
||||||
}
|
height: 25px;
|
||||||
|
margin: 0 0 0 4px;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
text-indent: -9999px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: url('images/menu-nav.png') no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menunav-rss:hover {
|
||||||
|
background-position: 0 -25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menunav-prev, .menunav-next {
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menunav-prev {
|
||||||
|
margin: 0 0 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menunav-prev a, .menunav-next a {
|
||||||
|
width: 25px;
|
||||||
|
height: 25px;
|
||||||
|
display: block;
|
||||||
|
text-indent: -9999px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menunav-prev a {
|
||||||
|
background: url('images/menu-nav.png') -25px 0 no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menunav-prev a:hover {
|
||||||
|
background-position: -25px -25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menunav-next a {
|
||||||
|
background: url('images/menu-nav.png') -50px 0 no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menunav-next a:hover {
|
||||||
|
background-position: -50px -25px;
|
||||||
|
}
|
||||||
|
|
||||||
#menu {
|
#menu {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
float: left;
|
float: left;
|
||||||
line-height: 25px;
|
line-height: 25px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
text-transform: uppercase;
|
border-right: 1px solid #aaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu a {
|
#menu a {
|
||||||
padding: 0px 10px 0 10px;
|
padding: 0px 10px 0 10px;
|
||||||
display: block;
|
display: block;
|
||||||
color: #fff;
|
color: #000;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu li .rss {
|
#menu li .rss {
|
||||||
padding: 5px 0 5px 0;
|
padding: 5px 0 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#menu li {
|
#menu li {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu li:hover a, #menu li.sfhover a {
|
#menu li a {
|
||||||
color: #fff; /* Main menu highlighted text color */
|
border-left: 1px solid #aaa;
|
||||||
}
|
border-right: 1px solid #fff;
|
||||||
|
}
|
||||||
|
|
||||||
#menu li:hover, #menu li.sfhover {
|
#menu li:hover a, #menu li.sfhover a {
|
||||||
background: #800; /* Main menu highlighted background color */
|
border-left: 1px solid #8b160f;
|
||||||
}
|
border-right: 1px solid #c28380;
|
||||||
|
color: #fff; /* Main menu highlighted text color */
|
||||||
|
background: url('images/menu.png') 0 -75px;
|
||||||
|
}
|
||||||
|
|
||||||
/* For submenu dropdowns - this order must be maintained */
|
#menu li:hover, #menu li.sfhover {
|
||||||
|
/* Main menu highlighted background color */
|
||||||
|
}
|
||||||
|
|
||||||
#menu ul {
|
/* For submenu dropdowns - this order must be maintained */
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
list-style: none;
|
|
||||||
position: absolute;
|
|
||||||
left: -9999px;
|
|
||||||
width: 175px;
|
|
||||||
line-height: 1;
|
|
||||||
}
|
|
||||||
#menu li li {
|
|
||||||
width: 165px;
|
|
||||||
padding: 4px 5px;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
#menu li li a {
|
|
||||||
width: 174px;
|
|
||||||
padding: 0;
|
|
||||||
color: #fff;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
#menu li ul ul {
|
|
||||||
margin: -17px 0 0 170px;
|
|
||||||
}
|
|
||||||
#menu li ul li:hover a, #menu li ul li li:hover a, #menu li ul li li li:hover a, #menu li ul li li li:hover a {
|
|
||||||
color: #fff; /*Submenu highlighted text color */
|
|
||||||
}
|
|
||||||
#menu li:hover li a, #menu li li:hover li a, #menu li li li:hover li a, #menu li li li li:hover li a {
|
|
||||||
color: #fff; /*Submenu text color */
|
|
||||||
}
|
|
||||||
#menu li li:hover {
|
|
||||||
background: #f00; /*Submenu highlighted background color */
|
|
||||||
}
|
|
||||||
#menu li:hover ul ul, #menu li:hover ul ul ul, #menu li:hover ul ul ul ul, #menu li.sfhover ul ul, #menu li.sfhover ul ul ul, #menu li.sfhover ul ul ul ul {
|
|
||||||
left: -9999px;
|
|
||||||
}
|
|
||||||
#menu li:hover ul, #menu li li:hover ul, #menu li li li:hover ul, #menu li li li li:hover ul, #menu li.sfhover ul, #menu li li.sfhover ul, #menu li li li.sfhover ul, #menu li li li li.sfhover ul {
|
|
||||||
left: auto;
|
|
||||||
background: #000; /* Submenu background color */
|
|
||||||
text-transform: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu .current_page_item a {
|
#menu ul {
|
||||||
color: #fff000;
|
padding: 0;
|
||||||
}
|
margin: 0;
|
||||||
|
list-style: none;
|
||||||
|
position: absolute;
|
||||||
|
left: -9999px;
|
||||||
|
width: 175px;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
#menu li li {
|
||||||
|
width: 165px;
|
||||||
|
padding: 4px 5px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
#menu li li a {
|
||||||
|
width: 174px;
|
||||||
|
padding: 0;
|
||||||
|
color: #fff;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
#menu li ul ul {
|
||||||
|
margin: -17px 0 0 170px;
|
||||||
|
}
|
||||||
|
#menu li ul li:hover a, #menu li ul li li:hover a, #menu li ul li li li:hover a, #menu li ul li li li:hover a {
|
||||||
|
color: #fff; /*Submenu highlighted text color */
|
||||||
|
}
|
||||||
|
#menu li:hover li a, #menu li li:hover li a, #menu li li li:hover li a, #menu li li li li:hover li a {
|
||||||
|
color: #fff; /*Submenu text color */
|
||||||
|
border: none;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
#menu li li:hover {
|
||||||
|
background: #f00; /*Submenu highlighted background color */
|
||||||
|
}
|
||||||
|
#menu li:hover ul ul, #menu li:hover ul ul ul, #menu li:hover ul ul ul ul, #menu li.sfhover ul ul, #menu li.sfhover ul ul ul, #menu li.sfhover ul ul ul ul {
|
||||||
|
left: -9999px;
|
||||||
|
}
|
||||||
|
#menu li:hover ul, #menu li li:hover ul, #menu li li li:hover ul, #menu li li li li:hover ul, #menu li.sfhover ul, #menu li li.sfhover ul, #menu li li li.sfhover ul, #menu li li li li.sfhover ul {
|
||||||
|
left: auto;
|
||||||
|
background: #000; /* Submenu background color */
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu .current_page_item a {
|
||||||
|
color: #fff;
|
||||||
|
border-left: 1px solid #555;
|
||||||
|
border-right: 1px solid #555;
|
||||||
|
background: url('images/menu.png') 0 -50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -318,7 +370,10 @@ h3, h3 a {
|
||||||
|
|
||||||
|
|
||||||
#comic {
|
#comic {
|
||||||
padding: 0;
|
background:#fff;
|
||||||
|
padding:10px 0;
|
||||||
|
border:1px solid #999;
|
||||||
|
margin:10px 0 0 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
@ -356,7 +411,7 @@ h3, h3 a {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
padding: 5px;
|
padding: 8px 5px 5px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-first {
|
.nav-first {
|
||||||
|
|
|
@ -9,6 +9,15 @@ Author URI: http://webcomicplanet.com/
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
function comicpress_calendar() {
|
||||||
|
global $post; ?>
|
||||||
|
<div id="wp-calendar-top"></div>
|
||||||
|
<div id="wp-calendar-wrap">
|
||||||
|
<?php get_calendar(); ?>
|
||||||
|
</div>
|
||||||
|
<div id="wp-calendar-bottom"></div>
|
||||||
|
<?php }
|
||||||
|
|
||||||
class widget_comicpress_calendar extends WP_Widget {
|
class widget_comicpress_calendar extends WP_Widget {
|
||||||
|
|
||||||
function widget_comicpress_calendar() {
|
function widget_comicpress_calendar() {
|
||||||
|
@ -23,7 +32,7 @@ class widget_comicpress_calendar extends WP_Widget {
|
||||||
echo $before_widget;
|
echo $before_widget;
|
||||||
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
|
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
|
||||||
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
|
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
|
||||||
get_calendar();
|
comicpress_calendar();
|
||||||
echo $after_widget;
|
echo $after_widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,18 +18,20 @@ class widget_comicpress_latest_thumbnail extends WP_Widget {
|
||||||
|
|
||||||
function widget($args, $instance) {
|
function widget($args, $instance) {
|
||||||
global $post;
|
global $post;
|
||||||
extract($args, EXTR_SKIP);
|
if (is_home()) {
|
||||||
|
extract($args, EXTR_SKIP);
|
||||||
|
|
||||||
echo $before_widget;
|
echo $before_widget;
|
||||||
$title = empty($instance['title']) ? 'Latest Comic' : apply_filters('widget_title', $instance['title']);
|
$title = empty($instance['title']) ? 'Latest Comic' : apply_filters('widget_title', $instance['title']);
|
||||||
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
|
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
|
||||||
$latestcomics = get_posts('numberposts=1&category='.get_all_comic_categories_as_cat_string());
|
$latestcomics = get_posts('numberposts=1&category='.get_all_comic_categories_as_cat_string());
|
||||||
foreach($latestcomics as $post) : ?>
|
foreach($latestcomics as $post) : ?>
|
||||||
<center>
|
<center>
|
||||||
<a href="<?php the_permalink(); ?>"><img src="<?php the_comic_rss() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" /></a><br />
|
<a href="<?php the_permalink(); ?>"><img src="<?php the_comic_rss() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" /></a><br />
|
||||||
</center>
|
</center>
|
||||||
<?php endforeach;
|
<?php endforeach;
|
||||||
echo $after_widget;
|
echo $after_widget;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function update($new_instance, $old_instance) {
|
function update($new_instance, $old_instance) {
|
||||||
|
|
|
@ -11,7 +11,7 @@ Author URI: http://webcomicplanet.com/
|
||||||
|
|
||||||
|
|
||||||
function comicpress_menubar() {
|
function comicpress_menubar() {
|
||||||
global $contact_in_menubar;
|
global $contact_in_menubar,$enable_search_in_menubar,$enable_rss_in_menubar,$enable_navigation_in_menubar;
|
||||||
if (file_exists(get_template_directory() . '/custom-menubar.php') || function_exists('suckerfish')) {
|
if (file_exists(get_template_directory() . '/custom-menubar.php') || function_exists('suckerfish')) {
|
||||||
if (function_exists('suckerfish')) {
|
if (function_exists('suckerfish')) {
|
||||||
suckerfish();
|
suckerfish();
|
||||||
|
@ -21,20 +21,33 @@ function comicpress_menubar() {
|
||||||
} else { ?>
|
} else { ?>
|
||||||
<div id="menubar">
|
<div id="menubar">
|
||||||
|
|
||||||
<div id="menunav">
|
<div id="menunav">
|
||||||
<?php if (is_home()) {
|
<?php if ($enable_search_in_menubar == 'yes') { ?>
|
||||||
$comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.get_all_comic_categories_as_cat_string());
|
<div class="menunav-search"><?php include(get_template_directory() . '/searchform.php'); ?></div>
|
||||||
while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post();
|
<?php } ?>
|
||||||
global $wp_query; $wp_query->is_single = true;
|
<?php if ($enable_rss_in_menubar == 'yes') { ?>
|
||||||
previous_comic_link('%link', '‹');
|
<a href="<?php bloginfo('rss2_url') ?>" title="RSS Feed" class="menunav-rss">RSS</a>
|
||||||
$wp_query->is_single = false;
|
<?php } ?>
|
||||||
endwhile;
|
<?php if ($enable_navigation_in_menubar == 'yes') { ?>
|
||||||
} elseif (is_single() & in_comic_category()) {
|
<?php if (is_home()) {
|
||||||
previous_comic_link('%link', '‹');
|
$comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.get_all_comic_categories_as_cat_string());
|
||||||
next_comic_link('%link', '›');
|
while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post();
|
||||||
} ?>
|
global $wp_query; $wp_query->is_single = true; ?>
|
||||||
|
<div class="menunav-prev">
|
||||||
|
<?php previous_comic_link('%link', '‹'); ?>
|
||||||
|
</div>
|
||||||
|
<?php $wp_query->is_single = false;
|
||||||
|
endwhile;
|
||||||
|
} elseif (is_single() & in_comic_category()) { ?>
|
||||||
|
<div class="menunav-prev">
|
||||||
|
<?php previous_comic_link('%link', '‹'); ?>
|
||||||
|
</div>
|
||||||
|
<div class="menunav-next">
|
||||||
|
<?php next_comic_link('%link', '›'); ?>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$menulinks = wp_list_bookmarks('echo=0&title_li=&categorize=0&title_before=&title_after=&category_name=menubar');
|
$menulinks = wp_list_bookmarks('echo=0&title_li=&categorize=0&title_before=&title_after=&category_name=menubar');
|
||||||
$menulinks = preg_replace('#<li ([^>]*)>#', '<li class="page-item link">', $menulinks);
|
$menulinks = preg_replace('#<li ([^>]*)>#', '<li class="page-item link">', $menulinks);
|
||||||
|
@ -66,7 +79,6 @@ function comicpress_menubar() {
|
||||||
<?php if ($contact_in_menubar == 'yes') { ?>
|
<?php if ($contact_in_menubar == 'yes') { ?>
|
||||||
<li class="page_item page-item-contact"><a href="mailto:<?php bloginfo('admin_email'); ?>">Contact</a></li>
|
<li class="page_item page-item-contact"><a href="mailto:<?php bloginfo('admin_email'); ?>">Contact</a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<li class="page_item page-item-rss"><a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/data_rss.gif" class="rss" alt="RSS" /></a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue