コード例 #1
0
ファイル: displaypost.php プロジェクト: besimhu/legacy
    function comicpress_display_comic_navigation($is_comic = false)
    {
        global $post, $wp_query;
        if (!comicpress_themeinfo('disable_default_comic_nav') && $is_comic) {
            $first_comic = comicpress_get_first_comic_permalink();
            $last_comic = comicpress_get_last_comic_permalink();
            $temp_single = $wp_query->is_single;
            $wp_query->is_single = true;
            if (!is_search() && !is_archive() && !is_page()) {
                ?>
				<div class="nav">
				<?php 
                if (get_permalink() != $first_comic) {
                    ?>
<div class="nav-first"><a href="<?php 
                    echo $first_comic;
                    ?>
"><?php 
                    _e('&lsaquo;&lsaquo; First', 'comicpress');
                    ?>
</a></div><?php 
                }
                ?>
				<div class="nav-previous"><?php 
                comicpress_previous_comic_link('%link', __('&lsaquo; Previous', 'comicpress'));
                ?>
</div>
				<div class="nav-next"><?php 
                comicpress_next_comic_link('%link', __('Next &rsaquo;', 'comicpress'));
                ?>
</div>
				<?php 
                if (get_permalink() != $last_comic) {
                    ?>
<div class="nav-last"><a href="<?php 
                    echo $last_comic;
                    ?>
"><?php 
                    _e('Last &rsaquo;&rsaquo;', 'comicpress');
                    ?>
</a></div><?php 
                }
                ?>
				</div>
				<div class="clear"></div>
			<?php 
            }
            $wp_query->is_single = $temp_single;
            $temp_single = null;
        }
    }
コード例 #2
0
ファイル: html_inject.php プロジェクト: kmhcreative/zappbar
    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)) . '&amp;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)) . '&amp;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)) . '&amp;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)) . '&amp;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&amp;title=' . urlencode(get_the_title($post->ID)) . '&amp;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)) . '&amp;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;
    }
