options for gravatar and calendar, both off on default
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
a0da3aca22
commit
f4663aa26f
|
@ -134,6 +134,27 @@ $options = array (
|
|||
"default" => "no",
|
||||
"type" => "comicpress-disable_css_style_editor"),
|
||||
|
||||
array(
|
||||
"id" => "comicpress-enable_post_calendar",
|
||||
"default" => "no",
|
||||
"type" => "comicpress-enable_post_calendar"),
|
||||
|
||||
array(
|
||||
"id" => "comicpress-enable_post_author_gravatar",
|
||||
"default" => "no",
|
||||
"type" => "comicpress-enable_post_author_gravatar"),
|
||||
|
||||
array(
|
||||
"id" => "comicpress-enable_comic_post_calendar",
|
||||
"default" => "no",
|
||||
"type" => "comicpress-enable_comic_post_calendar"),
|
||||
|
||||
array(
|
||||
"id" => "comicpress-enable_comic_post_author_gravatar",
|
||||
"default" => "no",
|
||||
"type" => "comicpress-enable_comic_post_author_gravatar"),
|
||||
|
||||
|
||||
array("type" => "close")
|
||||
);
|
||||
?>
|
|
@ -302,6 +302,56 @@ function comicpress_admin() {
|
|||
</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>
|
||||
<td valign="top">
|
||||
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> />Yes</label>
|
||||
|
||||
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> />No</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php break;
|
||||
|
||||
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>
|
||||
<td valign="top">
|
||||
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> />Yes</label>
|
||||
|
||||
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> />No</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php break;
|
||||
|
||||
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>
|
||||
<td valign="top">
|
||||
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> />Yes</label>
|
||||
|
||||
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> />No</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php break;
|
||||
|
||||
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>
|
||||
<td valign="top">
|
||||
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-yes" type="radio" value="yes"<?php if ( get_option( $value['id'] ) == "yes") { echo " checked"; } ?> />Yes</label>
|
||||
|
||||
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-no" type="radio" value="no"<?php if ( get_option( $value['id'] ) == "no") { echo " checked"; } ?> />No</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php break;
|
||||
|
||||
|
||||
case "comicpress-disable_css_style_editor": ?>
|
||||
<tr>
|
||||
<th scope="row"><strong>Disable the styling in ComicPress CSS Editor?</strong><br /><br />This will let you disable the colored, styling CSS editor and be a normal form.<br /></th>
|
||||
|
@ -313,6 +363,7 @@ function comicpress_admin() {
|
|||
</tr>
|
||||
|
||||
<?php break;
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -63,6 +63,10 @@ if (get_option('upload_path') !== false) {
|
|||
'comic_clicks_next' => 'comic_clicks_next',
|
||||
'anomaly_says' => 'anomaly_says',
|
||||
'disable_css_style_editor' => 'disable_css_style_editor',
|
||||
'enable_post_calendar' => 'enable_post_calendar',
|
||||
'enable_post_author_gravatar' => 'enable_post_author_gravatar',
|
||||
'enable_comic_post_calendar' => 'enable_comic_post_calendar',
|
||||
'enable_comic_post_author_gravatar' => 'enable_comic_post_author_gravatar',
|
||||
'contact_in_menubar' => 'contact_in_menubar' ) as $options => $variable_name) {
|
||||
$variables_to_extract[$variable_name] = get_option("comicpress-${options}");
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
function display_blog_post() {
|
||||
global $post, $wp_query, $authordata, $enable_related_posts;
|
||||
global $post, $wp_query, $authordata, $enable_related_posts, $enable_post_author_gravatar, $enable_post_calendar;
|
||||
if (is_single()) { ?>
|
||||
<div class="nav-blog">
|
||||
<div class="nav-blog-previous"><?php previous_post_link('%link','‹ Previous', TRUE) ?></div>
|
||||
|
@ -18,9 +18,14 @@ function display_blog_post() {
|
|||
<div class="post-head"></div>
|
||||
<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 get_avatar(get_the_author_meta('email'), 64,'', get_the_author_meta('display_name')); ?></div>
|
||||
<?php } ?>
|
||||
<?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'); ?></small><br />
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
function display_comic_post() {
|
||||
global $post, $wp_query, $transcript_in_posts, $enable_related_comics;
|
||||
global $post, $wp_query, $transcript_in_posts, $enable_related_comics, $enable_comic_post_author_gravatar, $enable_comic_post_calendar;
|
||||
$first_comic = get_first_comic_permalink(); $last_comic = get_last_comic_permalink();
|
||||
?>
|
||||
<div class="nav">
|
||||
|
@ -20,9 +20,14 @@ function display_comic_post() {
|
|||
<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 get_avatar(get_the_author_meta('email'), 64,'', get_the_author_meta('display_name')); ?></div>
|
||||
<?php } ?>
|
||||
<?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'); ?></small><br />
|
||||
|
|
Loading…
Reference in New Issue