コード例 #1
0
 function testTemplateTag()
 {
     global $plugin_wonderful;
     $plugin_wonderful = $this->getMock('PluginWonderful', array('_render_adbox'));
     $plugin_wonderful->expects($this->once())->method('_render_adbox');
     the_project_wonderful_ad('123');
 }
コード例 #2
0
ファイル: footer.php プロジェクト: johnbintz/comicpress-2.8
<?php

global $wpmu_version, $comicpress_options;
?>
<div id="footer">
	<?php 
if (function_exists('the_project_wonderful_ad')) {
    the_project_wonderful_ad('footer');
}
?>
	<?php 
get_sidebar('footer');
?>
	<?php 
if (!$comicpress_options['disable_footer_text']) {
    ?>
		<p>
			<span class="footer-copyright">
				<?php 
    echo comicpress_copyright();
    ?>
				<?php 
    if (empty($wpmu_version)) {
        $authorfirstname = get_the_author_meta('firstname', 1);
        $authorlastname = get_the_author_meta('lastname', 1);
        $blogname = get_bloginfo('title');
        if ($authorfirstname != "") {
            echo $authorfirstname . "\t" . $authorlastname;
        } else {
            echo $blogname;
        }
コード例 #3
0
ファイル: header.php プロジェクト: johnbintz/comicpress-2.8
<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 
    bloginfo('description');
    ?>
</div>
<?php 
    get_sidebar('header');
コード例 #4
0
ファイル: single.php プロジェクト: johnbintz/comicpress-2.8
                comicpress_display_post();
                $cur_date = mysql2date('Y-m-j', $post->post_date);
                $next_comic = get_next_comic();
                $next_comic = (array) $next_comic;
                $next_date = mysql2date('Y-m-j', $next_comic['post_date']);
                $blog_query = 'showposts=' . $comicpress_options['blog_postcount'] . '&order=asc&cat=-' . exclude_comic_categories();
            }
        } else {
            comicpress_display_post();
        }
    }
    ?>
	
	<?php 
    if (function_exists('the_project_wonderful_ad')) {
        the_project_wonderful_ad('blog');
    }
    ?>
	<?php 
    get_sidebar('blog');
    ?>
	
	<?php 
    if ($comicpress_options['static_blog'] && in_comic_category()) {
        if (!$comicpress_options['split_column_in_two']) {
            $blog_query = 'showposts=' . $comicpress_options['blog_postcount'] . '&cat="-' . exclude_comic_categories() . '"&paged=' . $paged;
            $posts = query_posts($blog_query);
            if (have_posts()) {
                ?>
		
			<?php