moods fix for the <img /> line to be html compliant and wp-pagenavi.php fix for empty <li> statements
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
0c271311b5
commit
0b0b274063
|
@ -75,7 +75,7 @@ function comicpress_showmood_edit_post() {
|
||||||
$newmood = $newmood[0]; ?>
|
$newmood = $newmood[0]; ?>
|
||||||
<div style="float:left; margin-top: 10px; text-align: center; width: 68px; overflow: hidden;">
|
<div style="float:left; margin-top: 10px; text-align: center; width: 68px; overflow: hidden;">
|
||||||
<label for="postmood-<?php echo $newmood; ?>" style="cursor:pointer;">
|
<label for="postmood-<?php echo $newmood; ?>" style="cursor:pointer;">
|
||||||
<img src="<?php echo $moods_uri; ?>/images/moods/<?php echo $moods_directory; ?>/<?php echo basename($file); ?>"><br />
|
<img src="<?php echo $moods_uri; ?>/images/moods/<?php echo $moods_directory; ?>/<?php echo basename($file); ?>" /><br />
|
||||||
<?php echo $newmood; ?>
|
<?php echo $newmood; ?>
|
||||||
</label>
|
</label>
|
||||||
<br />
|
<br />
|
||||||
|
|
|
@ -92,9 +92,15 @@ if ($comicpress_options['enable_numbered_pagination']) {
|
||||||
echo '<li class="paginav-extend">'.$pagenavi_options['dotleft_text'].'</li>';
|
echo '<li class="paginav-extend">'.$pagenavi_options['dotleft_text'].'</li>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo '<li class="paginav-previous">';
|
$prev_post_link = get_previous_posts_link( $pagenavi_options['prev_text'] );
|
||||||
previous_posts_link($pagenavi_options['prev_text']);
|
|
||||||
echo '</li>';
|
if (!empty($prev_post_link)) {
|
||||||
|
echo "<li class=\"paginav-previous\">\r\n";
|
||||||
|
echo $prev_post_link . "\r\n";
|
||||||
|
echo "</li>\r\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
for($i = $start_page; $i <= $end_page; $i++) {
|
for($i = $start_page; $i <= $end_page; $i++) {
|
||||||
if($i == $paged) {
|
if($i == $paged) {
|
||||||
$current_page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['current_text']);
|
$current_page_text = str_replace("%PAGE_NUMBER%", number_format_i18n($i), $pagenavi_options['current_text']);
|
||||||
|
@ -104,9 +110,12 @@ if ($comicpress_options['enable_numbered_pagination']) {
|
||||||
echo '<li><a href="'.clean_url(get_pagenum_link($i)).'" title="'.$page_text.'">'.$page_text.'</a></li>';
|
echo '<li><a href="'.clean_url(get_pagenum_link($i)).'" title="'.$page_text.'">'.$page_text.'</a></li>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo '<li class="paginav-next">';
|
$next_post_link = get_next_posts_link($pagenavi_options['next_text'], $max_page);
|
||||||
next_posts_link($pagenavi_options['next_text'], $max_page);
|
if (!empty($next_post_link)) {
|
||||||
echo '</li>';
|
echo "<li class=\"paginav-next\">\r\n";
|
||||||
|
echo $next_post_link ."\r\n";
|
||||||
|
echo "</li>\r\n";
|
||||||
|
}
|
||||||
if ($end_page < $max_page) {
|
if ($end_page < $max_page) {
|
||||||
if(!empty($pagenavi_options['dotright_text'])) {
|
if(!empty($pagenavi_options['dotright_text'])) {
|
||||||
echo '<li class="paginav-extend">'.$pagenavi_options['dotright_text'].'</li>';
|
echo '<li class="paginav-extend">'.$pagenavi_options['dotright_text'].'</li>';
|
||||||
|
|
Loading…
Reference in New Issue