-bottom and -top CSS are now -head and -foot calendar image is now capable of an href, displayblogpost.php and displaycomicpost and author.php now use comicpress_get_avatar properly

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-11-02 04:23:41 -08:00
parent 4b2846992c
commit f97def972e
16 changed files with 123 additions and 26 deletions

View File

@ -15,7 +15,7 @@
<div class="post-page-head"></div> <div class="post-page-head"></div>
<div class="post-page"> <div class="post-page">
<div class="userpage-avatar"> <div class="userpage-avatar">
<?php echo str_replace("alt='", "alt='".wp_specialchars($curauth->display_name, 1)."' title='".wp_specialchars($curauth->display_name, 1), get_avatar($curauth->user_email, 64)); ?> <?php echo str_replace("alt='", "alt='".wp_specialchars($curauth->display_name, 1)."' title='".wp_specialchars($curauth->display_name, 1), comicpress_get_avatar($curauth->user_email, 64)); ?>
</div> </div>
<div class="userpage-info"> <div class="userpage-info">
<div class="userpage-bio"> <div class="userpage-bio">

View File

@ -12,7 +12,7 @@ Templete Author Email: philip@frumph.net
<?php if (!empty($comicnum)): ?> <?php if (!empty($comicnum)): ?>
<?php $temppost = $post; ?> <?php $temppost = $post; ?>
<?php $post = & get_post( $comicnum ); ?> <?php $post = & get_post( $comicnum ); var_dump($post);?>
<div class="<?php comicpress_post_class(); ?>"> <div class="<?php comicpress_post_class(); ?>">
<div class="post-page-head"></div> <div class="post-page-head"></div>
<div class="post-page"> <div class="post-page">

View File

@ -24,9 +24,8 @@
</div><!-- Ends "page/page-wide" --> </div><!-- Ends "page/page-wide" -->
</div><!-- Ends "page-wrap" --> </div><!-- Ends "page-wrap" -->
<?php } ?> <?php } ?>
<div id="page-bottom"></div> <div id="page-foot"></div>
<?php wp_footer() ?> <?php wp_footer() ?>
</body> </body>
</html> </html>

View File

@ -78,9 +78,9 @@ function comicpress_get_avatar( $id_or_email, $size = '64', $alt = false) {
if ( !empty( $rating ) ) if ( !empty( $rating ) )
$out .= "&amp;r={$rating}"; $out .= "&amp;r={$rating}";
$avatar = "<img alt='{$safe_alt}' src='{$out}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' title='{$safe_alt}' />"; $avatar = "<img alt='{$safe_alt}' src='{$out}' class='avatar avatar-{$size} photo instant nocorner itxtalt' height='{$size}' width='{$size}' title='{$safe_alt}' />";
} else { } else {
$avatar = "<img alt='{$safe_alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' title='{$safe_alt}' />"; $avatar = "<img alt='{$safe_alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default instant nocorner itxtalt' height='{$size}' width='{$size}' title='{$safe_alt}' />";
} }
return apply_filters('comicpress_get_avatar', $avatar, $id_or_email, $size, $default, $alt); return apply_filters('comicpress_get_avatar', $avatar, $id_or_email, $size, $default, $alt);

View File

@ -23,7 +23,7 @@ function display_blog_post() {
<div <?php post_class(); ?> id="post-<?php the_ID() ?>"> <div <?php post_class(); ?> id="post-<?php the_ID() ?>">
<div class="post-info"> <div class="post-info">
<?php if ($enable_post_author_gravatar == 'yes') { ?> <?php if ($enable_post_author_gravatar == 'yes') { ?>
<div class="post-author-gravatar"><?php echo str_replace("alt='", "alt='".get_the_author_meta('display_name')."' title='".get_the_author_meta('display_name'),get_avatar(get_the_author_meta('email'), 64)); ?></div> <div class="post-author-gravatar"><?php echo str_replace("alt='", "alt='".get_the_author_meta('display_name')."' title='".get_the_author_meta('display_name'),comicpress_get_avatar(get_the_author_meta('email'), 64)); ?></div>
<?php } ?> <?php } ?>
<?php if (function_exists('comicpress_show_mood_in_post')) comicpress_show_mood_in_post(); ?> <?php if (function_exists('comicpress_show_mood_in_post')) comicpress_show_mood_in_post(); ?>
<?php if ($enable_post_calendar == 'yes') { ?> <?php if ($enable_post_calendar == 'yes') { ?>

View File

@ -38,7 +38,7 @@ function display_comic() {
if ($rascal_says == 'yes' && !empty($hovertext)) { ?> if ($rascal_says == 'yes' && !empty($hovertext)) { ?>
<a href="#" class="tt"><span class="tooltip"><span class="top"></span><span class="middle"><?php the_hovertext() ?></span><span class="bottom"></span></span><img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_title(); ?>" /></a> <a href="#" class="tt"><span class="tooltip"><span class="top"></span><span class="middle"><?php the_hovertext() ?></span><span class="bottom"></span></span><img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_title(); ?>" /></a>
<?php } else { ?> <?php } else { ?>
<img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" /> <img src="<?php the_comic() ?>" alt="<?php the_title() ?>" title="<?php the_hovertext() ?>" class="instant itiltleft icolorFFFCE9 ishadow40 historical" />
<?php } <?php }
} }
} }

