function comicpress_random_default_avatar($id_or_email = '') { $current_avatar_directory = comicpress_themeinfo('avatar_directory'); if (!empty($current_avatar_directory) && $current_avatar_directory !== 'none') { if (file_exists(get_stylesheet_directory() . '/images/avatars/' . $current_avatar_directory)) { $count = count($results = glob(get_stylesheet_directory() . '/images/avatars/' . $current_avatar_directory . '/*')); $blogurl = get_stylesheet_directory_uri(); } else { $count = count($results = glob(get_template_directory() . '/images/avatars/' . $current_avatar_directory . '/*')); $blogurl = get_template_directory_uri(); } if ($count) { $default = ''; $checknum = hexdec(substr(md5($id_or_email), 0, 5)) % $count; if ($count > 0) { $default = basename($results[(int) $checknum]); } else { return false; } return $blogurl . '/images/avatars/' . $current_avatar_directory . '/' . $default; } } else { return get_option('avatar_default'); } return false; }
function comicpress_change_header_height($height) { $new_height = comicpress_themeinfo('custom_image_header_height'); if (!empty($new_height) && (int) $new_height > 0) { $height = $new_height; } return $height; }
function comicpress_display_facebook_like($content) { global $post, $wp_query; if (!is_page()) { if (comicpress_in_comic_category() && comicpress_themeinfo('facebook_like_comic_post') || !comicpress_in_comic_category() && comicpress_themeinfo('facebook_like_blog_post')) { $content .= '<span class="facebook-like"><fb:like layout="box_count" show_faces="false" width="255" href="' . get_permalink() . '"></fb:like></span>'; } } return $content; }
function comicpress_copyright_info() { $copyright_name = comicpress_themeinfo('copyright_name'); if (empty($copyright_name)) { $copyright_name = get_bloginfo('name'); } $copyright_url = comicpress_themeinfo('copyright_url'); if (empty($copyright_url)) { $copyright_url = home_url(); } $copyright = __('©', 'comicpress') . comicpress_copyright_dates() . ' ' . apply_filters('comicpress_copyright_info_name', '<a href="' . $copyright_url . '">' . $copyright_name . '</a>') . ' '; return apply_filters('comicpress_copyright_info', $copyright); }
function comicpress_dual_columns($whereclause = false) { global $wp_query; ?> <div id="dualcolumns"> <div class="column_one"> <div class="column_one_header"></div> <?php Protect(); $wp_query->in_the_loop = true; $blog_query = new WP_Query(); if ($whereclause) { add_filter('posts_where', 'comicpress_dual_filter_where'); } $blog_query->query('showposts=' . comicpress_themeinfo('blog_postcount') . '&cat=' . comicpress_exclude_comic_categories() . '&author=' . comicpress_themeinfo('author_column_one') . '&paged=' . $paged); if (have_posts()) { while ($blog_query->have_posts()) { $blog_query->the_post(); comicpress_display_post(); } } UnProtect(); ?> </div> <div class="column_two"> <div class="column_two_header"></div> <?php Protect(); $wp_query->in_the_loop = true; $blog_query = new WP_Query(); if ($whereclause) { add_filter('posts_where', 'comicpress_dual_filter_where'); } $blog_query->query('showposts=' . comicpress_themeinfo('blog_postcount') . '&cat=' . comicpress_exclude_comic_categories() . '&author=' . comicpress_themeinfo('author_column_two')); if (have_posts()) { while ($blog_query->have_posts()) { $blog_query->the_post(); comicpress_display_post(); } } UnProtect(); ?> </div> <div class="clear"></div> </div> <?php }
function ryuzine_display_comic() { global $post; $output = ''; // ComicPress 2.x if (function_exists('comicpress_the_hovertext')) { $comics = get_comic_path('comic', $post); if (is_array($comics)) { foreach ($comics as $comic) { $cdn_url = comicpress_themeinfo('cdn_url'); if (!empty($cdn_url)) { $thumbnail = trailingslashit($cdn_url) . comicpress_clean_url($comic); } else { $thumbnail = comicpress_themeinfo('baseurl') . comicpress_clean_url($comic); } $hovertext = comicpress_the_hovertext($post); } } } // Comic Easel (ComicPress 4) if (function_exists('ceo_the_hovertext')) { $post_image_id = get_post_thumbnail_id($post->ID); if ($post_image_id) { // If there's a featured image. $hovertext = ceo_the_hovertext(); $thumbnail = wp_get_attachment_image_src($post_image_id, 'full', false); if (is_array($thumbnail)) { $thumbnail = reset($thumbnail); } } } // MangaPress if (defined('MP_FOLDER')) { $post_image_id = get_post_thumbnail_id($post->ID); if ($post_image_id) { $hovertext = ''; $thumbnail = wp_get_attachment_image_src($post_image_id, 'full', false); if (is_array($thumbnail)) { $thumbnail = reset($thumbnail); } } } $output .= '<img src="' . $thumbnail . '" alt="' . $hovertext . '" title="' . $hovertext . '" />'; return apply_filters('ryuzine_display_comic', $output); }
<?php /* Template Name: Members Only Blog */ get_header(); remove_filter('pre_get_posts', 'comicpress_members_filter'); if (comicpress_themeinfo('enable_members_only')) { if (comicpress_themeinfo('members_post_category') && comicpress_is_member()) { $blog_query = 'showposts=' . comicpress_themeinfo('blog_postcount') . '&cat=' . comicpress_themeinfo('members_post_category') . '&paged=' . $paged; $posts =& query_posts($blog_query); if (have_posts()) { while (have_posts()) { the_post(); comicpress_display_post(); } } comicpress_pagination(); } else { _e("This page is restricted to members only.", 'comicpress'); } } else { _e('Member\'s Only content is not enabled on this installation.'); } if (is_active_sidebar('under-blog')) { get_sidebar('underblog'); } get_footer();
/> </td> <td> <?php _e('Mini Navigation adds small previous and next arrows arrow to the right side of your Menubar.', 'comicpress'); ?> </td> </tr> <tr> <th scope="row"><label for="disable_jquery_menu_code"><?php _e('Disable the menubar jQuery?', 'comicpress'); ?> </label></th> <td> <input id="disable_jquery_menu_code" name="disable_jquery_menu_code" type="checkbox" value="1" <?php checked(true, comicpress_themeinfo('disable_jquery_menu_code')); ?> /> </td> <td> <?php _e('Disable the loading of the menubar jQuery, useful if you use a custom menubar.', 'comicpress'); ?> </td> </tr> </table> </div> <div class="comicpress-options-save"> <div class="comicpress-major-publishing-actions">
/> </td> <td> <?php _e('Setting this on will make it so that all posts, not just comics will display in the archive templates.', 'comicpress'); ?> </td> </tr> <tr> <th scope="row"><label for="archive_start_latest_year"><?php _e('Enable archive templates to start with most current year?', 'comicpress'); ?> </label></th> <td> <input id="archive_start_latest_year" name="archive_start_latest_year" type="checkbox" value="1" <?php checked(true, comicpress_themeinfo('archive_start_latest_year')); ?> /> </td> <td> <?php _e('Enabling this option will make the archive templates start with the most current year, instead of the first year.', 'comicpress'); ?> </td> </tr> </table> </div> <div class="comicpress-options-save"> <div class="comicpress-major-publishing-actions"> <div class="comicpress-publishing-action">
_e('2 column layout default width: <strong>780px</strong>.', 'comicpress'); ?> <br/><br/> <?php _e('3 column layout (<em>includes Graphic Novel</em>) default width: <b>980px</b>.', 'comicpress'); ?> </td> </tr> <tr> <th scope="row"><label for="enable_caps"><?php _e('Enable -head and -foot caps?', 'comicpress'); ?> </label></th> <td> <input id="enable_caps" name="enable_caps" type="checkbox" value="1" <?php checked(true, comicpress_themeinfo('enable_caps')); ?> /> </td> <td> <?php _e('Enabling this option will create post-head widget-head and various other div alignments increasing the amount of dom elements available to use in designing your site, however will reduce the speed in which the page is shown on the end users browser.', 'comicpress'); ?> </td> </tr> </table> <div class="comicpress-options-save"> <div class="comicpress-major-publishing-actions"> <div class="comicpress-publishing-action"> <input name="comicpress_save_layout" type="submit" class="button-primary" value="Save Layout" /> <input type="hidden" name="action" value="comicpress_save_layout" />
function comicpress_inject_comic_home() { global $wp_query; if (!is_paged() && is_home()) { if (!comicpress_themeinfo('disable_comic_frontpage')) { $order = 'DESC'; $wp_query->in_the_loop = true; $comicFrontpage = new WP_Query(); if (comicpress_themeinfo('display_first_comic_on_home')) { $order = 'ASC'; } $comicFrontpage->query('showposts=1&order=' . $order . '&cat=' . comicpress_all_comic_categories_string()); while ($comicFrontpage->have_posts()) { $comicFrontpage->the_post(); comicpress_display_comic_area(); } } } else { if (is_single() && comicpress_in_comic_category()) { comicpress_display_comic_area(); } } }
function build_zappbars($value, $layout, $position, $paged) { global $post; $xtra = ''; if ($position == null) { $position = 'top'; } $zb_name = array('button_a', 'button_b', 'button_c', 'button_d', 'button_e'); $html = '<div class="zappbar zb-' . $layout . ' ' . $position . '">'; $x = 0; foreach ($value as $val) { $html .= '<div class="zb ' . $zb_name[$x] . ' integrated-webcomic">'; if (array_filter($paged)) { if (function_exists('comicpress_display_comic') && comicpress_themeinfo('archive_display_order') == "asc") { $first_page = $paged[0]; $last_page = $paged[3]; } else { if (function_exists('comicpress_display_comic') && comicpress_themeinfo('archive_display_order') == "desc") { $first_page = $paged[3]; $last_page = $paged[0]; } else { $first_page = $paged[3]; $last_page = $paged[0]; } } if ($val[2] == 'first_page') { $val[2] = $first_page; } else { if ($val[2] == 'prev_page') { $val[2] = $paged[1]; } else { if ($val[2] == 'next_page') { $val[2] = $paged[2]; } else { if ($val[2] == 'last_page') { $val[2] = $last_page; } else { } } } } } if (get_post_type() == 'comic' || function_exists('ceo_pluginfo')) { if (ceo_pluginfo('navigate_only_chapters')) { if ($val[2] == 'prev_chapter') { $val[2] = ceo_get_previous_chapter(); } else { if ($val[2] == 'first_comic') { $val[2] = ceo_get_first_comic_in_chapter_permalink(); } else { if ($val[2] == 'prev_comic') { $val[2] = ceo_get_previous_comic_in_chapter_permalink(); } else { if ($val[2] == 'next_comic') { $val[2] = ceo_get_next_comic_in_chapter_permalink(); } else { if ($val[2] == 'last_comic') { $val[2] = ceo_get_last_comic_in_chapter_permalink(); } else { if ($val[2] == 'next_chapter') { $val[2] = ceo_get_next_chapter(); } else { if ($val[2] == 'comic_archive') { $val[2] = get_site_url() . '/comic'; } else { } } } } } } } } else { if ($val[2] == 'prev_chapter') { $val[2] = ceo_get_previous_chapter(); } else { if ($val[2] == 'first_comic') { $val[2] = ceo_get_first_comic_permalink(); } else { if ($val[2] == 'prev_comic') { $val[2] = ceo_get_previous_comic_permalink(); } else { if ($val[2] == 'next_comic') { $val[2] = ceo_get_next_comic_permalink(); } else { if ($val[2] == 'last_comic') { $val[2] = ceo_get_last_comic_permalink(); } else { if ($val[2] == 'next_chapter') { $val[2] = ceo_get_next_chapter(); } else { if ($val[2] == 'comic_archive') { $val[2] = get_site_url() . '/comic'; } else { } } } } } } } } } if (function_exists('comicpress_display_comic')) { if ($val[2] == 'prev_chapter') { $val[2] = comicpress_get_previous_storyline_start_permalink(); } else { if ($val[2] == 'first_comic') { $val[2] = comicpress_get_first_comic_permalink(); } else { if ($val[2] == 'prev_comic') { $val[2] = comicpress_get_previous_comic_permalink(); } else { if ($val[2] == 'next_comic') { $val[2] = comicpress_get_next_comic_permalink(); } else { if ($val[2] == 'last_comic') { $val[2] = comicpress_get_last_comic_permalink(); } else { if ($val[2] == 'next_chapter') { $val[2] = comicpress_get_next_storyline_start_permalink(); } else { if ($val[2] == 'comic_archive') { $val[2] = get_site_url() . '/?cat=' . comicpress_themeinfo('comiccat') . '/'; } else { } } } } } } } } if (preg_match('/webcomic/', get_post_type())) { // Yes, this is a very convoluted way of getting the URLs if ($val[2] == 'prev_chapter') { preg_match_all('/<a[^>]+href=([\'"])(.+?)\\1[^>]*>/i', do_shortcode('[previous_webcomic_storyline_link]'), $matches); $val[2] = $matches[2][0]; } else { if ($val[2] == 'first_comic') { preg_match_all('/<a[^>]+href=([\'"])(.+?)\\1[^>]*>/i', do_shortcode('[first_webcomic_link]'), $matches); $val[2] = $matches[2][0]; } else { if ($val[2] == 'prev_comic') { preg_match_all('/<a[^>]+href=([\'"])(.+?)\\1[^>]*>/i', do_shortcode('[previous_webcomic_link]'), $matches); $val[2] = $matches[2][0]; } else { if ($val[2] == 'next_comic') { preg_match_all('/<a[^>]+href=([\'"])(.+?)\\1[^>]*>/i', do_shortcode('[next_webcomic_link]'), $matches); $val[2] = $matches[2][0]; } else { if ($val[2] == 'last_comic') { preg_match_all('/<a[^>]+href=([\'"])(.+?)\\1[^>]*>/i', do_shortcode('[last_webcomic_link]'), $matches); $val[2] = $matches[2][0]; } else { if ($val[2] == 'next_chapter') { preg_match_all('/<a[^>]+href=([\'"])(.+?)\\1[^>]*>/i', do_shortcode('[next_webcomic_storyline_link]'), $matches); $val[2] = $matches[2][0]; } else { if ($val[2] == 'comic_archive') { preg_match_all('/<a[^>]+href=([\'"])(.+?)\\1[^>]*>/i', do_shortcode('[the_webcomic_collections]'), $matches); $val[2] = $matches[2][0]; } else { } } } } } } } } if (class_exists('woocommerce') && (is_product() || is_cart() || is_checkout() || is_account_page())) { global $woo_options, $woocommerce; if ($val[2] == 'woo_store') { $val[2] = get_permalink(woocommerce_get_page_id('shop')); } if ($val[2] == 'woo_cart' && (is_product() || is_cart() || is_checkout() || is_account_page())) { $val[2] = $woocommerce->cart->get_cart_url(); $cartcount = sprintf(_n('%d', '%d', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count); $label = '<span class="amount">' . $woocommerce->cart->get_cart_total() . '</span>'; if ($cartcount != '0') { $label .= '<span class="contents">' . $cartcount . '</span>'; } $val[1] = $label; } else { if ($val[2] == 'woo_review' && is_product()) { global $product; if (get_option('woocommerce_enable_review_rating') === 'yes' && ($count = $product->get_rating_count())) { $val[1] = $val[1] . '<span class="contents">' . $count . '</span>'; } } else { if ($val[2] == 'woo_account' && (is_product() || is_cart() || is_checkout() || is_account_page())) { $val[2] = get_permalink(get_option('woocommerce_myaccount_page_id')); if (is_user_logged_in()) { $who = wp_get_current_user(); if (strlen($who->display_name) > 10) { $val[1] = __('Account', 'woothemes'); } else { $val[1] = $who->display_name; } } else { $val[1] = __('Login', 'woothemes'); } } else { if (in_array($val[2], array('woo_search', 'woo_search_left', 'woo_search_right'))) { if ($val[2] == 'woo_search_left') { $shift = ' left'; } else { if ($val[2] == 'woo_search_right') { $shift = ' right'; } else { $shift = ' center'; } } $xtra = " searchbox" . $shift; $val[1] = $val[1] . '</span><span class="search out"> <form role="search" method="get" action="' . esc_url(home_url('/')) . '"> <label class="screen-reader-text" for="s">' . __('Search Products:', 'woothemes') . '</label> <input type="search" results=5 autosave="' . esc_url(home_url('/')) . '" class="input-text" placeholder="' . esc_attr__('Search Products', 'woothemes') . '" value="' . get_search_query() . '" name="s" /> <input type="submit" class="button" value="' . esc_attr__('Search', 'woothemes') . '" /> <input type="hidden" name="post_type" value="product" /> </form> </span>'; } else { } } } } } if ($val[2] == 'appmenu_left') { global $left_appmenu; $left_appmenu = 1; } if ($val[2] == 'appmenu_right') { global $right_appmenu; $right_appmenu = 1; } if ($val[2] == 'sidebar_left') { global $left_sidebar; $left_sidebar = 1; } if ($val[2] == 'sidebar_right') { global $right_sidebar; $right_sidebar = 1; } if ($val[2] == 'custom_email') { $zb_social = get_option('zappbar_social'); $val[2] = 'mailto:' . $zb_social['email_address']; } if ($val[2] == 'blogposts') { $cats = get_categories(); $pls = get_option('permalink_structure'); /* Page title is usually "Category Archives: First_Category_Name" but we want to trick it to only say "Category Archives:" so we inject cat_ID=1000 or category slug "all" which most likely do not exist, which leaves the name part of the title blank */ if ($pls == '') { $category = '/?cat=1000,'; } else { if ($pls == '/archives/%post_id%') { $category = '/archives/category/all,'; } else { $category = '/category/all,'; } } $val[2] = esc_url(home_url()) . $category; $c = 0; foreach ($cats as $cat) { if ($pls == '') { $val[2] .= $cat->cat_ID; } else { $val[2] .= $cat->slug; } if ($c < count($cats) - 1) { $val[2] .= ','; } $c++; } $val[2] .= '/'; } if ($val[2] == 'ryuzine_rack') { $val[2] = esc_url(home_url()) . '/ryuzine-rack/'; } if (in_array($val[2], array('search_box', 'search_left', 'search_right'))) { if ($val[2] == 'search_left') { $shift = ' left"'; } else { if ($val[2] == 'search_right') { $shift = ' right"'; } else { $shift = ' center'; } } $xtra = " searchbox" . $shift; $val[1] = $val[1] . '</span><span class="search out"> <form role="search" method="get" class="search-form" action="' . home_url('/') . '"> <label> <span class="screen-reader-text">Search for:</span> <input type="search" results=5 class="input-text" placeholder="Search Site" value="" name="s" title="Search for:" /> </label> <input type="submit" class="search-submit" value="Search" /> </form> </span>'; } // now all the share options if ($val[2] == 'commentform') { if (get_comments_number() > 0) { $count = '<span class="contents">' . get_comments_number() . '</span>'; } else { $count = ''; } $val[1] = $val[1] . $count; } else { if ($val[2] == 'share_this') { global $share_panel; $share_panel = 1; } else { if ($val[2] == 'share_fb') { $val[2] = 'http://www.facebook.com/sharer.php?u=' . urlencode(get_permalink($post->ID)) . '&t=' . urlencode(get_the_title($post->ID)) . ''; $xtra = ' zb-social'; } else { if ($val[2] == 'share_twitter') { $val[2] = 'http://twitter.com/share?text=' . urlencode(get_the_title($post->ID)) . '&url=' . urlencode(wp_get_shortlink($post->ID)) . ''; $xtra = ' zb-social'; } else { if ($val[2] == 'share_gplus') { $val[2] = 'https://plus.google.com/share?url=' . urlencode(get_permalink($post->ID)); $xtra = ' zb-social'; } else { if ($val[2] == 'share_reddit') { $val[2] = 'http://www.reddit.com/submit?url=' . urlencode(get_permalink($post->ID)) . '&title=' . urlencode(get_the_title($post->ID)) . ''; $xtra = ' zb-social'; } else { if ($val[2] == 'share_stumble') { $val[2] = 'http://www.stumbleupon.com/submit?url=' . urlencode(get_permalink($post->ID)) . '&title=' . urlencode(get_the_title($post->ID)) . ''; $xtra = ' zb-social'; } else { if ($val[2] == 'share_digg') { $val[2] = 'http://digg.com/submit?url=' . urlencode(get_permalink($post->ID)) . '&title=' . urlencode(get_the_title($post->ID)) . ''; $xtra = ' zb-social'; } else { if ($val[2] == 'share_linkedin') { $val[2] = 'http://www.linkedin.com/shareArticle?mini=true&title=' . urlencode(get_the_title($post->ID)) . '&url=' . urlencode(wp_get_shortlink($post->ID)) . ''; $xtra = ' zb-social'; } else { if ($val[2] == 'share_pinterest') { $val[2] = 'http://pinterest.com/pin/create/button/?url=' . urlencode(get_permalink($post->ID)) . '&media=' . urlencode(wp_get_attachment_url(get_post_thumbnail_id($post->ID))) . ''; $xtra = ' zb-social'; } else { if ($val[2] == 'share_delicious') { $val[2] = 'http://del.icio.us/post?url=' . urlencode(get_permalink($post->ID)) . '&title=' . urlencode(get_the_title($post->ID)) . ''; $xtra = ' zb-social'; } else { } } } } } } } } } } } $icon = explode('|', $val[0]); $html .= '<a href="' . $val[2] . '" class="button' . $xtra . '" target="_self"><div class="icon ' . $icon[0] . ' ' . $icon[1] . '"></div><br/><span class="zb-label">' . $val[1] . '</span></a>'; $html .= '</div>'; $x++; } $html .= '</div>'; echo $html; }
function comicpress_display_post() { global $post, $wp_query; $is_comic = 0; if (comicpress_in_comic_category()) { $is_comic = 1; } ?> <?php comicpress_display_blog_navigation($is_comic); ?> <?php comicpress_display_comic_navigation($is_comic); ?> <div <?php post_class(); ?> > <?php comicpress_display_post_thumbnail($is_comic); ?> <?php if (comicpress_themeinfo('enable_caps')) { ?> <div class="post-head"></div><?php } ?> <div class="post-content"> <div class="post-info"> <?php comicpress_display_author_gravatar($is_comic); ?> <?php comicpress_display_post_calendar($is_comic); ?> <?php if (function_exists('comicpress_show_mood_in_post')) { comicpress_show_mood_in_post(); } ?> <div class="post-text"> <?php comicpress_display_post_title($is_comic); if (!is_page()) { comicpress_display_post_author(); comicpress_display_post_date(); comicpress_display_post_time(); if (!is_archive() && !is_search()) { edit_post_link(__('Edit', 'comicpress'), ' <span class="pipe">|</span> <span class="post-edit">', '</span>'); } comicpress_display_post_category($is_comic); if (function_exists('the_ratings') && $post->post_type == 'post') { the_ratings(); } } ?> </div> </div> <div class="clear"></div> <div class="entry"> <?php comicpress_display_the_content($is_comic); ?> <div class="clear"></div> </div> <div class="clear"></div> <?php if (!is_page()) { ?> <div class="post-extras"> <?php comicpress_display_post_tags(); ?> <?php comicpress_display_comment_link(); ?> <?php if ($is_comic) { if (function_exists('comicpress_related_comics_shortcode') && comicpress_themeinfo('enable_related_comics')) { echo comicpress_related_comics_shortcode(); } } else { if (function_exists('comicpress_related_posts_shortcode') && comicpress_themeinfo('enable_related_posts')) { echo comicpress_related_posts_shortcode(); } } ?> <div class="clear"></div> </div> <?php } ?> <?php if (is_page()) { edit_post_link(__('Edit this page.', 'comicpress'), '', ''); } ?> </div> <?php if (comicpress_themeinfo('enable_caps')) { ?> <div class="post-foot"></div><?php } ?> </div> <?php }
<div id="header"> <?php do_action('comicpress-header'); ?> <h1><a href="<?php echo home_url(); ?> "><?php bloginfo('name'); ?> </a></h1> <div class="description"><?php bloginfo('description'); ?> </div> <?php if (is_active_sidebar('header')) { get_sidebar('header'); } ?> <div class="clear"></div> </div> <?php if (!comicpress_themeinfo('disable_default_menubar')) { comicpress_menubar(); } if (is_active_sidebar('menubar')) { get_sidebar('menubar'); } get_template_part('layout', 'head');
function comicpress_handle_edit_post_mood_save($post_id) { $moods_directory = comicpress_themeinfo('moods_directory'); if (!empty($moods_directory) && $moods_directory != 'none') { $currentmood = get_post_meta($post_id, "mood", true); if (isset($_POST['postmood']) && $_POST['postmood'] !== $currentmood) { $postmood = $_POST['postmood']; update_post_meta($post_id, 'mood', $postmood); } } }
function comicpress_admin_options() { $comicpress_options = get_option('comicpress-options'); ?> <div class="wrap"> <div id="cpadmin-headericon" style="background: url('<?php echo get_template_directory_uri(); ?> /images/options/comicpress_icon.png') no-repeat;"></div> <h2 class="alignleft"><?php _e('ComicPress Options', 'comicpress'); ?> </h2> <div class="clear"></div> <?php $tab = ''; if (isset($_GET['tab'])) { $tab = wp_filter_nohtml_kses($_GET['tab']); } if (isset($_POST['_wpnonce']) && wp_verify_nonce($_POST['_wpnonce'], 'update-options')) { if ($_REQUEST['action'] == 'comicpress_save_layout') { $comicpress_options['cp_theme_layout'] = wp_filter_nohtml_kses($_REQUEST['cp_theme_layout']); foreach (array('enable_caps') as $key) { if (!isset($_REQUEST[$key])) { $_REQUEST[$key] = 0; } $comicpress_options[$key] = (bool) ($_REQUEST[$key] == 1 ? true : false); } $tab = 'themestyle'; update_option('comicpress-options', $comicpress_options); } if ($_REQUEST['action'] == 'comicpress_save_general') { foreach (array('rascal_says', 'disable_comment_note', 'enable_comment_javascript', 'enable_numbered_pagination', 'enable_comment_count_in_rss', 'enable_post_thumbnail_rss', 'comic_clicks_next', 'disable_default_comic_nav', 'enable_widgetarea_use_sidebar_css', 'disable_lrsidebars', 'enable_equal_height_sidebars', 'disable_footer_text', 'enable_comicpress_debug', 'enable_full_post_check', 'enable_scroll_to_top', 'enable_page_load_info', 'fix_for_index_paging', 'enable_multicomic_jquery', 'enable_comic_lightbox') as $key) { if (!isset($_REQUEST[$key])) { $_REQUEST[$key] = 0; } $comicpress_options[$key] = (bool) ($_REQUEST[$key] == 1 ? true : false); } foreach (array('graphicnav_directory', 'copyright_name', 'copyright_url') as $key) { if (isset($_REQUEST[$key])) { $comicpress_options[$key] = wp_filter_nohtml_kses($_REQUEST[$key]); } } $tab = 'general'; update_option('comicpress-options', $comicpress_options); } if ($_REQUEST['action'] == 'comicpress_save_index') { foreach (array('disable_comic_frontpage', 'disable_comic_blog_frontpage', 'disable_comic_blog_single', 'enable_comments_when_comic_blog_disabled', 'disable_blog_frontpage', 'disable_blogheader', 'display_first_comic_on_home', 'display_comments_on_home') as $key) { if (!isset($_REQUEST[$key])) { $_REQUEST[$key] = 0; } $comicpress_options[$key] = (bool) ($_REQUEST[$key] == 1 ? true : false); } foreach (array('blogheader_text') as $key) { if (!isset($_REQUEST[$key])) { $_REQUEST[$key] = ''; } $comicpress_options[$key] = wp_filter_nohtml_kses($_REQUEST[$key]); } $tab = 'index'; update_option('comicpress-options', $comicpress_options); } if ($_REQUEST['action'] == 'comicpress_save_post') { foreach (array('transcript_in_posts', 'remove_wptexturize', 'enable_comic_post_author_gravatar', 'enable_post_author_gravatar', 'split_column_in_two', 'enable_comic_post_calendar', 'enable_post_calendar', 'disable_tags_in_posts', 'disable_categories_in_posts', 'blogposts_with_comic', 'static_blog', 'disable_page_titles', 'disable_post_titles', 'enable_page_options') as $key) { if (!isset($_REQUEST[$key])) { $_REQUEST[$key] = 0; } $comicpress_options[$key] = (bool) ($_REQUEST[$key] == 1 ? true : false); } foreach (array('author_column_one', 'author_column_two', 'avatar_directory', 'moods_directory', 'calendar_directory') as $key) { if (isset($_REQUEST[$key])) { $comicpress_options[$key] = wp_filter_nohtml_kses($_REQUEST[$key]); } } $tab = 'post'; update_option('comicpress-options', $comicpress_options); } if ($_REQUEST['action'] == 'comicpress_save_archivesearch') { foreach (array('archive_display_order', 'excerpt_or_content_archive', 'excerpt_or_content_search') as $key) { if (isset($_REQUEST[$key])) { $comicpress_options[$key] = wp_filter_nohtml_kses($_REQUEST[$key]); } } foreach (array('archive_display_comic_thumbs_in_order', 'template-comic-year-all-cats', 'archive_start_latest_year', 'display_archive_as_text_links') as $key) { if (!isset($_REQUEST[$key])) { $_REQUEST[$key] = 0; } $comicpress_options[$key] = (bool) ($_REQUEST[$key] == 1 ? true : false); } $tab = 'archivesearch'; update_option('comicpress-options', $comicpress_options); } if ($_REQUEST['action'] == 'comicpress_save_menubar') { foreach (array('enable_search_in_menubar', 'enable_rss_in_menubar', 'enable_navigation_in_menubar', 'disable_jquery_menu_code', 'disable_default_menubar') as $key) { if (!isset($_REQUEST[$key])) { $_REQUEST[$key] = 0; } $comicpress_options[$key] = (bool) ($_REQUEST[$key] == 1 ? true : false); } $tab = 'menubar'; update_option('comicpress-options', $comicpress_options); } if ($_REQUEST['action'] == 'comicpress_save_addons') { foreach (array('enable_members_only', 'enable_custom_image_header', 'enable_members_only_post_comments', 'enable_related_comics', 'enable_related_posts', 'enable_buy_print', 'buy_print_sell_original', 'enable_buystrip_post', 'disable_showing_members_category', 'facebook_like_blog_post', 'facebook_like_comic_post', 'facebook_meta') as $key) { if (!isset($_REQUEST[$key])) { $_REQUEST[$key] = 0; } $comicpress_options[$key] = (bool) ($_REQUEST[$key] == 1 ? true : false); } foreach (array('custom_image_header_width', 'custom_image_header_height', 'members_post_category', 'buy_print_email', 'buy_print_url', 'buy_print_amount', 'buy_print_orig_amount', 'buy_print_text', 'cdn_url') as $key) { if (isset($_REQUEST[$key])) { $comicpress_options[$key] = wp_filter_nohtml_kses($_REQUEST[$key]); } } $tab = 'addons'; update_option('comicpress-options', $comicpress_options); } if ($_REQUEST['action'] == 'comicpress_save_config') { $comicpress_config = array(); foreach (array('comiccat', 'blogcat', 'comic_folder', 'rss_comic_folder', 'archive_comic_folder', 'mini_comic_folder', 'rss_comic_width', 'archive_comic_width', 'mini_comic_width') as $key) { if (isset($_REQUEST[$key])) { $comicpress_config[$key] = wp_filter_nohtml_kses($_REQUEST[$key]); } } $tab = 'config'; $comicpress_config_check = get_option('comicpress-config'); if (empty($comicpress_config_check)) { add_option('comicpress-config', $comicpress_config, false, true); } else { update_option('comicpress-config', $comicpress_config); } } if ($tab) { ?> <div id="message" class="updated"><p><strong><?php _e('ComicPress Settings MODIFIED.', 'comicpress'); ?> </strong></p></div> <script>function hidemessage() { document.getElementById('message').style.display = 'none'; }</script> <?php } $comicpress_themeinfo = comicpress_themeinfo('reset'); } if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'comicpress_reset') { delete_option('comicpress-options'); ?> <div id="message" class="updated"><p><strong><?php _e('ComicPress Settings RESET!', 'comicpress'); ?> </strong></p></div> <?php } ?> <div id="poststuff" class="metabox-holder"> <div id="cpadmin"> <?php $tab_info = array('themestyle' => __('Layout', 'comicpress'), 'general' => __('General', 'comicpress'), 'index' => __('Home Page', 'comicpress'), 'post' => __('Posts & Pages', 'comicpress'), 'archivesearch' => __('Archive & Templates', 'comicpress'), 'menubar' => __('Menubar', 'comicpress'), 'addons' => __('Add Ons', 'comicpress'), 'debug' => __('Debug', 'comicpress')); if (empty($tab)) { $tab = array_shift(array_keys($tab_info)); } foreach ($tab_info as $tab_id => $label) { ?> <div id="comicpress-tab-<?php echo $tab_id; ?> " class="comicpress-tab <?php echo $tab == $tab_id ? 'on' : 'off'; ?> "><span><?php echo $label; ?> </span></div> <?php } ?> </div> <div id="comicpress-options-pages"> <?php foreach (glob(get_template_directory() . '/options/*.php') as $file) { include $file; } ?> </div> </div> <script type="text/javascript"> (function($) { var showPage = function(which) { $('#comicpress-options-pages > div').each(function(i) { $(this)[(this.id == 'comicpress-' + which) ? 'show' : 'hide'](); }); }; $('.comicpress-tab').click(function() { $('#message').animate({height:"0", opacity:0, margin: 0}, 100, 'swing', function() { $(this).remove() }); showPage(this.id.replace('comicpress-tab-', '')); var myThis = this; $('.comicpress-tab').each(function() { var isSame = (this == myThis); $(this).toggleClass('on', isSame).toggleClass('off', !isSame); }); return false; }); showPage('<?php echo esc_js($tab); ?> '); }(jQuery)); </script> </div> <?php }
function comicpress_handle_edit_post_buyprint_save($post_id) { update_post_meta($post_id, 'buyprint-status', $_POST['buyprint-status']); update_post_meta($post_id, 'buy_print_amount', wp_filter_nohtml_kses($_POST['buy_print_amount'])); /* delete the old buyprint option if it exists */ delete_post_meta($post_id, 'buyprint'); /* delete if shipping turned off */ if (comicpress_themeinfo('buy_print_sell_original')) { update_post_meta($post_id, 'buyorig-status', $_POST['buyorig-status']); update_post_meta($post_id, 'buy_print_orig_amount', wp_filter_nohtml_kses($_POST['buy_print_orig_amount'])); } else { delete_post_meta($post_id, 'buyorig-status'); delete_post_meta($post_id, 'buy_print_orig_amount'); } }
<td colspan="2"> <input type="text" size="7" name="archive_comic_width" id="archive_comic_width" value="<?php echo comicpress_themeinfo('archive_comic_width'); ?> " /> </td> </tr> <tr class="alternate"> <th scope="row"><label for="mini_comic_width"><?php _e('Mini Thumbnail Width', 'comicpress'); ?> </label></th> <td colspan="2"> <input type="text" size="7" name="mini_comic_width" id="mini_comic_width" value="<?php echo comicpress_themeinfo('mini_comic_width'); ?> " /> </td> </tr> </table> </div> <div class="comicpress-options-save"> <div class="comicpress-major-publishing-actions"> <div class="comicpress-publishing-action"> <input name="comicpress_save_config" type="submit" class="button-primary" value="Save Settings" /> <input type="hidden" name="action" value="comicpress_save_config" /> </div>
function comicpress_disable_sidebars() { global $post; if (comicpress_is_signup() || comicpress_themeinfo('disable_lrsidebars')) { return true; } if (is_page() && !empty($post)) { $sidebars_disabled = get_post_meta($post->ID, 'disable-sidebars', true); if ($sidebars_disabled) { return true; } } return false; }
echo comicpress_themeinfo('path'); ?> <br /> <strong>Upload Path Sub Dir</strong>:(subdir) <?php echo comicpress_themeinfo('subdir'); ?> <br /> <strong>Upload Path Base Dir</strong>:(basedir) <?php echo comicpress_themeinfo('basedir'); ?> <br /> <strong>Upload Base URL</strong>:(baseurl) <?php echo comicpress_themeinfo('baseurl'); ?> <br /> <br /> <strong>Category Tree:</strong><br /> <?php var_dump(comicpress_themeinfo('category_tree')); ?> <br /> <br /> <?php var_dump(comicpress_themeinfo()); ?> </td> </tr> </table> </div> </div>
<div id="sidebar-footer" class="customsidebar <?php if (comicpress_themeinfo('enable_widgetarea_use_sidebar_css')) { ?> sidebar<?php } ?> "> <?php dynamic_sidebar('the-footer'); ?> </div>
/** * Find the terminal post in a specific category. */ function comicpress_get_terminal_post_in_category($categoryID, $first = true, $storyline = false) { global $post; if (empty($categoryID)) { $categoryID = comicpress_themeinfo('comiccat'); } $excluded_cats = array(); if ($storyline) { // echo "CAT ID: ".$categoryID."<br />"; $excluded_catlist = get_categories(array('child_of' => $categoryID)); foreach ($excluded_catlist as $catlist) { $excluded_cats[] = $catlist->cat_ID; } } $sortOrder = $first ? "asc" : "desc"; $categoryID = explode(',', $categoryID); if (!empty($excluded_cats)) { $args = array('category__in' => $categoryID, 'category__not_in' => $excluded_cats, 'order' => $sortOrder, 'posts_per_page' => 1); } else { $args = array('category__in' => $categoryID, 'order' => $sortOrder, 'posts_per_page' => 1); } $terminalComicQuery = new WP_Query($args); $terminalPost = false; if ($terminalComicQuery->have_posts()) { $terminalPost = reset($terminalComicQuery->posts); } return $terminalPost; }
function form($instance) { $instance = wp_parse_args((array) $instance, array('title' => '', 'thumbcat' => '', 'first' => false, 'random' => false)); $title = strip_tags($instance['title']); $thumbcat = $instance['thumbcat']; if (empty($thumbcat)) { $thumbcat = comicpress_themeinfo('comiccat'); } $first = $instance['first']; $random = $instance['random']; ?> <p><label for="<?php echo $this->get_field_id('title'); ?> "><?php _e('Title:', 'comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?> " name="<?php echo $this->get_field_name('title'); ?> " type="text" value="<?php echo esc_attr($title); ?> " /></label></p> <p><?php _e('Which Category?', 'comicpress'); ?> <br /> <?php $select = wp_dropdown_categories('show_option_all=Select category&hide_empty=0&show_count=0&orderby=name&echo=0&selected=' . $thumbcat); $select = preg_replace('#<select([^>]*)>#', '<select name="' . $this->get_field_name('thumbcat') . '" id="' . $this->get_field_id('thumbcat') . '">', $select); echo $select; ?> </p> <p><em><?php _e('*note: If it is a blog category it will search for the latest thumbnail attached to the image. If it is a comic it will search for the thumbnail attached to the post first, then check do the thumbnail for the comic.', 'comicpress'); ?> </em></p> <p><label for="<?php echo $this->get_field_id('first'); ?> "><?php _e('Get first in Category instead?', 'comicpress'); ?> <input id="<?php echo $this->get_field_id('first'); ?> " name="<?php echo $this->get_field_name('first'); ?> " type="checkbox" value="1" <?php checked(true, $first); ?> /></label></p> <p><label for="<?php echo $this->get_field_id('random'); ?> "><?php _e('Display a random Thumbnail?', 'comicpress'); ?> <input id="<?php echo $this->get_field_id('random'); ?> " name="<?php echo $this->get_field_name('random'); ?> " type="checkbox" value="1" <?php checked(true, $random); ?> /></label></p> <p><em><?php _e('*note: Random comic thumbnail overrides the get first in category option.', 'comicpress'); ?> </em></p> <br /> <?php }
function comicpress_members_comment_filter($content) { global $post; if (comicpress_themeinfo('enable_members_only_post_comments') && in_members_category()) { if (is_user_logged_in() && comicpress_is_member()) { return $content; } else { return '<div class="non-member"><p>' . __('There is Members Only content here.<br />To view this content you need to be a member of this site.', 'comicpress') . '</p></div>'; } } return $content; }
function widget($args, $instance) { global $post, $wp_query; Protect(); extract($args, EXTR_SKIP); echo $before_widget; if (!empty($instance)) { extract($instance); } ?> <?php if (comicpress_themeinfo('enable_caps')) { ?> <div id="wp-calendar-head"></div><?php } ?> <div id="wp-calendar-wrap"> <?php if (!empty($thumbnail)) { ?> <div class="wp-calendar-download"> <?php if (!empty($link)) { ?> <a href="<?php echo esc_attr($link); ?> "><img src="<?php echo esc_attr($thumbnail); ?> " class="wp-calendar-thumb" alt="" /></a> <?php } else { ?> <img src="<?php echo esc_attr($thumbnail); ?> " class="wp-calendar-thumb" alt="" /> <?php } ?> <div class="wp-calendar-download-links"> <?php if (!empty($small) || !empty($medium) || !empty($large)) { ?> <?php _e('DOWNLOAD', 'comicpress'); ?> <?php foreach (array('small' => array(__('Download Small', 'comicpress'), __('S', 'comicpress')), 'medium' => array(__('Download Medium', 'comicpress'), __('M', 'comicpress')), 'large' => array(__('Download Large', 'comicpress'), __('L', 'comicpress'))) as $field => $text) { if (!empty(${$field})) { ?> <a href="<?php echo esc_attr(${$field}); ?> " title="<?php echo esc_attr($text[0]); ?> "><?php echo esc_html($text[1]); ?> </a><?php } } } ?> </div> </div> <?php } ?> <?php get_calendar(); ?> </div> <?php if (comicpress_themeinfo('enable_caps')) { ?> <div id="wp-calendar-foot"></div><?php } ?> <?php echo $after_widget; UnProtect(); }
function comicpress_classic_menubar() { global $comicpress_options; if (file_exists(get_stylesheet_directory() . '/custom-menubar.php')) { include get_stylesheet_directory() . '/custom-menubar.php'; } else { ?> <div id="menubar"> <div id="menunav"> <?php if (comicpress_themeinfo('enable_search_in_menubar')) { ?> <div class="menunav-search"> <?php get_search_form(); ?> </div> <?php } ?> <?php if (comicpress_themeinfo('enable_rss_in_menubar')) { ?> <a href="<?php bloginfo('rss2_url'); ?> " title="RSS Feed" class="menunav-rss">RSS</a> <?php } ?> <?php if (comicpress_themeinfo('enable_navigation_in_menubar')) { Protect(); ?> <?php if (is_home() && !comicpress_themeinfo('disable_comic_frontpage')) { $comicMenubar = new WP_Query(); $comicMenubar->query('showposts=1&cat=' . comicpress_all_comic_categories_string()); while ($comicMenubar->have_posts()) { $comicMenubar->the_post(); global $wp_query; $temp_query = $wp_query->is_single; $wp_query->is_single = true; ?> <div class="menunav-prev"> <?php comicpress_previous_comic_link('%link', '‹'); ?> </div> <?php $wp_query->is_single = $temp_query; $temp_query = null; } } elseif (is_single() && comicpress_in_comic_category()) { ?> <div class="menunav-prev"> <?php comicpress_previous_comic_link('%link', '‹'); ?> </div> <div class="menunav-next"> <?php comicpress_next_comic_link('%link', '›'); ?> </div> <?php } UnProtect(); ?> <?php } ?> </div> <?php $linkcatid = get_term_by('name', 'menubar', 'link_category'); $linkcatid = $linkcatid->term_id; $menulinks = wp_list_bookmarks('echo=0&title_li=&categorize=0&title_before=&title_after=&category_name=menubar'); $menulinks = str_replace('<li>', '<li class="page-item page-item-link">', $menulinks); $menulinks = str_replace('<ul>', '', $menulinks); $menulinks = str_replace('</ul>', '', $menulinks); if ($comicpress_options['enable_blogroll_off_links']) { $bookmarks = wp_list_bookmarks('echo=0&title_li=&categorize=1&title_before=&title_after=&exclude_category=' . $linkcatid); $bookmarks = str_replace('<li>', '<li class="page-item page-item-link">', $bookmarks); // $bookmarks = str_replace('<ul>', '<ul>', $bookmarks); } $listpages = ''; if (!comicpress_themeinfo('disable_dynamic_menubar_links')) { $listpages = wp_list_pages('echo=0&sort_column=menu_order&depth=4&title_li='); } if (!empty($bookmarks) && comicpress_themeinfo('enable_blogroll_off_links')) { $listpages = str_replace('Links</a></li>', 'Links</a> <ul> ' . $bookmarks . ' </ul> </li> ', $listpages); } $listpages .= $menulinks; ?> <ul id="menu"> <li class="<?php if (is_home()) { ?> current_page_item <?php } ?> page_item page-item-home"><a href="<?php echo home_url(); ?> ">Home</a></li> <?php echo $listpages; ?> <?php if ($comicpress_options['contact_in_menubar']) { ?> <li class="page_item page-item-contact"><a href="mailto:<?php bloginfo('admin_email'); ?> ">Contact</a></li> <?php } ?> </ul> <div class="clear"></div> </div> <?php } }
function comicpress_menubar() { if (file_exists(get_stylesheet_directory() . '/custom-menubar.php')) { include get_stylesheet_directory() . '/custom-menubar.php'; } else { ?> <div id="menubar-wrapper"> <?php do_action('comicpress-menubar-before'); ?> <div class="menunav"> <?php if (comicpress_themeinfo('enable_search_in_menubar')) { ?> <div class="menunav-search"> <?php get_search_form(); ?> </div> <?php } ?> <?php do_action('comicpress-menubar-menunav'); ?> <?php if (comicpress_themeinfo('enable_rss_in_menubar')) { ?> <a href="<?php bloginfo('rss2_url'); ?> " title="RSS Feed" class="menunav-rss">RSS</a> <?php } ?> <?php if (comicpress_themeinfo('enable_navigation_in_menubar')) { ?> <?php if (is_home() && !comicpress_themeinfo('disable_comic_frontpage')) { $comicMenubar = new WP_Query(); $order = 'DESC'; if (comicpress_themeinfo('display_first_comic_on_home')) { $order = 'ASC'; } $comicMenubar->query('showposts=1&order=' . $order . '&cat=' . comicpress_all_comic_categories_string()); while ($comicMenubar->have_posts()) { $comicMenubar->the_post(); global $wp_query; $temp_query = $wp_query->is_single; $wp_query->is_single = true; ?> <div class="menunav-prev"> <?php comicpress_previous_comic_link('%link', '‹'); ?> </div> <?php $wp_query->is_single = $temp_query; $temp_query = null; } } elseif (is_single() && comicpress_in_comic_category()) { ?> <div class="menunav-prev"> <?php comicpress_previous_comic_link('%link', '‹'); ?> </div> <div class="menunav-next"> <?php comicpress_next_comic_link('%link', '›'); ?> </div> <?php } ?> <?php } ?> </div> <?php wp_nav_menu(array('sort_column' => 'menu_order', 'container_class' => 'menu', 'theme_location' => 'menubar')); ?> <?php do_action('comicpress-menubar-after'); ?> <div class="clear"></div> </div> <?php } }
/> </td> <td> <?php _e('Will display information on how many queries and how fast it took to load the page in the footer.', 'comicpress'); ?> </td> </tr> <tr> <th scope="row"><label for="fix_for_index_paging"><?php _e('Enable fix for index paging file not found with permalinks?', 'comicpress'); ?> </label></th> <td> <input id="fix_for_index_paging" name="fix_for_index_paging" type="checkbox" value="1" <?php checked(true, comicpress_themeinfo('fix_for_index_paging')); ?> /> </td> <td> <?php _e('Enabling this will add a filter to the index page query that will set the number of posts displayed appropriately for paging if it does not work for you.', 'comicpress'); ?> </td> </tr> </table> </div> <div class="comicpress-options-save"> <div class="comicpress-major-publishing-actions">
the_time('M j'); ?> </td><td class="archive-title"><a href="<?php echo get_permalink($post->ID); ?> " rel="bookmark" title="<?php _e('Permanent Link:', 'comicpress'); ?> <?php the_title(); ?> "><?php the_title(); ?> </a></td></tr> <?php } ?> </table> <div class="clear"></div> </div> <?php if (comicpress_themeinfo('enable_caps')) { ?> <div class="post-foot"></div><?php } ?> </div> <?php UnProtect(); get_footer();
$title_pattern = __('%s (1 Comment)', 'comicpress'); break; default: $title_pattern = sprintf(__('%%s (%d Comments)', 'comicpress'), $count); break; } return sprintf($title_pattern, $title); } /** * Handle making changes to ComicPress before the export process starts. */ function comicpress_export_wp() { remove_filter('the_title_rss', 'comicpress_the_title_rss'); } if (comicpress_themeinfo('enable_comment_count_in_rss')) { add_filter('the_title_rss', 'comicpress_the_title_rss'); // Remove the title count from being in the export. add_action('export_wp', 'comicpress_export_wp'); } //Insert the comic image into the RSS feed if (!function_exists('comicpress_comic_feed')) { function comicpress_comic_feed() { global $post; $output = '<p>'; $output .= '<a href="' . get_permalink() . '" title="' . comicpress_the_hovertext($post) . '">' . comicpress_display_comic_thumbnail('rss', $post, true) . '</a>'; $output .= '</p>'; return apply_filters('comicpress_comic_feed', $output); } }