ch-ch-chaaanges

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-10-04 23:08:01 -07:00
parent 31c3e97d26
commit 8d9b11e7b0
72 changed files with 620 additions and 975 deletions

View File

@ -4,7 +4,7 @@
<div class="<?php comicpress_post_class(); ?>">
<div class="post-page-head"></div>
<div class="post-page">
<h2 class="pagetitle">Page Not Found</h2>
<h2 class="pagetitle"><?php _e('Page Not Found','comicpress'); ?></h2>
<p><a href="<?php bloginfo('url') ?>"><?php _e('Click here to return to the home page','comicpress'); ?></a> <?php _e('or try a search:','comicpress'); ?></p>
<p><?php include (get_template_directory() . '/searchform.php') ?></p>
<br class="clear-margins" />

View File

@ -47,7 +47,7 @@ Template Name: Comic Storyline with Thumbs
<li id="storyline-<?php echo $category->category_nicename ?>"<?php echo $storyline_root; $storyline_root = null ?>>
<?php if (!empty($first_comic_in_category)) { ?>
<a href="<?php echo $first_comic_permalink ?>" title="First comic in <?php echo $category->cat_name ?>."><img src="<?php echo $archive_image ?>" /></a>
<a href="<?php echo $first_comic_permalink ?>" title="<?php _e('First comic in','comicpress'); ?> <?php echo $category->cat_name ?>."><img src="<?php echo $archive_image ?>" /></a>
<?php } ?>
<a href="<?php echo get_category_link($category_id) ?>" class="storyline-title"><?php echo $category->cat_name ?></a>
<?php if (!empty($description)) { ?>

View File

@ -52,7 +52,7 @@ Template Name: Comic Storyline Archive
<?php echo $description ?>
<?php } ?>
<?php if (!empty($first_comic_in_category)) { ?>
Begins with &ldquo;<a href="<?php echo $first_comic_permalink ?>"><?php echo $first_comic_in_category->post_title ?></a>&rdquo;.
<?php _e('Begins with &ldquo;','comicpress'); ?><a href="<?php echo $first_comic_permalink ?>"><?php echo $first_comic_in_category->post_title ?></a><?php _e('&rdquo;','comicpress'); ?>
<?php } ?>
</div>
<div class="storyline-foot"></div>

View File

@ -39,7 +39,7 @@ if (empty($archive_year) || $archive_year == '') $archive_year = date('Y');
<table class="month-table">
<?php $comicArchive = new WP_Query(); $comicArchive->query('&showposts=-1&cat='.get_all_comic_categories_as_cat_string().'&year='.$archive_year);
while ($comicArchive->have_posts()) : $comicArchive->the_post() ?>
<tr><td class="archive-date"><?php the_time('M j') ?></td><td class="archive-title"><a href="<?php echo get_permalink($post->ID) ?>" rel="bookmark" title="Permanent Link: <?php the_title() ?>"><?php the_title() ?></a></td></tr>
<tr><td class="archive-date"><?php the_time('M j') ?></td><td class="archive-title"><a href="<?php echo get_permalink($post->ID) ?>" rel="bookmark" title="<?php _e('Permanent Link:','comicpress'); ?> <?php the_title() ?>"><?php the_title() ?></a></td></tr>
<?php endwhile; ?>
</table>

View File

@ -23,7 +23,7 @@ Template Name: Comic Archive
<table class="month-table">
<?php $comicArchive = new WP_Query(); $comicArchive->query('showposts=10000&cat='.get_all_comic_categories_as_cat_string().'&year='.$year);
while ($comicArchive->have_posts()) : $comicArchive->the_post() ?>
<tr><td class="archive-date"><?php the_time('M j') ?></td><td class="archive-title"><a href="<?php echo get_permalink($post->ID) ?>" rel="bookmark" title="Permanent Link: <?php the_title() ?>"><?php the_title() ?></a></td></tr>
<tr><td class="archive-date"><?php the_time('M j') ?></td><td class="archive-title"><a href="<?php echo get_permalink($post->ID) ?>" rel="bookmark" title="<?php _e('Permanent Link:','comicpress'); ?> <?php the_title() ?>"><?php the_title() ?></a></td></tr>
<?php endwhile; ?>
</table>
<?php } } ?>

View File

@ -71,7 +71,7 @@
<?php } ?>
<div class="post-text">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small> <?php _e('By','comicpress'); ?> <?php the_author_posts_link(); ?> <?php _e('on','comicpress'); ?> <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
<small> <?php _e('By','comicpress'); ?> <?php the_author_posts_link(); ?> <?php _e('on','comicpress'); ?> <?php the_time('F jS, Y'); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></small><br />
<?php if (get_option('comicpress-enable-storyline-support') == 1) { ?>
<ul class="storyline-cats"><li class="storyline-root"><?php the_category(' &raquo; </li><li>', multiple) ?></li></ul>
<?php } else { ?>
@ -105,8 +105,8 @@
</div>
<?php } ?>
<div class="post-text">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small> <?php _e('By','comicpress'); ?> <?php the_author_posts_link(); ?> <?php _e('on','comicpress'); ?> <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link to','comicpress'); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small> <?php _e('By','comicpress'); ?> <?php the_author_posts_link(); ?> <?php _e('on','comicpress'); ?> <?php the_time('F jS, Y'); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></small><br />
<?php if ($disable_categories_in_posts != 'yes') { ?>
<small> <?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></small><br />
<?php } ?>
@ -138,8 +138,8 @@
<div class="<?php comicpress_post_class(); ?>">
<div class="post-head"></div>
<div class="post">
<h3>No entries found.</h3>
<p>Try another search?</p>
<h3><?php _e('No posts found.','comicpress'); ?></h3>
<p><?php _e('Try another search?','comicpress'); ?></p>
<p><?php include(get_template_directory() . '/searchform.php') ?></p>
<br class="clear-margins" />
</div>

View File

