Exemple #1
0
		<?php 
if (mc_is_post() || mc_is_page()) {
    ?>
				<h2><?php 
    mc_the_link();
    ?>
</h2>
				<article class="single">
					<?php 
    mc_the_content();
    if (!mc_is_page()) {
    }
    ?>
				</article>
		<?php 
    if (mc_can_comment() && mc_comment_code()) {
        ?>
			<div class="comment">
				评论
				<?php 
        echo mc_comment_code();
        ?>
			</div>
		<?php 
    }
} else {
    if (mc_is_archive()) {
        // 归档
        ?>
		<div class="archive">
			<div class="list left">
Exemple #2
0
    }
} else {
    if (mc_is_page()) {
        ?>
    <div class="post">
      <?php 
        /*<h1 class="title"><?php mc_the_link(); ?></h1>
          <div class="tags">by <?php mc_nick_name(); ?> at <?php mc_the_date(); ?></div> */
        ?>
      <div class="content"><?php 
        mc_the_content();
        ?>
</div>
    </div>
    <?php 
        if (mc_can_comment()) {
            ?>
    <?php 
            mc_comment_code();
            ?>
    <?php 
        }
    } else {
        if (mc_is_archive()) {
            ?>
    <div class="date_list">
    <h1>月份</h1>
    <ul>
<?php 
            mc_date_list();
            ?>