Example #1
0
 function widget($args, $instance)
 {
     extract($args, EXTR_SKIP);
     echo $before_widget;
     $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
     $transtype = empty($instance['transtype']) ? 'empty' : apply_filters('widget_transtype', $instance['transtype']);
     if (!empty($title)) {
         echo $before_title . $title . $after_title;
     }
     comicpress_the_transcript($transtype);
     echo $after_widget;
 }
Example #2
0
    function comicpress_display_the_content($is_comic = false)
    {
        global $post, $wp_query;
        if (is_archive() || is_search()) {
            if ($is_comic) {
                ?>
				<div class="comicarchiveframeinpost">
					<a href="<?php 
                the_permalink();
                ?>
" title="<?php 
                the_title();
                ?>
"><?php 
                echo comicpress_display_comic_thumbnail('archive', $post, true);
                ?>
</a>
				</div>
			<?php 
            }
            if (comicpress_themeinfo('excerpt_or_content_archive') != 'excerpt' && $post->post_type == 'post') {
                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 (comicpress_themeinfo('transcript_in_posts') && $is_comic) {
                comicpress_the_transcript('styled');
            }
        }
        wp_link_pages(array('before' => '<div class="linkpages"><span class="linkpages-pagetext">Pages:</span> ', 'after' => '</div>', 'next_or_number' => 'number'));
    }