Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-09-16 08:55:29 -07:00
parent 0fcbcce6e8
commit 6108b73aad
7 changed files with 64 additions and 9 deletions

View File

@ -113,7 +113,12 @@
</div>
<div class="clear"></div>
</div>
<?php the_excerpt() ?>
<?php global $excerpt_or_content_archive;
if ($excerpt_or_content_archive != 'excerpt') {
the_content('&darr; Read the rest of this entry...');
} else {
the_excerpt();
} ?>
<br class="clear-margins" />
<div class="post-extras">
<div class="tags">

View File

@ -229,6 +229,16 @@ $options = array (
"default" => "no",
"type" => "comicpress-disable_comment_note"),
array(
"id" => "comicpress-excerpt_or_content_archive",
"default" => "excerpt",
"type" => "comicpress-excerpt_or_content_archive"),
array(
"id" => "comicpress-excerpt_or_content_search",
"default" => "excerpt",
"type" => "comicpress-excerpt_or_content_search"),
array("type" => "close")
);
?>

View File

@ -421,6 +421,30 @@ function comicpress_admin() {
</td>
</tr>
<?php break;
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>
<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;
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-content" type="radio" value="content"<?php if ( get_option( $value['id'] ) == "content") { echo " checked"; } ?> />Content</label>
</td>
<td valign="top">
</td>
</tr>
<?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>
<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;
<label><input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>-content" type="radio" value="content"<?php if ( get_option( $value['id'] ) == "content") { echo " checked"; } ?> />Content</label>
</td>
<td valign="top">
</td>
</tr>
<?php break;
}
}
?>

View File

@ -87,7 +87,9 @@ if (get_option('upload_path') !== false) {
'themepack_directory' => 'themepack_directory',
'avatar_directory' => 'avatar_directory',
'archive_display_order' => 'archive_display_order',
'disable_comment_note' => 'disable_comment_note' ) as $options => $variable_name) {
'disable_comment_note' => 'disable_comment_note',
'excerpt_or_content_archive' => 'excerpt_or_content_archive',
'excerpt_or_content_search' => 'excerpt_or_content_search' ) as $options => $variable_name) {
$variables_to_extract[$variable_name] = get_option("comicpress-${options}");
}

View File

@ -20,11 +20,13 @@ function comicpress_show_mood_in_post() {
$moods_directory = get_option('comicpress-moods_directory');
if (!empty($moods_directory) && $moods_directory != 'none') {
$mood_file = get_post_meta( get_the_ID(), "mood", true );
$mood = explode(".", $mood);
$mood = reset($mood);
if ( !empty($mood_file) && file_exists(get_template_directory() . '/images/moods/'.$moods_directory.'/'.$mood_file) ) { ?>
<div class="post-mood post-<?php echo $mood; ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/moods/<?php echo $moods_directory; ?>/<?php echo $mood_file; ?>" alt="<?php echo $mood; ?>" title="<?php echo $mood; ?>" /></div>
<?php }
if (!empty($mood_file) && $mood_file != '') {
$mood = explode(".", $mood);
$mood = reset($mood);
if ( !empty($mood_file) && file_exists(get_template_directory() . '/images/moods/'.$moods_directory.'/'.$mood_file) ) { ?>
<div class="post-mood post-<?php echo $mood; ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/moods/<?php echo $moods_directory; ?>/<?php echo $mood_file; ?>" alt="<?php echo $mood; ?>" title="<?php echo $mood; ?>" /></div>
<?php }
}
}
}

View File

@ -93,7 +93,12 @@ $count = $tmp_search->post_count;
</div>
<div class="clear"></div>
</div>
<?php the_excerpt() ?>
<?php global $excerpt_or_content_search;
if ($excerpt_or_content_search != 'excerpt') {
the_content('&darr; Read the rest of this entry...');
} else {
the_excerpt();
} ?>
<br class="clear-margins" />
<div class="post-extras">
<div class="tags">

7
sidebar-belowfooter.php Normal file
View File

@ -0,0 +1,7 @@
<?php if (commpress_is_active_sidebar('Below Footer')) { ?>
<div id="sidebar-aboveheader">
<div class="customsidebar <?php global $enable_if_widgetarea_use_sidebar_css; if ($enable_widgetarea_use_sidebar_css == 'yes') { ?> sidebar<?php } ?>">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Below Footer') ) : ?><?php endif; ?>
</div>
</div>
<?php } ?>