Esempio n. 1
0
function render_content()
{
    ?>
	<?php 
    if (have_posts()) {
        ?>
		<div class="loop">
			<div class="loop-header">
				<h4 class="loop-title">
					<?php 
        the_post();
        if (is_category()) {
            // Category Archive
            $title = sprintf(__('Archive for %s', 'it-l10n-Builder-Paige'), single_cat_title('', false));
        } else {
            if (is_tag()) {
                // Tag Archive
                $title = sprintf(__('Archive for %s', 'it-l10n-Builder-Paige'), single_tag_title('', false));
            } else {
                if (is_tax()) {
                    // Tag Archive
                    $title = sprintf(__('Archive for %s', 'it-l10n-Builder-Paige'), builder_get_tax_term_title());
                } else {
                    if (function_exists('is_post_type_archive') && is_post_type_archive() && function_exists('post_type_archive_title')) {
                        // Post Type Archive
                        $title = post_type_archive_title('', false);
                    } else {
                        if (is_author()) {
                            // Author Archive
                            $title = sprintf(__('Author Archive for %s', 'it-l10n-Builder-Paige'), get_the_author());
                        } else {
                            if (is_year()) {
                                // Year-Specific Archive
                                $title = sprintf(__('Archive for %s', 'it-l10n-Builder-Paige'), get_the_time('Y'));
                            } else {
                                if (is_month()) {
                                    // Month-Specific Archive
                                    $title = sprintf(__('Archive for %s', 'it-l10n-Builder-Paige'), get_the_time('F Y'));
                                } else {
                                    if (is_day()) {
                                        // Day-Specific Archive
                                        $title = sprintf(__('Archive for %s', 'it-l10n-Builder-Paige'), get_the_date());
                                    } else {
                                        if (is_time()) {
                                            // Time-Specific Archive
                                            $title = __('Time Archive', 'it-l10n-Builder-Paige');
                                        } else {
                                            // Default catchall just in case
                                            $title = __('Archive', 'it-l10n-Builder-Paige');
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        if (is_paged()) {
            printf('%s &ndash; Page %d', $title, get_query_var('paged'));
        } else {
            echo $title;
        }
        rewind_posts();
        ?>
				</h4>
			</div>

			<div class="loop-content">
				<?php 
        while (have_posts()) {
            // The Loop
            ?>
					<?php 
            the_post();
            ?>
						<?php 
            get_template_part('post-formats/content', get_post_format());
            ?>
				<?php 
        }
        // end of one post
        ?>
			</div>

			<div class="loop-footer">
				<!-- Previous/Next page navigation -->
				<div class="loop-utility clearfix">
					<div class="alignleft"><?php 
        previous_posts_link(__('&larr; Previous Page', 'it-l10n-Builder-Paige'));
        ?>
</div>
					<div class="alignright"><?php 
        next_posts_link(__('Next Page &rarr;', 'it-l10n-Builder-Paige'));
        ?>
</div>
				</div>
			</div>
		</div>
	<?php 
    } else {
        // do not delete
        ?>
		<?php 
        do_action('builder_template_show_not_found');
        ?>
	<?php 
    }
    // do not delete
}
Esempio n. 2
0
    echo epl_property_author_box();
    ?>
				<h4 class="loop-title">
					<?php 
    the_post();
    if (is_category()) {
        // Category Archive
        $title = sprintf(__('Archive for %s', 'epl'), single_cat_title('', false));
    } else {
        if (is_tag()) {
            // Tag Archive
            $title = sprintf(__('Archive for %s', 'epl'), single_tag_title('', false));
        } else {
            if (is_tax()) {
                // Tag Archive
                $title = sprintf(__('Archive for %s', 'epl'), builder_get_tax_term_title());
            } else {
                if (function_exists('is_post_type_archive') && is_post_type_archive() && function_exists('post_type_archive_title')) {
                    // Post Type Archive
                    $title = post_type_archive_title('', false);
                } else {
                    if (is_author()) {
                        // Author Archive
                        $title = sprintf(__('Author Archive for %s', 'epl'), get_the_author());
                    } else {
                        if (is_year()) {
                            // Year-Specific Archive
                            $title = sprintf(__('Archive for %s', 'epl'), get_the_time('Y'));
                        } else {
                            if (is_month()) {
                                // Month-Specific Archive
Esempio n. 3
0
    echo epl_property_author_box();
    ?>
				<h4 class="loop-title">
					<?php 
    the_post();
    if (is_category()) {
        // Category Archive
        $title = sprintf(__('Archive for %s', 'it-l10n-Builder-Threads'), single_cat_title('', false));
    } else {
        if (is_tag()) {
            // Tag Archive
            $title = sprintf(__('Archive for %s', 'it-l10n-Builder-Threads'), single_tag_title('', false));
        } else {
            if (is_tax()) {
                // Tag Archive
                $title = sprintf(__('Archive for %s', 'it-l10n-Builder-Threads'), builder_get_tax_term_title());
            } else {
                if (function_exists('is_post_type_archive') && is_post_type_archive() && function_exists('post_type_archive_title')) {
                    // Post Type Archive
                    $title = post_type_archive_title('', false);
                } else {
                    if (is_author()) {
                        // Author Archive
                        $title = sprintf(__('Author Archive for %s', 'it-l10n-Builder-Threads'), get_the_author());
                    } else {
                        if (is_year()) {
                            // Year-Specific Archive
                            $title = sprintf(__('Archive for %s', 'it-l10n-Builder-Threads'), get_the_time('Y'));
                        } else {
                            if (is_month()) {
                                // Month-Specific Archive
Esempio n. 4
0
function render_content()
{
    if (have_posts()) {
        ?>
		<div class="loop">
			<div class="loop-header">
				<?php 
        echo epl_property_author_box();
        ?>
				<h4 class="loop-title">
					<?php 
        the_post();
        if (is_category()) {
            // Category Archive
            $title = sprintf(__('Archive for %s', 'epl'), single_cat_title('', false));
        } else {
            if (is_tag()) {
                // Tag Archive
                $title = sprintf(__('Archive for %s', 'epl'), single_tag_title('', false));
            } else {
                if (is_tax()) {
                    // Tag Archive
                    $title = sprintf(__('Archive for %s', 'epl'), builder_get_tax_term_title());
                } else {
                    if (function_exists('is_post_type_archive') && is_post_type_archive() && function_exists('post_type_archive_title')) {
                        // Post Type Archive
                        $title = post_type_archive_title('', false);
                    } else {
                        if (is_author()) {
                            // Author Archive
                            $title = sprintf(__('Author Archive for %s', 'epl'), get_the_author());
                        } else {
                            if (is_year()) {
                                // Year-Specific Archive
                                $title = sprintf(__('Archive for %s', 'epl'), get_the_time('Y'));
                            } else {
                                if (is_month()) {
                                    // Month-Specific Archive
                                    $title = sprintf(__('Archive for %s', 'epl'), get_the_time('F Y'));
                                } else {
                                    if (is_day()) {
                                        // Day-Specific Archive
                                        $title = sprintf(__('Archive for %s', 'epl'), get_the_date());
                                    } else {
                                        if (is_time()) {
                                            // Time-Specific Archive
                                            $title = __('Time Archive', 'epl');
                                        } else {
                                            // Default catchall just in case
                                            $title = __('Archive', 'epl');
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        if (is_paged()) {
            printf('%s &ndash; Page %d', $title, get_query_var('paged'));
        } else {
            echo $title;
        }
        rewind_posts();
        ?>
				</h4>
			</div>
			
			<div class="loop-content">
				<?php 
        while (have_posts()) {
            // The Loop
            the_post();
            ?>
					
						<div id="post-<?php 
            the_ID();
            ?>
" <?php 
            post_class();
            ?>
>
							<!-- title, meta, and date info -->
							<div class="entry-header clearfix">
								<h3 class="entry-title"><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a></h3>
							
								<div class="entry-meta">
									<?php 
            printf(__('By %s', 'epl'), '<span class="meta-author">' . builder_get_author_link() . '</span>');
            ?>
									<?php 
            do_action('builder_comments_popup_link', '<span class="meta-comments">&middot; ', '</span>', __('Comments %s', 'epl'), __('(0)', 'epl'), __('(1)', 'epl'), __('(%)', 'epl'));
            ?>
								</div>
							
								<div class="entry-meta date">
									<span class="weekday"><?php 
            the_time('l');
            ?>
<span class="weekday-comma">,</span></span>
									<span class="month"><?php 
            the_time('F');
            ?>
</span>
									<span class="day"><?php 
            the_time('j');
            ?>
<span class="day-suffix"><?php 
            the_time('S');
            ?>
</span><span class="day-comma">,</span></span>
									<span class="year"><?php 
            the_time('Y');
            ?>
</span>
								</div>
							</div>
						
							<!-- post content -->
							<div class="entry-content clearfix">
								<?php 
            the_excerpt();
            ?>
							</div>
						
							<!-- categories, tags and comments -->
							<div class="entry-footer clearfix">
								<?php 
            do_action('builder_comments_popup_link', '<div class="entry-meta alignright"><span class="comments">', '</span></div>', __('Comments %s', 'epl'), __('(0)', 'epl'), __('(1)', 'epl'), __('(%)', 'epl'));
            ?>
								<div class="entry-meta alignleft">
									<div class="categories"><?php 
            printf(__('Categories : %s', 'epl'), get_the_category_list(', '));
            ?>
</div>
									<?php 
            the_tags('<div class="tags">' . __('Tags : ', 'epl'), ', ', '</div>');
            ?>
								</div>
							</div>
						</div>
						<!-- end .post -->
					
						<?php 
            comments_template();
            // include comments template
        }
        // end of one post
        ?>
			</div>
			
			<div class="loop-footer">
				<!-- Previous/Next page navigation -->
				<div class="loop-utility clearfix">
					<div class="alignleft"><?php 
        previous_posts_link(__('&laquo; Previous Page', 'epl'));
        ?>
</div>
					<div class="alignright"><?php 
        next_posts_link(__('Next Page &raquo;', 'epl'));
        ?>
</div>
				</div>
			</div>
		</div>
		<?php 
    } else {
        // do not delete
        do_action('builder_template_show_not_found');
    }
    // do not delete
}