Esempio n. 1
0
function comicpress_display_comic()
{
    global $post;
    $comics = get_comic_path('comic', $post);
    $output = '';
    if (is_array($comics)) {
        $count = 1;
        $outputlist = '';
        $outputscript = '';
        foreach ($comics as $comic) {
            $comicsplit = explode(".", $comic);
            switch (strtolower($comicsplit[1])) {
                case 'swf':
                    $output .= '<div id="comic-' . $count . '" class="comicpane">';
                    $output .= comicpress_display_comic_swf($post, $comic);
                    $output .= "</div>\r\n";
                    $outputlist .= "<button id=\"show-" . $count . "\" type=\"button\">" . $count . "</button>\r\n";
                    $count += 1;
                    break;
                case 'txt':
                case 'inc':
                case 'htm':
                    $output .= '<div id="comic-' . $count . '" class="comicpane">';
                    $output .= comicpress_display_comic_text($comic);
                    $output .= "</div>\r\n";
                    $outputlist .= "<button id=\"show-" . $count . "\" type=\"button\">" . $count . "</button>\r\n";
                    $count += 1;
                    break;
                case 'png':
                case 'gif':
                case 'jpg':
                case 'jpeg':
                case 'tif':
                case 'tiff':
                case 'bmp':
                default:
                    $output .= '<div id="comic-' . $count . '" class="comicpane">';
                    $output .= comicpress_display_comic_image($post, $comic);
                    $output .= "</div>\r\n";
                    $outputlist .= "<button id=\"show-" . $count . "\" type=\"button\">" . $count . "</button>\r\n";
                    $count += 1;
            }
        }
        if ($count > 2 && comicpress_themeinfo('enable_multicomic_jquery')) {
            // Add the script stuff before the rest here.
            $output = $outputscript . $output;
        }
    }
    return $output;
}
            ?>
>
							<?php 
            if (!empty($first_comic_in_category)) {
                ?>
								<a href="<?php 
                echo $first_comic_permalink;
                ?>
" title="<?php 
                _e('First comic in', 'comicpress');
                ?>
 <?php 
                echo $category->cat_name;
                ?>
."><?php 
                echo comicpress_display_comic_image('mini,archive,rss,comic', false, $first_comic_in_category, __('First comic in', 'comicpress') . ' ' . $category->cat_name);
                ?>
</a>
							<?php 
            }
            ?>
							<a href="<?php 
            echo get_category_link($category_id);
            ?>
" class="storyline-title"><?php 
            echo $category->cat_name;
            ?>
</a>
							<?php 
            if (!empty($description)) {
                ?>
Esempio n. 3
0
        if (is_category() && in_comic_category()) {
            ?>

				<div class="comicthumbwrap">
					<?php 
            global $mini_comic_width;
            ?>
					<div class="comicarchiveframe" style="width: <?php 
            echo $mini_comic_width;
            ?>
px">
						<a href="<?php 
            the_permalink();
            ?>
"><?php 
            echo comicpress_display_comic_image("mini,rss,archive,comic", false);
            ?>
</a>
					</div>
				</div>
				
			<?php 
        } else {
            comicpress_display_post();
        }
    }
    if (is_category() && in_comic_category()) {
        ?>
	
			<br class="clear-margins" />
		</div>
Esempio n. 4
0
function comicpress_display_comic()
{
    global $post;
    $comic = explode(".", the_comic_filename());
    switch (strtolower($comic[1])) {
        case 'swf':
            $output = comicpress_display_comic_swf();
            break;
        case 'png':
        case 'gif':
        case 'jpg':
        default:
            $output = comicpress_display_comic_image('comic', false, $post, the_hovertext());
    }
    echo apply_filters('comicpress_display_comic', $output);
}
Esempio n. 5
0
function comicpress_display_the_content($is_comic = false)
{
    global $post, $wp_query, $comicpress_options;
    if (is_archive() || is_search()) {
        if ($is_comic) {
            ?>
			<div class="comicarchiveframe">
				<a href="<?php 
            the_permalink();
            ?>
"><?php 
            echo comicpress_display_comic_image("archive,rss,comic", true);
            ?>
</a>
			</div>			
		<?php 
        }
        if ($comicpress_options['excerpt_or_content_archive'] != 'excerpt') {
            the_content(__('&darr; Read the rest of this entry...', 'comicpress'));
        } else {
            the_excerpt();
        }
    } else {
        if (!is_single()) {
            global $more;
            $more = 0;
        }
        the_content(__('&darr; Read the rest of this entry...', 'comicpress'));
        if (is_single()) {
            wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">Pages:</span> ', 'after' => '</div>', 'next_or_number' => 'number'));
        }
    }
}
Esempio n. 6
0
function comicpress_comic_feed()
{
    global $post, $comicpress_options;
    ?>
	<p><a href="<?php 
    the_permalink();
    ?>
"><?php 
    echo comicpress_display_comic_image('rss,comic', $comicpress_options['enable_post_thumbnail_rss']);
    ?>
</a></p><?php 
}
Esempio n. 7
0
    _e('Comic ID', 'comicpress');
    ?>
 - #<?php 
    echo $comicnum;
    ?>
<br />
			<?php 
    _e('Title:', 'comicpress');
    ?>
	<?php 
    echo get_the_title($this_post);
    ?>
<br />
			<br />
			<?php 
    echo comicpress_display_comic_image("archive,comic", false, $this_post, get_the_title($this_post));
    ?>
			<table>
			<tr>
				<td align="left">
						<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
						<input type="hidden" name="add" value="1" />
						<input type="hidden" name="cmd" value="_cart" />
						<input type="hidden" name="item_name" value="<?php 
    _e('Print', 'comicpress');
    ?>
" />
						<input type="hidden" name="return" value="<?php 
    echo bloginfo('wpurl');
    ?>
" />