コード例 #3
0
ファイル: comic-navigation.php プロジェクト: besimhu/legacy
    function widget($args, $instance)
    {
        global $wp_query, $post;
        Protect();
        $this_permalink = get_permalink();
        $temp_query = $wp_query->is_single;
        $wp_query->is_single = true;
        if ($instance['previous']) {
            $prev_comic = comicpress_get_previous_comic_permalink(false);
        }
        if ($instance['prev_in'] && comicpress_themeinfo('enable-storyline-support') == 1) {
            $prev_in_chapter = comicpress_get_previous_comic_permalink(true);
        }
        if ($instance['next']) {
            $next_comic = comicpress_get_next_comic_permalink(false);
        }
        if ($instance['next_in'] && comicpress_themeinfo('enable-storyline-support') == 1) {
            $next_in_chapter = comicpress_get_next_comic_permalink(true);
        }
        $wp_query->is_single = $temp_query;
        $temp_query = null;
        if ($instance['first']) {
            $first_comic = comicpress_get_first_comic_permalink();
        }
        if ($instance['last']) {
            $last_comic = comicpress_get_last_comic_permalink();
        }
        if ($instance['first_in'] && comicpress_themeinfo('enable-storyline-support') == 1) {
            $first_in_chapter = comicpress_get_terminal_post_of_chapter_permalink(true);
        }
        if ($instance['last_in'] && comicpress_themeinfo('enable-storyline-support') == 1) {
            $last_in_chapter = comicpress_get_terminal_post_of_chapter_permalink(false);
        }
        if ($instance['story_prev'] && comicpress_themeinfo('enable-storyline-support') == 1) {
            $prev_story = comicpress_get_previous_storyline_start_permalink();
        }
        if ($instance['story_next'] && comicpress_themeinfo('enable-storyline-support') == 1) {
            $next_story = comicpress_get_next_storyline_start_permalink();
        }
        $latest_comic = get_permalink(comicpress_get_terminal_post_in_category(comicpress_all_comic_categories_string(), false));
        UnProtect();
        ?>

<div class="comic_navi_wrapper">
	<table class="comic_navi">
	<tr>
		<td class="comic_navi_left">
			<?php 
        if ($instance['first']) {
            if (!empty($first_comic) && $first_comic != $this_permalink) {
                ?>
					<a href="<?php 
                echo $first_comic;
                ?>
" class="navi navi-first" title="<?php 
                echo $instance['first_title'];
                ?>
"><?php 
                echo $instance['first_title'];
                ?>
</a>
				<?php 
            } else {
                ?>
					<span class="navi navi-first navi-void"><?php 
                echo $instance['first_title'];
                ?>
</span>
				<?php 
            }
        }
        if ($instance['first_in'] && comicpress_themeinfo('enable-storyline-support') == 1) {
            if (!empty($first_in_chapter) && $first_in_chapter != $this_permalink) {
                ?>
					<a href="<?php 
                echo $first_in_chapter;
                ?>
" class="navi navi-firstinchap" title="<?php 
                echo $instance['first_in_title'];
                ?>
"><?php 
                echo $instance['first_in_title'];
                ?>
</a>
				<?php 
            } else {
                ?>
					<span class="navi navi-firstinchap navi-void"><?php 
                echo $instance['first_in_title'];
                ?>
</span>
				<?php 
            }
        }
        if ($instance['story_prev'] && comicpress_themeinfo('enable-storyline-support') == 1) {
            if (!empty($prev_story)) {
                ?>
					<a href="<?php 
                echo $prev_story;
                ?>
" class="navi navi-prevchap" title="<?php 
                echo $instance['story_prev_title'];
                ?>
"><?php 
                echo $instance['story_prev_title'];
                ?>
</a>
				<?php 
            } else {
                ?>
					<span class="navi navi-prevchap navi-void"><?php 
                echo $instance['story_prev_title'];
                ?>
</span>
				<?php 
            }
        }
        if ($instance['prev_in'] && comicpress_themeinfo('enable-storyline-support') == 1) {
            if (!empty($prev_in_chapter)) {
                ?>
					<a href="<?php 
                echo $prev_in_chapter;
                ?>
" class="navi navi-prev-in" title="<?php 
                echo $instance['prev_in_title'];
                ?>
"><?php 
                echo $instance['prev_in_title'];
                ?>
</a>
				<?php 
            } else {
                ?>
					<span class="navi navi-prev-in navi-void"><?php 
                echo $instance['prev_in_title'];
                ?>
</span>
				<?php 
            }
        }
        if ($instance['previous']) {
            if (!empty($prev_comic)) {
                ?>
					<a href="<?php 
                echo $prev_comic;
                ?>
" class="navi navi-prev" title="<?php 
                echo $instance['previous_title'];
                ?>
"><?php 
                echo $instance['previous_title'];
                ?>
</a>
				<?php 
            } else {
                ?>
					<span class="navi navi-prev navi-void"><?php 
                echo $instance['previous_title'];
                ?>
</span>
				<?php 
            }
        }
        ?>
		</td>
		<td class="comic_navi_center">
		<?php 
        if ($instance['archives'] && !empty($instance['archive_path'])) {
            ?>
				<a href="<?php 
            echo $instance['archive_path'];
            ?>
" class="navi navi-archives navi-archive" title="<?php 
            echo $instance['archives_title'];
            ?>
"><?php 
            echo $instance['archives_title'];
            ?>
</a>
			<?php 
        }
        if ($instance['random']) {
            ?>
				<a href="<?php 
            echo home_url();
            ?>
/?randomcomic&amp;nocache=1" class="navi navi-random" title="<?php 
            echo $instance['random_title'];
            ?>
"><?php 
            echo $instance['random_title'];
            ?>
</a>
			<?php 
        }
        if ($instance['comictitle']) {
            ?>
				<span class="navi-comictitle"><a href="<?php 
            the_permalink();
            ?>
">"<?php 
            the_title();
            ?>
"</a></span>
			<?php 
        }
        if ($instance['comments']) {
            ?>
				<a href="<?php 
            the_permalink();
            ?>
#comment" class="navi navi-comments" title="<?php 
            echo $instance['comments_title'];
            ?>
"><span class="navi-comments-count"><?php 
            comments_number('0', '1', '%');
            ?>
</span><?php 
            echo $instance['comments_title'];
            ?>
</a>
			<?php 
        }
        if (comicpress_themeinfo('enable_buy_print') && $instance['buyprint']) {
            if (strpos(comicpress_themeinfo('buy_print_url'), '?') !== false) {
                $bpsep = '&';
            } else {
                $bpsep = '?';
            }
            ?>
				<a href="<?php 
            echo comicpress_themeinfo('buy_print_url');
            echo $bpsep;
            ?>
comic=<?php 
            echo $post->ID;
            ?>
" class="navi navi-buyprint" title="<?php 
            echo $instance['buyprint_title'];
            ?>
"><?php 
            echo $instance['buyprint_title'];
            ?>
</a>
			<?php 
        }
        if ($instance['sharethis']) {
            $url = get_permalink($post->ID);
            $title = $post->post_title;
            $title = str_replace(' ', '%20', $title);
            $rss = get_bloginfo('rss2_url');
            $blogname = urlencode(get_bloginfo('name') . " " . get_bloginfo('description'));
            // Grab the excerpt, if there is no excerpt, create one
            $excerpt = urlencode(strip_tags(strip_shortcodes($post->post_excerpt)));
            if ($excerpt == "") {
                $excerpt = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)), 0, 250));
            }
            // Clean the excerpt for use with links
            $excerpt = str_replace('+', '%20', $excerpt);
            ?>
				<script type="text/javascript">
					function sharethis() {
						var sharewin = document.getElementById('navi-share-box');
						if ( sharewin.style.display == 'block' ) {
							sharewin.style.display = 'none';
						} else {
							sharewin.style.display = 'block';
						}
					}
				</script>
				<a href="javascript:sharethis()" class="navi" id="navi-share" title="<?php 
            echo $instance['sharethis_title'];
            ?>
