various things
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
6eb6de9987
commit
92767914a3
|
@ -28,14 +28,16 @@
|
|||
<div class="column">
|
||||
<?php } ?>
|
||||
<?php
|
||||
$tmp_search = new WP_Query($query_string.'&order=desc&show_posts=-1&posts_per_page=-1');
|
||||
global $archive_display_order;
|
||||
if (empty($archive_display_order)) $archive_display_order = 'desc';
|
||||
$tmp_search = new WP_Query($query_string.'&order='.$archive_display_order.'&show_posts=-1&posts_per_page=-1');
|
||||
$count = $tmp_search->post_count;
|
||||
?>
|
||||
<?php if (!$count) $count = "no"; ?>
|
||||
<div class="searchresults">Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.</div>
|
||||
|
||||
<?php if (have_posts()) : ?>
|
||||
<?php $posts = query_posts($query_string.'&order=desc'); ?>
|
||||
<?php $posts = query_posts($query_string.'&order='.$archive_display_order); ?>
|
||||
<div class="post-page-head"></div>
|
||||
<div class="post-page">
|
||||
|
||||
|
|
|
@ -217,7 +217,12 @@ $options = array (
|
|||
array(
|
||||
"id" => "comicpress-avatar_directory",
|
||||
"default" => "default",
|
||||
"type" => "comicpress-avatar_directory"),
|
||||
"type" => "comicpress-avatar_directory"),
|
||||
|
||||
array(
|
||||
"id" => "comicpress-archive_display_order",
|
||||
"default" => "desc",
|
||||
"type" => "comicpress-archive_display_order"),
|
||||
|
||||
array("type" => "close")
|
||||
);
|
||||
|
|
|
@ -394,6 +394,21 @@ function comicpress_admin() {
|
|||
</tr>
|
||||
|
||||
<?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>
|
||||
<td valign="top">
|
||||
<label>
|
||||
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
|
||||
<option class="level-0" value="asc" <?php if ($value['id'] == "asc") { ?>selected="selected"<?php } ?>>Ascending</option>
|
||||
<option class="level-0" value="desc" <?php if ($value['id'] == "desc") { ?>selected="selected"<?php } ?>>Descending</option>
|
||||
</select>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -85,7 +85,8 @@ if (get_option('upload_path') !== false) {
|
|||
'disable_dynamic_menubar_links' => 'disable_dynamic_menubar_links',
|
||||
'disable_footer_text' => 'disable_footer_text',
|
||||
'themepack_directory' => 'themepack_directory',
|
||||
'avatar_directory' => 'avatar_directory' ) as $options => $variable_name) {
|
||||
'avatar_directory' => 'avatar_directory',
|
||||
'archive_display_order' => 'archive_display_order' ) as $options => $variable_name) {
|
||||
$variables_to_extract[$variable_name] = get_option("comicpress-${options}");
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,8 @@ function shortcode_for_comicpress_members_only( $atts, $content = null ) {
|
|||
$is_member = get_usermeta($current_user->ID,'comicpress-is-member');
|
||||
if ( ( $is_member == 'yes' || current_user_can( 'publish_posts' ) ) && !is_feed() ) {
|
||||
return '<div class="members-only">'.$content.'</div>';
|
||||
} else {
|
||||
return '<div class="non-member">There is Members Only content here.</div>';
|
||||
}
|
||||
}
|
||||
return '';
|
||||
|
|
|
@ -447,11 +447,9 @@ a.navi-comments:hover span {
|
|||
.nav a, .pagenav a, .nav-blog a {
|
||||
display: block;
|
||||
float: left;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.nav a:hover, .pagenav a:hover, .nav-blog a:hover {
|
||||
color: #800;
|
||||
}
|
||||
|
||||
/* POSTS - PAGES */
|
||||
|
@ -611,11 +609,9 @@ a.navi-comments:hover span {
|
|||
}
|
||||
|
||||
.comment-link a {
|
||||
color: #800;
|
||||
}
|
||||
|
||||
.comment-link a:hover {
|
||||
color: #ff0000;
|
||||
}
|
||||
|
||||
.comment-balloon {
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
<strong>Layouts</strong>: standard, 3c, gn, v, v3c<br />
|
||||
<br />
|
||||
<strong>Installation Notes</strong>:<br />
|
||||
None.
|
||||
<br />
|
||||
|
|
|
@ -40,6 +40,7 @@ body {
|
|||
padding: 20px 0;
|
||||
color: #fff;
|
||||
background: #222;
|
||||
border-bottom: solid 1px #000;
|
||||
}
|
||||
|
||||
#comic_navi_wrapper, #comic, .pagenav {
|
||||
|
|
Loading…
Reference in New Issue