Beispiel #1
0
 * If there are no posts in the loop,
 * display default content
 */
$title = is_search() ? sprintf(__('Your search for %s did not match any entries.', 'responsive'), get_search_query()) : __('404 — Fancy meeting you here!', 'responsive');
if (responsive_pro_get_option('404_title')) {
    $title = responsive_pro_get_option('404_title');
}
?>

	<h1 class="title-404"><?php 
echo $title;
?>
</h1>

<?php 
if (responsive_pro_get_option('404_content')) {
    echo '<p>' . responsive_pro_get_option('404_content') . '</p>';
} else {
    ?>
	<p><?php 
    _e('Don&#39;t panic, we&#39;ll get through this together. Let&#39;s explore our options here.', 'responsive');
    ?>
</p>

	<h6><?php 
    printf(__('You can return %s or search for the page you were looking for.', 'responsive'), sprintf('<a href="%1$s" title="%2$s">%3$s</a>', esc_url(get_home_url()), esc_attr__('Home', 'responsive'), esc_attr__('&larr; Home', 'responsive')));
    ?>
</h6>
	<?php 
    get_search_form();
}
Beispiel #2
0
" <?php 
        post_class();
        ?>
>
				<?php 
        responsive_entry_top();
        ?>

				<?php 
        get_template_part('post-meta');
        ?>

				<div class="post-entry">
					<?php 
        responsive_pro_featured_image();
        if (responsive_pro_get_option('archive_post_excerpts')) {
            add_filter('excerpt_more', 'responsive_pro_excerpt_more_text');
            add_filter('excerpt_length', 'responsive_pro_excerpt_more_length');
            the_excerpt();
            remove_filter('excerpt_more', 'responsive_pro_excerpt_more_text');
            remove_filter('excerpt_length', 'responsive_pro_excerpt_more_length');
        } else {
            the_content(__('Read more &#8250;', 'responsive'));
        }
        wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>'));
        ?>
				</div>
				<!-- end of .post-entry -->

				<?php 
        get_template_part('post-data');
Beispiel #3
0
function responsive_pro_excerpt_more_length($length)
{
    global $post;
    // Get the excerpt more length from option.
    $length = responsive_pro_get_option('excerpts_length', 50);
    $length = $length == "" ? 50 : $length;
    return $length;
}
Beispiel #4
0
" <?php 
        post_class();
        ?>
>
					<?php 
        responsive_entry_top();
        ?>

					<?php 
        get_template_part('post-meta');
        ?>

					<div class="post-entry">
						<?php 
        responsive_pro_featured_image();
        if (responsive_pro_get_option('blog_post_excerpts')) {
            add_filter('excerpt_more', 'responsive_pro_excerpt_more_text');
            add_filter('excerpt_length', 'responsive_pro_excerpt_more_length');
            the_excerpt();
            remove_filter('excerpt_more', 'responsive_pro_excerpt_more_text');
            remove_filter('excerpt_length', 'responsive_pro_excerpt_more_length');
        } else {
            the_content(__('Read more &#8250;', 'responsive'));
        }
        wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>'));
        ?>
					</div>
					<!-- end of .post-entry -->

					<?php 
        get_template_part('post-data');