Advertisement
Guest User

Untitled

a guest
Sep 30th, 2013
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.09 KB | None | 0 0
  1.  <br/>
  2. <div id="pagetop">
  3.     <h1>
  4.         <?php if (is_category()) single_cat_title();
  5.               elseif (is_tag()) single_tag_title();
  6.               elseif (is_day()) the_time('F jS, Y');
  7.               elseif (is_month()) the_time('F, Y');
  8.               elseif (is_year()) the_time('Y');
  9.               elseif (is_search()) the_search_query();
  10.               elseif (is_author()) {
  11.                     global $wp_query;
  12.                     $curauth = $wp_query->get_queried_object();
  13.                     echo $curauth->nickname;
  14.               }
  15.               else the_title();
  16.         ?>
  17.     </h1>
  18.     <?php get_template_part('includes/postinfo'); ?>
  19. </div> <!-- end #pagetop -->
  20.  
  21. <div id="breadcrumbs">
  22.  
  23.      <div id="breadcrumbs-left"></div>
  24.     <div id="breadcrumbs-content">
  25.         <?php if(function_exists('bcn_display')) { bcn_display(); }
  26.               else { ?>
  27.                     <a href="<?php bloginfo('url'); ?>"><?php esc_html_e('Strona główna','MyProduct') ?></a> &raquo;
  28.                    
  29.                     <?php if( is_tag() ) { ?>
  30.                         <?php esc_html_e('Informacja powiązana &quot;','MyProduct') ?><?php single_tag_title(); echo('&quot;'); ?>
  31.                     <?php } elseif (is_day()) { ?>
  32.                         <?php esc_html_e('Posts made in','MyProduct') ?> <?php the_time('F jS, Y'); ?>
  33.                     <?php } elseif (is_month()) { ?>
  34.                         <?php esc_html_e('Posts made in','MyProduct') ?> <?php the_time('F, Y'); ?>
  35.                     <?php } elseif (is_year()) { ?>
  36.                         <?php esc_html_e('Posts made in','MyProduct') ?> <?php the_time('Y'); ?>
  37.                     <?php } elseif (is_search()) { ?>
  38.                         <?php esc_html_e('Search results for','MyProduct') ?> <?php the_search_query() ?>
  39.                     <?php } elseif (is_single()) { ?>
  40.                         <?php $category = get_the_category();
  41.                               $catlink = get_category_link( $category[0]->cat_ID );
  42.                               echo ('<a href="'.$catlink.'">'.$category[0]->cat_name.'</a> &raquo; '.get_the_title()); ?>
  43.                     <?php } elseif (is_category()) { ?>
  44.                         <?php single_cat_title(); ?>
  45.                     <?php } elseif (is_author()) { ?>
  46.                         <?php esc_html_e('Posts by ','MyProduct'); echo ' ',$curauth->nickname; ?>
  47.                     <?php } elseif (is_page()) { ?>
  48.                         <?php wp_title(''); ?>
  49.                     <?php }; ?>
  50.         <?php }; ?>
  51.     </div> <!-- end #breadcrumbs-content -->
  52.     <div id="breadcrumbs-right"></div>
  53. </div> <!-- en
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement