Пример #1
0
/**
 * Adds the new slideshow function to the top of the index poage
 *
 * @since PressWork 1.0
 */
function pw_index_top_slideshow()
{
    echo pw_function_handle(__FUNCTION__);
    pw_slideshow('type=faderota');
}
Пример #2
0
function pw_authorbox()
{
    echo pw_function_handle(__FUNCTION__);
    global $author;
    ?>
    <div id="authorbox" class="clearfix fl">
        <?php 
    if (function_exists('get_avatar')) {
        echo get_avatar(get_the_author_meta('email', $author), '80');
    }
    ?>
        <div class="authortext">
           <header>
           		<h4><?php 
    _e('About', "presswork");
    ?>
 <?php 
    if (is_author()) {
        the_author_meta('display_name', $author);
    } else {
        the_author_posts_link();
    }
    ?>
</h4>
           </header>
           <p><?php 
    the_author_meta('description', $author);
    ?>
</p>
           <p><a href="<?php 
    the_author_meta('url', $author);
    ?>
"><?php 
    the_author_meta('url', $author);
    ?>
</a></p>
        </div>
    </div>
<?php 
}