Exemple #1
0
function cfct_about_text()
{
    $about_text = get_option('cfct_about_text');
    if (!empty($about_text)) {
        $about_text = cfct_basic_content_formatting($about_text);
    } else {
        global $post, $wp_query;
        $orig_post = $post;
        isset($wp_query->query_vars['page']) ? $page = $wp_query->query_vars['page'] : ($page = null);
        // temporary - resetting below
        $wp_query->query_vars['page'] = null;
        remove_filter('the_excerpt', 'st_add_widget');
        $about_query = new WP_Query('pagename=about');
        while ($about_query->have_posts()) {
            $about_query->the_post();
            $about_text = get_the_excerpt() . sprintf(__('<a class="more" href="%s">more &rarr;</a>', 'carrington'), get_permalink());
        }
        $wp_query->query_vars['page'] = $page;
        $post = $orig_post;
        setup_postdata($post);
    }
    if (function_exists('st_add_widget')) {
        add_filter('the_excerpt', 'st_add_widget');
    }
    return $about_text;
}
Exemple #2
0
function cfct_about_text()
{
    $about_text = get_option('cfct_about_text');
    if (!empty($about_text)) {
        $about_text = cfct_basic_content_formatting($about_text);
    } else {
        global $post;
        remove_filter('the_excerpt', 'st_add_widget');
        $about_query = new WP_Query('pagename=about');
        while ($about_query->have_posts()) {
            $about_query->the_post();
            $about_text = get_the_excerpt() . sprintf(__('<a class="more" href="%s">more &rarr;</a>', 'carrington'), get_permalink());
        }
    }
    if (function_exists('st_add_widget')) {
        add_filter('the_excerpt', 'st_add_widget');
    }
    return $about_text;
}
Exemple #3
0
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

	<h1><?php 
        printf(__('Posts by: <a href="%s">%s</a>', 'carrington-jam'), get_author_posts_url(get_the_author_meta('id')), get_the_author_meta('display_name'));
        ?>
</h1>

<?php 
        $bio = get_the_author_meta('description');
        if (!empty($bio)) {
            ?>

		<h2><?php 
            printf(__('About %s', 'carrington-jam'), get_the_author_meta('display_name'));
            ?>
</h2>
	
<?php 
            echo cfct_basic_content_formatting($bio);
        }
        break;
    }
}
rewind_posts();
cfct_loop();
cfct_misc('nav-posts');
get_sidebar();
get_footer();
Exemple #4
0
        ?>
</h1>

<?php 
        if (!empty($bio)) {
            ?>

	<div class="description author-bio">

		<h2><?php 
            printf(__('About %s', 'carrington-blog'), get_author_name($authordata->ID));
            ?>
</h2>
	
<?php 
            echo cfct_basic_content_formatting(get_the_author_description());
            ?>
	
	</div>

<?php 
        }
        break;
    }
}
rewind_posts();
cfct_loop();
cfct_misc('nav-posts');
?>

</div><!--#content-->