} } } } } ?> </select> </div> <div class="tablenav-pages"> <span class="displaying-num"> <?php xt_shares_pagination_count(); ?> </span> <span class="pagination-links"> <?php xt_shares_pagination_links(); ?> </span> </div> <br class="clear"> </div> <table class="wp-list-table widefat fixed tags" cellspacing="0"> <thead> <tr> <th class="manage-column" style="width: 100px"><?php xt_admin_help_link('share_share'); ?> <span>编号</span></th> <th class="manage-column"><span>名称</span></th> <th class="manage-column" style="width: 200px"><span>分类</span></th> <th class="manage-column" style="width: 80px"><span>价格</span></th>
function get_the_share_container($_params = array(), $isCatalog = false, $isAjax = false, $isScroll = true) { echo '<div id="X_Wall-Result" class="clearfix">'; echo '<div id="X_Wall-Container" class="xt-wall-container row" data-scroll="' . ($isScroll ? 'true' : 'false') . '">'; if ($isCatalog) { xt_load_template('xt-widget_catalog'); } $_user_id = 0; $_delClass = ''; $msg = 'share_not_found'; if (isset($_params['isHome']) && $_params['isHome']) { global $xt_pageuser_follows; if (!empty($xt_pageuser_follows)) { $msg = 'share_home_not_found_other'; if (!empty($xt_user) && $xt_user->exists()) { $current_user = wp_get_current_user(); if ($current_user->exists()) { if ($current_user->ID == $xt_user->ID) { $msg = 'share_home_not_found_myself'; } } } } else { $_params['nopage'] = 1; } } elseif (isset($_params['album_id']) && $_params['album_id']) { //xt_load_template('xt-widget_albums'); $_user_id = $_params['user_id']; $_delClass = 'xt-delete-album-share'; $msg = 'share_album_not_found'; } elseif (isset($_params['isFavorite']) && $_params['isFavorite']) { $_user_id = $_params['user_id']; $_delClass = 'xt-delete-favorite'; $msg = 'share_favorite_not_found'; } elseif (isset($_params['isShare']) && $_params['isShare']) { $msg = 'share_share_not_found'; } $_count = 0; echo '<div class="span12">'; while (xt_have_shares()) { xt_the_share(); get_the_share_template($_user_id, $_delClass); $_count++; } echo '</div>'; if ($_count == 0) { echo xt_not_found($msg, 'xt-share-not-found'); } echo '</div>'; if ($isScroll) { echo "<div id=\"X_Page-Nav\" style=\"display: none; \"><a id=\"X_Page-Next-Link\" rel=\"nofollow\" href=\"" . admin_url('admin-ajax.php') . "?action=xt_ajax_search_shares&s_index=" . $_params['page'] . "&" . http_build_query($_params) . "\"></a></div>"; } if (isset($_params['nopage']) && $_params['nopage']) { //no page } else { echo '<div id="X_Pagination-Bottom" class="clearfix">'; echo '<div class="pagination xt-pagination-links">'; xt_shares_pagination_links(); echo '</div>'; echo '</div>'; } echo '</div>'; }