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">
|
<div class="column">
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?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;
|
$count = $tmp_search->post_count;
|
||||||
?>
|
?>
|
||||||
<?php if (!$count) $count = "no"; ?>
|
<?php if (!$count) $count = "no"; ?>
|
||||||
<div class="searchresults">Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.</div>
|
<div class="searchresults">Found <?php echo $count; ?> result<?php if ($count !== 1) { echo "s"; } ?>.</div>
|
||||||
|
|
||||||
<?php if (have_posts()) : ?>
|
<?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-head"></div>
|
||||||
<div class="post-page">
|
<div class="post-page">
|
||||||
|
|
||||||
|
|
|
@ -219,6 +219,11 @@ $options = array (
|
||||||
"default" => "default",
|
"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")
|
array("type" => "close")
|
||||||
);
|
);
|
||||||
?>
|
?>
|
|
@ -394,6 +394,21 @@ function comicpress_admin() {
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php break;
|
<?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_dynamic_menubar_links' => 'disable_dynamic_menubar_links',
|
||||||
'disable_footer_text' => 'disable_footer_text',
|
'disable_footer_text' => 'disable_footer_text',
|
||||||
'themepack_directory' => 'themepack_directory',
|
'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}");
|
$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');
|
$is_member = get_usermeta($current_user->ID,'comicpress-is-member');
|
||||||
if ( ( $is_member == 'yes' || current_user_can( 'publish_posts' ) ) && !is_feed() ) {
|
if ( ( $is_member == 'yes' || current_user_can( 'publish_posts' ) ) && !is_feed() ) {
|
||||||
return '<div class="members-only">'.$content.'</div>';
|
return '<div class="members-only">'.$content.'</div>';
|
||||||
|
} else {
|
||||||
|
return '<div class="non-member">There is Members Only content here.</div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
|
|
@ -447,11 +447,9 @@ a.navi-comments:hover span {
|
||||||
.nav a, .pagenav a, .nav-blog a {
|
.nav a, .pagenav a, .nav-blog a {
|
||||||
display: block;
|
display: block;
|
||||||
float: left;
|
float: left;
|
||||||
color: #000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav a:hover, .pagenav a:hover, .nav-blog a:hover {
|
.nav a:hover, .pagenav a:hover, .nav-blog a:hover {
|
||||||
color: #800;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* POSTS - PAGES */
|
/* POSTS - PAGES */
|
||||||
|
@ -611,11 +609,9 @@ a.navi-comments:hover span {
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-link a {
|
.comment-link a {
|
||||||
color: #800;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-link a:hover {
|
.comment-link a:hover {
|
||||||
color: #ff0000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-balloon {
|
.comment-balloon {
|
||||||
|
|
|
@ -3,4 +3,5 @@
|
||||||
<strong>Layouts</strong>: standard, 3c, gn, v, v3c<br />
|
<strong>Layouts</strong>: standard, 3c, gn, v, v3c<br />
|
||||||
<br />
|
<br />
|
||||||
<strong>Installation Notes</strong>:<br />
|
<strong>Installation Notes</strong>:<br />
|
||||||
|
None.
|
||||||
<br />
|
<br />
|
||||||
|
|
|
@ -40,6 +40,7 @@ body {
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background: #222;
|
background: #222;
|
||||||
|
border-bottom: solid 1px #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
#comic_navi_wrapper, #comic, .pagenav {
|
#comic_navi_wrapper, #comic, .pagenav {
|
||||||
|
|
Loading…
Reference in New Issue