more stuff

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-09-24 19:29:11 -07:00
parent e67e0bb9e2
commit dd0b65003b
5 changed files with 19 additions and 11 deletions

View File

@ -49,8 +49,8 @@
<?php if (is_category() && in_comic_category()) { ?>
<div class="comicthumbwrap">
<div class="comicarchiveframe" style="width:120px;">
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="Click for full size." width="120" /></a><br />
<div class="comicarchiveframe">
<a href="<?php the_permalink() ?>"><img src="<?php the_comic_archive() ?>" alt="<?php the_title() ?>" title="<?php the_title() ?>" /></a><br />
</div>
</div>

View File

@ -1,10 +1,10 @@
<?php
//COMIC CATEGORY -the WordPress ID # of your comic category (default "3")
$comiccat = "4";
$comiccat = "3";
//BLOG CATEGORY - the WordPress ID of your blog category (default "1")
$blogcat = "3";
$blogcat = "4";
//COMIC FOLDER - the folder your comics files are located in (default "comics")
$comic_folder = "comics";

View File

@ -27,6 +27,14 @@ function comicpress_body_class($classes = '') {
$classes[] = 'user-guest';
}
if (is_single()) {
if (in_comic_category()) {
$classes[] = 'comiccat';
} else {
$classes[] = 'blogcat';
}
}
if (function_exists('comicpress_is_member')) {
if (comicpress_is_member()) {
$classes[] = 'sitemember';
@ -69,7 +77,7 @@ function comicpress_body_class($classes = '') {
if ((int)$rightnow > 1129) $classes[]='noon';
} else {
if ((int)$rightnow < 30) $classes[] = 'noon';
if ((int)$rightnow < 560) $classes[] = 'day';
if ((int)$rightnow < 559) $classes[] = 'day';
if ((int)$rightnow > 559 && (int)$rightnow < 1130) $classes[] = 'evening';
if ((int)$rightnow > 1129) $classes[]='midnight';
}

View File

@ -735,10 +735,11 @@ ul.children {
/* For the built-in WordPress archive pages (by month or category) as well as search result pages */
.comicthumbwrap {
overflow: hidden;
float: left;
height: 140px;
margin: 2px 2px 16px 2px;
width: 120px;
height: 130px;
overflow: hidden;
margin: 2px 2px 6px 2px;
}
.comicarchiveframe {

View File

@ -4,7 +4,7 @@ Widget Name: Menubar
Widget URI: http://comicpress.org/
Description: Display a calendar of this months posts.
Author: Philip M. Hofer (Frumph)
Version: 1.01
Version: 1.05
Author URI: http://webcomicplanet.com/
*/
@ -50,8 +50,7 @@ global $contact_in_menubar,$enable_search_in_menubar,$enable_rss_in_menubar,$ena
$menulinks = preg_replace('#<li ([^>]*)>#', '<li class="page-item link">', $menulinks);
$menulinks = preg_replace('#<ul ([^>]*)>#', '', $menulinks);
$menulinks = str_replace('</ul>', '', $menulinks);
$bookmarkargs =
$bookmarks = wp_list_bookmarks('echo=0&title_li=&categorize=1&title_before=&title_after=&exclude_name=menubar');
$bookmarks = wp_list_bookmarks('echo=0&title_li=&categorize=1&title_before=&title_after=&exclude_category=menubar');
$bookmarks = preg_replace('#<li ([^>]*)>#', '<li class="page-item link">', $bookmarks);
$bookmarks = preg_replace('#<ul ([^>]*)>#', '<ul>', $bookmarks);
$listpages = '';