Example #1
0
/**
 * Show author box (if on an author page)
 *
 * @package Infinity
 * @subpackage base
 */
function infinity_base_author_box()
{
    if (is_author()) {
        // queue the first post, that way we know who the author is when we
        // try to get their name, URL, description, avatar, etc.
        if (have_posts()) {
            the_post();
            // if a user has filled out their description, show a bio on their entries.
            if (get_the_author_meta('description')) {
                infinity_get_template_part('templates/parts/author-box');
            }
            // reset the loop so we don't break later queries
            rewind_posts();
        }
    }
}
Example #2
0
    ?>
"><?php 
    bloginfo('name');
    ?>
</a>
				<span id="site-description"><?php 
    bloginfo('description');
    ?>
</span>
			</<?php 
    echo $heading_tag;
    ?>
>
			<?php 
}
// Load Main Menu only if it's enabled
if (current_theme_supports('infinity-main-menu-setup')) {
    infinity_get_template_part('templates/parts/main-menu', 'header');
}
do_action('close_header');
?>
		</div>
	</header><!-- end header -->
	<?php 
// Load Sub Menu only if it's enabled
if (current_theme_supports('infinity-sub-menu-setup')) {
    infinity_get_template_part('templates/parts/sub-menu', 'header');
}
?>
</div><!-- end top wrap -->
Example #3
0
infinity_get_header();
?>

	<div id="content" role="main" class="<?php 
do_action('content_class');
?>
">
		<?php 
do_action('open_content');
do_action('open_archive');
?>
		<div class="page" id="blog-archive">
			<header>
			<h1 class="page-title">
				<?php 
printf(__('You are browsing the archive for %1$s.', infinity_text_domain), wp_title(false, false));
?>
			</h1>
			</header>
			<?php 
infinity_get_template_part('templates/loops/loop', 'excerpt');
?>
		</div>
		<?php 
do_action('close_archive');
do_action('close_content');
?>
	</div>
<?php 
infinity_get_sidebar();
infinity_get_footer();
		<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        do_action('open_loop');
        ?>
		<header>
		<h1 class="pagetitle">
			<?php 
        the_title();
        ?>
		</h1>
		</header>
		<!-- show page thumb -->
		<?php 
        infinity_get_template_part('templates/parts/post-meta-top');
        ?>
				
		<!-- the post -->
		<div class="post" id="post-<?php 
        the_ID();
        ?>
">
			<?php 
        do_action('open_loop_page');
        ?>
			<div class="entry">
				<?php 
        the_content(__('<p class="serif">Read the rest of this page &rarr;</p>', infinity_text_domain));
        ?>
	
infinity_get_header();
?>
	<div id="content" role="main" class="<?php 
do_action('content_class');
?>
">
		<?php 
do_action('open_content');
do_action('open_page');
?>
		<div class="page-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
			<?php 
infinity_get_template_part('templates/loops/loop', 'page');
?>
		</div><!-- .page -->
		
		<?php 
do_action('close_page');
do_action('close_content');
?>
	</div>

<?php 
infinity_get_sidebar();
infinity_get_footer();
Example #6
0
?>
">
	<?php 
