hgrn'
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
0fcbcce6e8
commit
6108b73aad
|
@ -113,7 +113,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
<?php the_excerpt() ?>
|
<?php global $excerpt_or_content_archive;
|
||||||
|
if ($excerpt_or_content_archive != 'excerpt') {
|
||||||
|
the_content('↓ Read the rest of this entry...');
|
||||||
|
} else {
|
||||||
|
the_excerpt();
|
||||||
|
} ?>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
<div class="post-extras">
|
<div class="post-extras">
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
|
|
|
@ -227,7 +227,17 @@ $options = array (
|
||||||
array(
|
array(
|
||||||
"id" => "comicpress-disable_comment_note",
|
"id" => "comicpress-disable_comment_note",
|
||||||
"default" => "no",
|
"default" => "no",
|
||||||
"type" => "comicpress-disable_comment_note"),
|
"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")
|
array("type" => "close")
|
||||||
);
|
);
|
||||||
|
|
|
@ -421,6 +421,30 @@ function comicpress_admin() {
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php break;
|
<?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>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -87,7 +87,9 @@ if (get_option('upload_path') !== false) {
|
||||||
'themepack_directory' => 'themepack_directory',
|
'themepack_directory' => 'themepack_directory',
|
||||||
'avatar_directory' => 'avatar_directory',
|
'avatar_directory' => 'avatar_directory',
|
||||||
'archive_display_order' => 'archive_display_order',
|
'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}");
|
$variables_to_extract[$variable_name] = get_option("comicpress-${options}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,11 +20,13 @@ function comicpress_show_mood_in_post() {
|
||||||
$moods_directory = get_option('comicpress-moods_directory');
|
$moods_directory = get_option('comicpress-moods_directory');
|
||||||
if (!empty($moods_directory) && $moods_directory != 'none') {
|
if (!empty($moods_directory) && $moods_directory != 'none') {
|
||||||
$mood_file = get_post_meta( get_the_ID(), "mood", true );
|
$mood_file = get_post_meta( get_the_ID(), "mood", true );
|
||||||
$mood = explode(".", $mood);
|
if (!empty($mood_file) && $mood_file != '') {
|
||||||
$mood = reset($mood);
|
$mood = explode(".", $mood);
|
||||||
if ( !empty($mood_file) && file_exists(get_template_directory() . '/images/moods/'.$moods_directory.'/'.$mood_file) ) { ?>
|
$mood = reset($mood);
|
||||||
<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>
|
if ( !empty($mood_file) && file_exists(get_template_directory() . '/images/moods/'.$moods_directory.'/'.$mood_file) ) { ?>
|
||||||
<?php }
|
<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 }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,12 @@ $count = $tmp_search->post_count;
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
<?php the_excerpt() ?>
|
<?php global $excerpt_or_content_search;
|
||||||
|
if ($excerpt_or_content_search != 'excerpt') {
|
||||||
|
the_content('↓ Read the rest of this entry...');
|
||||||
|
} else {
|
||||||
|
the_excerpt();
|
||||||
|
} ?>
|
||||||
<br class="clear-margins" />
|
<br class="clear-margins" />
|
||||||
<div class="post-extras">
|
<div class="post-extras">
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
|
|
|
@ -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 } ?>
|
Loading…
Reference in New Issue