Exemple #1
0
					<li style="width: 100%; float: left;">
						<a href="?p=77&matchid=<?php 
                    echo $user->match_id;
                    ?>
"><?php 
                    the_post_thumbnail();
                    ?>
</a>
						<dl>
							<?php 
                    the_excerpt();
                    ?>
							<dd class="join margin-t10">
								<?php 
                    $matchs = getMatchList($user->match_id);
                    get_apply_match_button($current_user->ID, $user->match_id, $matchs[0]->stage);
                    ?>
							</dd>
						</dl>
						<div class="clear"></div>
					</li>
					<?php 
                }
            }
        }
        wp_reset_postdata();
    } else {
        ?>
					<li style="width: 100%; float: left;">
						* 目前你还没有关注过任何比赛
					</li>
Exemple #2
0
/**
 * 首页分类调用
 */
function index_matchType_content($currentTypeId = 0, $stage = -1)
{
    if ($currentTypeId != 0) {
        $matchList = getMatchList(-1, $currentTypeId, $stage, 4);
    } else {
        $matchList = getMatchList(-1, -1, $stage, 4);
    }
    if (count($matchList)) {
        foreach ($matchList as $match) {
            $args = get_match_post($match->id);
            query_posts($args);
            echo '<ul class="joinList margin-t2">';
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    echo '<li> <a href="?p=77&matchid=' . $match->id . '" target="_blank">';
                    the_post_thumbnail();
                    echo '</a><dl>';
                    the_excerpt();
                    get_apply_match_button($current_user->ID, $match->id, $stage);
                    echo '</dl><div class="clear"></div></li>';
                }
            }
            echo '</ul>';
        }
    }
    wp_reset_postdata();
}
Exemple #3
0
							<?php 
                } else {
                    ?>
								<li> <a href="?p=77&matchid=<?php 
                    echo $match->id;
                    ?>
" target="_blank"><?php 
                    the_post_thumbnail();
                    ?>
</a>
				                    <dl>
				                        <?php 
                    the_excerpt();
                    ?>
				                        <?php 
                    get_apply_match_button($current_user->ID, $match->id, $match->stage);
                    ?>
				                    </dl>
				                    <div class="clear"></div>
				                </li>
							<?php 
                }
            }
            wp_reset_postdata();
            ?>
						<?php 
        }
    }
}
?>
				</ul>