예제 #1
0
		<div class="xt-share-main clearfix">
			<!-- Item header -->
			<div class="xt-share-header clearfix">
			</div>
			<!-- //Item header -->
			<!-- Item content -->
			<div class="xt-share-content">
                <h2 class="xt-share-albums-title">TA的更多专辑 <a target="_blank" href="<?php 
    xt_the_user_url();
    ?>
#album" class="xt-share-albums-more">查看全部</a></h2>
                	<?php 
    $isBig = xt_albumdisplay() == 'big' ? true : false;
    while (xt_have_albums()) {
        xt_the_album();
        $_picurls = $isBig ? get_the_album_picurls_big() : get_the_album_picurls_small();
        ?>
				<div class="xt-share-albums-list">
					<h3 class="xt-share-album-title">
						<span class="xt-r"><?php 
        echo get_the_album_sharecount();
        ?>
个分享</span><a href="<?php 
        echo get_the_album_url();
        ?>
"><?php 
        echo wp_trim_words(get_the_album_title(), 10);
        ?>
</a>
					</h3>
					<ul>
예제 #2
0
function get_the_album_template_small($user_id = 0, $delClass = '', $isUser = false, $count = 9)
{
    $_title = get_the_album_title();
    $_url = get_the_album_url();
    ?>

    <div class="span3 xt-share xt-share-album xt-share-album-small">
        <div class="thumbnail">
            <div class="caption clearfix"><h5><a class="text-gray pull-left" href="<?php 
    echo $_url;
    ?>
" title="<?php 
    echo $_title;
    ?>
" target="_blank"><?php 
    echo wp_trim_words($_title, 8);
    ?>
</a><span class="pull-right muted">共<?php 
    the_album_sharecount();
    ?>
个分享</span></h5></div>
            <?php 
    $_picurls = get_the_album_picurls_small();
    ?>
            <a href="<?php 
    echo $_url;
    ?>
" title="<?php 
    echo $_title;
    ?>
" target="_blank" class="xt-album-link clearfix">
                <?php 
    $_count = 0;
    foreach ($_picurls as $_pic) {
        if (!empty($_pic)) {
            echo '<span class="xt-small"><img src="' . $_pic . '"/></span>';
        } else {
            echo '<span class="xt-small"></span>';
        }
        $_count++;
        if ($_count == $count) {
            break;
        }
    }
    ?>
            </a>
            <?php 
    if ($user_id) {
        the_delete_template(get_the_album_id(), 2, $user_id, $delClass);
    }
    ?>
            <?php 
    if ($isUser) {
        ?>
                <p class="muted">来自:<a class="X_Nick" data-value="<?php 
        echo get_the_album_userid();
        ?>
" href="<?php 
        xt_the_user_url(get_the_album_userid());
        ?>
" target="_blank"><?php 
        the_album_username();
        ?>
</a></p>
            <?php 
    }
    ?>
        </div>
    </div>
    <?php 
}