changed require_once to @include for the check_child_theme (fixes comments) fixed the navstyles to work in both IE and FF, i think .. /shrug changed divs to spans inside the graphical-navigation.php
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
4283f066da
commit
763b2c42b2
|
@ -19,7 +19,7 @@ if (function_exists('id_get_comment_number')) {
|
||||||
remove_filter('comments_number','id_get_comment_number');
|
remove_filter('comments_number','id_get_comment_number');
|
||||||
}
|
}
|
||||||
|
|
||||||
$comicpress_version = '2.8.2.4';
|
$comicpress_version = '2.8.2.5';
|
||||||
|
|
||||||
global $wpmu_version;
|
global $wpmu_version;
|
||||||
if (!empty($wpmu_version)) {
|
if (!empty($wpmu_version)) {
|
||||||
|
@ -853,7 +853,7 @@ function comicpress_check_child_file($filename = '') {
|
||||||
if (empty($filename)) return false;
|
if (empty($filename)) return false;
|
||||||
if (get_stylesheet_directory() != get_template_directory()) {
|
if (get_stylesheet_directory() != get_template_directory()) {
|
||||||
if (file_exists(get_stylesheet_directory() .'/'. $filename . '.php')) {
|
if (file_exists(get_stylesheet_directory() .'/'. $filename . '.php')) {
|
||||||
@require_once(get_stylesheet_directory() .'/'. $filename . '.php');
|
@include(get_stylesheet_directory() .'/'. $filename . '.php');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,7 @@ function display_blog_post() {
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php
|
<?php
|
||||||
if ('open' == $post->comment_status && !is_single()) {
|
if ('open' == $post->comment_status) {
|
||||||
if (comicpress_check_child_file('partials/commentlink') == false) { ?>
|
if (comicpress_check_child_file('partials/commentlink') == false) { ?>
|
||||||
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty"> </span> '.__('No Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
|
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty"> </span> '.__('No Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
|
@ -56,7 +56,7 @@ function display_comic_post() {
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php
|
<?php
|
||||||
if ($post->comment_status == 'open' && !is_single()) {
|
if ('open' == $post->comment_status) {
|
||||||
if (comicpress_check_child_file('partials/commentlink') == false) { ?>
|
if (comicpress_check_child_file('partials/commentlink') == false) { ?>
|
||||||
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty"> </span> '.__('No Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
|
<div class="comment-link"><?php comments_popup_link('<span class="comment-balloon comment-balloon-empty"> </span> '.__('No Comments ','comicpress'), '<span class="comment-balloon">1</span> '.__('Comment ','comicpress'), '<span class="comment-balloon">%</span> '.__('Comments ','comicpress')); ?></div>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
|
@ -3,40 +3,37 @@ Author: Tyler Martin
|
||||||
Style: Default
|
Style: Default
|
||||||
*/
|
*/
|
||||||
#comic_navi_wrapper {
|
#comic_navi_wrapper {
|
||||||
|
width: 100%;
|
||||||
|
display: table;
|
||||||
|
border-collapse: collapse;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic_navi_left {
|
.comic_navi_left {
|
||||||
height: 25px;
|
|
||||||
display: inline-block;
|
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic_navi_center {
|
.comic_navi_center {
|
||||||
height: 25px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
margin: 0 auto;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic_navi_right {
|
.comic_navi_right {
|
||||||
height: 25px;
|
|
||||||
display: inline-block;
|
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic_navi {
|
.comic_navi {
|
||||||
background: #000;
|
background: #555;
|
||||||
height: 25px;
|
padding: 2px;
|
||||||
line-height: 24px;
|
border: solid 1px #333;
|
||||||
display: table;
|
-moz-border-radius: 8px;
|
||||||
border-collapse: collapse;
|
-khtml-border-radius: 8px;
|
||||||
margin: 0 auto;
|
-webkit-border-radius: 8px;
|
||||||
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.navi-comictitle {
|
.navi-comictitle {
|
||||||
padding: 0px 10px;
|
padding: 0px 6px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
@ -49,7 +46,7 @@ Style: Default
|
||||||
}
|
}
|
||||||
|
|
||||||
.navi {
|
.navi {
|
||||||
padding: 0 10px;
|
padding: 0 6px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,42 +4,36 @@ Style: Sci Fi
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#comic_navi_wrapper {
|
#comic_navi_wrapper {
|
||||||
|
display: table;
|
||||||
|
border-collapse: collapse;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic_navi_left {
|
.comic_navi_left {
|
||||||
display: inline-block;
|
|
||||||
float: left;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic_navi_center {
|
.comic_navi_center {
|
||||||
margin: 0 auto;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic_navi_right {
|
.comic_navi_right {
|
||||||
display: inline-block;
|
|
||||||
float: right;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic_navi {
|
.comic_navi {
|
||||||
display: table;
|
|
||||||
border-collapse: collapse;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navi-comictitle {
|
.navi-comictitle {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
float: left;
|
|
||||||
display: inline-block;
|
|
||||||
padding-top: 26px;
|
padding-top: 26px;
|
||||||
|
max-width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navi {
|
.navi {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
padding: 56px 0 0 0;
|
padding: 60px 0 0 0;
|
||||||
display: block;
|
/* margin: 0 5px; */
|
||||||
float: left;
|
display: inline-block;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -101,7 +95,7 @@ Style: Sci Fi
|
||||||
|
|
||||||
a.navi-comments span {
|
a.navi-comments span {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
height: 56px;
|
height: 60px;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
|
|
|
@ -3,45 +3,36 @@ Author: Tyler Martin
|
||||||
Style: Default
|
Style: Default
|
||||||
*/
|
*/
|
||||||
#comic_navi_wrapper {
|
#comic_navi_wrapper {
|
||||||
|
display: table;
|
||||||
|
border-collapse: collapse;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic_navi_left {
|
.comic_navi_left {
|
||||||
display: inline-block;
|
|
||||||
float: left;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic_navi_center {
|
.comic_navi_center {
|
||||||
margin: 0 auto;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic_navi_right {
|
.comic_navi_right {
|
||||||
display: inline-block;
|
|
||||||
float: right;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.comic_navi {
|
.comic_navi {
|
||||||
display: table;
|
|
||||||
border-collapse: collapse;
|
|
||||||
margin: 0 auto;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navi-comictitle {
|
.navi-comictitle {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
float: left;
|
|
||||||
display: block;
|
|
||||||
padding-top: 26px;
|
padding-top: 26px;
|
||||||
max-width: 200px;
|
max-width: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navi {
|
.navi {
|
||||||
width: 66px;
|
width: 66px;
|
||||||
padding: 66px 0 0 0;
|
padding: 66px 0 0 0;
|
||||||
/* margin: 0 5px; */
|
/* margin: 0 5px; */
|
||||||
display: block;
|
display: inline-block;
|
||||||
float: left;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -53,7 +44,6 @@ Style: Default
|
||||||
}
|
}
|
||||||
|
|
||||||
.navi-first {
|
.navi-first {
|
||||||
margin: 0;
|
|
||||||
background: url('first.png') no-repeat;
|
background: url('first.png') no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +56,7 @@ Style: Default
|
||||||
}
|
}
|
||||||
|
|
||||||
.navi-prev, .navi-previous {
|
.navi-prev, .navi-previous {
|
||||||
margin-right: 30px;
|
margin-right: 10px;
|
||||||
background: url('prev.png') no-repeat;
|
background: url('prev.png') no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,8 +79,7 @@ Style: Default
|
||||||
|
|
||||||
.navi-buyprint-form {
|
.navi-buyprint-form {
|
||||||
width: 76px;
|
width: 76px;
|
||||||
display: block;
|
display: inline-block;
|
||||||
float: left;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
@ -109,9 +98,10 @@ Style: Default
|
||||||
}
|
}
|
||||||
|
|
||||||
a.navi-comments span {
|
a.navi-comments span {
|
||||||
|
display: inline-block;
|
||||||
width: 66px;
|
width: 66px;
|
||||||
height: 66px;
|
height: 66px;
|
||||||
display: block;
|
display: inline-block;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 66px;
|
line-height: 66px;
|
||||||
|
@ -123,7 +113,7 @@ Style: Default
|
||||||
}
|
}
|
||||||
|
|
||||||
.navi-next {
|
.navi-next {
|
||||||
margin-left: 30px;
|
margin-left: 10px;
|
||||||
background: url('next.png') no-repeat;
|
background: url('next.png') no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,7 +126,6 @@ Style: Default
|
||||||
}
|
}
|
||||||
|
|
||||||
.navi-last {
|
.navi-last {
|
||||||
margin: 0;
|
|
||||||
background: url('last.png') no-repeat;
|
background: url('last.png') no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -347,6 +347,7 @@ h3, h3 a {
|
||||||
|
|
||||||
#comic-foot {
|
#comic-foot {
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* THE FOOTER */
|
/* THE FOOTER */
|
||||||
|
|
|
@ -101,7 +101,7 @@ class WidgetComicPressGraphicalStorylineNavigation extends WP_Widget {
|
||||||
class="navi <?php echo implode(" ", $navi_class_names); ?>"
|
class="navi <?php echo implode(" ", $navi_class_names); ?>"
|
||||||
title="<?php echo $instance["${which}_title"]; ?>"><?php echo htmlspecialchars_decode($instance["${which}_title"]); ?></a><?php
|
title="<?php echo $instance["${which}_title"]; ?>"><?php echo htmlspecialchars_decode($instance["${which}_title"]); ?></a><?php
|
||||||
} else {
|
} else {
|
||||||
?><div class="navi <?php echo implode(" ", $navi_class_names); ?> navi-void"><?php echo htmlspecialchars_decode($instance["${which}_title"]); ?></div><?php
|
?><span class="navi <?php echo implode(" ", $navi_class_names); ?> navi-void"><?php echo htmlspecialchars_decode($instance["${which}_title"]); ?></span><?php
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'archives':
|
case 'archives':
|
||||||
|
@ -115,7 +115,7 @@ class WidgetComicPressGraphicalStorylineNavigation extends WP_Widget {
|
||||||
title="<?php echo $instance['random_title']; ?>"><?php echo $instance['random_title']; ?></a><?php
|
title="<?php echo $instance['random_title']; ?>"><?php echo $instance['random_title']; ?></a><?php
|
||||||
break;
|
break;
|
||||||
case 'comictitle':
|
case 'comictitle':
|
||||||
?><div class="navi-comictitle"><a href="<?php echo get_permalink($current) ?>"><?php echo get_the_title($current->ID); ?></a></div><?php
|
?><span class="navi-comictitle"><a href="<?php echo get_permalink($current) ?>"><?php echo get_the_title($current->ID); ?></a></span><?php
|
||||||
break;
|
break;
|
||||||
case 'comments':
|
case 'comments':
|
||||||
$temp_id = $id;
|
$temp_id = $id;
|
||||||
|
@ -213,7 +213,7 @@ class WidgetComicPressGraphicalStorylineNavigation extends WP_Widget {
|
||||||
if (is_array($buttons)) {
|
if (is_array($buttons)) {
|
||||||
$output = array();
|
$output = array();
|
||||||
foreach ($this->_group_navigation_buttons($buttons) as $group => $grouped_buttons) {
|
foreach ($this->_group_navigation_buttons($buttons) as $group => $grouped_buttons) {
|
||||||
$output[] = '<div class="' . $group . '">' . implode('', array_values($grouped_buttons)) . '</div>';
|
$output[] = '<span class="' . $group . '">' . implode('', array_values($grouped_buttons)) . '</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$buttons_text = implode('', $output);
|
$buttons_text = implode('', $output);
|
||||||
|
|
Loading…
Reference in New Issue