final! damnit!

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-08-31 00:47:03 -07:00
parent 972d9c6720
commit e72820cc00
4 changed files with 20 additions and 12 deletions

View File

@ -112,10 +112,10 @@ foreach ( $years as $year ) {
?> ?>
<?php if ($calendar_directory != 'none') { ?> <?php if (!empty($calendar_directory) && $calendar_directory != 'none') { ?>
<div class="cpcal-month" style="height: 257px;" id="<?php echo $month[$i]['month'] ?>"> <div class="cpcal-month" style="height: 257px;" id="<?php echo $month[$i]['month'] ?>">
<?php if (file_exists(get_template_directory().'/images/cal/'.$calendar_directory.'/'.$archive_year)) { ?> <?php if (file_exists(get_template_directory().'/images/cal/'.$calendar_directory.'/'.$archive_year)) { ?>
<?php if (count($monthfile = glob(get_template_directory().'/images/cal/'.$calendar_directory.'/'.$archive_year.'/'.strtolower($month[$i]['month']).'.*')) > 0) { <?php if (count($monthfile = glob(get_template_directory().'/images/cal/'.$calendar_directory.'/'.$archive_year.'/'.strtolower($month[$i]['month']).'.*')) > 0) {
if (is_array($monthfile)) $monthfile = reset($monthfile); ?> if (is_array($monthfile)) $monthfile = reset($monthfile); ?>
<img class="cpcal-image" src="<?php bloginfo('stylesheet_directory'); ?>/images/cal/<?php echo $calendar_directory; ?>/<?php echo $archive_year; ?>/<?php echo basename($monthfile); ?>" alt="<?php echo $month[$i]['month'] ?>" title="<?php echo $month[$i]['month'] ?>" /> <img class="cpcal-image" src="<?php bloginfo('stylesheet_directory'); ?>/images/cal/<?php echo $calendar_directory; ?>/<?php echo $archive_year; ?>/<?php echo basename($monthfile); ?>" alt="<?php echo $month[$i]['month'] ?>" title="<?php echo $month[$i]['month'] ?>" />
<?php } else { ?> <?php } else { ?>

View File

@ -196,7 +196,7 @@ $options = array (
array( array(
"id" => "comicpress-calendar_directory", "id" => "comicpress-calendar_directory",
"default" => "none", "default" => "default",
"type" => "comicpress-calendar_directory"), "type" => "comicpress-calendar_directory"),

View File

@ -1,6 +1,11 @@
<?php <?php
$comicpress_version = '2.8.0.R2'; // remove intense debates control over the comment numbers
if (function_exists('id_get_comment_number')) {
remove_filter('comments_number','id_get_comment_number');
}
$comicpress_version = '2.8.0.R5';
// Remove the wptexturizer from changing the quotes and squotes. // Remove the wptexturizer from changing the quotes and squotes.
// remove_filter('the_title', 'wptexturize'); // remove_filter('the_title', 'wptexturize');
@ -86,7 +91,7 @@ if (get_option('upload_path') !== false) {
if (empty($graphicnav_directory)) $graphicnav_directory = 'default'; if (empty($graphicnav_directory)) $graphicnav_directory = 'default';
if (empty($moods_directory)) $moods_directory = 'default'; if (empty($moods_directory)) $moods_directory = 'default';
if (empty($calendar_directory)) $calendar_directory = 'none'; if (empty($calendar_directory)) $calendar_directory = 'default';
function is_cp_theme_style($choices) { function is_cp_theme_style($choices) {
global $cp_theme_style; global $cp_theme_style;

View File

@ -12,19 +12,22 @@ function display_comic() {
$comic = explode(".", the_comic_filename()); $comic = explode(".", the_comic_filename());
if ($comic[1] == 'swf') { ?> if ($comic[1] == 'swf') { ?>
<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="<?php echo get_post_meta( get_the_ID(), "fwidth", true ); ?>" height="<?php echo get_post_meta( get_the_ID(), "fheight", true ); ?>"> <?php
<param name="movie" value="/<?php echo the_comic_filename(); ?>" /> $height = get_post_meta( get_the_ID(), "fheight", true );
$width = get_post_meta( get_the_ID(), "fwidth", true );
if (empty($height)) $height = '300';
if (empty($width)) $width = '100%';
?>
<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="<?php echo $width; ?>" height="<?php echo $height; ?>">
<param name="movie" value="<?php echo get_comic_url(); ?>" />
<!--[if !IE]>--> <!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="/<?php echo the_comic_filename(); ?>" width="<?php echo get_post_meta( get_the_ID(), "fwidth", true ); ?>" height="<?php echo get_post_meta( get_the_ID(), "fheight", true ); ?>"> <object type="application/x-shockwave-flash" data="<?php echo get_comic_url(); ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>">
<!--<![endif]--> <!--<![endif]-->
<div> <div>
<h1>Get Flash!</h1> <h1>Get Flash!</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div> </div>
<!--[if !IE]>--> <!--[if !IE]>--></object><!--<![endif]--></object>
</object>
<!--<![endif]-->
</object>
<?php } else { <?php } else {
if ($comic_clicks_next == 'yes') { if ($comic_clicks_next == 'yes') {
$hovertext = get_post_meta( get_the_ID(), "hovertext", true ); $hovertext = get_post_meta( get_the_ID(), "hovertext", true );