function thirdrail_entry_meta()
 {
     echo '<div class="entry-meta">';
     echo '<p class="byline"><a href="' . get_author_posts_url(get_the_author_meta('ID')) . '" rel="author" class="author">' . get_the_author() . '</a>' . cats() . '</p>';
     echo '<time class="updated date" datetime="' . get_the_time('c') . '">' . sprintf(__('%s', 'thirdrail'), get_the_date()) . '</time>';
     echo '</div>';
 }
Exemple #2
0
    // add new category
    case "addcat":
        addcat($cat);
        break;
        // edit category
    // edit category
    case "editcat":
        editcat($id);
        break;
        // update category
    // update category
    case "updatecat":
        updatecat($cat, $id);
        break;
        // delete cat: question
    // delete cat: question
    case "delcat":
        delcat($id);
        break;
        // confirmation of delete cat
    // confirmation of delete cat
    case "delcatok":
        delcatok($id);
        break;
        // default:
    // default:
    default:
        cats();
        break;
}
include 'cal_footer.inc.php';
Exemple #3
0
switch ($op) {
    // overview of category
    case "cats":
        if ($year) {
            cats($catcolor, $year);
        } else {
            cats($catcolor, $y);
        }
        break;
        // overview of one cat
    // overview of one cat
    case "cat":
        if (!isset($_GET['sort'])) {
            $sort = '';
        } else {
            $sort = $_GET['sort'];
        }
        if ($year) {
            cat($id, $catcolor, $secondcatcolor, $year, $sort);
        } else {
            cat($id, $catcolor, $secondcatcolor, $y, $sort);
        }
        break;
        // default:
    // default:
    default:
        cats($catcolor, $y);
        break;
}
include 'cal_functions.inc.php';
include 'cal_footer.inc.php';
              <header>
                <h2><a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title_attribute();
        ?>
"><?php 
        the_title();
        ?>
</a></h2>
                <?php 
        echo '<time class="year">' . date('Y', strtotime(get_post_meta(get_the_id(), 'closing_date')[0])) . '</time>';
        ?>
                <?php 
        echo cats();
        ?>
              </header>
            </div>
          </div>
        <?php 
    }
    ?>
  		<?php 
}
wp_reset_postdata();
?>
	</section>

	<?php 
do_action('thirdrail_after_content');