@ -22,11 +22,10 @@
<h2><?php echo $curauth->display_name; ?></h2>
<?php _e('Registered on','comicpress'); ?> <?php echo date('l \\t\h\e jS \o\f M, Y',strtotime($curauth->user_registered)); ?><br />
<br />
<?php if (!empty($curauth->user_url)) { ?>Website: <a href="<?php echo $curauth->user_url; ?>" target="_blank"><?php echo $curauth->user_url; ?></a><br /><?php } ?>
<?php if (!empty($curauth->aim)) { ?>AIM: <a href="<?php echo $curauth->user_aim; ?>" target="_blank"><?php echo $curauth->aim; ?></a><br /><?php } ?>
<?php if (!empty($curauth->jabber)) { ?>Jabber/Google Talk: <a href="<?php echo $curauth->jabber; ?>" target="_blank"><?php echo $curauth->jabber; ?></a><br /><?php } ?>
<?php if (!empty($curauth->yim)) { ?>Yahoo IM: <a href="<?php echo $curauth->jabber; ?>" target="_blank"><?php echo $curauth->jabber; ?></a><br /><?php } ?>
<?php if (!empty($curauth->user_url)) { ?><?php _e('Website:','comicpress'); ?> <a href="<?php echo $curauth->user_url; ?>" target="_blank"><?php echo $curauth->user_url; ?></a><br /><?php } ?>
<?php if (!empty($curauth->aim)) { ?><?php _e('AIM:','comicpress'); ?> <a href="<?php echo $curauth->user_aim; ?>" target="_blank"><?php echo $curauth->aim; ?></a><br /><?php } ?>
<?php if (!empty($curauth->jabber)) { ?><?php _e('Jabber/Google Talk:','comicpress'); ?> <a href="<?php echo $curauth->jabber; ?>" target="_blank"><?php echo $curauth->jabber; ?></a><br /><?php } ?>
<?php if (!empty($curauth->yim)) { ?><?php _e('Yahoo IM:','comicpress'); ?> <a href="<?php echo $curauth->jabber; ?>" target="_blank"><?php echo $curauth->jabber; ?></a><br /><?php } ?>
</div>
<?php if (!empty($curauth->description)) { ?>
<div class="userpage-desc">

View File

@ -18,14 +18,14 @@ Templete Author Email: philip@frumph.net
<div class="post-page">
<div style="float:right;">
<br />
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/paypal.png" alt="Powered by Paypal" /><br />
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/paypal.png" alt="<?php _e('Powered by Paypal','comicpress'); ?>" /><br />
</div>
<div style="float:left;">
<h2 class="pagetitle">Buy Print!</h2>
<h2 class="pagetitle"><?php _e('Buy Print!','comicpress'); ?></h2>
</div>
<div class="clear"></div>
Comic ID - #<?php echo $comicnum; ?><br />
Title: <?php echo the_title(); ?><br />
<?php _e('Comic ID','comicpress'); ?> - #<?php echo $comicnum; ?><br />
<?php _e('Title:','comicpress'); ?> <?php echo the_title(); ?><br />
<br />
<?php $post = & get_post( $comicnum ); ?>
<center>
@ -38,19 +38,19 @@ Templete Author Email: philip@frumph.net
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="shipping2" value="<?php echo $buy_print_us_amount; ?>">
<input type="hidden" name="cn" value="Special Instructions (optional)">
<input type="hidden" name="cn" value="<?php _e('Special Instructions (optional)','comicpress'); ?>">
<input type="hidden" name="cancel_return" value="<?php echo get_bloginfo('url'); ?>">
<input type="hidden" name="item_name" value="Print">
<input type="hidden" name="item_name" value="<?php _e('Print','comicpress'); ?>">
<input type="hidden" name="notify_url" value="<?php echo get_bloginfo('url'); ?>">
<input type="hidden" name="page_style" value="">
<input type="hidden" name="return" value="<?php echo bloginfo('url'); ?>">
<input type="hidden" name="amount" value="<?php echo $buy_print_us_amount; ?>">
<input type="hidden" name="item_number" value="Comic ID (<?php echo $comicnum; ?>) - <?php echo the_title(); ?>">
<input type="hidden" name="item_number" value="<?php _e('Comic ID','comicpress'); ?> (<?php echo $comicnum; ?>) - <?php echo the_title(); ?>">
<input type="hidden" name="business" value="<?php echo $buy_print_email; ?>">
<input type="hidden" name="shipping" value="<?php echo $buy_print_us_ship; ?>">
US/Canada<br>
$<?php echo $buy_print_us_amount; ?> + $<?php echo $buy_print_us_ship; ?> shipping<br />
<input type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/buynow_paypal.png" name="submit32" alt="Make payments with PayPal - it's fast, free and secure!" />
$<?php echo $buy_print_us_amount; ?> + $<?php echo $buy_print_us_ship; ?> <?php _e('shipping','comicpress'); ?><br />
<input type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/buynow_paypal.png" name="submit32" alt="<?php _e('Make payments with PayPal - it is fast, free and secure!','comicpress'); ?>" />
</form>
</td>
<td width="40">
@ -60,26 +60,26 @@ Templete Author Email: philip@frumph.net
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="shipping2" value="<?php echo $buy_print_int_amount; ?>">
<input type="hidden" name="cn" value="Special Instructions (optional)">
<input type="hidden" name="cn" value="<?php _e('Special Instructions (optional)','comicpress'); ?>">
<input type="hidden" name="cancel_return" value="<?php echo get_bloginfo('url'); ?>">
<input type="hidden" name="item_name" value="Print">
<input type="hidden" name="item_name" value="<?php _e('Print','comicpress'); ?>">
<input type="hidden" name="notify_url" value="<?php echo get_bloginfo('url'); ?>">
<input type="hidden" name="page_style" value="">
<input type="hidden" name="return" value="<?php echo bloginfo('url'); ?>">
<input type="hidden" name="amount" value="<?php echo $buy_print_int_amount; ?>">
<input type="hidden" name="item_number" value="Comic ID (<?php echo $comicnum; ?>) - <?php echo the_title(); ?>">
<input type="hidden" name="item_number" value="<?php _e('Comic ID','comicpress'); ?> (<?php echo $comicnum; ?>) - <?php echo the_title(); ?>">
<input type="hidden" name="business" value="<?php echo $buy_print_email; ?>">
<input type="hidden" name="shipping" value="<?php echo $buy_print_int_ship; ?>">
International<br>
$<?php echo $buy_print_int_amount; ?> + $<?php echo $buy_print_int_ship; ?> shipping<br />
<input type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/buynow_paypal.png" name="submit32" alt="Make payments with PayPal - it's fast, free and secure!" />
$<?php echo $buy_print_int_amount; ?> + $<?php echo $buy_print_int_ship; ?> <?php _e('shipping','comicpress'); ?><br />
<input type="image" src="<?php bloginfo('stylesheet_directory'); ?>/images/buynow_paypal.png" name="submit32" alt="<?php _e('Make payments with PayPal - it is fast, free and secure!','comicpress'); ?>" />
</form>
</td>
</tr>
</table>
<br />
<?php _e('The purchase of this strip is based on availability. A Print of this strip is what you are purchasing.','comicpress'); ?><br />
</center>
The purchase of this strip is based on availability. A Print of this strip is what you are purchasing.<br />
<br />
<?php $post = $temppost; ?>
<div class="clear"></div>
@ -94,9 +94,9 @@ Templete Author Email: philip@frumph.net
<h2 class="pagetitle"><?php the_title() ?></h2>
<div class="entry">
<?php the_content() ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
<?php wp_link_pages(array('before' => '<p><strong>'.__('Pages:','comicpress').'</strong> ', 'after' => '</p>', 'next_or_number' => 'number')) ?>
</div>
<?php edit_post_link('Edit this page.', '<p>', '</p>') ?>
<?php edit_post_link(__('Edit this page.','comicpress'), '<p>', '</p>') ?>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>

View File

@ -24,4 +24,7 @@ $rss_comic_width = "600";
//BLOG POSTCOUNT - the number of blog entries to appear on the home page (default "5").
$blog_postcount = "5";
//Mini Comic Width - The width your comics will appear in minithumbs (default "100")
$mini_comic_width = "100";
?>

View File

@ -3,7 +3,7 @@
include(get_template_directory() . '/comicpress-options-config.php');
function comicpress_options() {
$pagehook = add_submenu_page('themes.php','comicpress', 'ComicPress Options', 10, 'comicpress-options', 'comicpress_admin');
$pagehook = add_submenu_page('themes.php','comicpress', __('ComicPress Options','comicpress'), 10, 'comicpress-options', 'comicpress_admin');
add_action('admin_head-'.$pagehook, 'comicpress_admin_page_head');
}
@ -24,7 +24,7 @@ function comicpress_admin() {
?>
<div class="wrap">
<h2 class="alignleft">ComicPress Options</h2>
<h2 class="alignleft"><?php _e('ComicPress Options','comicpress'); ?></h2>
<a class="alignright" style="margin: 20px;" href="http://comicpress.org/"><img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/images/options/comicpress_logo.png" alt="ComicPress" /></a>
@ -43,14 +43,14 @@ function comicpress_admin() {
if ('comicpress_save'== $_REQUEST['action']) {
foreach ($options as $value) {
if( !isset( $_REQUEST[ $value['id'] ] ) ) { } else { update_option( $value['id'], stripslashes($_REQUEST[ $value['id']])); } } ?>
<div id="message" class="updated fade"><p><strong>Options/Settings SAVED!</strong></p></div>
<div id="message" class="updated fade"><p><strong><?php _e('Options/Settings SAVED!','comicpress'); ?></strong></p></div>
<?php }
if ('comicpress_reset' == $_REQUEST['action'] ) {
foreach ($options as $default) {
delete_option($default['id'],$default['default']);
} ?>
<div id="message" class="updated fade"><p><strong>Options/Settings RESET!</strong></p></div>
<div id="message" class="updated fade"><p><strong><?php _e('Options/Settings RESET!','comicpress'); ?></strong></p></div>
<?php
}
}
@ -69,15 +69,15 @@ function comicpress_admin() {
<div id="cpadmin">
<div class="on" title="themestyle"><span>Theme Style</span></div>
<div class="off" title="generaloptions"><span>General</span></div>
<div class="off" title="indexoptions"><span>Index Page</span></div>
<div class="off" title="postoptions"><span>Post</span></div>
<div class="off" title="archivesearch"><span>Archive &amp; Search</span></div>
<div class="off" title="menubaroptions"><span>Menubar</span></div>
<div class="off" title="customheader"><span>Custom Header</span></div>
<div class="off" title="buyprintoptions"><span>Buy Print</span></div>
<div class="off" title="membersoptions"><span>Members</span></div>
<div class="on" title="themestyle"><span><?php _e('Theme Style','comicpress'); ?></span></div>
<div class="off" title="generaloptions"><span><?php _e('General','comicpress'); ?></span></div>
<div class="off" title="indexoptions"><span><?php _e('Index Page','comicpress'); ?></span></div>
<div class="off" title="postoptions"><span><?php _e('Post','comicpress'); ?></span></div>
<div class="off" title="archivesearch"><span><?php _e('Archive &amp; Search','comicpress'); ?></span></div>
<div class="off" title="menubaroptions"><span><?php _e('Menubar','comicpress'); ?></span></div>
<div class="off" title="customheader"><span><?php _e('Custom Header','comicpress'); ?></span></div>
<div class="off" title="buyprintoptions"><span><?php _e('Buy Print','comicpress'); ?></span></div>
<div class="off" title="membersoptions"><span><?php _e('Members','comicpress'); ?></span></div>
</div>
<?php include(get_template_directory() . '/options/themestyle.php'); ?>
@ -93,8 +93,8 @@ function comicpress_admin() {
</div>
<div style="margin-top: 10px; text-align:center;padding: 5px; background: #eee; -moz-border-radius: 10px;-khtml-border-radius: 10px;-webkit-border-radius: 10px;border-radius: 10px;border: solid 1px #000;">
<a href="http://comicpress.org/">ComicPress 2.8 (<?php global $comicpress_version; echo $comicpress_version; ?>)</a>, created by <a href="http://mindfaucet.com/">Tyler Martin</a>, with <a href="http://www.coswellproductions.com/">John Bintz</a> and <a href="http://webcomicplanet.com/">Philip M. Hofer</a> (<a href="http://frumph.net/">Frumph</a>)<br />
If you like the ComicPress theme, please donate. It will help in creating new versions.<br />
<a href="http://comicpress.org/">ComicPress 2.8 (<?php global $comicpress_version; echo $comicpress_version; ?>)</a>, <?php _e('created by','comicpress'); ?> <a href="http://mindfaucet.com/">Tyler Martin</a>, <?php _e('with','comicpress'); ?> <a href="http://www.coswellproductions.com/">John Bintz</a> <?php _e('and','comicpress'); ?> <a href="http://webcomicplanet.com/">Philip M. Hofer</a> (<a href="http://frumph.net/">Frumph</a>)<br />
<?php _e('If you like the ComicPress theme, please donate. It will help in creating new versions.','comicpress'); ?><br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="7827910">

View File

@ -1,9 +1,9 @@
<?php
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
die (__('Please do not load this page directly. Thanks!','comicpress'));
if ( post_password_required() ) { ?>
<p class="nocomments">This post is password protected. Enter the password to view comments.</p>
<p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.','comicpress'); ?></p>
<?php
return;
} ?>
@ -15,14 +15,14 @@ if ( post_password_required() ) { ?>
<?php if ( ! empty($comments_by_type['comment']) ) : ?>
<div class="commentsrsslink">[ <?php comments_rss_link('Comments RSS'); ?> ]</div>
<h3 id="comments"><?php comments_number('Discussion &not;', 'Discussion &not;', 'Discussion (%) &not;' );?></h3>
<h3 id="comments"><?php comments_number(__('Discussion &not;','comicpress'), __('Discussion &not;','comicpress'), __('Discussion (%) &not;','comicpress') );?></h3>
<ol class="commentlist">
<?php
if (function_exists('comicpress_comments_callback')) {
wp_list_comments(array(
'type' => 'comment',
'reply_text' => 'Reply to %s&not;',
'reply_text' => _('Reply to %s&not;','comicpress'),
'callback' => 'comicpress_comments_callback',
'end-callback' => 'comicpress_comments_end_callback',
'avatar_size'=>64
@ -35,7 +35,7 @@ if ( post_password_required() ) { ?>
<?php endif; ?>
<?php if ( ! empty($comments_by_type['pings']) ) : ?>
<h4 id="comments">Pings & Trackbacks &not;</h4>
<h4 id="comments"><?php _e('Pings & Trackbacks &not;','comicpress'); ?></h4>
<ol class="commentlist">
<ul>
<?php
@ -64,7 +64,7 @@ if ( post_password_required() ) { ?>
$pagelinks = preg_replace('#\<\/span\>#', '</li>', $pagelinks); ?>
<div id="wp-paginav">
<div id="paginav">
<?php echo '<ul><li class="paginav-extend">Comment Pages</li>'. $pagelinks . '</ul>'; ?>
<?php echo '<ul><li class="paginav-extend">'.__('Comment Pages','comicpress').'</li>'. $pagelinks . '</ul>'; ?>
</div>
<div class="clear"></div>
</div>
@ -72,8 +72,8 @@ if ( post_password_required() ) { ?>
<?php } else { ?>
<div class="commentnav">
<div class="commentnav-right"><?php next_comments_link('Newer Comments &uarr;') ?></div>
<div class="commentnav-left"><?php previous_comments_link('&darr; Previous Comments') ?></div>
<div class="commentnav-right"><?php next_comments_link(__('Next Comments &uarr;','comicpress')) ?></div>
<div class="commentnav-left"><?php previous_comments_link(__('&darr; Previous Comments','comicpress')) ?></div>
<div class="clear"></div>
</div>
<?php } ?>
@ -90,7 +90,7 @@ if ( post_password_required() ) { ?>
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Comments are closed.</p>
<p class="nocomments"><?php _e('Comments are closed.','comicpress'); ?></p>
<?php endif; ?>
<?php endif; ?>
@ -99,32 +99,32 @@ if ( post_password_required() ) { ?>
<div id="respond">
<h3><?php comment_form_title( 'Comment &not;', 'Reply to %s &not;' ); ?></h3>
<h3><?php comment_form_title( __('Comment &not;','comicpress'), __('Reply to %s &not;','comicpress') ); ?></h3>
<div class="cancel-comment-reply">
<small><?php cancel_comment_reply_link(); ?></small>
</div>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">logged in</a> to post a comment.</p>
<p><?php _e('You must be','comicpress'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in','comicpress'); ?></a> <?php _e('to post a comment.','comicpress'); ?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
<p><?php _e('Logged in as','comicpress'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account','comicpress'); ?>"><?php _e('Log out &raquo;','comicpress'); ?></a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>NAME &mdash; <a href="http://gravatar.com">Get an avatar</a></small></label></p>
<label for="author"><small><?php _e('NAME &mdash;','comicpress'); ?> <a href="http://gravatar.com"><?php _e('Get a Gravatar','comicpress'); ?></a></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>EMAIL <?php if ($req) echo "&mdash; Required / not published"; ?> </small></label></p>
<label for="email"><small><?php _e('EMAIL','comicpress'); ?> <?php if ($req) echo __("&mdash; Required / not published",'comicpress'); ?> </small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>WEBSITE</small></label></p>
<label for="url"><small><?php _e('WEBSITE','comicpress'); ?></small></label></p>
<?php endif; ?>
<?php do_action('comment_form', $post->ID); ?>
<p><textarea name="comment" id="comment" cols="50" rows="6" tabindex="4"></textarea></p>
<button type="submit" class="button">Submit Comment</button>
<button type="submit" class="button"><?php _e('Submit Comment','comicpress'); ?></button>
<?php global $disable_comment_note;
if ($disable_comment_note != 'yes') { ?>
<div class="comment-note">NOTE - You can use these tags:<br /><?php echo allowed_tags(); ?></div>
<div class="comment-note"><?php _e('NOTE - You can use these tags:','comicpress'); ?><br /><?php echo allowed_tags(); ?></div>
<?php } ?>
<?php comment_id_fields(); ?>
</form>

View File

@ -1,3 +1,4 @@
<?php if (comicpress_check_themepack_file('footer.php') == false) { ?>
<div id="footer">
<?php if (function_exists('the_project_wonderful_ad')) { ?>
<div class="footerpwad">
@ -9,12 +10,15 @@
<?php get_sidebar('footer'); ?>
<?php global $disable_footer_text; if ($disable_footer_text != 'yes') { ?>
<p>
<?php echo cp_copyright_year(); ?> | Powered by <a href="http://wordpress.org/">WordPress</a> with <a href="http://comicpress.org/">ComicPress</a>
| Subscribe: <a href="<?php bloginfo('rss2_url') ?>">RSS Feed</a> | <a href="#outside" onclick="scrollup(); return false;">Back to Top &uarr;</a><br />
<span class="footer-copyright"><?php echo cp_copyright(); ?> <?php echo the_author_meta('firstname',1); echo "&nbsp;"; echo the_author_meta('lastname',1); ?><span class="footer-pipe"> | </span></span>
<span class="footer-powered"><?php bloginfo('name'); ?> <?Php _e('Powered by','comicpress'); ?> <a href="http://wordpress.org/">WordPress</a> <?php _e('with','comicpress'); ?> <a href="http://comicpress.org/">ComicPress</a><span class="footer-pipe"> | </span></span>
<span class="footer-subscribe">Subscribe: <a href="<?php bloginfo('rss2_url') ?>">RSS Feed</a><span class="footer-pipe"> | </span></span>
<span class="footer-uptotop"><a href="#outside" onclick="scrollup(); return false;"><?php _e('Back to Top &uarr;','comicpress'); ?></a></span>
<!-- <?php echo get_num_queries() ?> queries. <?php timer_stop(1) ?> seconds. -->
</p>
<?php } ?>
</div>
<?php } ?>
<?php global $disable_page_restraints; if ($disable_page_restraints == 'no') { ?>
</div><!-- Ends "page/page-wide" -->

View File

@ -6,14 +6,12 @@ $locale = get_locale();
$locale_file = get_template_directory()."/languages/$locale.php";
if (file_exists($locale_file)) require_once($locale_file);
// remove intense debates control over the comment numbers
if (function_exists('id_get_comment_number')) {
remove_filter('comments_number','id_get_comment_number');
}
$comicpress_version = '2.8.1.13';
$comicpress_version = '2.8.1.16';
// Remove the wptexturizer from changing the quotes and squotes.
// remove_filter('the_content', 'wpautop');
@ -34,8 +32,10 @@ if (!empty($wpmu_version)) {
'comics_path' => 'comic_folder',
'comicsrss_path' => 'rss_comic_folder',
'comicsarchive_path' => 'archive_comic_folder',
'comicsmini_path' => 'mini_comic_folder',
'archive_comic_width' => 'archive_comic_width',
'rss_comic_width' => 'rss_comic_width',
'mini_comic_width' => 'mini_comic_width',
'blog_postcount' => 'blog_postcount') as $options => $variable_name) {
$variables_to_extract[$variable_name] = get_option("comicpress-${options}");
}
@ -130,17 +130,6 @@ foreach (glob(dirname(__FILE__) . '/widgets/*.php') as $__file) { require_once($
// FUNCTIONS & Extra's
foreach (glob(dirname(__FILE__) . '/functions/*.php') as $__file) { require_once($__file); }
// These are in the options directory because they have toggles in the options configuration and do not get loaded
// unless they are needed.
if ($enable_numbered_pagination == 'yes') {
require_once(get_template_directory() . '/options/wp-pagenavi.php');
}
if ($enable_custom_image_header == 'yes') {
require_once(get_template_directory() . '/options/custom-image-header.php');
}
// Dashboard Menu Comicpress Options and ComicPress CSS
require_once(get_template_directory() . '/comicpress-options.php');
@ -201,7 +190,6 @@ function get_last_comic_permalink() {
return !empty($terminal) ? get_permalink($terminal->ID) : false;
}
/**
* Given a category ID or an array of category IDs, create an exclusion string that will
* filter out every category but the provided ones.
@ -238,8 +226,6 @@ function get_previous_comic($category = null) { return get_adjacent_comic($categ
*/
function get_next_comic($category = null) { return get_adjacent_comic($category); }
/**
* This is function get_next_comic_permalink
*
@ -256,7 +242,6 @@ function get_next_comic_permalink() {
return false;
}
/**
* This is function get_previous_comic_permalink
*
@ -350,7 +335,6 @@ function get_next_storyline_start_permalink() {
return false;
}
function get_adjacent_storyline_category_id($next = false) {
global $post, $category_tree;
@ -394,6 +378,7 @@ function get_comic_path($folder = 'comic', $override_post = null, $filter = 'def
}
switch ($folder) {
case "mini": $folder_to_user = $mini_comic_folder; break;
case "rss": $folder_to_use = $rss_comic_folder; break;
case "archive": $folder_to_use = $archive_comic_folder; break;
case "comic": default: $folder_to_use = $comic_folder; break;
@ -443,7 +428,7 @@ function get_comic_url($folder = 'comic', $override_post = null, $filter = 'defa
if (($result = get_comic_path($folder, $override_post, $filter)) !== false) {
return get_option('home') . '/' . $result;
} else {
if (($folder == 'archive' || $folder == 'rss')) {
if (($folder == 'archive' || $folder == 'rss' || $folder == 'mini')) {
if (($result = get_comic_path('comic', $override_post, $filter)) !== false) {
return get_option('home') . '/' . $result;
}
@ -598,6 +583,10 @@ function the_comic_rss($filter = 'default') { echo get_comic_url('rss', null, $f
//The following is deprecated...
function comic_rss($filter = 'default') { echo get_comic_url('rss', null, $filter); }
function the_comic_mini($filter = 'default') { echo get_comic_url('mini', null, $filter); }
//The following is deprecated...
function comic_mini($filter = 'default') { echo get_comic_url('mini', null, $filter); }
/**
* Display the list of Storyline categories.
*/
@ -605,7 +594,7 @@ function comicpress_list_storyline_categories($args = "") {
global $category_tree;
$defaults = array(
'style' => 'list', 'title_li' => __('Storyline')
'style' => 'list', 'title_li' => __('Storyline','comicpress')
);
$r = wp_parse_args($args, $defaults);
@ -705,19 +694,19 @@ add_filter('the_content','insert_comic_feed');
// Register Sidebar and Define Widgets
if ( function_exists('register_sidebar') ) {
register_sidebar(array('name'=>__('Left Sidebar','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>__('Right Sidebar','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>__('Above Header','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>__('Header','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>__('Menubar','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>__('Over Comic','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>__('Left of Comic','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>__('Right of Comic','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>__('Under Comic','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>__('Over Blog','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>__('Blog','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>__('Under Blog','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>__('Footer','comicpress'),'before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Left Sidebar','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Right Sidebar','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Above Header','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Header','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Menubar','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Over Comic','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Left of Comic','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Right of Comic','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Under Comic','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Over Blog','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Blog','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Under Blog','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
register_sidebar(array('name'=>'Footer','before_widget' => '<ul><li id="%1$s" class="widget %2$s">','after_widget' => '</li></ul>','before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>' ));
}
function storyline_category_list() {
@ -745,7 +734,7 @@ function comicpress_is_active_sidebar( $name ) {
return false;
}
function cp_copyright_year() {
function cp_copyright() {
global $wpdb;
$copyright_dates = $wpdb->get_results("
SELECT
@ -762,7 +751,7 @@ function cp_copyright_year() {
if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) {
$copyright .= '-' . $copyright_dates[0]->lastdate;
}
$output = $copyright . "&nbsp;" . get_bloginfo('name');
$output = $copyright;
}
return $output;
}

View File

@ -116,16 +116,6 @@ function comicpress_post_class($class = '') {
if ( post_password_required() )
$classes[] = 'protected';
/* User-created classes. */
if ( !empty( $class ) ) :
if ( !is_array( $class ) )
$class = preg_split( '#\s+#', $class );
$classes = array_merge( $classes, $class );
endif;
/* Join all the classes into one string and echo them. */
$class = join( ' ', $classes );
echo apply_filters( 'comicpress_post_class', $class );
}

View File

@ -7,65 +7,66 @@
*/
function display_blog_post() {
global $post, $wp_query, $authordata, $enable_related_posts, $enable_post_author_gravatar, $enable_post_calendar, $themepack_directory; ?>
<?php if (is_single()) { ?>
<div class="blognav">
if (comicpress_check_themepack_file('displayblogpost.php') == false) {
global $post, $wp_query, $authordata, $enable_related_posts, $enable_post_author_gravatar, $enable_post_calendar, $themepack_directory; ?>
<?php if (is_single()) { ?>
<div class="blognav">
<div class="nav-single">
<?php previous_post_link('%link',__('Previous','comicpress'), TRUE); ?>
<?php next_post_link('%link',__('Next','comicpress'), TRUE); ?>
<?php previous_post_link('%link',__(' &lsaquo; Previous ','comicpress'), TRUE); ?>
<?php next_post_link('%link',__(' Next &rsaquo; ','comicpress'), TRUE); ?>
</div>
</div>
<?php } ?>
<div class="clear"></div>
</div>
<?php } ?>
<div class="clear"></div>
<div class="<?php comicpress_post_class(); ?>">
<div class="post-head"></div>
<div class="post" id="post-<?php the_ID() ?>">
<div class="post" id="post-<?php the_ID() ?>">
<div class="post-info">
<?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>
<?php } ?>
<?php if (function_exists('comicpress_show_mood_in_post')) comicpress_show_mood_in_post(); ?>
<?php if ($enable_post_calendar == 'yes') { ?>
<div class="post-date">
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
</div>
<?php } ?>
<div class="post-text">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
<?php if ($disable_categories_in_posts != 'yes') { ?>
<small><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></small><br />
<?php } ?>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
<?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>
<?php } ?>
<?php if (function_exists('comicpress_show_mood_in_post')) comicpress_show_mood_in_post(); ?>
<?php if ($enable_post_calendar == 'yes') { ?>
<div class="post-date">
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
</div>
<div class="clear"></div>
<?php } ?>
<div class="post-text">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></small><br />
<?php if ($disable_categories_in_posts != 'yes') { ?>
<small><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></small><br />
<?php } ?>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
</div>
<div class="clear"></div>
</div>
<div class="entry">
<?php if (!is_single()) { global $more; $more = 0; } ?>
<?php the_content('&darr; Read the rest of this entry...') ?>
<?php if (is_single()) wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">Pages:</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?>
<?php if (!is_single()) { global $more; $more = 0; } ?>
<?php the_content(__('&darr; Read the rest of this entry...','comicpress')); ?>
<?php if (is_single()) wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">Pages:</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?>
</div>
<div class="post-extras">
<?php if ($disable_tags_in_posts != 'yes') { ?>
<div class="tags">
<?php the_tags('&#9492; Tags: ', ', ', '<br />'); ?>
</div>
<?php } ?>
<?php if (!is_single()) {
if ('open' == $post->comment_status) {
if (comicpress_check_themepack_file('commentlink.php') == false) { ?>
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> No Comments ', '<span class="comment-balloon">1</span> Comment ', '<span class="comment-balloon">%</span> Comments '); ?></div>
<?php }
}
} ?>
<div class="clear"></div>
<?php if ($enable_related_posts == 'yes') echo related_posts_shortcode(); ?>
</div>
<br class="clear-margins" />
<?php if ($disable_tags_in_posts != 'yes') { ?>
<div class="tags">
<?php the_tags(__('&#9492; Tags: ','comicpress'), ', ', '<br />'); ?>
</div>
<?php } ?>
<?php
if ('open' == $post->comment_status) {
if (comicpress_check_themepack_file('commentlink.php') == false) { ?>
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> '.__('No Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
<?php }
}
?>
<div class="clear"></div>
<?php if ($enable_related_posts == 'yes') echo related_posts_shortcode(); ?>
</div>
<div class="post-foot"></div>
<br class="clear-margins" />
</div>
<?php
<div class="post-foot"></div>
</div>
<?php
}
}
?>

View File

@ -8,13 +8,7 @@
function display_comic() {
global $post, $wp_query, $rascal_says, $comic_clicks_next, $comic_filename_filters;
$next_comic = get_next_comic_permalink();
$comic = explode(".", the_comic_filename());
if ($comic[1] == 'swf') { ?>
<?php

View File

@ -7,73 +7,72 @@
*/
function display_comic_post() {
global $post, $wp_query, $transcript_in_posts, $enable_related_comics, $enable_comic_post_author_gravatar, $enable_comic_post_calendar, $disable_categories_in_posts, $disable_tags_in_posts, $themepack_directory;;
$first_comic = get_first_comic_permalink(); $last_comic = get_last_comic_permalink();
?>
<div class="nav">
<?php if ( get_permalink() != $first_comic ) { ?><div class="nav-first"><a href="<?php echo $first_comic ?>">&lsaquo;&lsaquo; First</a></div><?php } ?>
<div class="nav-previous"><?php $temp_query = $wp_query->is_single; $wp_query->is_single = true; previous_comic_link('%link', '&lsaquo; Previous'); $wp_query->is_single = $temp_query;$temp_query = null; ?></div>
<div class="nav-next"><?php next_comic_link('%link', 'Next &rsaquo;') ?></div>
<?php if ( get_permalink() != $last_comic ) { ?><div class="nav-last"><a href="<?php echo $last_comic ?>">Last &rsaquo;&rsaquo;</a></div><?php } ?>
</div>
<div class="clear"></div>
<div class="<?php comicpress_post_class(); ?>">
<div class="post-comic-head"></div>
<div class="post-comic">
if (comicpress_check_themepack_file('displaycomicpost.php') == false) {
global $post, $wp_query, $transcript_in_posts, $enable_related_comics, $enable_comic_post_author_gravatar, $enable_comic_post_calendar, $disable_categories_in_posts, $disable_tags_in_posts, $themepack_directory;
$first_comic = get_first_comic_permalink(); $last_comic = get_last_comic_permalink();
?>
<div class="nav">
<?php if ( get_permalink() != $first_comic ) { ?><div class="nav-first"><a href="<?php echo $first_comic ?>"><?php _e('&lsaquo;&lsaquo; First','comicpress'); ?></a></div><?php } ?>
<div class="nav-previous"><?php $temp_query = $wp_query->is_single; $wp_query->is_single = true; previous_comic_link('%link', __('&lsaquo; Previous','comicpress')); $wp_query->is_single = $temp_query;$temp_query = null; ?></div>
<div class="nav-next"><?php next_comic_link('%link', __('Next &rsaquo;','comicpress')) ?></div>
<?php if ( get_permalink() != $last_comic ) { ?><div class="nav-last"><a href="<?php echo $last_comic ?>"><?php _e('Last &rsaquo;&rsaquo;','comicpress'); ?></a></div><?php } ?>
</div>
<div class="clear"></div>
<div class="<?php comicpress_post_class(); ?>">
<div class="post-comic-head"></div>
<div class="post-comic">
<div class="post-info">
<?php if ($enable_comic_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>
<?php } ?>
<?php if (function_exists('comicpress_show_mood_in_post')) comicpress_show_mood_in_post(); ?>
<?php if ($enable_comic_post_calendar == 'yes') { ?>
<div class="post-date">
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
</div>
<?php } ?>
<div class="post-text">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
<?php if (get_option('comicpress-enable-storyline-support') == 1) { ?>
<ul class="storyline-cats"><li class="storyline-root"><?php the_category(' &raquo; </li><li>', multiple) ?></li></ul>
<?php } else { ?>
<?php if ($disable_categories_in_posts != 'yes') { ?>
<small><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></small><br />
<?php } ?>
<?php } ?>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
<?php if ($enable_comic_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>
<?php } ?>
<?php if (function_exists('comicpress_show_mood_in_post')) comicpress_show_mood_in_post(); ?>
<?php if ($enable_comic_post_calendar == 'yes') { ?>
<div class="post-date">
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
</div>
<div class="clear"></div>
<?php } ?>
<div class="post-text">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></small><br />
<?php if (get_option('comicpress-enable-storyline-support') == 1) { ?>
<ul class="storyline-cats"><li class="storyline-root"><?php the_category(' &raquo; </li><li>', multiple) ?></li></ul>
<?php } else { ?>
<?php if ($disable_categories_in_posts != 'yes') { ?>
<small><?php _e('Posted In:','comicpress'); ?> <?php the_category(','); ?></small><br />
<?php } ?>
<?php } ?>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
</div>
<div class="clear"></div>
</div>
<div class="entry">
<?php if (!is_single()) { global $more; $more = 0; } ?>
<?php the_content('&darr; Read More..') ?>
<?php if (is_single()) wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">Pages:</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?>
<?php if (!is_single()) { global $more; $more = 0; } ?>
<?php the_content(__('&darr; Read the rest of this entry...','comicpress')); ?>
<?php if (is_single()) wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">Pages:</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?>
</div>
<?php if ($transcript_in_posts == 'yes') the_transcript('styled'); ?>
<div class="post-extras">
<?php if ($disable_tags_in_posts != 'yes') { ?>
<div class="tags">
<?php the_tags('&#9492; Tags: ', ', ', '<br />'); ?>
</div>
<?php } ?>
<?php if (!is_single()) {
if ('open' == $post->comment_status) {
if ( ($themepack_directory != 'none' && !empty($themepack_directory) ) && file_exists(get_template_directory() . '/themepack/'.$themepack_directory.'/commentlink.php') ) {
include(get_template_directory() . '/themepack/' .$themepack_directory. '/commentlink.php');
} else { ?>
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> No Comments ', '<span class="comment-balloon">1</span> Comment ', '<span class="comment-balloon">%</span> Comments '); ?></div>
<?php }
}
} ?>
<div class="clear"></div>
<?php if ($enable_related_comics == 'yes') echo related_comics_shortcode(); ?>
</div>
<br class="clear-margins" />
</div>
<div class="post-comic-foot"></div>
</div>
<?php
<div class="post-extras">
<?php if ($disable_tags_in_posts != 'yes') { ?>
<div class="tags">
<?php the_tags(__('&#9492; Tags: ','comicpress'), ', ', '<br />'); ?>
</div>
<?php } ?>
<?php
if ('open' == $post->comment_status) {
if (comicpress_check_themepack_file('commentlink.php') == false) { ?>
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> '.__('No Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
<?php }
}
?>
<div class="clear"></div>
<?php if ($enable_related_comics == 'yes') echo related_comics_shortcode(); ?>
</div>
<br class="clear-margins" />
</div>
<div class="post-comic-foot"></div>
</div>
<?php
}
}
?>

View File

@ -47,7 +47,7 @@ function comicpress_members_filter($query) {
function shortcode_for_comicpress_members_only( $atts, $content = null ) {
global $post, $userdata, $profileuser, $current_user, $errormsg;
$returninfo = '<div class="non-member">There is Members Only content here. To view this content you need to be a member of this site.</div>';
$returninfo = '<div class="non-member">'.__('There is Members Only content here. To view this content you need to be a member of this site.','comicpress').'</div>';
if ( !empty($current_user->ID) ) {
$is_member = get_usermeta($current_user->ID,'comicpress-is-member');
if ( ( $is_member == 'yes' ) ) {
@ -62,16 +62,16 @@ function comicpress_profile_members_only() {
$comicpress_is_member = get_usermeta($profileuser->ID,'comicpress-is-member');
if (empty($comicpress_is_member)) $comicpress_is_member = 'no';
?>
<h3>Member of <?php bloginfo('name'); ?></h3>
<h3><?php _e('Member of','comicpress'); ?> <?php bloginfo('name'); ?></h3>
<table class="form-table">
<tr>
<th><label for="Memberflag">Member?</label></th>
<th><label for="Memberflag"><?php _e('Member?','comicpress'); ?></label></th>
<td>
<?php
if (current_user_can('manage_options')) { ?>
<label><input name="comicpress-is-member" id="comicpress-is-member-yes" type="radio" value="yes"<?php if ( get_usermeta($profileuser->ID,'comicpress-is-member') == "yes") { echo " checked"; } ?> />Yes</label>
<label><input name="comicpress-is-member" id="comicpress-is-member-yes" type="radio" value="yes"<?php if ( get_usermeta($profileuser->ID,'comicpress-is-member') == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></label>
&nbsp;&nbsp;
<label><input name="comicpress-is-member" id="comicpress-is-member-no" type="radio" value="no"<?php if ( get_usermeta($profileuser->ID,'comicpress-is-member') != "yes" ) { echo " checked"; } ?> />No</label>
<label><input name="comicpress-is-member" id="comicpress-is-member-no" type="radio" value="no"<?php if ( get_usermeta($profileuser->ID,'comicpress-is-member') != "yes" ) { echo " checked"; } ?> /><?php _e('No','comicpress'); ?></label>
<?php } else {
if ($comicpress_is_member == 'yes') {

View File

@ -37,14 +37,14 @@ function comicpress_showmood_edit_post() {
<div id="mooddiv" class="postbox">
<h3><?php _e("Available Moods", 'comicpress') ?></h3>
<div class="inside" style="overflow: hidden">
Available Moods here, you can set which mood images to use in the comicpress Options.<br />
<?php _e('Available Moods, you can set which mood images to use in the comicpress Options.','comicpress'); ?><br />
<br />
<?php
$currentmood = get_post_meta( $post->ID, "mood", true );
if (empty($currentmood) || $currentmood == '' || $currentmood == null) {
$mood = 'none';
$mood = __('none','comicpress');
} else {
$mood = explode(".", $currentmood);
$mood = reset($mood);
@ -52,9 +52,9 @@ function comicpress_showmood_edit_post() {
$filtered_glob_results = array();
$count = count($results = glob(get_template_directory() . '/images/moods/'.$moods_directory.'/*'));
echo $count .' moods are available.<br />
Using Moods from directory: '.$moods_directory.'<br />
Current Mood: '.$mood.'<br /><br />';
echo $count .__(' moods are available.','comicpress').'<br />
'.__('Using Moods from directory: ','comicpress').$moods_directory.'<br />
'.__('Current Mood: ','comicpress').$mood.'<br /><br />';
if (!empty($results)) { ?>
<div style="float:left; margin-top: 70px; text-align: center; width: 68px; overflow: hidden;">
<label for="postmood-none" style="cursor:pointer;">

View File

@ -6,8 +6,8 @@ function comicpress_pagination() {
<?php wp_pagenavi('<div id="wp-paginav">', '<div class="clear"></div></div>'); ?>
<?php } else { ?>
<div id="pagenav">
<div class="pagenav-right"><?php previous_posts_link('Newer Entries &uarr;') ?></div>
<div class="pagenav-left"><?php next_posts_link('&darr; Previous Entries') ?></div>
<div class="pagenav-right"><?php previous_posts_link(__('Newer Entries &uarr;','comicpress')) ?></div>
<div class="pagenav-left"><?php next_posts_link(__('&darr; Previous Entries','comicpress')) ?></div>
<div class="clear"></div>
</div>
<?php }

View File

@ -36,10 +36,10 @@ function related_comics_shortcode( $atts = '' ) {
$related = $wpdb->get_results($q);
if ( $related ) {
$retval = '
<div class="related_posts">
Related Comics &not;';
<div class="related_posts">
'.__('Related Comics &not;','comicpress');
$retval .= '
<ul><li>';
<ul><li>';
$comic_categories = array();
foreach ($category_tree as $node) {
$comic_categories[] = end(explode("/", $node));
@ -56,7 +56,7 @@ function related_comics_shortcode( $atts = '' ) {
</table>';
} else {
$retval .= '
<li>No related comics found</li>';
<li>'.__('No related comics found','comicpress').'</li>';
}
$retval .= '
</li></ul>';

View File

@ -34,12 +34,13 @@ function related_posts_shortcode( $atts = '' ) {
LIMIT $limit;";
$related = $wpdb->get_results($q);
$retval = '
<div class="related_posts">
Related Posts &not;';
$retval .= '
<ul><li>';
if ( $related ) {
$retval = '
<div class="related_posts">
'.__('Related Posts &not;','comicpress');
$retval .= '
<ul><li>';
$comic_categories = array();
foreach ($category_tree as $node) {
$comic_categories[] = end(explode("/", $node));
@ -57,7 +58,7 @@ function related_posts_shortcode( $atts = '' ) {
</table>';
} else {
$retval .= '
<li>No related posts found</li>';
<li>'.__('No related posts found','comicpress').'</li>';
}
$retval .= '
</li></ul>';
@ -67,46 +68,7 @@ function related_posts_shortcode( $atts = '' ) {
}
return;
}
/*
function related_posts_shortcode( $atts = '' ) {
extract(shortcode_atts(array(
'limit' => '5',
), $atts));
global $wp_query, $wpdb, $post, $non_comic_categories;
if ($post->ID) {
if (empty($limit)) $limit = 5;
//for use in the loop, list 5 post titles related to first tag on current post
$tags = wp_get_post_tags($post->ID);
$tagIDs = array();
if ($tags) {
$tagcount = count($tags);
for ($i = 0; $i < $tagcount; $i++) {
$tagIDs[$i] = $tags[$i]->term_id;
}
$args=array(
'category__in' => array(1,3,31),
'tag__and' => $tagIDs,
'showposts'=>5,
'post__not_in' => array($post->ID),
'caller_get_posts'=>1
);
$my_query = new WP_Query($args);
$temp_query = $wp_query;
$wp_query->in_the_loop = true;
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endwhile;
}
$wp_query = $temp_query;
$temp_query = null;
}
}
}
*/
add_shortcode('related_posts', 'related_posts_shortcode');
?>

View File

@ -10,7 +10,7 @@
} elseif (is_single() || is_page() ) {
echo " - "; single_post_title();
} elseif (is_search() ) {
echo " search results: "; echo wp_specialchars($s);
echo __(" search results: ",'comicpress'); echo wp_specialchars($s);
} else {
echo " - "; wp_title('',true);
}
@ -50,11 +50,11 @@
<?php if ($disable_page_restraints != 'yes') {
if (is_cp_theme_layout('standard,v')) { ?>
<div id="page"><!-- Wraps outside the site width -->
<div id="page-wrap"><!-- Defines entire site width - Ends in Footer -->
<div id="page-wrap"><!-- Wraps outside the site width -->
<div id="page"><!-- Defines entire site width - Ends in Footer -->
<?php } else { ?>
<div id="page-wide">
<div id="page-wrap-wide">
<div id="page-wide-wrap">
<div id="page-wide">
<?php }
} ?>

View File

@ -9,7 +9,7 @@
<a href="<?php echo get_permalink($post->post_parent) ?>" rev="attachment"><?php echo get_the_title($post->post_parent) ?></a>
</h2>
<div class="gallery-image">
<a href="<?php echo wp_get_attachment_url($post->ID) ?>" target="_blank" title="Click for full size." ><img src="<?php echo wp_get_attachment_url($post->ID) ?>" alt="<?php the_title() ?>" /></a>
<a href="<?php echo wp_get_attachment_url($post->ID) ?>" target="_blank" title="<?php _e('Click for full size.','comicpress'); ?>" ><img src="<?php echo wp_get_attachment_url($post->ID) ?>" alt="<?php the_title() ?>" /></a>
</div>
<div class="gallery-caption">
<?php the_excerpt() ?>
@ -28,7 +28,7 @@
</div>
<div class="imagenav-center">
<a href="<?php echo wp_get_attachment_url($post->ID) ?>" target="_blank" title="Click for full size." class="imagetitle"><?php the_title() ?></a><br />
<a href="<?php echo get_permalink($post->post_parent) ?>" rev="attachment">&larr; Back to Gallery</a>
<a href="<?php echo get_permalink($post->post_parent) ?>" rev="attachment"><?php _e('&larr; Back to Gallery','comicpress'); ?></a>
</div>
<div class="imagenav">
<div class="imagenav-bg">
@ -55,7 +55,7 @@
<div class="<?php comicpress_post_class(); ?>">
<div class="post-page-head"></div>
<div class="post-page">
<p>Sorry, no image matched your criteria.</p>
<p><?php _e('Sorry, no image matched your criteria.','comicpress'); ?></p>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 B

View File

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

View File

@ -12,7 +12,7 @@
<div class="column">
<?php } ?>
<?php if (is_cp_theme_layout('3c,v')) { ?>
<?php if (is_cp_theme_layout('3c,standard')) { ?>
<div id="subcontent-wrapper-top"></div>
<div id="subcontent-wrapper">
<?php } ?>

View File

@ -8,7 +8,7 @@
switch ( $value['type'] ) {
case "comicpress-excerpt_or_content_archive": ?>
<tr>
<th scope="row"><strong>Would you like to have users see the entire content or just an excerpt when viewing the archives?</strong><br /><br /></th>
<th scope="row"><strong><?php _e('Would you like to have users see the entire content or just an excerpt when viewing the archives?','comicpress'); ?></strong><br /><br /></th>
<td valign="top">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-excerpt" type="radio" value="excerpt"<?php if ( get_option( $value['id'] ) == "excerpt") { echo " checked"; } ?> />Excerpt</label>
&nbsp;&nbsp;
@ -20,7 +20,7 @@
<?php break;
case "comicpress-excerpt_or_content_search": ?>
<tr>
<th scope="row"><strong>Would you like to have users see the entire content or just an excerpt when searching?</strong><br /><br /></th>
<th scope="row"><strong><?php _e('Would you like to have users see the entire content or just an excerpt when searching?','comicpress'); ?></strong><br /><br /></th>
<td valign="top" width="160">
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-excerpt" type="radio" value="excerpt"<?php if ( get_option( $value['id'] ) == "excerpt") { echo " checked"; } ?> />Excerpt</label>
&nbsp;&nbsp;
@ -32,7 +32,7 @@
<?php break;
case "comicpress-archive_display_order": ?>
<tr>
<th scope="row"><strong>Display Archive in Ascending or Descending order?</strong><br /><br />Long time ago or most recent displays first?<br /></th>
<th scope="row"><strong><?php _e('Display Archive in Ascending or Descending order?','comicpress'); ?></strong><br /><br /><?php _e('Long time ago or most recent displays first?','comicpress'); ?><br /></th>
<td valign="top">
<label>
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
@ -45,14 +45,14 @@
<?php break;
case "comicpress-category_thumbnail_postcount": ?>
<tr>
<th scope="row"><b>Thumbnail PostCount (Archive)</b><br /><br />How many images in the comic category would you like to see in the archive page?</th>
<th scope="row"><b><?php _e('Thumbnail PostCount (Archive)','comicpress'); ?></b><br /><br /><?php _e('How many images in the comic category would you like to see in the archive page?','comicpress'); ?></th>
<td valign="top">
<label>
<input type="text" size="5" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php print get_option($value['id']); ?>" /><br />
</label>
</td>
<td valign="top">
If you set this to -1 it will display *all* available thumbnails for the comic category that is chosen to view.
<?php _e('If you set this to -1 it will display *all* available thumbnails for the comic category that is chosen to view.','comicpress'); ?>
</td>
</tr>
<?php break;

View File

@ -9,11 +9,11 @@
switch ( $value['type'] ) {
case "comicpress-buy_print_email": ?>
<tr>
<th scope="row"><b>Paypal Email Address</b><span style="color: #ff0000;">*</span><br /><br />The Email address you registered with Paypal and that your store is associated with.</th>
<th scope="row"><b><?php _e('Paypal Email Address','comicpress'); ?></b><span style="color: #ff0000;">*</span><br /><br /><?php _e('The Email address you registered with Paypal and that your store is associated with.','comicpress'); ?></th>
<td valign="top">
<label>
<input type="text" size="45" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php print get_option($value['id']); ?>" /><br />
<span style="color: #ff0000;">* This must be correct, you don't want other people getting your money.</span>
<span style="color: #ff0000;"><?php _e('* This must be correct, you do not want other people getting your money.','comicpress'); ?></span>
</label>
</td>
</tr>
@ -21,12 +21,12 @@
<?php break;
case "comicpress-buy_print_url": ?>
<tr>
<th scope="row"><b>Url Page of the Template</b><span style="color: #ff0000;">*</span><br /><br />The URL address to which you associated the buy print template.</th>
<th scope="row"><b><?php _e('Url Page of the Template','comicpress'); ?></b><span style="color: #ff0000;">*</span><br /><br /><?php _e('The URL address to which you associated the buy print template.','comicpress'); ?></th>
<td valign="top">
<label>
<input type="text" size="45" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php print get_option($value['id']); ?>" /><br />
<span style="color: #ff0000;">* This must be correct, the form needs some place to go.</span><br />
<b>Examples</b>:<br />
<span style="color: #ff0000;"><?php _e('* This must be correct, the form needs some place to go.','comicpress'); ?></span><br />
<b><?php _e('Examples','comicpress'); ?></b>:<br />
http://yourdomain.com/?p=233<br />
http://yourdomain.com/shop/<br />
/?p=233<br />
@ -38,7 +38,7 @@
<?php break;
case "comicpress-buy_print_us_amount": ?>
<tr>
<th scope="row"><b>Print Cost (US/Canada)</b><br /><br />How much does a print cost for people in the United State and Canada?</th>
<th scope="row"><b><?php _e('Print Cost (US/Canada)','comicpress'); ?></b><br /><br /><?php _e('How much does a print cost for people in the United State and Canada?','comicpress'); ?></th>
<td valign="top">
<label>
<input type="text" size="7" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php print get_option($value['id']); ?>" />
@ -49,7 +49,7 @@
<?php break;
case "comicpress-buy_print_us_ship": ?>
<tr>
<th scope="row"><b>Shipping Cost (US/Canada)</b><br /><br /></th>
<th scope="row"><b><?php _e('Shipping Cost (US/Canada)','comicpress'); ?></b><br /><br /></th>
<td valign="top">
<label>
<input type="text" size="7" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php print get_option($value['id']); ?>" />
@ -60,7 +60,7 @@
<?php break;
case "comicpress-buy_print_int_amount": ?>
<tr>
<th scope="row"><b>Print Cost (International)</b><br /><br />How much does a print cost for people *NOT* in the United States and Canda (International)</th>
<th scope="row"><b><?php _e('Print Cost (International)','comicpress'); ?></b><br /><br /><?php _e('How much does a print cost for people *NOT* in the United States and Canda (International)','comicpress'); ?></th>
<td valign="top">
<label>
<input type="text" size="7" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php print get_option($value['id']); ?>" />
@ -71,7 +71,7 @@
<?php break;
case "comicpress-buy_print_int_ship": ?>
<tr>
<th scope="row"><b>Shipping Cost (International)</b><br /><br /></th>
<th scope="row"><b><?php _e('Shipping Cost (International)','comicpress'); ?></b><br /><br /></th>
<td valign="top">
<label>
<input type="text" size="7" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php print get_option($value['id']); ?>" />

View File

@ -1,68 +0,0 @@
<?php
// Custom Image Header
define('HEADER_TEXTCOLOR', '000');
define('HEADER_IMAGE', '%s/images/header-blank.png'); // %s is theme dir
define('HEADER_IMAGE_WIDTH', $custom_image_header_width);
define('HEADER_IMAGE_HEIGHT', $custom_image_header_height);
function theme_admin_header_style() {
?>
<style type="text/css">
#headimg {
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
background: url(<?php header_image(); ?>) no-repeat center;
}
#headimg h1, #headimg .description
{
text-decoration: none;
<?php
if ( 'blank' == get_header_textcolor() ) { ?>
display: none;
<?php } else {
// Otherwise, set the color to be the user selected one
?>
color: #<?php header_textcolor();?>;
<?php } ?>
}
</style>
<?php
}
function theme_header_style() {
?>
<style type="text/css">
#header
{
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
background: url(<?php header_image(); ?>) no-repeat center;
}
<?php
// Has the text been hidden?
// If so, set display to equal none
if ( 'blank' == get_header_textcolor() ) { ?>
#header h1, #header .description {
display: none;
}
<?php } else {
// Otherwise, set the color to be the user selected one
?>
#header *
{
color: #<?php header_textcolor();?>;
}
}
<?php } ?>
</style>
<?php
}
if ( function_exists('add_custom_image_header') ) {
add_custom_image_header('theme_header_style', 'theme_admin_header_style');
}
?>

View File

@ -8,42 +8,42 @@
switch ( $value['type'] ) {
case "comicpress-enable_custom_image_header": ?>
<tr>
<th scope="row"><strong>Enable Custom Image Header panel?</strong><br /><br />Setting to &quot;Yes&quot; will set a new option in your Dashboard -> Appearance menu.<br /></th>
<th scope="row"><strong><?php _e('Enable Custom Image Header panel?','comicpress'); ?></strong><br /><br /><?php _e('Setting to &quot;Yes&quot; will set a new option in your Dashboard -> Appearance menu.','comicpress'); ?><br /></th>
<td valign="top" width="100">
<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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
Setting to "Yes" will set a new option in your Dashboard -> Appearance menu. Setting to "Yes" will set a new option in your Dashboard -> Appearance menu. Setting to "No" will not set a new option in your Dashboard -> Appearance menu. Setting to "Yes" will set a new option in your Dashboard -> Appearance menu.
<?php _e('Setting to "Yes" will set a new option in your Dashboard -> Appearance menu. Setting to "Yes" will set a new option in your Dashboard -> Appearance menu. Setting to "No" will not set a new option in your Dashboard -> Appearance menu. Setting to "Yes" will set a new option in your Dashboard -> Appearance menu.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-custom_image_header_height": ?>
<tr>
<th scope="row"><b>Header Image Height</b><br /><br />Set the <b>height</b> of the image you want to use in the Custom Image Header panel.</th>
<th scope="row"><b><?php _e('Header Image Height','comicpress'); ?></b><br /><br /><?php _e('Set the <b>height</b> of the image you want to use in the Custom Image Header panel.','comicpress'); ?></th>
<td valign="top">
<label>
<input type="text" size="5" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php print get_option($value['id']); ?>" /><br />
</label>
</td>
<td valign="top">
This area intentionally left blank.
<?php _e('This space intentionally left blank.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-custom_image_header_width": ?>
<tr>
<th scope="row"><b>Header Image Width</b><br /><br />Set the <b>width</b> of the image you want to use in the Custom Image Header panel.</th>
<th scope="row"><b><?php _e('Header Image Width','comicpress'); ?></b><br /><br /><?php _e('Set the <b>width</b> of the image you want to use in the Custom Image Header panel.','comicpress'); ?></th>
<td valign="top">
<label>
<input type="text" size="5" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="<?php print get_option($value['id']); ?>" /><br />
</label>
</td>
<td valign="top" rowspawn="5">
The Standard and V styles use <b>760</b> px width, while the 3C, GN and V3C use <b>980</b> px width. This is configurable in case you set the #page, #page-width widths in the CSS to something different than the default while using the Custom Header panel.
<?php _e('The Standard and V styles use <b>760</b> px width, while the 3C, GN, RGN and V3C use <b>980</b> px width. This is configurable in case you set the #page, #page-width widths in the CSS to something different than the default while using the Custom Header panel.','comicpress'); ?>
</td>
</tr>

View File

@ -8,44 +8,44 @@
switch ( $value['type'] ) {
case "comicpress-enable_widgetarea_use_sidebar_css": ?>
<tr>
<th scope="row"><strong>Enable Sidebar CSS?</strong><br /><br />Enabling this will use the standard CSS styling of the sidebars for all the widget areas.<br /><br /></th>
<th scope="row"><strong><?php _e('Enable Sidebar CSS in non-left/right sidebars?','comicpress'); ?></strong><br /><br /><?php _e('Enabling this will use the standard CSS styling of the sidebars for all the sidebar areas.','comicpress'); ?><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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
If not enabled it will use the .customwidgetarea user made styling only and only the Sidebar-left and Sidebar-right will use sidebar styling.<br />
<?php _e('If not enabled it will use the .customwidgetarea user made styling only and only the Sidebar-left and Sidebar-right will use sidebar styling.','comicpress'); ?><br />
</td>
</tr>
<?php break;
case "comicpress-enable_numbered_pagination": ?>
<tr>
<th scope="row"><strong>Enable numbered pagination?</strong><br /><br />Setting to &quot;Yes&quot; will make the Previous Entries and Next Entries turn into numbered pages to click on.</th>
<th scope="row"><strong><?php _e('Enable numbered pagination?','comicpress'); ?></strong><br /><br /><?php _e('Setting to &quot;Yes&quot; will make the Previous Entries and Next Entries turn into numbered pages to click on.','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
Numbered pagination appears on the home(index) page, the authors page the blog template and comments/single when there are more then the set # of comments per page. It's default is off, it is styled like the menubar.
<?php _e('Numbered pagination appears on the home(index) page, the authors page the blog template and comments/single when there are more then the set # of comments per page. The default is off, it is styled like the menubar.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-disable_page_restraints": ?>
<tr>
<th scope="row"><strong>Disable the #page / #page-wide restraints?</strong><br />
<th scope="row"><strong><?php _e('Disable the #page / #page-wide restraints?','comicpress'); ?></strong><br />
<br />
Turning this option to Yes will make it so that the divs for #page and #page-wide will not load.<br />
<?php _e('Turning this option to Yes will make it so that the divs for #page and #page-wide will not load.','comicpress'); ?><br />
<br />
<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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
What you can do with this is use the entire browser for your canvas instead of the 780px/980px that the two elements keep you in.</th>
<?php _e('What you can do with this is use the entire browser for your canvas instead of the 780px/980px that the two elements keep you in.','comicpress'); ?></th>
</td>
</tr>
@ -53,28 +53,28 @@
case "comicpress-comic_clicks_next": ?>
<tr>
<th scope="row"><strong>Make the comic an Href that goes to next comic?</strong><br /><br />In doing this if someone clicks the comic it will go to the next comic (if possible)<br /></th>
<th scope="row"><strong><?php _e('Make the comic an Href that goes to next comic?','comicpress'); ?></strong><br /><br /><?php _e('In doing this if someone clicks the comic it will go to the next comic (if possible)','comicpress'); ?><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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
When a user or yourself puts their mouse cursor over the comic that is displayed on either the index or single page the action that happens next is the first step in the larger, bigger, more astonishing consequence of actually having any the other things you place your mouse cursor over and click. You click, it goes to the next comic.
<?php _e('When a user or yourself puts their mouse cursor over the comic that is displayed on either the index or single page the action that happens next is the first step in the larger, bigger, more astonishing consequence of actually having any the other things you place your mouse cursor over and click. You click, it goes to the next comic.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-rascal_says": ?>
<tr>
<th scope="row"><strong>Enable Rascal the ComicPress Mascot?</strong><br /><br />Enabling this option will make a comic bubble appear over the comic and write out what you put in the hovertext.<br /></th>
<th scope="row"><strong><?php _e('Enable Rascal the ComicPress Mascot?','comicpress'); ?></strong><br /><br /><?php _e('Enabling this option will make a comic bubble appear over the comic and write out what you put in the hovertext.','comicpress'); ?><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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
You can add hovertext when uploading your comic with ComicPress Manager. To change the graphics for this you should probably know CSS quite well. If you don't good luck with it.
<?php _e('You can add hovertext when uploading your comic with ComicPress Manager. To change the graphics for this you should probably know CSS quite well.','comicpress'); ?>
</td>
</tr>
@ -93,7 +93,7 @@
?>
<tr>
<th scope="row"><strong>Graphic Navigation Directory</strong><br /><br />Choose a directory to get the graphic navigation styling from.<br /></th>
<th scope="row"><strong><?php _e('Graphic Navigation Directory','comicpress'); ?></strong><br /><br /><?php _e('Choose a directory to get the graphic navigation styling from.','comicpress'); ?><br /></th>
<td valign="top">
<label>
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
@ -114,8 +114,8 @@
<td valign="top">
<br />
<?php echo get_template_directory() . '/images/nav/'; ?>
Graphic Navigation directories are found in your theme directory/images/nav/* to create your own custom graphic navigation menu buttons just create a directory
under images/nav/ and place your image files inside of it and create a navstyle.css file to determine the style of your navigation display.
<?php _e('Graphic Navigation directories are found in your theme directory/images/nav/* to create your own custom graphic navigation menu buttons just create a directory
under images/nav/ and place your image files inside of it and create a navstyle.css file to determine the style of your navigation display.','comicpress'); ?>
</td>
</tr>
@ -134,13 +134,13 @@
?>
<tr>
<th scope="row"><strong>Calendar Directory</strong><br /><br />Choose a directory to get the Archive Calendar styling from.<br /></th>
<th scope="row"><strong><?php _e('Calendar Directory','comicpress'); ?></strong><br /><br /><?php _e('Choose a directory to get the Archive Calendar styling from.','comicpress'); ?><br /></th>
<td valign="top">
<label>
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
<option class="level-0" value="none" <?php if ($current_cal_directory == "none") { ?>selected="selected"<?php } ?>>none</option>
<?php if ($themepackcal) { ?>
<option class="level-0" value="themepack" <?php if ($current_cal_directory == "themepack") { ?>selected="selected"<?php } ?>>ThemePack (<?php echo $themepack_directory; ?>)</option>
<option class="level-0" value="themepack" <?php if ($current_cal_directory == "themepack") { ?>selected="selected"<?php } ?>><?php _e('ThemePack','comicpress'); ?> (<?php echo $themepack_directory; ?>)</option>
<?php } ?>
<?php
foreach ($cal_directories as $cal_dirs) {
@ -154,25 +154,25 @@
</label>
</td>
<td valign="top">
To not have calendar graphics, set this as "none".<br />
<?php _e('To not have calendar graphics, set this as "none".','comicpress'); ?><br />
<br />
<?php echo get_template_directory() . '/images/cal/'; ?>
Calendar directories are found in your theme directory/images/cal/* to create your own custom archive calendar images just create a directory
under images/cal/ and place your image files inside of it.
<?php _e('Calendar directories are found in your theme directory/images/cal/* to create your own custom archive calendar images just create a directory
under images/cal/ and place your image files inside of it.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-disable_footer_text": ?>
<tr>
<th scope="row"><strong>Disable the default text in the footer?</strong><br /><br />Set to &quot;Yes&quot; and the text in the footer will not show.<br /><br /></th>
<th scope="row"><strong><?php _e('Disable the default text in the footer?','comicpress'); ?></strong><br /><br /><?php _e('Set to &quot;Yes&quot; and the text in the footer will not show.','comicpress'); ?><br /><br /></th>
<td valign="top" width="100">
<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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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><br />
<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"; } ?> /><?php _e('No','comicpress'); ?></label><br />
</td>
<td valign="top">
Footer text that shows up in the #footer area can be simply removed this way.
<?php _e('Footer text that shows up in the #footer area can be simply removed this way.','comicpress'); ?>
</td>
</tr>
@ -186,7 +186,7 @@
?>
<tr>
<th scope="row"><strong>Avatar (no Gravatar) Directory</strong><br /><br />Choose a directory to get the avatars for default gravatars if someone doesnt have one.<br /></th>
<th scope="row"><strong><?php _e('Avatar (no Gravatar) Directory','comicpress'); ?></strong><br /><br /><?php _e('Choose a directory to get the avatars for default gravatars if someone doesnt have one.','comicpress'); ?><br /></th>
<td valign="top">
<label>
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
@ -206,11 +206,11 @@
<?php break;
case "comicpress-disable_comment_note": ?>
<tr>
<th scope="row"><strong>Disable the comment notes?</strong><br /><br />Disabling this will remove the note text that displays with more options for adding to comments (html).<br /><br /></th>
<th scope="row"><strong><?php _e('Disable the comment notes?','comicpress'); ?></strong><br /><br /><?php _e('Disabling this will remove the note text that displays with more options for adding to comments (html).','comicpress'); ?><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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
</td>

View File

@ -8,57 +8,57 @@
switch ( $value['type'] ) {
case "comicpress-disable_comic_frontpage": ?>
<tr>
<th scope="row"><strong>Disable Comic On Frontpage?</strong><br /><br />Set to &quot;Yes&quot; and the comic will not display on the index page/front page of your site.</th>
<th scope="row"><strong><?php _e('Disable Comic On Frontpage?','comicpress'); ?></strong><br /><br /><?php _e('Set to &quot;Yes&quot; and the comic will not display on the index page/front page of your site.','comicpress'); ?></th>
<td valign="top" width="100">
<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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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><br />
<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"; } ?> /><?php _e('No','comicpress'); ?></label><br />
</td>
<td valign="top" width="400">
Note: You can use the Latest Thumbnail widget to display your comic in a sidebar. Make sure you set the archive-thumbnail size to under 200px.
Turning this off and using the GN style turns ComicPress into a Blog.
<?php _e('Note: You can use the Latest Thumbnail widget to display your comic in a sidebar. Make sure you set the archive-thumbnail size to under 200px.
Turning this off and using the GN style turns ComicPress into a Blog.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-disable_comic_blog_frontpage": ?>
<tr>
<th scope="row"><strong>Disable the comic blog on the index and single pages?</strong><br /><br />Set to &quot;Yes&quot; and the blog portion of the comic will not display on the index page/front page of your site.<br /></th>
<th scope="row"><strong><?php _e('Disable the comic blog on the index and single pages?','comicpress'); ?></strong><br /><br /><?php _e('Set to &quot;Yes&quot; and the blog portion of the comic will not display on the index page/front page of your site.','comicpress'); ?><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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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><br />
<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"; } ?> /><?php _e('No','comicpress'); ?></label><br />
</td>
<td valign="top">
*Some* people,.. not naming names ..do not like to have a comic post let alone showing on the index page. You can use the comic blog post widget and place it anywhere around the comic. IF there is no content in the post it will not display.
<?php _e('*Some* people,.. not naming names ..do not like to have a comic post let alone showing on the index page. You can use the comic blog post widget and place it anywhere around the comic. IF there is no content in the post it will not display.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-disable_blog_frontpage": ?>
<tr>
<th scope="row"><strong>Disable the blog on the index page?</strong><br /><br />Set to &quot;Yes&quot; and the blog area will not display on the index page/front page of your site.<br /></th>
<th scope="row"><strong><?php _e('Disable the blog on the index page?','comicpress'); ?></strong><br /><br /><?php _e('Set to &quot;Yes&quot; and the blog area will not display on the index page/front page of your site.','comicpress'); ?><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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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><br />
<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"; } ?> /><?php _e('No','comicpress'); ?></label><br />
</td>
<td valign="top">
This feature is quite handy actually. If you disable this you can add a page to your menubar and associate it to the "blog" template, still keeping your blog, .. just not on the index page.
<?php _e('This feature is quite handy actually. If you disable this you can add a page to your menubar and associate it to the "blog" template, still keeping your blog, .. just not on the index page.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-disable_lrsidebars_frontpage": ?>
<tr>
<th scope="row"><strong>Disable the left and right sidebars on the index page?</strong><br /><br />Set to &quot;Yes&quot; and the index page/front page of your site will not display the left and right sidebars.<br /></th>
<th scope="row"><strong><?php _e('Disable the left and right sidebars on the index page?','comicpress'); ?></strong><br /><br /><?php _e('Set to &quot;Yes&quot; and the index page/front page of your site will not display the left and right sidebars.','comicpress'); ?><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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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><br />
<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"; } ?> /><?php _e('No','comicpress'); ?></label><br />
</td>
<td valign="top">
Minimalists dream. Best not to use with theme styles that have one of the styles that are to the side of the comic.
<?php _e('Minimalists dream. Best not to use with theme styles that have one of the styles that are to the side of the comic.','comicpress'); ?>
</td>
</tr>

View File

@ -12,7 +12,7 @@
<td valign="top">
<label>
<?php
$select = wp_dropdown_categories('show_option_none=Select category&show_count=1&orderby=name&echo=0&selected='.get_option( $value['id'] ));
$select = wp_dropdown_categories('show_option_none=Select category&show_count=0&orderby=name&echo=0&selected='.get_option( $value['id'] ));
$select = preg_replace('#<select([^>]*)>#', '<select name="'.$value['id'].'" id="'.$value['id'].'">', $select);
echo $select;
@ -29,4 +29,16 @@
<input type="hidden" name="action" value="comicpress_save" />
</form>
</div>
<div class="inside">
Usage:<br />
<br />
Edit the user with dashboard -> users -> author & users and flag the user you want to be a member with the option at the bottom.<br />
<br />
Inside posts, add [members] content you only want members to see [/members]<br />
<br />
Setting a 'members' category is a bit tricky. You *cannot* use a comic category, uncategorized or blog posts category, create a whole new category and called it "members",
then you set that category here and create a page called "Members" or something equivelant and associate the Member's Only template to it.<br />
<br />
This will make it so that that category is only seen as blogposts inside that area and not anywhere else on the site unless the user has the members flag.<br />
</div>
</div>

View File

@ -8,70 +8,70 @@
switch ( $value['type'] ) {
case "comicpress-enable_search_in_menubar": ?>
<tr>
<th scope="row"><strong>Enable Search Form in Menubar?</strong><br /><br /></th>
<th scope="row"><strong><?php _e('Enable Search Form in Menubar?','comicpress'); ?></strong><br /><br /></th>
<td valign="top" width="100">
<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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
Searchforms can be fun when you have something to search for.
<?php _e('Searchforms can be fun when you have something to search for.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-enable_rss_in_menubar": ?>
<tr>
<th scope="row"><strong>Enable RSS Link in Menubar?</strong><br /><br /></th>
<th scope="row"><strong><?php _e('Enable RSS Link in Menubar?','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
It's a link, it links to the RSS. It does *not* link to your the winning lottory numbers.
<?php _e('It is a link, it links to the RSS. It does *not* link to your the winning lottory numbers.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-enable_navigation_in_menubar": ?>
<tr>
<th scope="row"><strong>Enable mini navigation buttons in the Menubar?</strong><br /><br /></th>
<th scope="row"><strong><?Php _e('Enable mini navigation buttons in the Menubar?','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
Mini Navigation arrows reside on the right side of the menubar, just the previous and next arrows.
<?php _e('Mini Navigation arrows reside on the right side of the menubar, just the previous and next arrows.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-contact_in_menubar": ?>
<tr>
<th scope="row"><strong>Contact Link in Menubar</strong><br /><br />Setting to &quot;Yes&quot will put [&nbsp;CONTACT&nbsp;] in the menubar and associate it with your admin's email.</th>
<th scope="row"><strong><?php _e('Contact Link in Menubar','comicpress'); ?></strong><br /><br /><?php _e('Setting to &quot;Yes&quot will put [&nbsp;CONTACT&nbsp;] in the menubar and associate it with your admin email.','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
You can also create a links category called "menulinks" and whatever link you add to that will appear in the menubar.
<?php _e('You can also create a links category called "menubar" and whatever link you add to that will appear in the menubar.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-disable_dynamic_menubar_links": ?>
<tr>
<th scope="row"><strong>Disable the dynamically generated wordpress links?</strong><br /><br />Setting this to Yes will turn off the dynamic links in your menubar.<br /><br /></th>
<th scope="row"><strong><?php _e('Disable the dynamically generated wordpress links?','comicpress'); ?></strong><br /><br /><?php _e('Setting this to Yes will turn off the dynamic links in your menubar.','comicpress'); ?><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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
Setting this to yes will allow you to use the links category menulinks to create specific menu links for customizing the menubar, mostly used for making graphic images as links.
<?php _e('Setting this to yes will allow you to use the links category menulinks to create specific menu links for customizing the menubar, mostly used for making graphic images as links.','comicpress'); ?>
</td>
</tr>

View File

@ -8,14 +8,14 @@
switch ( $value['type'] ) {
case "comicpress-transcript_in_posts": ?>
<tr>
<th scope="row"><strong>Show transcript in post area?</strong><br /><br />When enabled, if the comic has a transcript, the transcript will be displayed inside the post for the comic.</th>
<th scope="row"><strong><?php _e('Show transcript in post area?','comicpress'); ?></strong><br /><br /><?php _e('When enabled, if the comic has a transcript, the transcript will be displayed inside the post for the comic.','comicpress'); ?></th>
<td valign="top" width="100">
<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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
The transcript is text that that you can have of your comic's speech. When you add a transcript of the comic to the post-edit or when you upload your comic you can enable this and a transcript box will appear *in* that comic's post area, alternatively you can set the transcript widget and have it placed anywhere *in* the same area of the comic.
<?php _e('The transcript is text that that you can have of your comics speech. When you add a transcript of the comic to the post-edit or when you upload your comic you can enable this and a transcript box will appear *in* that comics post area, alternatively you can set the transcript widget and have it placed anywhere *in* the same area of the comic.','comicpress'); ?>
</td>
</tr>
@ -28,7 +28,7 @@
$mood_directories = glob(get_template_directory() . '/images/moods/*');
?>
<tr>
<th scope="row"><strong>Moods Directory</strong><br /><br />Choose a directory to get the post moods from.<br /><br />Set this to 'none' to turn off use.<br /></th>
<th scope="row"><strong><?php _e('Moods Directory','comicpress'); ?></strong><br /><br /><?php _e('Choose a directory to get the post moods from.','comicpress'); ?><br /><br /><?php _e('Set this to "none" to turn off use.','comicpress'); ?><br /></th>
<td valign="top">
<label>
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
@ -46,52 +46,52 @@
</label>
</td>
<td valign="top">
Found: <?php echo $count; ?> moods in the "<?php echo $current_directory; ?>" directory.<br />
<?php _e('Found:','comicpress'); ?> <?php echo $count; ?> <?php _e('moods in the','comicpress'); ?> "<?php echo $current_directory; ?>" <?php _e('directory.','comicpress'); ?><br />
<br />
Mood directories are found in your theme directory/images/moods/* to create your own custom moods just create a directory
under images/moods/ and place ONLY image files inside of it. The name of the image file represents what the mood is.
<?php _e('Mood directories are found in your theme directory/images/moods/* to create your own custom moods just create a directory
under images/moods/ and place ONLY image files inside of it. The name of the image file represents what the mood is.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-enable_related_comics": ?>
<tr>
<th scope="row"><strong>Put Related Comics in comic posts?</strong><br /><br />Related comics on the list will be related by 'tags' that you create for each comic post.</th>
<th scope="row"><strong><?php _e('Put Related Comics in comic posts?','comicpress'); ?></strong><br /><br /><?php _e('Related comics on the list will be related by "tags" that you create for each comic post.','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
When creating tags for your comics, include *only* the subject material and possibly cast. Do not use tags that can relate to the entire archive or storyline the post is on.
<?php _e('When creating tags for your comics, include *only* the subject material and possibly cast. Do not use tags that can relate to the entire archive or storyline the post is on.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-enable_related_posts": ?>
<tr>
<th scope="row"><strong>Put Related Posts in blog posts?</strong><br /><br /></th>
<th scope="row"><strong><?php _e('Put Related Posts in blog posts?','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
Like the related posts for comics, the related posts for blog post checked with other blog posts comparing the tags. Do no use tags that relate to a massive amount of other things, make sure you stick to only using 1-5 tags total, the less the better.
<?php _e('Like the related posts for comics, the related posts for blog post checked with other blog posts comparing the tags. Do no use tags that relate to a massive amount of other things, make sure you stick to only using 1-5 tags total, the less the better.','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-enable_post_calendar": ?>
<tr>
<th scope="row"><strong>Add graphic calendar to blog posts?</strong><br /><br />Enabling this option will display a calendar image on your posts.</th>
<th scope="row"><strong><?php _e('Add graphic calendar to blog posts?','comicpress'); ?></strong><br /><br /><?php _e('Enabling this option will display a calendar image on your posts.','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
The graphic calendar is an image that has the date of the post overlayed on top of it. This option is for the blog posts.
<?php _e('The graphic calendar is an image that has the date of the post overlayed on top of it. This option is for the blog posts.','comicpress'); ?>
</td>
</tr>
@ -99,14 +99,14 @@
case "comicpress-enable_post_author_gravatar": ?>
<tr>
<th scope="row"><strong>Display a gravatar of the post author on blog posts?</strong><br /><br />Enabling this option will show a gravatar of the post author based on the authors email.</th>
<th scope="row"><strong><?php _e('Display a gravatar of the post author on blog posts?','comicpress'); ?></strong><br /><br /><?php _e('Enabling this option will show a gravatar of the post author based on the authors email.','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
Gravatar's are associated by your email address and you can create them at <a href="http://gravatar.com/">http://gravatar.com</a>. They are pictures of you, your cat of whatever you want to represent yourself.
<?php _e('Gravatars are associated by your email address and you can create them at','comicpress'); ?> <a href="http://gravatar.com/">http://gravatar.com</a>. <?php _e('They are pictures of you, your cat of whatever you want to represent yourself.','comicpress'); ?>
</td>
</tr>
@ -114,14 +114,14 @@
case "comicpress-enable_comic_post_calendar": ?>
<tr>
<th scope="row"><strong>Add graphic calendar to comic posts?</strong><br /><br />Enabling this option will display a calendar image on your posts.</th>
<th scope="row"><strong><?php _e('Add graphic calendar to comic posts?','comicpress'); ?></strong><br /><br /><?php _e('Enabling this option will display a calendar image on your posts.','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
The graphic calendar is an image that has the date of the post overlayed on top of it. This option is for the comic posts, and yes this was cut and pasted from the other one just the word "blog" was changed to "comic".
<?php _e('The graphic calendar is an image that has the date of the post overlayed on top of it. This option is for the comic posts, and yes this was cut and pasted from the other one just the word "blog" was changed to "comic".','comicpress'); ?>
</td>
</tr>
@ -129,14 +129,14 @@
case "comicpress-enable_comic_post_author_gravatar": ?>
<tr>
<th scope="row"><strong>Display a gravatar of the post author on comic posts?</strong><br /><br />Enabling this option will show a gravatar of the post author based on the authors email.</th>
<th scope="row"><strong><?php _e('Display a gravatar of the post author on comic posts?','comicpress'); ?></strong><br /><br /><?php _e('Enabling this option will show a gravatar of the post author based on the authors email.','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
Gravatar's are associated by your email address and you can create them at <a href="http://gravatar.com/">http://gravatar.com</a>. They are pictures of you, your cat of whatever you want to represent yourself. I didn't cut and paste this one, I just wasn't clever enough to change the text.
<?php _e('Gravatars are associated by your email address and you can create them at','comicpress'); ?> <a href="http://gravatar.com/">http://gravatar.com</a>. <?php _e('They are pictures of you, your cat of whatever you want to represent yourself.','comicpress'); ?>
</td>
</tr>
@ -144,14 +144,14 @@
case "comicpress-disable_categories_in_posts": ?>
<tr>
<th scope="row"><strong>Disable showing categories in posts?</strong><br /><br />The categories that are shown by default are the ones the post in set to.</th>
<th scope="row"><strong><?php _e('Disable showing categories in posts?','comicpress'); ?></strong><br /><br /><?php _e('The categories that are shown by default are the ones the post in set to.','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
Categores != Tags
<?php _e('Categores != Tags','comicpress'); ?>
</td>
</tr>
@ -159,28 +159,28 @@
case "comicpress-disable_tags_in_posts": ?>
<tr>
<th scope="row"><strong>Disable showing tags in posts?</strong><br /><br />Tags are 'descriptive keywords' describing the content of the post.</th>
<th scope="row"><strong><?php _e('Disable showing tags in posts?','comicpress'); ?></strong><br /><br /><?php _e('Tags are "descriptive keywords" describing the content of the post.','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
Tags != Categories
<?php _e('Tags != Categories','comicpress'); ?>
</td>
</tr>
<?php break;
case "comicpress-blogposts_with_comic": ?>
<tr>
<th scope="row"><strong>Show all posts on the same day while viewing single comics?</strong><br /><br /></th>
<th scope="row"><strong><?php _e('Show all blog posts up until the next comic post on single pages?','comicpress'); ?></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']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> /><?php _e('Yes','comicpress'); ?></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>
<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"; } ?> /><?php _e('No','comicpress'); ?></label>
</td>
<td valign="top">
All the blog posts that are on the same day as the comic your viewing will appear.
<?php _e('All the blog posts that are on the same day and greater to the next comic post on the comic your viewing will appear.','comicpress'); ?>
</td>
</tr>

View File

@ -18,16 +18,16 @@
switch ( $value['type'] ) {
case "comicpress-cp_theme_layout": ?>
<tr>
<th scope="row"><strong>Choose which theme layout you want to use.</strong><br /><br />This is the layout in which your theme will be presented.<br /><br /></th>
<th scope="row"><strong><?php _e('Choose which theme layout you want to use.','comicpress'); ?></strong><br /><br /><?php _e('This is the layout in which your theme will be presented.'); ?><br /><br /></th>
<td valign="top">
<label>
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" class="code" onchange="showimage(this,'cpthemestyle')">
<option class="level-0" value="standard" <?php if (get_option($value['id'])=='standard') { ?>selected="selected" <?php } ?>>Standard</option>
<option class="level-0" value="3c" <?php if (get_option($value['id'])=='3c') { ?>selected="selected" <?php } ?>>3-Column</option>
<option class="level-0" value="gn" <?php if (get_option($value['id'])=='gn') { ?>selected="selected" <?php } ?>>Graphic Novel</option>
<option class="level-0" value="rgn" <?php if (get_option($value['id'])=='rgn') { ?>selected="selected" <?php } ?>>R Graphic Novel</option>
<option class="level-0" value="v" <?php if (get_option($value['id'])=='v') { ?>selected="selected" <?php } ?>>Vertical</option>
<option class="level-0" value="v3c" <?php if (get_option($value['id'])=='v3c') { ?>selected="selected" <?php } ?>>Vertical 3-Column</option>
<option class="level-0" value="standard" <?php if (get_option($value['id'])=='standard') { ?>selected="selected" <?php } ?>><?php _e('Standard','comicpress'); ?></option>
<option class="level-0" value="3c" <?php if (get_option($value['id'])=='3c') { ?>selected="selected" <?php } ?>><?php _e('3 Column','comicpress'); ?></option>
<option class="level-0" value="gn" <?php if (get_option($value['id'])=='gn') { ?>selected="selected" <?php } ?>><?php _e('Graphic Novel Left','comicpress'); ?></option>
<option class="level-0" value="rgn" <?php if (get_option($value['id'])=='rgn') { ?>selected="selected" <?php } ?>><?php _e('Graphic Novel Right','comicpress'); ?></option>
<option class="level-0" value="v" <?php if (get_option($value['id'])=='v') { ?>selected="selected" <?php } ?>><?php _e('Vertical','comicpress'); ?></option>
<option class="level-0" value="v3c" <?php if (get_option($value['id'])=='v3c') { ?>selected="selected" <?php } ?>><?php _e('Vertical 3 Column','comicpress'); ?></option>
</select>
</label>
</td>
@ -46,7 +46,7 @@
?>
<tr>
<th scope="row"><strong>Themepack</strong><br /><br />Choose a Themepack to use.<br /></th>
<th scope="row"><strong><?php _e('Themepack','comicpress'); ?></strong><br /><br /><?php _e('Choose a Themepack to use.','comicpress'); ?><br /></th>
<td valign="top">
<label>
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">

View File

@ -1,162 +0,0 @@
<?php
/*
Plugin Name: WP-PageNavi
Plugin URI: http://lesterchan.net/portfolio/programming/php/
Description: Adds a more advanced paging navigation to your WordPress blog.
Version: 2.40
Author: Lester 'GaMerZ' Chan
Author URI: http://lesterchan.net
*/
/*
Copyright 2008 Lester Chan (email : lesterchan@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
### Function: Page Navigation: Boxed Style Paging
function wp_pagenavi($before = '', $after = '') {
global $wpdb, $wp_query;
pagenavi_init(); //Calling the pagenavi_init() function
if (!is_single()) {
$request = $wp_query->request;
$posts_per_page = intval(get_query_var('posts_per_page'));
$paged = intval(get_query_var('paged'));
$pagenavi_options = get_option('pagenavi_options');
$numposts = $wp_query->found_posts;
$max_page = $wp_query->max_num_pages;
/*
$numposts = 0;
if(strpos(get_query_var('tag'), " ")) {
preg_match('#^(.*)\sLIMIT#siU', $request, $matches);
$fromwhere = $matches[1];
$results = $wpdb->get_results($fromwhere);
$numposts = count($results);
} else {
preg_match('#FROM\s*+(.+?)\s+(GROUP BY|ORDER BY)#si', $request, $matches);
$fromwhere = $matches[1];
$numposts = $wpdb->get_var("SELECT COUNT(DISTINCT ID) FROM $fromwhere");
}
$max_page = ceil($numposts/$posts_per_page);
*/
if(empty($paged) || $paged == 0) {
$paged = 1;
}
$pages_to_show = intval($pagenavi_options['num_pages']);
$pages_to_show_minus_1 = $pages_to_show-1;
$half_page_start = floor($pages_to_show_minus_1/2);
$half_page_end = ceil($pages_to_show_minus_1/2);
$start_page = $paged - $half_page_start;
if($start_page <= 0) {
$start_page = 1;
}
$end_page = $paged + $half_page_end;
if(($end_page - $start_page) != $pages_to_show_minus_1) {
$end_page = $start_page + $pages_to_show_minus_1;
}
if($end_page > $max_page) {
$start_page = $max_page - $pages_to_show_minus_1;
$end_page = $max_page;
}
if($start_page <= 0) {
$start_page = 1;
}
if($max_page > 1 || intval($pagenavi_options['always_show']) == 1) {
$pages_text = str_replace("%CURRENT_PAGE%", number_format_i18n($paged), $pagenavi_options['pages_text']);
$pages_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pages_text);
echo $before.'<div id="paginav"><ul>'."\n";
switch(intval($pagenavi_options['style'])) {
case 1:
if(!empty($pages_text)) {
echo '<li class="paginav-pages">'.$pages_text.'</li>';
}
if ($start_page >= 2 && $pages_to_show < $max_page) {
$first_page_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pagenavi_options['first_text']);
echo '<li><a href="'.clean_url(get_pagenum_link()).'" title="'.$first_page_text.'">'.$first_page_text.'</a></li>';
if(!empty($pagenavi_options['dotleft_text'])) {
echo '<li class="paginav-extend">'.$pagenavi_options['dotleft_text'].'</li>';
}
}
echo '<li class="paginav-previous">';
previous_posts_link($pagenavi_options['prev_text']);
echo '</li>';
for($i = $start_page; $i <= $end_page; $i++) {
if($i == $paged) {
$current_page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['current_text']);
echo '<li class="paginav-current">'.$current_page_text.'</li>';
} else {
$page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['page_text']);
echo '<li><a href="'.clean_url(get_pagenum_link($i)).'" title="'.$page_text.'">'.$page_text.'</a></li>';
}
}
echo '<li class="paginav-next">';
next_posts_link($pagenavi_options['next_text'], $max_page);
echo '</li>';
if ($end_page < $max_page) {
if(!empty($pagenavi_options['dotright_text'])) {
echo '<li class="paginav-extend">'.$pagenavi_options['dotright_text'].'</li>';
}
$last_page_text = str_replace("%TOTAL_PAGES%", number_format_i18n($max_page), $pagenavi_options['last_text']);
echo '<li><a href="'.clean_url(get_pagenum_link($max_page)).'" title="'.$last_page_text.'">'.$last_page_text.'</a></li>';
}
break;
case 2;
echo '<form action="'.htmlspecialchars($_SERVER['PHP_SELF']).'" method="get">'."\n";
echo '<select size="1" onchange="document.location.href = this.options[this.selectedIndex].value;">'."\n";
for($i = 1; $i <= $max_page; $i++) {
$page_num = $i;
if($page_num == 1) {
$page_num = 0;
}
if($i == $paged) {
$current_page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['current_text']);
echo '<option value="'.clean_url(get_pagenum_link($page_num)).'" selected="selected" class="current">'.$current_page_text."</option>\n";
} else {
$page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['page_text']);
echo '<option value="'.clean_url(get_pagenum_link($page_num)).'">'.$page_text."</option>\n";
}
}
echo "</select>\n";
echo "</form>\n";
break;
}
echo '</ul></div>'.$after."\n";
}
}
}
### Function: Page Navigation Options
add_action('activate_wp-pagenavi/wp-pagenavi.php', 'pagenavi_init');
function pagenavi_init() {
// Add Options
$pagenavi_options = array();
$pagenavi_options['pages_text'] = __('Page %CURRENT_PAGE% of %TOTAL_PAGES%','wp-pagenavi');
$pagenavi_options['current_text'] = '%PAGE_NUMBER%';
$pagenavi_options['page_text'] = '%PAGE_NUMBER%';
$pagenavi_options['first_text'] = __('&laquo; First','wp-pagenavi');
$pagenavi_options['last_text'] = __('Last &raquo;','wp-pagenavi');
$pagenavi_options['next_text'] = __('&raquo;','wp-pagenavi');
$pagenavi_options['prev_text'] = __('&laquo;','wp-pagenavi');
$pagenavi_options['dotright_text'] = __('...','wp-pagenavi');
$pagenavi_options['dotleft_text'] = __('...','wp-pagenavi');
$pagenavi_options['style'] = 1;
$pagenavi_options['num_pages'] = 5;
$pagenavi_options['always_show'] = 0;
add_option('pagenavi_options', $pagenavi_options, 'PageNavi Options');
}
?>

View File

@ -8,9 +8,9 @@
<h2 class="pagetitle"><?php the_title() ?></h2>
<div class="entry">
<?php the_content() ?>
<?php wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">Pages:</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?>
<?php wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">'.__('Pages:','comicpress').'</span> ', 'after' => '</div>', 'next_or_number' => 'number')); ?>
</div>
<?php edit_post_link('Edit this page.', '<p>', '</p>') ?>
<?php edit_post_link(__('Edit this page.','comicpress'), '<p>', '</p>') ?>
<br class="clear-margins" />
</div>
<div class="post-page-foot"></div>

View File

@ -31,7 +31,7 @@ $count = $tmp_search->post_count;
<?php } ?>
<div class="post-text">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></small><br />
</div>
<div class="clear"></div>
</div>
@ -64,7 +64,7 @@ $count = $tmp_search->post_count;
<?php } ?>
<div class="post-text">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
<small> By <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y'); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></small><br />
<?php if ($disable_categories_in_posts != 'yes') { ?>
<small><?php _e('Posted In:','comicpress'); ?><?php the_category(','); ?></small><br />
<?php } ?>
@ -73,7 +73,7 @@ $count = $tmp_search->post_count;
</div>
<div class="post-extras">
<div class="tags">
<?php the_tags('&#9492; Tags: ',', ','<br />'); ?>
<?php the_tags(__('&#9492; Tags: ','comicpress'),', ','<br />'); ?>
</div>
<div class="clear"></div>
</div>

View File

@ -33,7 +33,7 @@ $count = $tmp_search->post_count;
<?php } ?>
<div class="post-text">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small> <?php _e('By','comicpress'); ?> <?php the_author_posts_link(); ?> <?php _e('on','comicpress'); ?> <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
<small> <?php _e('By','comicpress'); ?> <?php the_author_posts_link(); ?> <?php _e('on','comicpress'); ?> <?php the_time('F jS, Y'); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></small><br />
</div>
<div class="clear"></div>
</div>
@ -62,7 +62,7 @@ $count = $tmp_search->post_count;
<?php } ?>
<div class="post-text">
<h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<small> <?php _e('By','comicpress'); ?> <?php the_author_posts_link(); ?> <?php _e('on','comicpress'); ?> <?php the_time('F jS, Y'); ?> <?php edit_post_link('Edit Post', ' [ ', ' ] '); ?></small><br />
<small> <?php _e('By','comicpress'); ?> <?php the_author_posts_link(); ?> <?php _e('on','comicpress'); ?> <?php the_time('F jS, Y'); ?> <?php edit_post_link(__('Edit Post','comicpress'), ' [ ', ' ] '); ?></small><br />
<?php if ($disable_categories_in_posts != 'yes') { ?>
<?php if ($post->post_type == 'page') { ?>
<small><?php _e('This is a page.','comicpress'); ?></small><break />

View File

@ -1,6 +1,6 @@
<form method="get" id="searchform-transcript" action="<?php bloginfo('url'); ?>/">
<div>
<input type="text" value="Search Transcripts..." name="s" id="s-transcript" onfocus="this.value=(this.value=='Search Transcripts...') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'Search Transcripts...' : this.value;" /><input type="hidden" name="key" value="transcript" />
<input type="text" value="<?php _e('Search Transcripts...','comicpress'); ?>" name="s" id="s-transcript" onfocus="this.value=(this.value=='<?php _e('Search Transcripts...','comicpress'); ?>') ? '' : this.value;" onblur="this.value=(this.value=='') ? '<?php _e('Search Transcripts...','comicpress'); ?>' : this.value;" /><input type="hidden" name="key" value="transcript" />
<button type="submit" class="button">&#9658;</button>
</div>
</form>

View File

@ -1,6 +1,6 @@
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<div>
<input type="text" value="Search Site..." name="s" id="s-search" onfocus="this.value=(this.value=='Search Site...') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'Search Site...' : this.value;" />
<input type="text" value="<?php _e('Search Site...','comicpress'); ?>" name="s" id="s-search" onfocus="this.value=(this.value=='<?php _e('Search Site...','comicpress'); ?>') ? '' : this.value;" onblur="this.value=(this.value=='') ? '<?php _e('Search Site...','comicpress'); ?>' : this.value;" />
<button type="submit" class="button">&#9658;</button>
</div>
</form>

View File

@ -93,7 +93,7 @@
<div class="<?php comicpress_post_class(); ?>">
<div class="post-head"></div>
<div class="post">
<p>Sorry, no posts matched your criteria.</p>
<p><?php _e('Sorry, no posts matched your criteria.','comicpress'); ?></p>
<br class="clear-margins" />
</div>
<div class="post-foot"></div>

View File

@ -382,6 +382,11 @@ h3, h3 a {
padding: 5px 0;
text-align: center;
}
#footer .footer-pipe {
color: #fff000;
padding: 0 2px;
}
/* NAVIGATION */
@ -459,19 +464,26 @@ a.navi-comments:hover span {
padding: 5px 0;
}
#subcontent-wrapper {
padding: 5px 0;
}
#content {
float: left;
overflow: hidden;
}
.narrowcolumn {
width: 560px;
margin: 0 5px;
width: 570px;
padding: 5px;
}
.widecolumn {
width: 760px;
margin: 0 5px;
width: 770px;
padding: 5px;
}
.column {
overflow: hidden;
}
.post, .post-comic, .post-page {
@ -1224,7 +1236,6 @@ li.pingback div p, li.trackback div p {
}
.cpcal-cals {
width: 516px;
margin: 0 auto;
padding-left: 5px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

View File

@ -16,7 +16,7 @@ http://www.opensource.org/licenses/gpl-3.0.html
body {
margin: 0;
font-family: 'Arial',sans-serif;
background: #A28366 none repeat scroll 0 0;
background: #A28366 url('background.png') top repeat-x;
color: #572B2A;
font-size: 14px;
}
@ -115,166 +115,66 @@ h2 a:hover, h3 a:hover {
/* THE HEADER */
#header {
width: 567px;
height: 56px;
padding: 102px 0 0 333px;
margin: 0 auto;
background: url('header.jpg') no-repeat;
overflow: hidden;
}
#header h1 {
text-indent: -9999px;
}
.description {
text-indent: -9999px;
}
width: 900px;
height: 158px;
background: url('header.png');
}
#header ul {
margin: 0;
padding: 0;
list-style: none;
background: #f00;
}
#header h1 {
padding: 0;
}
#header li {
margin: 0;
padding: 0;
float: left;
}
#header h1 a {
height: 158px;
width: 320px;
padding: 0;
float: left;
display: block;
text-indent: -9999px;
}
#header li a {
height: 40px;
padding: 0;
margin: 0;
display: block;
text-indent: -1000px;
background-image: url('header.jpg');
background-repeat: no-repeat;
overflow: hidden;
}
.description {
display: none;
}
.menu-home {
width: 78px;
background-position: 0 40px;
}
#menu-rss {
height: 40px;
width: 60px;
display: block;
float: left;
margin: 108px 0 0 320px;
text-indent: -9999px;
}
.menu-home:hover {
background-position: -333px -158px;
}
#menu-rss:hover {
background: url('header.png') -640px -158px;
}
.menu-newreaders {
width: 162px;
background-position: 0 40px;
}
.menu-newreaders:hover {
background-position: -411px -158px;
}
#menu-shop {
height: 40px;
width: 80px;
display: block;
float: left;
margin: 108px 0 0 0;
text-indent: -9999px;
}
.menu-forum {
width: 94px;
background-position: 0 40px;
}
#menu-shop:hover {
background: url('header.png') -700px -158px;
}
.menu-forum:hover {
background-position: -573px -158px;
}
#menu-contact {
height: 40px;
width: 100px;
display: block;
float: left;
margin: 108px 0 0 0;
text-indent: -9999px;
}
.menu-store {
width: 87px;
background-position: 0 40px;
}
.menu-store:hover {
background-position: -667px -158px;
}
.menu-contact {
width: 110px;
background-position: 0 40px;
}
.menu-contact:hover {
background-position: -754px -158px;
}
/* THE MENU */
#menubar {
width: 900px;
height: 25px;
margin: 0 auto;
background: #000;
}
#menunav {
margin: 0;
padding: 1px 0 0 0;
float: right;
font-size: 19px;
}
#menunav a {
margin: 0 1px 0 0;
color: #aaa;
text-decoration: none;
background: #222;
-moz-border-radius: 10px;
-khtml-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
#menunav a:hover {
color: #fff;
background: #555;
}
.prev {
padding: 0 2px 0 0;
}
.next {
padding: 0 0 0 2px;
}
#menu {
color: #999;
font-size: 12px;
text-transform: uppercase;
}
#menu ul {
margin: 0;
padding: 0;
list-style: none;
}
#menu li {
margin: 0;
padding: 0;
float: left;
}
#menu li a {
height: 25px;
padding: 0 5px 0 5px;
display: block;
float: left;
color: #aaa;
line-height: 25px;
text-decoration: none;
border-width: 0 1px 0 0;
border-style: solid;
border-color: #aaa;
}
#menu li a:hover {
color: #fff;
background: #333;
}
#menu-contact:hover {
background: url('header.png') -780px -158px;
}
#content-wrapper {

View File

@ -1,5 +1,5 @@
<strong>ThemePack (default)</strong>: Silver<br />
<strong>Author</strong>: Tyler Martin<br />
<strong>Author</strong>: ComicPress Development Team<br />
<strong>Layouts</strong>: standard, 3c, gn, v, v3c<br />
<br />
<strong>Installation Notes</strong>:<br />

View File

@ -30,6 +30,11 @@ body {
background: #f00 url('menu.png') 0 -75px;
}
.narrowcolumn {
width: 560px;
}
/* THE HEADER */
#header {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

View File

@ -1,5 +1,5 @@
<strong>ThemePack</strong>: twopointfive<br />
<strong>Author</strong>: Philip M. Hofer (Frumph)<br />
<strong>Author</strong>: ComicPress Development Team<br />
<strong>Layouts</strong>: standard, 3c, gn, v, v3c<br />
<br />
<strong>Installation Notes</strong>:<br />

View File

@ -9,7 +9,24 @@ Version: 0.1.0
/* STANDARD TAGS */
body {
background: #cfb256 url('background.jpg') repeat;
background: #444 url('background.png') repeat;
}
#page, #page-wide {
background: #ddd;
border-left: solid 1px #000;
border-right: solid 1px #000;
border-bottom: solid 1px #000;
}
#page-wrap {
padding: 0 10px;
background: url('classic-background-narrow.png') top center repeat-y;
}
#page-wide-wrap {
padding: 0 10px;
background: url('classic-background-wide.png') top center repeat-y;
}
#header {
@ -63,24 +80,6 @@ body {
color: #fff;
}
#page, #page-wide {
background: #ddd;
border-left: solid 1px #000;
border-right: solid 1px #000;
border-bottom: solid 1px #000;
}
#page-wrap {
padding: 0 10px;
background: url('classic-background-narrow.png') top center repeat-y;
}
#page-wrap-wide {
padding: 0 10px;
background: url('classic-background-wide.png') top center repeat-y;
}
.page .narrowcolumn { padding-top: 5px; }
#comic-head {
@ -151,4 +150,10 @@ body {
.widget_sociable_widget {
margin: 0 auto;
padding: 0 0;
}
}
.cpcal-cals {
width: 516px;
margin: 0 auto;
padding-left: 5px;
}

View File

@ -13,7 +13,7 @@ function comicpress_archive_dropdown() { ?>
<ul>
<li class="archive-dropdown-wrap">
<select name="archive-dropdown" class="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'>
<option value=""><?php echo attribute_escape(__('Archives...')); ?></option>
<option value=""><?php echo attribute_escape(__('Archives...','comicpress')); ?></option>
<?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?> </select>
</li>
</ul>
@ -22,8 +22,8 @@ function comicpress_archive_dropdown() { ?>
class widget_comicpress_archive_dropdown extends WP_Widget {
function widget_comicpress_archive_dropdown() {
$widget_ops = array('classname' => 'widget_comicpress_archive_dropdown', 'description' => 'Display a dropdown list of your archives, styled.' );
$this->WP_Widget('archive_dropdown', 'ComicPress Archive Dropdown', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_archive_dropdown', 'description' => __('Display a dropdown list of your archives, styled.','comicpress') );
$this->WP_Widget('archive_dropdown', __('ComicPress Archive Dropdown','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -47,7 +47,7 @@ class widget_comicpress_archive_dropdown extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -41,7 +41,7 @@ global $post, $wp_query;
}
document.write('<div id="bmh" style="width: 173px; margin: 15px 0 0 0; padding: 5px; position: absolute; color: #eee; font-size: 11px; background-color:#222; border: 1px solid #ccc; visibility: hidden;"><strong>COMIC BOOKMARK</strong><br />Click "Tag Page" to bookmark a comic page. When you return to the site, click "Goto Tag" to continue where you left off.</div>');
<?php if (is_home()) { ?>
document.write('<a href="#" onClick="bmhome();return false;"><img src="'+imgTag+'" alt="Tag This Page" border="0"></a>');
document.write('<a href="#" onClick="bmhome();return false;"><img src="'+imgTag+'" alt="<?php __('Tag This Page','comicpress'); ?>" border="0"></a>');
document.write('<a href="#" onClick="gto();return false;"><img src="'+gt+'" alt="Goto Tag" border="0" id="gtc"></a>');
document.write('<a href="#" onClick="bmc();return false;"><img src="'+ct+'" alt="Clear Tag" border="0" id="rmc"></a>');
document.write('<a href="#" onMouseOver="document.getElementById(\'bmh\').style.visibility=\'visible\';" onMouseOut="document.getElementById(\'bmh\').style.visibility=\'hidden\';" onClick="return false;"><img src="'+imgInfo+'" alt="" border="0"></a>');
@ -116,8 +116,8 @@ global $post, $wp_query;
class widget_comicpress_bookmark extends WP_Widget {
function widget_comicpress_bookmark() {
$widget_ops = array('classname' => 'widget_comicpress_bookmark', 'description' => 'Creates a set of buttons that let the user return to the page they tagged.' );
$this->WP_Widget('comicpress_bookmark', 'ComicPress Bookmark', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_bookmark', 'description' => __('Creates a set of buttons that let the user return to the page they tagged.','comicpress') );
$this->WP_Widget('comicpress_bookmark', __('ComicPress Bookmark','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -140,7 +140,7 @@ class widget_comicpress_bookmark extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -23,8 +23,8 @@ function buy_this_print_comic() {
class widget_comicpress_buy_this_print extends WP_Widget {
function widget_comicpress_buy_this_print() {
$widget_ops = array('classname' => 'widget_comicpress_buy_this_print', 'description' => 'Adds a button that goes to the buy print template page.' );
$this->WP_Widget('comicpress_buyprint', 'Buy This Print', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_buy_this_print', 'description' => __('Adds a button that goes to the buy print template page.','comicpress') );
$this->WP_Widget('comicpress_buyprint', __('Buy This Print','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -48,7 +48,7 @@ class widget_comicpress_buy_this_print extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -24,7 +24,7 @@ function comicpress_calendar($instance = null) {
<div class="wp-calendar-download">
<img src="<?php echo $thumbnail; ?>" class="wp-calendar-thumb" alt="" /><br />
<?php if (!empty($small) || !empty($medium) || !empty($large)) { ?>
DOWNLOAD <?php if (!empty($small)) { ?><a href="<?php echo $small; ?>" title="Download Small">S</a><?php } ?><?php if (!empty($medium)) { ?><a href="<?php echo $medium; ?>" title="Download Medium">M</a><?php } ?><?php if (!empty($large)) { ?><a href="<?php echo $large; ?>" title="Download Large">L</a><?php } ?>
<?php _e('DOWNLOAD','comicpress'); ?> <?php if (!empty($small)) { ?><a href="<?php echo $small; ?>" title="<?php _e('Download Small','comicpress'); ?>"><?php _e('S','comicpress'); ?></a><?php } ?><?php if (!empty($medium)) { ?><a href="<?php echo $medium; ?>" title="<?php _e('Download Medium','comicpress'); ?>"><?php _e('M','comicpress'); ?></a><?php } ?><?php if (!empty($large)) { ?><a href="<?php echo $large; ?>" title="<?php _e('Download Large','comicpress'); ?>"><?php _e('L','comicpress'); ?></a><?php } ?>
<?php } ?>
</div>
<?php } ?>
@ -36,8 +36,8 @@ function comicpress_calendar($instance = null) {
class widget_comicpress_calendar extends WP_Widget {
function widget_comicpress_calendar() {
$widget_ops = array('classname' => 'widget_comicpress_calendar', 'description' => 'Display a calendar showing this months posts. (this calendar does not drop lines if there is no title given.)' );
$this->WP_Widget('comicpress_calendar', 'Comicpress Calendar', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_calendar', 'description' => __('Display a calendar showing this months posts. (this calendar does not drop lines if there is no title given.)','comicpress') );
$this->WP_Widget('comicpress_calendar', __('Comicpress Calendar','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -70,11 +70,11 @@ class widget_comicpress_calendar extends WP_Widget {
$medium = strip_tags($instance['medium']);
$large = strip_tags($instance['large']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('thumbnail'); ?>">Thumbnail URL (178px by 130px): <input class="widefat" id="<?php echo $this->get_field_id('thumbnail'); ?>" name="<?php echo $this->get_field_name('thumbnail'); ?>" type="text" value="<?php echo attribute_escape($thumbnail); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('small'); ?>">Wallpaper URL (Small): <input class="widefat" id="<?php echo $this->get_field_id('small'); ?>" name="<?php echo $this->get_field_name('small'); ?>" type="text" value="<?php echo attribute_escape($small); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('medium'); ?>">Wallpaper URL (Medium): <input class="widefat" id="<?php echo $this->get_field_id('medium'); ?>" name="<?php echo $this->get_field_name('medium'); ?>" type="text" value="<?php echo attribute_escape($medium); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('large'); ?>">Wallpaper URL (Large): <input class="widefat" id="<?php echo $this->get_field_id('large'); ?>" name="<?php echo $this->get_field_name('large'); ?>" type="text" value="<?php echo attribute_escape($large); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('thumbnail'); ?>"><?php _e('Thumbnail URL (178px by 130px):','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('thumbnail'); ?>" name="<?php echo $this->get_field_name('thumbnail'); ?>" type="text" value="<?php echo attribute_escape($thumbnail); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('small'); ?>"><?php _e('Wallpaper URL (Small):','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('small'); ?>" name="<?php echo $this->get_field_name('small'); ?>" type="text" value="<?php echo attribute_escape($small); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('medium'); ?>"><?php _e('Wallpaper URL (Medium):','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('medium'); ?>" name="<?php echo $this->get_field_name('medium'); ?>" type="text" value="<?php echo attribute_escape($medium); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('large'); ?>"><?php _e('Wallpaper URL (Large):','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('large'); ?>" name="<?php echo $this->get_field_name('large'); ?>" type="text" value="<?php echo attribute_escape($large); ?>" /></label></p>
<?php
}

View File

@ -12,8 +12,8 @@ Author URI: http://webcomicplanet.com/
class widget_comicpress_comic_blog_post extends WP_Widget {
function widget_comicpress_comic_blog_post() {
$widget_ops = array('classname' => 'widget_comicpress_comic_blog_post', 'description' => 'Displays the comic blog post, ..used to be around the comic areas.' );
$this->WP_Widget('comic_blog_post', 'Comic Blog Post', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_comic_blog_post', 'description' => __('Displays the comic blog post, ..used to be around the comic areas. Does not show if there is no content.','comicpress') );
$this->WP_Widget('comic_blog_post', __('Comic Blog Post','comicpress'), $widget_ops);
}
function widget($args, $instance) {

View File

@ -12,8 +12,8 @@ Author URI: http://webcomicplanet.com/
class widget_comicpress_comments extends WP_Widget {
function widget_comicpress_comments() {
$widget_ops = array('classname' => 'widget_comicpress_comments', 'description' => 'Displays a comments link.' );
$this->WP_Widget('comic_comments', 'Comic Comments', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_comments', 'description' => __('Displays a comments link. (used in comic sidebars)','comicpress') );
$this->WP_Widget('comic_comments', __('Comic Comments','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -21,7 +21,7 @@ class widget_comicpress_comments extends WP_Widget {
extract($args, EXTR_SKIP);
echo $before_widget;
$title = empty($instance['title']) ? 'Permalink' : apply_filters('widget_title', $instance['title']); ?>
$title = empty($instance['title']) ? _('Permalink','comicpress') : apply_filters('widget_title', $instance['title']); ?>
<?php if ('open' == $post->comment_status) { ?><div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty">&rdquo;</span>Comment ', '<span class="comment-balloon">1</span>Comment ', '<span class="comment-balloon">%</span>Comment '); ?></div><?php } ?>
<?php
echo $after_widget;
@ -37,7 +37,7 @@ class widget_comicpress_comments extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '') );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">New Link name:<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('New Link name:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -12,8 +12,8 @@ Author URI: http://webcomicplanet.com/
class widget_comicpress_comic_date extends WP_Widget {
function widget_comicpress_comic_date() {
$widget_ops = array('classname' => 'widget_comicpress_comic_date', 'description' => 'Displays the date of the post of the comic.' );
$this->WP_Widget('comic_date', 'Comic Date', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_comic_date', 'description' => __('Displays the date of the post of the comic.','comicpress') );
$this->WP_Widget('comic_date', __('Comic Date','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -40,9 +40,9 @@ class widget_comicpress_comic_date extends WP_Widget {
$format = strip_tags($instance['format']);
if (empty($format)) $format = 'F jS, Y';
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Words to use before date:<br /><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('format'); ?>">Format of the Time/Date:<br /><input class="widefat" id="<?php echo $this->get_field_id('format'); ?>" name="<?php echo $this->get_field_name('format'); ?>" type="text" value="<?php echo attribute_escape($format); ?>" /></label></p>
<p><a href="http://us.php.net/manual/en/function.date.php" target="_blank">Date String Examples</a></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Words to use before date:','comicpress'); ?><br /><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('format'); ?>"><?php _e('Format of the Time/Date:','comicpress'); ?><br /><input class="widefat" id="<?php echo $this->get_field_id('format'); ?>" name="<?php echo $this->get_field_name('format'); ?>" type="text" value="<?php echo attribute_escape($format); ?>" /></label></p>
<p><a href="http://us.php.net/manual/en/function.date.php" target="_blank"><?php _e('Date String Examples','comicpress'); ?></a></p>
<?php
}

View File

@ -12,8 +12,8 @@ Author URI: http://webcomicplanet.com/
class widget_comicpress_comictitle extends WP_Widget {
function widget_comicpress_comictitle() {
$widget_ops = array('classname' => 'widget_comicpress_comictitle', 'description' => 'Displays the title of the comic.' );
$this->WP_Widget('comictitle', 'Comic Title', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_comictitle', 'description' => __('Displays the title of the comic. (used in comic sidebars)','comicpress') );
$this->WP_Widget('comictitle', __('Comic Title','comicpress'), $widget_ops);
}
function widget($args, $instance) {

View File

@ -16,29 +16,29 @@ global $wpmu_version; ?>
<li>
<?php if ( get_option('users_can_register') ) { ?>
<form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
UserName:<br />
<?php _e('UserName:','comicpress'); ?><br />
<input type="text" name="log" id="sname" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="22" /><br /><br />
Password:<br />
<?php _e('Password:','comicpress'); ?><br />
<input type="password" name="pwd" id="spassword" size="22" /><br />
<label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label><br />
<br />
<button type="submit" class="button">Login</button>
<button type="submit" class="button"><?php _e('Login','comicpress'); ?></button>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
</form>
<br />
<?php if (!empty($wpmu_version)) { ?>
<a href="<?php bloginfo('url') ?>/wp-signup.php">Register</a><br />
<a href="<?php bloginfo('url') ?>/wp-signup.php"><?php _e('Register','comicpress'); ?></a><br />
<?php } else { ?>
<a href="<?php bloginfo('url') ?>/wp-register.php">Register</a><br />
<a href="<?php bloginfo('url') ?>/wp-register.php"><?php _e('Register','comicpress'); ?></a><br />
<?php } ?>
<?php } ?>
<a href="<?php bloginfo('url') ?>/wp-login.php?action=lostpassword">Recover password</a>
<a href="<?php bloginfo('url') ?>/wp-login.php?action=lostpassword"><?php _e('Recover password','comicpress'); ?></a>
<?php } else { ?>
<?php $redirect = '&amp;redirect_to='.urlencode(wp_make_link_relative(get_option('siteurl')));
$uri = wp_nonce_url( site_url("wp-login.php?action=logout$redirect", 'login'), 'log-out' ); ?>
<li><a href="<?php echo $uri; ?>">Logout</a></li>
<li><a href="<?php echo $uri; ?>"><?php _e('Logout','comicpress'); ?></a></li>
<?php wp_register(); ?>
<li><a href="/wp-admin/profile.php">Profile</a></li>
<li><a href="/wp-admin/profile.php"><?php _e('Profile','comicpress'); ?></a></li>
<?php } ?>
</ul>
<?php
@ -48,15 +48,15 @@ global $wpmu_version; ?>
class widget_comicpress_show_control_panel extends WP_Widget {
function widget_comicpress_show_control_panel() {
$widget_ops = array('classname' => 'widget_comicpress_show_control_panel', 'description' => 'Login/Logoff menu with register/lost password links if not logged on.' );
$this->WP_Widget('control_panel', 'Control Panel', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_show_control_panel', 'description' => __('Login/Logoff menu with register/lost password links if not logged on. (use only if registrations are enabled.','comicpress') );
$this->WP_Widget('control_panel', __('Control Panel','comicpress'), $widget_ops);
}
function widget($args, $instance) {
extract($args, EXTR_SKIP);
echo $before_widget;
$title = empty($instance['title']) ? 'Control Panel' : apply_filters('widget_title', $instance['title']);
$title = empty($instance['title']) ? __('Control Panel','comicpress') : apply_filters('widget_title', $instance['title']);
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
comicpress_show_control_panel();
echo $after_widget;
@ -72,7 +72,7 @@ class widget_comicpress_show_control_panel extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -12,8 +12,8 @@ Author URI: http://webcomicplanet.com/
class widget_comicpress_graphical_navigation extends WP_Widget {
function widget_comicpress_graphical_navigation() {
$widget_ops = array('classname' => 'widget_comicpress_graphical_navigation', 'description' => 'Displays Graphical Navigation Buttons.' );
$this->WP_Widget('graphicalnavigation', 'Comic Navigation', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_graphical_navigation', 'description' => __('Displays Graphical Navigation Buttons. (used in comic sidebars)','comicpress') );
$this->WP_Widget('graphicalnavigation', __('Comic Navigation','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -140,16 +140,16 @@ class widget_comicpress_graphical_navigation extends WP_Widget {
'next' => 'on',
'archive_path' => '',
'buyprint' => 'off',
'first_title' => 'First',
'last_title' => 'Latest',
'story_prev_title' => 'Chapter',
'story_next_title' => 'Chapter',
'previous_title' => 'Previous',
'random_title' => 'Random',
'archives_title' => 'Archives',
'comments_title' => 'Comments',
'next_title' => 'Next',
'buyprint_title' => 'Buy Print'
'first_title' => __('First','comicpress'),
'last_title' => __('Latest','comicpress'),
'story_prev_title' => __('Chapter','comicpress'),
'story_next_title' => __('Chapter','comicpress'),
'previous_title' => __('Previous','comicpress'),
'random_title' => __('Random','comicpress'),
'archives_title' => __('Archives','comicpress'),
'comments_title' => __('Comments','comicpress'),
'next_title' => __('Next','comicpress'),
'buyprint_title' => __('Buy Print','comicpress')
) );
$first = $instance['first']; if (empty($first)) $first = 'on';
$last = $instance['last']; if (empty($last)) $last = 'on';
@ -176,43 +176,43 @@ class widget_comicpress_graphical_navigation extends WP_Widget {
?>
<label for="<?php echo $this->get_field_id('first'); ?>"><strong>First</strong><br />
<label for="<?php echo $this->get_field_id('first'); ?>"><strong><?php _e('First','comicpress'); ?></strong><br />
<input id="<?php echo $this->get_field_id('first'); ?>" name="<?php echo $this->get_field_name('first'); ?>" type="radio" value="on"<?php if ( $first == "on") { echo " checked"; } ?> />On</label>&nbsp;<input id="<?php echo $this->get_field_id('first'); ?>" name="<?php echo $this->get_field_name('first'); ?>" type="radio" value="off"<?php if ( $first == "off") { echo " checked"; } ?> />Off</label><br />
Title:<br />
<input class="widefat" id="<?php echo $this->get_field_id('first_title'); ?>" name="<?php echo $this->get_field_name('first_title'); ?>" type="text" value="<?php echo attribute_escape($first_title); ?>" /></label><br />
<br />
<label for="<?php echo $this->get_field_id('last'); ?>"><strong>Last</strong><br />
<label for="<?php echo $this->get_field_id('last'); ?>"><strong><?php _e('Last','comicpress'); ?></strong><br />
<input id="<?php echo $this->get_field_id('last'); ?>" name="<?php echo $this->get_field_name('last'); ?>" type="radio" value="on"<?php if ( $last == "on") { echo " checked"; } ?> />On</label>&nbsp;<input id="<?php echo $this->get_field_id('last'); ?>" name="<?php echo $this->get_field_name('last'); ?>" type="radio" value="off"<?php if ( $last == "off") { echo " checked"; } ?> />Off</label><br />
Title:<br />
<input class="widefat" id="<?php echo $this->get_field_id('last_title'); ?>" name="<?php echo $this->get_field_name('last_title'); ?>" type="text" value="<?php echo attribute_escape($last_title); ?>" /></label><br />
<br />
<label for="<?php echo $this->get_field_id('previous'); ?>"><strong>Previous</strong><br />
<label for="<?php echo $this->get_field_id('previous'); ?>"><strong><?php _e('Previous','comicpress'); ?></strong><br />
<input id="<?php echo $this->get_field_id('previous'); ?>" name="<?php echo $this->get_field_name('previous'); ?>" type="radio" value="on"<?php if ( $previous == "on") { echo " checked"; } ?> />On</label>&nbsp;<input id="<?php echo $this->get_field_id('previous'); ?>" name="<?php echo $this->get_field_name('previous'); ?>" type="radio" value="off"<?php if ( $previous == "off") { echo " checked"; } ?> />Off</label><br />
Title:<br />
<input class="widefat" id="<?php echo $this->get_field_id('previous_title'); ?>" name="<?php echo $this->get_field_name('previous_title'); ?>" type="text" value="<?php echo attribute_escape($previous_title); ?>" /></label><br />
<br />
<label for="<?php echo $this->get_field_id('next'); ?>"><strong>Next</strong><br />
<label for="<?php echo $this->get_field_id('next'); ?>"><strong><?php _e('Next','comicpress'); ?></strong><br />
<input id="<?php echo $this->get_field_id('next'); ?>" name="<?php echo $this->get_field_name('next'); ?>" type="radio" value="on"<?php if ( $next == "on") { echo " checked"; } ?> />On</label>&nbsp;<input id="<?php echo $this->get_field_id('next'); ?>" name="<?php echo $this->get_field_name('next'); ?>" type="radio" value="off"<?php if ( $next == "off") { echo " checked"; } ?> />Off</label><br />
Title:<br />
<input class="widefat" id="<?php echo $this->get_field_id('next_title'); ?>" name="<?php echo $this->get_field_name('next_title'); ?>" type="text" value="<?php echo attribute_escape($next_title); ?>" /></label><br />
<br />
<label for="<?php echo $this->get_field_id('story_prev'); ?>"><strong>Previous Chapter</strong><br />
<label for="<?php echo $this->get_field_id('story_prev'); ?>"><strong><?php _e('Previous Chapter','comicpress'); ?></strong><br />
<input id="<?php echo $this->get_field_id('story_prev'); ?>" name="<?php echo $this->get_field_name('story_prev'); ?>" type="radio" value="on"<?php if ( $story_prev == "on") { echo " checked"; } ?> />On</label>&nbsp;<input id="<?php echo $this->get_field_id('story_prev'); ?>" name="<?php echo $this->get_field_name('story_prev'); ?>" type="radio" value="off"<?php if ( $story_prev == "off") { echo " checked"; } ?> />Off</label><br />
Title:<br />
<input class="widefat" id="<?php echo $this->get_field_id('story_prev_title'); ?>" name="<?php echo $this->get_field_name('story_prev_title'); ?>" type="text" value="<?php echo attribute_escape($story_prev_title); ?>" /></label><br />
<br />
<label for="<?php echo $this->get_field_id('story_next'); ?>"><strong>Next Chapter</strong><br />
<label for="<?php echo $this->get_field_id('story_next'); ?>"><strong><?php _e('Next Chapter','comicpress'); ?></strong><br />
<input id="<?php echo $this->get_field_id('story_next'); ?>" name="<?php echo $this->get_field_name('story_next'); ?>" type="radio" value="on"<?php if ( $story_next == "on") { echo " checked"; } ?> />On</label>&nbsp;<input id="<?php echo $this->get_field_id('story_next'); ?>" name="<?php echo $this->get_field_name('story_next'); ?>" type="radio" value="off"<?php if ( $story_next == "off") { echo " checked"; } ?> />Off</label><br />
Title:<br />
<input class="widefat" id="<?php echo $this->get_field_id('story_next_title'); ?>" name="<?php echo $this->get_field_name('story_next_title'); ?>" type="text" value="<?php echo attribute_escape($story_next_title); ?>" /></label><br />
<br />
<label for="<?php echo $this->get_field_id('archives'); ?>"><strong>Archives</strong><br />
<label for="<?php echo $this->get_field_id('archives'); ?>"><strong><?php _e('Archives','comicpress'); ?></strong><br />
<input id="<?php echo $this->get_field_id('archives'); ?>" name="<?php echo $this->get_field_name('archives'); ?>" type="radio" value="on"<?php if ( $archives == "on") { echo " checked"; } ?> />On</label>&nbsp;<input id="<?php echo $this->get_field_id('archives'); ?>" name="<?php echo $this->get_field_name('archives'); ?>" type="radio" value="off"<?php if ( $archives == "off") { echo " checked"; } ?> />Off<br />
Title:<br />
<input class="widefat" id="<?php echo $this->get_field_id('archives_title'); ?>" name="<?php echo $this->get_field_name('archives_title'); ?>" type="text" value="<?php echo attribute_escape($archives_title); ?>" /></label><br />
@ -220,19 +220,19 @@ class widget_comicpress_graphical_navigation extends WP_Widget {
<input class="widefat" id="<?php echo $this->get_field_id('archive_path'); ?>" name="<?php echo $this->get_field_name('archive_path'); ?>" type="text" value="<?php echo attribute_escape($archive_path); ?>" /></label><br />
<br />
<label for="<?php echo $this->get_field_id('comments'); ?>"><strong>Comments</strong><br />
<label for="<?php echo $this->get_field_id('comments'); ?>"><strong><?php _e('Comments','comicpress'); ?></strong><br />
<input id="<?php echo $this->get_field_id('comments'); ?>" name="<?php echo $this->get_field_name('comments'); ?>" type="radio" value="on"<?php if ( $comments == "on") { echo " checked"; } ?> />On</label>&nbsp;<input id="<?php echo $this->get_field_id('comments'); ?>" name="<?php echo $this->get_field_name('comments'); ?>" type="radio" value="off"<?php if ( $comments == "off") { echo " checked"; } ?> />Off</label><br />
Title:<br />
<input class="widefat" id="<?php echo $this->get_field_id('comments_title'); ?>" name="<?php echo $this->get_field_name('comments_title'); ?>" type="text" value="<?php echo attribute_escape($comments_title); ?>" /></label><br />
<br />
<label for="<?php echo $this->get_field_id('random'); ?>"><strong>Random</strong><br />
<label for="<?php echo $this->get_field_id('random'); ?>"><strong><?php _e('Random','comicpress'); ?></strong><br />
<input id="<?php echo $this->get_field_id('random'); ?>" name="<?php echo $this->get_field_name('random'); ?>" type="radio" value="on"<?php if ( $random == "on") { echo " checked"; } ?> />On</label>&nbsp;<input id="<?php echo $this->get_field_id('random'); ?>" name="<?php echo $this->get_field_name('random'); ?>" type="radio" value="off"<?php if ( $random == "off") { echo " checked"; } ?> />Off</label><br />
Title:<br />
<input class="widefat" id="<?php echo $this->get_field_id('random_title'); ?>" name="<?php echo $this->get_field_name('random_title'); ?>" type="text" value="<?php echo attribute_escape($random_title); ?>" /></label><br />
<br />
<label for="<?php echo $this->get_field_id('buyprint'); ?>"><strong>Buy Print</strong><br />
<label for="<?php echo $this->get_field_id('buyprint'); ?>"><strong><?php _e('Buy Print','comicpress'); ?></strong><br />
<input id="<?php echo $this->get_field_id('buyprint'); ?>" name="<?php echo $this->get_field_name('buyprint'); ?>" type="radio" value="on"<?php if ( $buyprint == "on") { echo " checked"; } ?> />On</label>&nbsp;<input id="<?php echo $this->get_field_id('buyprint'); ?>" name="<?php echo $this->get_field_name('buyprint'); ?>" type="radio" value="off"<?php if ( $buyprint == "off") { echo " checked"; } ?> />Off</label><br />
Title:<br />
<input class="widefat" id="<?php echo $this->get_field_id('buyprint_title'); ?>" name="<?php echo $this->get_field_name('buyprint_title'); ?>" type="text" value="<?php echo attribute_escape($buyprint_title); ?>" /></label><br />

View File

@ -21,8 +21,8 @@ function latest_comic_jump() {
class widget_comicpress_latest_comic_jump extends WP_Widget {
function widget_comicpress_latest_comic_jump() {
$widget_ops = array('classname' => 'widget_comicpress_latest_comic_jump', 'description' => 'Displays a link to click to go to the latest comic.' );
$this->WP_Widget('latest_comic_jump', 'Latest Comic Link', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_latest_comic_jump', 'description' => __('Displays a link to click to go to the latest comic.','comicpress') );
$this->WP_Widget('latest_comic_jump', __('Latest Comic Link','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -47,7 +47,7 @@ class widget_comicpress_latest_comic_jump extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -28,8 +28,8 @@ Author URI: http://webcomicplanet.com/
class widget_comicpress_latest_comics extends WP_Widget {
function widget_comicpress_latest_comics() {
$widget_ops = array('classname' => 'widget_comicpress_latest_comics', 'description' => 'Display a list of the latest comics available.' );
$this->WP_Widget('latest_comics', 'Latest Comics', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_latest_comics', 'description' => __('Display a list of the latest comics available.','comicpress') );
$this->WP_Widget('latest_comics', __('Latest Comics','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -37,7 +37,7 @@ class widget_comicpress_latest_comics extends WP_Widget {
extract($args, EXTR_SKIP);
echo $before_widget;
$title = empty($instance['title']) ? 'Latest Comics' : apply_filters('widget_title', $instance['title']);
$title = empty($instance['title']) ? __('Latest Comics','comicpress') : apply_filters('widget_title', $instance['title']);
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
$latestcomics = get_posts('numberposts=5&category='.get_all_comic_categories_as_cat_string()); ?>
<ul>
@ -58,7 +58,7 @@ class widget_comicpress_latest_comics extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -12,8 +12,8 @@ Author URI: http://webcomicplanet.com/
class widget_comicpress_latest_thumbnail extends WP_Widget {
function widget_comicpress_latest_thumbnail() {
$widget_ops = array('classname' => 'widget_comicpress_latest_thumbnail', 'description' => 'Display a thumbnail of the latest comic, clickable to go to the comic post.' );
$this->WP_Widget('latest_thumbnail', 'Latest Comic', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_latest_thumbnail', 'description' => __('Display a thumbnail of the latest comic, clickable to go to the comic post.','comicpress') );
$this->WP_Widget('latest_thumbnail', __('Latest Comic','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -22,7 +22,7 @@ class widget_comicpress_latest_thumbnail extends WP_Widget {
extract($args, EXTR_SKIP);
echo $before_widget;
$title = empty($instance['title']) ? 'Latest Comic' : apply_filters('widget_title', $instance['title']);
$title = empty($instance['title']) ? __('Latest Comic','comicpress') : apply_filters('widget_title', $instance['title']);
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
$latestcomics = get_posts('numberposts=1&category='.get_all_comic_categories_as_cat_string());
foreach($latestcomics as $post) : ?>
@ -44,7 +44,7 @@ class widget_comicpress_latest_thumbnail extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -90,8 +90,8 @@ global $contact_in_menubar,$enable_search_in_menubar,$enable_rss_in_menubar,$ena
class widget_comicpress_menubar extends WP_Widget {
function widget_comicpress_menubar() {
$widget_ops = array('classname' => 'widget_comicpress_menubar', 'description' => 'Displays a menubar.' );
$this->WP_Widget('comicpress_menubar', 'Comicpress Menubar', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_menubar', 'description' => __('Displays a menubar.','comicpress') );
$this->WP_Widget('comicpress_menubar', __('Comicpress Menubar','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -115,7 +115,7 @@ class widget_comicpress_menubar extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -12,8 +12,8 @@ Author URI: http://webcomicplanet.com/
class widget_comicpress_permalink extends WP_Widget {
function widget_comicpress_permalink() {
$widget_ops = array('classname' => 'widget_comicpress_permalink', 'description' => 'Displays a permalink.' );
$this->WP_Widget('permalink', 'Permalink', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_permalink', 'description' => __('Displays a permalink. (used in comic sidebars)','comicpress') );
$this->WP_Widget('permalink', __('Permalink','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -21,7 +21,7 @@ class widget_comicpress_permalink extends WP_Widget {
extract($args, EXTR_SKIP);
echo $before_widget;
$title = empty($instance['title']) ? 'Permalink' : apply_filters('widget_title', $instance['title']); ?>
$title = empty($instance['title']) ? __('Permalink','comicpress') : apply_filters('widget_title', $instance['title']); ?>
<a href="<?php the_permalink(); ?><?php if ($instance['comment'] == 'yes') { ?>#comment<?php } ?>" class="widget_permalink_href"><?php echo $title; ?></a>
<?php
echo $after_widget;
@ -39,7 +39,7 @@ class widget_comicpress_permalink extends WP_Widget {
$title = strip_tags($instance['title']);
$comment = strip_tags($instance['comment']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">New Link name:<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('New Link name:','comicpress'); ?><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label><input name="<?php echo $this->get_field_name('comment'); ?>" id="<?php echo $this->get_field_id('comment'); ?>-comment" type="radio" value="yes"<?php if ( $comment == "yes") { echo " checked"; } ?> />Yes <input name="<?php echo $this->get_field_name('comment'); ?>" id="<?php echo $this->get_field_id('comment'); ?>-comment" type="radio" value="no"<?php if ( $comment == "no") { echo " checked"; } ?> />No<br />Add #comment to href?</label></p>
<?php

View File

@ -26,8 +26,8 @@ if ( isset( $_GET['randomcomic'] ) )
class widget_comicpress_random_comic extends WP_Widget {
function widget_comicpress_random_comic() {
$widget_ops = array('classname' => 'widget_comicpress_random_comic', 'description' => 'Displays a link to click to trigger a random comic.' );
$this->WP_Widget('random_comic', 'Random Comic', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_random_comic', 'description' => __('Displays a link to click to trigger a random comic.','comicpress') );
$this->WP_Widget('random_comic', __('Random Comic','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -37,7 +37,7 @@ class widget_comicpress_random_comic extends WP_Widget {
echo $before_widget;
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?>
<h2><a href="?randomcomic"><span class="random-comic-icon">?</span> Random Comic</a></h2>
<h2><a href="?randomcomic"><span class="random-comic-icon">?</span> <?php _e('Random Comic','comicpress'); ?></a></h2>
<?php
echo $after_widget;
}
@ -52,7 +52,7 @@ class widget_comicpress_random_comic extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -25,8 +25,8 @@ if ( isset( $_GET['randompost'] ) )
class widget_comicpress_random_post extends WP_Widget {
function widget_comicpress_random_post() {
$widget_ops = array('classname' => 'widget_comicpress_random_post', 'description' => 'Displays a link to click to trigger a random blog post.' );
$this->WP_Widget('random_post', 'Random Post', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_random_post', 'description' => __('Displays a link to click to trigger a random blog post.','comicpress') );
$this->WP_Widget('random_post', __('Random Post','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -36,7 +36,7 @@ class widget_comicpress_random_post extends WP_Widget {
echo $before_widget;
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?>
<h2><a href="?randompost"><span class="random-comic-icon">?</span> Random Post</a></h2>
<h2><a href="?randompost"><span class="random-comic-icon">?</span> <?php _e('Random Post','comicpress'); ?></a></h2>
<?php
echo $after_widget;
}
@ -51,7 +51,7 @@ class widget_comicpress_random_post extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -12,8 +12,8 @@ Author URI: http://webcomicplanet.com/
class widget_comicpress_show_scheduled_posts extends WP_Widget {
function widget_comicpress_show_scheduled_posts() {
$widget_ops = array('classname' => 'widget_comicpress_show_scheduled_posts', 'description' => 'Display a list of posts that are scheduled to be published.' );
$this->WP_Widget('show_scheduled_posts', 'Scheduled Posts', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_show_scheduled_posts', 'description' => __('Display a list of posts that are scheduled to be published.','comicpress') );
$this->WP_Widget('show_scheduled_posts', __('Scheduled Posts','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -21,7 +21,7 @@ class widget_comicpress_show_scheduled_posts extends WP_Widget {
echo '<div class="scheduled-post-wrap">';
echo $before_widget;
$title = empty($instance['title']) ? 'Scheduled Posts' : apply_filters('widget_title', $instance['title']);
$title = empty($instance['title']) ? __('Scheduled Posts','comicpress') : apply_filters('widget_title', $instance['title']);
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };
$scheduled_posts = get_posts('post_status=future&numberposts=-1');
if (empty($scheduled_posts)) {
@ -48,7 +48,7 @@ class widget_comicpress_show_scheduled_posts extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -12,8 +12,8 @@ Author URI: http://webcomicplanet.com/
class widget_comicpress_search_transcripts extends WP_Widget {
function widget_comicpress_search_transcripts() {
$widget_ops = array('classname' => 'widget_comicpress_search_transcripts', 'description' => 'Displays a form input box for searching transcripts.' );
$this->WP_Widget('comicpress_search_transcripts', 'Search Transcripts', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_search_transcripts', 'description' => __('Displays a form input box for searching transcripts.','comicpress') );
$this->WP_Widget('comicpress_search_transcripts', __('Search Transcripts','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -37,7 +37,7 @@ class widget_comicpress_search_transcripts extends WP_Widget {
$instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
$title = strip_tags($instance['title']);
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<?php
}
}

View File

@ -13,8 +13,8 @@ Author URI: http://webcomicplanet.com/
class widget_comicpress_show_transcription extends WP_Widget {
function widget_comicpress_show_transcription() {
$widget_ops = array('classname' => 'widget_comicpress_show_transcription', 'description' => 'Display the transcription of the current post if there is one.' );
$this->WP_Widget('transcript', 'Transcript', $widget_ops);
$widget_ops = array('classname' => 'widget_comicpress_show_transcription', 'description' => __('Display the transcription of the current post if there is one. (used in comic sidebars)','comicpress') );
$this->WP_Widget('transcript', __('Transcript','comicpress'), $widget_ops);
}
function widget($args, $instance) {
@ -41,11 +41,11 @@ class widget_comicpress_show_transcription extends WP_Widget {
$transtype = strip_tags($instance['transtype']);
if (empty($transtype)) $transtype = 'styled';
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape($title); ?>" /></label></p>
<p>
<label><input name="<?php echo $this->get_field_name('transtype'); ?>" id="<?php echo $this->get_field_id('transtype'); ?>-styled" type="radio" value="styled"<?php if ( $transtype == "styled") { echo " checked"; } ?> />Styled</label><br />
<label><input name="<?php echo $this->get_field_name('transtype'); ?>" id="<?php echo $this->get_field_id('transtype'); ?>-br" type="radio" value="br"<?php if ( $transtype == "br") { echo " checked"; } ?> />Add BR's</label><br />
<label><input name="<?php echo $this->get_field_name('transtype'); ?>" id="<?php echo $this->get_field_id('transtype'); ?>-raw" type="radio" value="raw"<?php if ( $transtype == "raw") { echo " checked"; } ?> />Raw Output</label>
<label><input name="<?php echo $this->get_field_name('transtype'); ?>" id="<?php echo $this->get_field_id('transtype'); ?>-styled" type="radio" value="styled"<?php if ( $transtype == "styled") { echo " checked"; } ?> /><?php _e('Styled','comicpress'); ?></label><br />
<label><input name="<?php echo $this->get_field_name('transtype'); ?>" id="<?php echo $this->get_field_id('transtype'); ?>-br" type="radio" value="br"<?php if ( $transtype == "br") { echo " checked"; } ?> /><?php _e('Add BR','comicpress'); ?></label><br />
<label><input name="<?php echo $this->get_field_name('transtype'); ?>" id="<?php echo $this->get_field_id('transtype'); ?>-raw" type="radio" value="raw"<?php if ( $transtype == "raw") { echo " checked"; } ?> /><?php _e('Raw Output','comicpress'); ?></label>
</p>
<?php
}