示例#1
0
function comicpress_display_comic_area()
{
    global $post, $wp_query, $comicpress_options;
    if (comicpress_check_child_file('partials/displaycomic') == false) {
        ?>
		<div id="comic-wrap">
			<div id="comic-head"><?php 
        get_sidebar('over');
        ?>
</div>
			<div class="clear"></div>
			<?php 
        get_sidebar('comicleft');
        ?>
			<div id="comic"><?php 
        comicpress_display_comic();
        ?>
</div>
			<?php 
        get_sidebar('comicright');
        ?>
			<div class="clear"></div>
			<div id="comic-foot"><?php 
        get_sidebar('under');
        ?>
</div>
		</div>
<?php 
    }
}
示例#2
0
function comicpress_display_comment_link()
{
    global $post, $wp_query;
    if ('open' == $post->comment_status && !is_singular()) {
        if (comicpress_check_child_file('partials/commentlink') == false) {
            ?>
			<div class="comment-link">
			<?php 
            comments_popup_link('<span class="comment-balloon comment-balloon-empty">&nbsp;</span> ' . __('Comment ', 'comicpress'), '<span class="comment-balloon">1</span> ' . __('Comment ', 'comicpress'), '<span class="comment-balloon">%</span> ' . __('Comments ', 'comicpress'));
            ?>
			</div>
		<?php 
        }
    }
}
示例#3
0
<div id="page-head"></div>
<?php 
if (!$comicpress_options['disable_page_restraints']) {
    if (is_cp_theme_layout('standard,v')) {
        ?>
<div id="page-wrap"><!-- Wraps outside the site width -->
	<div id="page"><!-- Defines entire site width - Ends in Footer -->
<?php 
    } else {
        ?>
<div id="page-wide-wrap"><!-- Wraps outside the site width -->
	<div id="page-wide"><!-- Defines entire site width - Ends in Footer -->
		<?php 
    }
}
if (comicpress_check_child_file('partials/headerarea') == false) {
    ?>
<div id="header">
	<?php 
    if (function_exists('the_project_wonderful_ad')) {
        the_project_wonderful_ad('header');
    }
    ?>
		<h1><a href="<?php 
    bloginfo('wpurl');
    ?>
"><?php 
    bloginfo('name');
    ?>
</a></h1>
			<div class="description"><?php 
示例#4
0
<?php

if (comicpress_check_child_file('searchform') == false) {
    ?>

<form method="get" id="searchform" action="<?php 
    bloginfo('wpurl');
    ?>
/">
	<div>
		<input type="text" value="<?php 
    _e('Search...', 'comicpress');
    ?>
" name="s" id="s-search" onfocus="this.value=(this.value=='<?php 
    _e('Search...', 'comicpress');
    ?>
') ? '' : this.value;" onblur="this.value=(this.value=='') ? '<?php 
    _e('Search...', 'comicpress');
    ?>
' : this.value;" />
		<button type="submit">&raquo;</button>
	</div>
	<div class="clear"></div>
</form>

<?php 
}
示例#5
0
<?php

global $comicpress_options;
if (comicpress_check_child_file('layout-head') == false) {
    ?>

<div id="content-wrapper-head"></div>
	<div id="content-wrapper">

	<?php 
    if (is_cp_theme_layout('gn,v3c')) {
        get_sidebar('left');
    }
    ?>

	<?php 
    if (is_cp_theme_layout('gn,rgn')) {
        ?>
		<div id="pagewrap-right">
	<?php 
    }
    ?>
	
	<?php 
    if (is_cp_theme_layout('v3cr')) {
        ?>
		<div id="pagewrap-left">
	<?php 
    }
    ?>
示例#6
0
<?php

if (comicpress_check_child_file('layout-foot') == false) {
    ?>
</div>
<?php 
    if (is_cp_theme_layout('v3cr')) {
        ?>
		</div>
		<div class="clear"></div>
		<div id="subcontent-wrapper-foot"></div>
	</div>
<?php 
    }
    ?>

<?php 
    if (is_cp_theme_layout('3c2r,v3cr')) {
        get_sidebar('left');
    }
    ?>

<?php 
    if (is_cp_theme_layout('3c,v3c,gn,standard,v,3c2r,v3cr')) {
        get_sidebar('right');
    }
    ?>

<?php 
    if (is_cp_theme_layout('3c,standard,3c2r')) {
        ?>
示例#7
0
        ?>
/navstyle.css" type="text/css" media="screen" />
<?php 
    } elseif (file_exists(get_template_directory() . '/images/nav/' . $comicpress_options['graphicnav_directory'] . '/navstyle.css')) {
        ?>
<link rel="stylesheet" href="<?php 
        echo get_template_directory_uri();
        ?>
/images/nav/<?php 
        echo $comicpress_options['graphicnav_directory'];
        ?>
/navstyle.css" type="text/css" media="screen" />
<?php 
    }
}
if (comicpress_check_child_file('childfunctions') == false) {
}
if (isset($_GET['latestcomic'])) {
    add_action('template_redirect', 'latest_comic_jump');
}
//to use simply create a URL link to "/?latestcomic"
function latest_comic_jump()
{
    wp_redirect(get_permalink(get_terminal_post_in_category(get_all_comic_categories_as_cat_string(), false)));
    exit;
}
//Generate a random comic page - to use simply create a URL link to "/?randomcomic"
function random_comic()
{
    $randomComicQuery = new WP_Query();
    $randomComicQuery->query('showposts=1&orderby=rand&cat=' . get_all_comic_categories_as_cat_string());