Пример #1
0
get_header();
?>

<div id="content">
  <div class="site-aligner">
    <section class="site-main content-left" id="sitemain">
      <?php 
if (have_posts()) {
    ?>
      <header class="page-header">
        <h1 class="entry-title">
          <?php 
    if (is_category()) {
        single_cat_title();
    } elseif (is_tag()) {
        single_tag_title__('Tag: ', 'skt-spa');
    } elseif (is_author()) {
        /* Queue the first post, that way we know
         * what author we're dealing with (if that is the case).
         */
        the_post();
        printf(__('Author: %s', 'skt-spa'), '<span class="vcard">' . get_the_author() . '</span>');
        /* Since we called the_post() above, we need to
         * rewind the loop back to the beginning that way
         * we can run the loop properly, in full.
         */
        rewind_posts();
    } elseif (is_day()) {
        printf(__('Day: %s', 'skt-spa'), '<span>' . get_the_date() . '</span>');
    } elseif (is_month()) {
        printf(__('Month: %s', 'skt-spa'), '<span>' . get_the_date('F Y') . '</span>');
Пример #2
0
get_header();
?>

<div class="container">
     <div class="page_content">
        <section class="site-main">
			<?php 
if (have_posts()) {
    ?>
                <header class="page-header">
                    <h1 class="entry-title">
                        <?php 
    if (is_category()) {
        single_cat_title();
    } elseif (is_tag()) {
        single_tag_title__('Tag:', 'naturo_lite');
    } elseif (is_author()) {
        /* Queue the first post, that way we know
         * what author we're dealing with (if that is the case).
         */
        the_post();
        printf(esc_attr__('Author: %s', 'naturo_lite'), '<span class="vcard">' . get_the_author() . '</span>');
        /* Since we called the_post() above, we need to
         * rewind the loop back to the beginning that way
         * we can run the loop properly, in full.
         */
        rewind_posts();
    } elseif (is_day()) {
        printf(esc_attr__('Day: %s', 'naturo_lite'), '<span>' . get_the_date() . '</span>');
    } elseif (is_month()) {
        printf(esc_attr__('Month: %s', 'naturo_lite'), '<span>' . get_the_date('F Y') . '</span>');
Пример #3
0
get_header();
?>

<div id="content">
    <div class="site-aligner">
        <section class="site-main content-left" id="sitemain">
			<?php 
if (have_posts()) {
    ?>
                <header class="page-header">
                    <h1 class="entry-title">
                        <?php 
    if (is_category()) {
        single_cat_title();
    } elseif (is_tag()) {
        single_tag_title__('Tag:', 'skt-befit');
    } elseif (is_author()) {
        /* Queue the first post, that way we know
         * what author we're dealing with (if that is the case).
         */
        the_post();
        printf(esc_attr('Author: %s', 'skt-befit'), '<span class="vcard">' . get_the_author() . '</span>');
        /* Since we called the_post() above, we need to
         * rewind the loop back to the beginning that way
         * we can run the loop properly, in full.
         */
        rewind_posts();
    } elseif (is_day()) {
        printf(esc_attr__('Day: %s', 'skt-befit'), '<span>' . get_the_date() . '</span>');
    } elseif (is_month()) {
        printf(esc_attr__('Month: %s', 'skt-befit'), '<span>' . get_the_date('F Y') . '</span>');