styling by tyler

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-08-26 01:22:29 -07:00
parent a9c37a265b
commit c1d2a4fa0c
14 changed files with 266 additions and 129 deletions

View File

@ -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")
); );
?> ?>

View File

@ -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>
&nbsp;&nbsp;
<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>
&nbsp;&nbsp;
<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>
&nbsp;&nbsp;
<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>

View File

@ -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}");
} }

BIN
images/background.jpg Normal file

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

BIN
images/menu-nav.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
images/menu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

View File

@ -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; */
} }

View File

@ -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() ?>

View File

@ -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>

View File

@ -207,8 +207,9 @@ 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 {
@ -216,19 +217,57 @@ h3, h3 a {
text-align: center; text-align: center;
} }
#menunav a { .menunav-search {
padding: 1px 1px 0 0;
float: left;
}
.menunav-rss {
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; width: 25px;
height: 25px; height: 25px;
display: block; display: block;
float: left; text-indent: -9999px;
color: #fff; overflow: hidden;
font-size: 19px;
font-weight: bold;
line-height: 24px;
} }
#menunav a:hover { .menunav-prev a {
background: #800; 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 {
@ -238,13 +277,13 @@ h3, h3 a {
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;
} }
@ -257,12 +296,20 @@ h3, h3 a {
float: left; float: left;
} }
#menu li a {
border-left: 1px solid #aaa;
border-right: 1px solid #fff;
}
#menu li:hover a, #menu li.sfhover a { #menu li:hover a, #menu li.sfhover a {
border-left: 1px solid #8b160f;
border-right: 1px solid #c28380;
color: #fff; /* Main menu highlighted text color */ color: #fff; /* Main menu highlighted text color */
background: url('images/menu.png') 0 -75px;
} }
#menu li:hover, #menu li.sfhover { #menu li:hover, #menu li.sfhover {
background: #800; /* Main menu highlighted background color */ /* Main menu highlighted background color */
} }
/* For submenu dropdowns - this order must be maintained */ /* For submenu dropdowns - this order must be maintained */
@ -295,6 +342,8 @@ h3, h3 a {
} }
#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 { #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 */ color: #fff; /*Submenu text color */
border: none;
background: none;
} }
#menu li li:hover { #menu li li:hover {
background: #f00; /*Submenu highlighted background color */ background: #f00; /*Submenu highlighted background color */
@ -309,7 +358,10 @@ h3, h3 a {
} }
#menu .current_page_item a { #menu .current_page_item a {
color: #fff000; 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 {

View File

@ -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;
} }

View File

@ -18,6 +18,7 @@ class widget_comicpress_latest_thumbnail extends WP_Widget {
function widget($args, $instance) { function widget($args, $instance) {
global $post; global $post;
if (is_home()) {
extract($args, EXTR_SKIP); extract($args, EXTR_SKIP);
echo $before_widget; echo $before_widget;
@ -31,6 +32,7 @@ class widget_comicpress_latest_thumbnail extends WP_Widget {
<?php endforeach; <?php endforeach;
echo $after_widget; echo $after_widget;
} }
}
function update($new_instance, $old_instance) { function update($new_instance, $old_instance) {
$instance = $old_instance; $instance = $old_instance;

View File

@ -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();
@ -22,19 +22,32 @@ function comicpress_menubar() {
<div id="menubar"> <div id="menubar">
<div id="menunav"> <div id="menunav">
<?php if ($enable_search_in_menubar == 'yes') { ?>
<div class="menunav-search"><?php include(get_template_directory() . '/searchform.php'); ?></div>
<?php } ?>
<?php if ($enable_rss_in_menubar == 'yes') { ?>
<a href="<?php bloginfo('rss2_url') ?>" title="RSS Feed" class="menunav-rss">RSS</a>
<?php } ?>
<?php if ($enable_navigation_in_menubar == 'yes') { ?>
<?php if (is_home()) { <?php if (is_home()) {
$comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.get_all_comic_categories_as_cat_string()); $comicFrontpage = new WP_Query(); $comicFrontpage->query('showposts=1&cat='.get_all_comic_categories_as_cat_string());
while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post(); while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post();
global $wp_query; $wp_query->is_single = true; global $wp_query; $wp_query->is_single = true; ?>
previous_comic_link('%link', '&lsaquo;'); <div class="menunav-prev">
$wp_query->is_single = false; <?php previous_comic_link('%link', '&lsaquo;'); ?>
endwhile; </div>
} elseif (is_single() & in_comic_category()) { <?php $wp_query->is_single = false;
previous_comic_link('%link', '&lsaquo;'); endwhile;
next_comic_link('%link', '&rsaquo;'); } elseif (is_single() & in_comic_category()) { ?>
} ?> <div class="menunav-prev">
<?php previous_comic_link('%link', '&lsaquo;'); ?>
</div>
<div class="menunav-next">
<?php next_comic_link('%link', '&rsaquo;'); ?>
</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>