"><?php 
            echo $instance['sharethis_title'];
            ?>
</a>
			<?php 
        }
        if ($instance['subscribe']) {
            ?>
				<a href="<?php 
            bloginfo('rss2_url');
            ?>
" class="navi navi-subscribe" title="<?php 
            echo $instance['subscribe_title'];
            ?>
"><?php 
            echo $instance['subscribe_title'];
            ?>
</a>
			<?php 
        }
        ?>
		</td>
		<td class="comic_navi_right">
			<?php 
        if ($instance['next']) {
            if (!empty($next_comic)) {
                ?>
					<a href="<?php 
                echo $next_comic;
                ?>
" class="navi navi-next" title="<?php 
                echo $instance['next_title'];
                ?>
"><?php 
                echo $instance['next_title'];
                ?>
</a>
				<?php 
            } else {
                ?>
					<span class="navi navi-next navi-void"><?php 
                echo $instance['next_title'];
                ?>
</span>
				<?php 
            }
        }
        if ($instance['next_in'] && comicpress_themeinfo('enable-storyline-support') == 1) {
            if (!empty($next_in_chapter)) {
                ?>
					<a href="<?php 
                echo $next_in_chapter;
                ?>
" class="navi navi-next-in" title="<?php 
                echo $instance['next_in_title'];
                ?>
"><?php 
                echo $instance['next_in_title'];
                ?>
</a>
				<?php 
            } else {
                ?>
					<span class="navi navi-next-in navi-void"><?php 
                echo $instance['next_in_title'];
                ?>
</span>
				<?php 
            }
        }
        if ($instance['story_next'] && comicpress_themeinfo('enable-storyline-support') == 1) {
            if (!empty($next_story) && !is_home()) {
                ?>
					<a href="<?php 
                echo $next_story;
                ?>
" class="navi navi-nextchap" title="<?php 
                echo $instance['story_next_title'];
                ?>
"><?php 
                echo $instance['story_next_title'];
                ?>
</a>
				<?php 
            } else {
                ?>
					<span class="navi navi-nextchap navi-void"><?php 
                echo $instance['story_next_title'];
                ?>
</span>
				<?php 
            }
        }
        if ($instance['last_in'] && comicpress_themeinfo('enable-storyline-support') == 1) {
            if (!empty($last_in_chapter) && $last_in_chapter != $this_permalink) {
                ?>
					<a href="<?php 
                echo $last_in_chapter;
                ?>
" class="navi navi-lastinchap" title="<?php 
                echo $instance['last_in_title'];
                ?>
"><?php 
                echo $instance['last_in_title'];
                ?>
</a>
				<?php 
            } else {
                ?>
					<span class="navi navi-lastinchap navi-void"><?php 
                echo $instance['last_in_title'];
                ?>
</span>
				<?php 
            }
        }
        if ($instance['last']) {
            if (!empty($last_comic) && $last_comic != $this_permalink) {
                if (isset($instance['lastgohome']) && $instance['lastgohome']) {
                    ?>
						<a href="/" class="navi navi-last" title="<?php 
                    echo $instance['last_title'];
                    ?>
"><?php 
                    echo $instance['last_title'];
                    ?>
</a>
					<?php 
                } else {
                    ?>
						<a href="<?php 
                    echo $last_comic;
                    ?>
" class="navi navi-last" title="<?php 
                    echo $instance['last_title'];
                    ?>
"><?php 
                    echo $instance['last_title'];
                    ?>
</a>						
					<?php 
                }
                ?>
				<?php 
            } else {
                ?>
					<span class="navi navi-last navi-void"><?php 
                echo $instance['last_title'];
                ?>
</span>
				<?php 
            }
        }
        ?>
		</td>
	</tr>
	</table>
		<?php 
        if ($instance['sharethis']) {
            ?>
			<div id="navi-share-box">
			<a href="http://reddit.com/submit?url=<?php 
            echo $url;
            ?>
&amp;title=<?php 
            echo comicpress_clean_url($title);
            ?>
" title="Reddit">Reddit</a>
			<a href="http://digg.com/submit?phase=2&amp;url=<?php 
            echo $url;
            ?>
&amp;title=<?php 
            echo $title;
            ?>
" title="Digg">Digg</a>
			<a href="http://www.facebook.com/share.php?u=<?php 
            echo $url;
            ?>
" title="Facebook">Facebook</a>
			<a href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=<?php 
            echo $url;
            ?>
&amp;t=<?php 
            echo $title;
            ?>
&amp;c=" title="MySpace">MySpace</a>
			<a href="http://del.icio.us/post?url=<?php 
            echo $url;
            ?>
" title="Delicious">Delicious</a>
			
			<a href="http://www.stumbleupon.com/submit?url=<?php 
            echo $url;
            ?>
&amp;title=<?php 
            echo $title;
            ?>
" title="Stumbleupon">Stumbleupon</a>
			<a href="http://buzz.yahoo.com/submit/?submitUrl=<?php 
            echo $url;
            ?>
&amp;submitHeadline=<?php 
            echo $title;
            ?>
" title="Buzz Up!">Buzz Up!</a>
			<a href="http://www.mixx.com/submit?page_url=<?php 
            echo $url;
            ?>
" title="Mixx">Mixx</a>
			<a href="http://www.technorati.com/faves?add=<?php 
            echo $url;
            ?>
" title="Technorati">Technorati</a>
			<a href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=<?php 
            echo $url;
            ?>
&amp;title=<?php 
            echo $title;
            ?>
" title="Google Bookmarks">Google Bookmarks</a>
			<a href="http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&amp;u=<?php 
            echo $url;
            ?>
&amp;t=<?php 
            echo $title;
            ?>
" title="Yahoo Bookmarks">Yahoo Bookmarks</a>
			
			<a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=<?php 
            echo $url;
            ?>
&amp;t=<?php 
            echo $title;
            ?>
" title="Yahoo MyWeb">Yahoo MyWeb</a>
			<a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;mkt=en-us&amp;url=<?php 
            echo $url;
            ?>
&amp;title=<?php 
            echo $title;
            ?>
" title="Windows Live">Windows Live</a>
			<a href="http://www.propeller.com/submit/?U=<?php 
            echo $url;
            ?>
&amp;T=<?php 
            echo $title;
            ?>
" title="Propeller">Propeller</a>
			<a href="http://friendfeed.com/share?url=<?php 
            echo $url;
            ?>
&amp;title=<?php 
            echo $title;
            ?>
" title="FriendFeed">FriendFeed</a>
			<a href="http://www.newsvine.com/_tools/seed&amp;save?popoff=0&amp;u=<?php 
            echo $url;
            ?>
&amp;h=<?php 
            echo $title;
            ?>
" title="Newsvine">Newsvine</a>
			<a href="http://www.xanga.com/private/editorx.aspx?t=<?php 
            echo $title;
            ?>
&amp;u=<?php 
            echo $url;
            ?>
&amp;s=" title="Xanga">Xanga</a>
			
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?php 
            echo $url;
            ?>
&amp;title=<?php 
            echo $title;
            ?>
&amp;summary=<?php 
            echo $excerpt;
            ?>
&amp;source=" title="LinkedIn">LinkedIn</a>
			<a href="http://blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=<?php 
            echo $url;
            ?>
&amp;Title=<?php 
            echo $title;
            ?>
" title="Blinklist">Blinklist</a>
			<a href="http://twitter.com/intent/tweet?original_referer=<?php 
            echo $url;
            ?>
&amp;source=tweetbutton&amp;text=<?php 
            echo $title;
            ?>
&amp;url=<?php 
            echo $url;
            ?>
" title="Twitter">Twitter</a>
			</div>
		<?php 
        }
        ?>
</div>
		<?php 
        // }
    }