do_action('open_content');
do_action('open_search');
if (have_posts()) {
    ?>
			<header>
				<h1 class="page-title search-title">
					<?php 
    printf(__('Search Results for: <span>%s</span>', infinity_text_domain), get_search_query());
    ?>
				</h1>
			</header>
			<?php 
    infinity_get_template_part('templates/loops/loop', 'search');
} else {
    ?>
			<div id="post-0" class="post no-results not-found">
				<h2 class="entry-title">
					<?php 
    _e('Nothing Found', infinity_text_domain);
    ?>
				</h2>
				<div class="entry-content">
					<p>
						<?php 
    _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', infinity_text_domain);
    ?>
					</p>
					<?php 
Example #7
0
 * @author Bowe Frankema <*****@*****.**>
 * @link http://infinity.presscrew.com/
 * @copyright Copyright (C) 2010-2011 Bowe Frankema
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package Infinity
 * @subpackage templates
 * @since 1.0
 */
infinity_get_header();
?>
	<div id="content" role="main" class="<?php 
do_action('content_class');
?>
">
		<?php 
do_action('before_content');
do_action('before_attachment');
?>
		<div class="page" id="single-attachment">
			<?php 
infinity_get_template_part('templates/loops/loop', 'attachment');
?>
		</div>	
		<?php 
do_action('after_attachment');
do_action('after_content');
?>
	</div>
<?php 
infinity_get_sidebar();
infinity_get_footer();
Example #8
0
">
		<?php 
do_action('open_footer_wrap');
?>
		<!-- begin footer -->
		<footer id="footer" role="contentinfo">
			<?php 
do_action('open_footer');
infinity_get_template_part('templates/parts/footer-widgets');
?>
			<div id="powered-by">
				<div id="footer-info" class="column ten">
				<?php 
// Load Footer Menu only if it's enabled
if (current_theme_supports('infinity-footer-menu-setup')) {
    infinity_get_template_part('templates/parts/footer-menu', 'footer');
}
?>
				</div>
				<div id="copyright-info" class="column six">	
					<?php 
echo infinity_option_get('infinity-core-options.footer-text');
?>
				</div>
			</div>
			<?php 
do_action('close_footer');
?>
		</footer>
		<?php 
do_action('close_footer_wrap');
/**
 * Add Member Navigation to Member Pages
 */
function cbox_theme_member_navigation()
{
    if (bp_is_user()) {
        infinity_get_template_part('templates/parts/member-navigation');
    }
}
Example #10
0
        ?>
>
		<header>
		<h1 class="pagetitle">
			<?php 
        the_title();
        edit_post_link(' ✍', '', ' ');
        ?>
		</h1>
		</header>
		<?php 
        do_action('open_loop_page');
        ?>
		<!-- show page thumb -->
		<?php 
        infinity_get_template_part('templates/parts/post-thumbnail');
        ?>
	
			<div class="entry">
				<?php 
        the_content(__('<p class="serif">Read the rest of this page &rarr;</p>', infinity_text_domain));
        ?>
			<div style="clear: both;"></div>
				<?php 
        nxt_link_pages(array('before' => __('<p><strong>Pages:</strong> ', infinity_text_domain), 'after' => '</p>', 'next_or_number' => 'number'));
        edit_post_link(__('Edit this entry.', infinity_text_domain), '<p>', '</p>');
        ?>
			</div>
			<?php 
        do_action('close_loop_page');
        do_action('close_loop');
Example #11
0
 * @package Infinity
 * @subpackage templates
 * @since 1.0
 */
infinity_get_header();
?>
	<div id="content" role="main" class="<?php 
do_action('content_class');
?>
">
			<?php 
do_action('open_content');
do_action('open_home');
?>
		<div id="home-page" role="main" <?php 
post_class();
?>
>
			<?php 
infinity_get_template_part('templates/parts/introduction-boxes', 'index');
infinity_get_template_part('templates/loops/loop-blog', 'index');
?>
		</div>
		<?php 
do_action('close_home');
do_action('close_content');
?>
	</div>
<?php 
infinity_get_sidebar();
infinity_get_footer();
Example #12
0
 * @subpackage templates
 * @since 1.0
 */
infinity_get_header();
?>
	<div id="content" role="main" class="<?php 
do_action('content_class');
?>
">
		<?php 
do_action('open_content');
do_action('open_author');
?>
		
		<div class="page" id="blog-author">
			<?php 
if (current_theme_supports('infinity-introduction-boxes')) {
    infinity_get_template_part('templates/parts/introduction-boxes');
}
infinity_get_template_part('templates/loops/loop', 'author');
?>
		
		</div>
		<?php 
do_action('close_author');
do_action('close_content');
?>
	</div>
<?php 
infinity_get_sidebar();
infinity_get_footer();
Example #13
0
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package Infinity
 * @subpackage templates
 * @since 1.0
 */
infinity_get_header();
?>
	<div id="content" role="main" class="<?php 
do_action('content_class');
?>
">
		<?php 
do_action('open_content');
do_action('open_single');
?>
			<?php 
/* Load Single Post Loop */
infinity_get_template_part('templates/loops/loop', 'single');
?>
		<?php 
do_action('close_single');
do_action('close_content');
?>
	</div>
<?php 
infinity_get_sidebar();
infinity_get_footer();
?>


Example #14
0
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package Infinity
 * @subpackage templates
 * @since 1.0
 */
infinity_get_header();
?>
	<div id="content" role="main" class="<?php 
do_action('content_class');
?>
">
		<?php 
do_action('open_content');
do_action('open_category');
?>
		<div class="page" id="blog-category">
			<?php 
if (current_theme_supports('infinity-introduction-boxes')) {
    infinity_get_template_part('templates/parts/introduction-boxes');
}
infinity_get_template_part('templates/loops/loop', 'category');
?>
		</div>
		<?php 
do_action('close_category');
do_action('close_content');
?>
	</div>
<?php 
infinity_get_sidebar();
infinity_get_footer();
Example #15
0
						<?php 
        do_action('open_single_entry');
        the_content(__('Read the rest of this entry &rarr;', infinity_text_domain));
        ?>
						<div style="clear: both;"></div>
						<?php 
        wp_link_pages(array('before' => __('<p><strong>Pages:</strong> ', infinity_text_domain), 'after' => '</p>', 'next_or_number' => 'number'));
        do_action('close_single_entry');
        ?>
					</div>
					<?php 
        do_action('after_single_entry');
        ?>
					<?php 
        infinity_get_template_part('templates/parts/post-meta-bottom');
        infinity_get_template_part('templates/parts/author-box');
        ?>
				</div>
				<?php 
        do_action('close_loop_single');
        ?>
			</div>
<?php 
        comments_template('', true);
        do_action('close_loop');
    }
} else {
    ?>
		<h1>
			<?php 
    _e('Sorry, no posts matched your criteria.', infinity_text_domain);
Example #16
0
do_action('open_meta');
infinity_get_template_part('templates/parts/header-head');
?>
<body <?php 
body_class();
?>
 id="infinity-base">
<?php 
do_action('open_body');
?>

<div id="wrapper" class="hfeed">
	<?php 
do_action('open_wrapper');
?>

	<?php 
// the header-banner template contains all the markup for the header(logo) and menus. You can easily fork/modify this in your child theme without having to overwrite the entire header.php file.
infinity_get_template_part('templates/parts/header-banner');
?>
	<?php 
do_action('open_container');
?>
			
	<!-- start main wrap. the main-wrap div will be closed in the footer template -->
	<div class="main-wrap <?php 
do_action('main_wrap_class');
?>
">
	<?php 
do_action('open_main_wrap');
Example #17
0
    infinity_get_template_part('templates/parts/post-thumbnail');
    ?>
	
					<div class="post-author-box">
						<?php 
    echo get_avatar(get_the_author_meta('user_email'), '100');
    ?>
					</div>
					<?php 
    do_action('before_loop_content');
    the_excerpt(__('Read More', infinity_text_domain));
    do_action('after_loop_content');
    ?>
				</div>
				<?php 
    infinity_get_template_part('templates/parts/post-meta-bottom');
    ?>
				<?php 
    do_action('close_loop_post_content');
    ?>
			</div><!-- post-content -->
			<?php 
    do_action('close_loop_post');
    ?>
		</article><!-- post -->
	<?php 
    do_action('close_loop');
}
if (current_theme_supports('infinity-pagination')) {
    infinity_base_paginate();
}
Example #18
0
 * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
 * @package Infinity
 * @subpackage templates
 * @since 1.0
 */
infinity_get_header();
?>
	<div id="content" role="main" class="<?php 
do_action('content_class');
?>
">
		<?php 
do_action('open_content');
do_action('open_tag');
?>
		<div class="page" id="blog-tag">
			<?php 
if (current_theme_supports('infinity-introduction-boxes')) {
    infinity_get_template_part('templates/parts/introduction-boxes');
}
infinity_get_template_part('templates/loops/loop', 'tag');
?>
		</div>
		<?php 
do_action('close_tag');
do_action('close_content');
?>
	</div><!-- #content -->
<?php 
infinity_get_sidebar();
infinity_get_footer();