View File

@ -1,6 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>> <html>
<head profile="http://gmpg.org/xfn/11"> <head <?php language_attributes() ?>>
<title><?php <title><?php
bloginfo('name'); bloginfo('name');
if (is_home () ) { if (is_home () ) {
@ -43,10 +43,11 @@
</head> </head>
<body <?php if (function_exists('body_class')) { body_class(); } ?>> <body <?php if (function_exists('body_class')) { body_class(); } ?>>
<?php do_action('comicpress-header'); ?> <?php do_action('comicpress-header'); ?>
<?php get_sidebar('above'); ?> <?php get_sidebar('above'); ?>
<div id="page-top"></div> <div id="page-head"></div>
<?php if ($disable_page_restraints != 'yes') { <?php if ($disable_page_restraints != 'yes') {
if (is_cp_theme_layout('standard,v')) { ?> if (is_cp_theme_layout('standard,v')) { ?>
@ -72,3 +73,6 @@
</div> </div>
<?php } ?> <?php } ?>
<?php get_sidebar('menubar'); ?> <?php get_sidebar('menubar'); ?>

View File

@ -0,0 +1,86 @@
/* COMIC NAVIGATION
Author: Tyler Martin
Style: Default
*/
#comic_navi_wrapper {
padding: 5px 0 10px 0;
}
#comic_navi {
height: 25px;
background: black;
display: table;
border-collapse: collapse;
margin: 0 auto;
}
.navi-comictitle {
text-align: center;
}
.navi {
}
.navi:hover {
}
.navi-first {
}
.navi-prevchap, .navi-story_prev {
}
.navi-story_prev_in {
}
.navi-prev, .navi-previous {
}
.navi-comments, .navi-archive, .navi-random, .navi-buyprint {
}
.navi-buyprint {
}
.navi-buyprint:hover, button .navi-buyprint:hover {
}
.navi-buyprint-form {
}
.navi-archive, .navi-archives {
}
.navi-random {
}
.navi-comments {
}
a.navi-comments span {
}
a.navi-comments span:hover {
}
.navi-next {
}
.navi-nextchap, .navi-story_next {
}
.navi-story_next_in {
}
.navi-last {
}
.navi-void, .navi-void:hover {
}
.comic-left .navi-prev, .comic-right .navi-prev, .comic-left .navi-next, .comic-right .navi-next {
/* margin: 0 5px; */
}

View File

@ -46,6 +46,10 @@ Style: Default
background: url('prevchap.png') no-repeat; background: url('prevchap.png') no-repeat;
} }
.navi-story_prev_in {
background: url('prevchap.png') no-repeat;
}
.navi-prev, .navi-previous { .navi-prev, .navi-previous {
margin-right: 30px; margin-right: 30px;
background: url('prev.png') no-repeat; background: url('prev.png') no-repeat;
@ -112,6 +116,10 @@ Style: Default
background: url('nextchap.png') no-repeat; background: url('nextchap.png') no-repeat;
} }
.navi-story_next_in {
background: url('nextchap.png') no-repeat;
}
.navi-last { .navi-last {
margin: 0; margin: 0;
background: url('last.png') no-repeat; background: url('last.png') no-repeat;

View File

@ -1,6 +1,6 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="content-wrapper-top"></div> <div id="content-wrapper-head"></div>
<div id="content-wrapper"> <div id="content-wrapper">
<?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?> <?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?>

View File

@ -12,7 +12,7 @@ if (is_cp_theme_layout('3c,v3c,gn,standard,v,3c2r')) {
<?php if (is_cp_theme_layout('3c,standard,3c2r')) { ?> <?php if (is_cp_theme_layout('3c,standard,3c2r')) { ?>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div id="subcontent-wrapper-bottom"></div> <div id="subcontent-wrapper-foot"></div>
<?php } ?> <?php } ?>
<?php if (is_cp_theme_layout('gn,rgn')) { ?> <?php if (is_cp_theme_layout('gn,rgn')) { ?>
@ -21,4 +21,4 @@ if (is_cp_theme_layout('3c,v3c,gn,standard,v,3c2r')) {
<?php if (is_cp_theme_layout('rgn')) get_sidebar('right'); ?> <?php if (is_cp_theme_layout('rgn')) get_sidebar('right'); ?>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div id="content-wrapper-bottom"></div> <div id="content-wrapper-foot"></div>

View File

@ -1,4 +1,4 @@
<div id="content-wrapper-top"></div> <div id="content-wrapper-head"></div>
<div id="content-wrapper"> <div id="content-wrapper">
<?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?> <?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?>
@ -13,7 +13,7 @@
<?php } ?> <?php } ?>
<?php if (is_cp_theme_layout('3c,standard,3c2r')) { ?> <?php if (is_cp_theme_layout('3c,standard,3c2r')) { ?>
<div id="subcontent-wrapper-top"></div> <div id="subcontent-wrapper-head"></div>
<div id="subcontent-wrapper"> <div id="subcontent-wrapper">
<?php } ?> <?php } ?>

View File

@ -2,7 +2,7 @@
if ($disable_lrsidebars_frontpage == 'yes' && is_home()) { if ($disable_lrsidebars_frontpage == 'yes' && is_home()) {
} else { ?> } else { ?>
<div id="sidebar-left"> <div id="sidebar-left">
<div class="sidebar-top"></div> <div class="sidebar-head"></div>
<div class="sidebar"> <div class="sidebar">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?>
<?php $default_image = get_bloginfo('stylesheet_directory').'/images/cal/default.png'; ?> <?php $default_image = get_bloginfo('stylesheet_directory').'/images/cal/default.png'; ?>
@ -19,6 +19,6 @@ if ($disable_lrsidebars_frontpage == 'yes' && is_home()) {
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="sidebar-bottom"></div> <div class="sidebar-foot"></div>
</div> </div>
<?php } ?> <?php } ?>

View File

@ -2,7 +2,7 @@
if ($disable_lrsidebars_frontpage == 'yes' && is_home()) { if ($disable_lrsidebars_frontpage == 'yes' && is_home()) {
} else { ?> } else { ?>
<div id="sidebar-right"> <div id="sidebar-right">
<div class="sidebar-top"></div> <div class="sidebar-head"></div>
<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') ) : ?>
<?php comicpress_comic_bookmark() ?> <?php comicpress_comic_bookmark() ?>
@ -26,6 +26,6 @@ if ($disable_lrsidebars_frontpage == 'yes' && is_home()) {
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="sidebar-bottom"></div> <div class="sidebar-foot"></div>
</div> </div>
<?php } ?> <?php } ?>

View File

@ -1,6 +1,6 @@
<?php get_header(); ?> <?php get_header(); ?>
<div id="content-wrapper-top"></div> <div id="content-wrapper-head"></div>
<div id="content-wrapper"> <div id="content-wrapper">
<?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?> <?php if (is_cp_theme_layout('gn,v3c')) get_sidebar('left'); ?>
@ -30,7 +30,7 @@
<?php } endwhile; ?> <?php } endwhile; ?>
<?php if (is_cp_theme_layout('3c,standard')) { ?> <?php if (is_cp_theme_layout('3c,standard')) { ?>
<div id="subcontent-wrapper-top"></div> <div id="subcontent-wrapper-head"></div>
<div id="subcontent-wrapper"> <div id="subcontent-wrapper">
<?php } ?> <?php } ?>

View File

@ -20,7 +20,7 @@ function comicpress_calendar($instance = null) {
} }
?> ?>
<center> <center>
<div id="wp-calendar-top"></div> <div id="wp-calendar-head"></div>
<div id="wp-calendar-wrap"> <div id="wp-calendar-wrap">
<?php if (!empty($thumbnail)) { ?> <?php if (!empty($thumbnail)) { ?>
<div class="wp-calendar-download"> <div class="wp-calendar-download">
@ -38,7 +38,7 @@ function comicpress_calendar($instance = null) {
<?php } ?> <?php } ?>
<?php get_calendar(); ?> <?php get_calendar(); ?>
</div> </div>
<div id="wp-calendar-bottom"></div> <div id="wp-calendar-foot"></div>
</center> </center>
<?php } <?php }