<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>
function get_the_album_template_big($user_id = 0, $delClass = '') { $_title = get_the_album_title(); $_url = get_the_album_url(); ?> <div class="span3 xt-share xt-share-album xt-share-album-big"> <div class="thumbnail"> <ul class="unstyled clearfix"> <?php $_picurls = get_the_album_picurls_big(); ?> <li class="xt-big"><a href="<?php echo $_url; ?> " title="<?php echo $_title; ?> " target="_blank" class="xt-share-link"><?php echo !empty($_picurls[0]) ? '<img src="' . $_picurls[0] . '"/>' : '<span></span>'; ?> </a></li> <li class="xt-small xt-first"><a rel="nofollow" href="<?php echo $_url; ?> " title="<?php echo $_title; ?> " target="_blank" class="xt-share-link"><?php echo !empty($_picurls[1]) ? '<img src="' . $_picurls[1] . '"/>' : ''; ?> </a></li> <li class="xt-small"><a rel="nofollow" href="<?php echo $_url; ?> " title="<?php echo $_title; ?> " target="_blank" class="xt-share-link"><?php echo !empty($_picurls[2]) ? '<img src="' . $_picurls[2] . '"/>' : ''; ?> </a></li> <li class="xt-small"><a rel="nofollow" href="<?php echo $_url; ?> " title="<?php echo $_title; ?> " target="_blank" class="xt-share-link"><?php echo !empty($_picurls[3]) ? '<img src="' . $_picurls[3] . '"/>' : ''; ?> </a></li> <li class="xt-small"><a rel="nofollow" href="<?php echo $_url; ?> " title="<?php echo $_title; ?> " target="_blank" class="xt-share-link"><?php echo !empty($_picurls[4]) ? '<img src="' . $_picurls[4] . '"/>' : ''; ?> </a></li> <b class="xt-mask"></b> <?php if ($user_id) { the_delete_template(get_the_album_id(), 2, $user_id, $delClass); } ?> </ul> <div class="caption clearfix"><h5><a 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> </div> </div> <?php }