-
Notifications
You must be signed in to change notification settings - Fork 0
/
loop-header.php
57 lines (50 loc) · 1.33 KB
/
loop-header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
// Exit if accessed directly
if( !defined( 'ABSPATH' ) ) {
exit;
}
/**
* Loop Header Template-Part File
*
* @file loop-header.php
* @package Responsive
* @author Emil Uzelac
* @copyright 2003 - 2014 CyberChimps
* @license license.txt
* @version Release: 1.1.0
* @filesource wp-content/themes/responsive/loop-header.php
* @link http://codex.wordpress.org/Templates
* @since available since Release 1.0
*/
/**
* Display breadcrumb
*/
get_responsive_breadcrumb_lists();
/**
* Display archive information
*/
if( is_category() || is_tag() || is_author() || is_date() ) {
?>
<h6 class="title-archive">
<?php
if( is_day() ) :
printf( __( 'Daily Archives: %s', 'responsive' ), '<span>' . get_the_date() . '</span>' );
elseif( is_month() ) :
printf( __( 'Monthly Archives: %s', 'responsive' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
elseif( is_year() ) :
printf( __( 'Yearly Archives: %s', 'responsive' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
else :
_e( 'Blog Archives', 'responsive' );
endif;
?>
</h6>
<?php
}
/**
* Display Search information
*/
if( is_search() ) {
?>
<h6 class="title-search-results"><?php printf( __( 'Search results for: %s', 'responsive' ), '<span>' . get_search_query() . '</span>' ); ?></h6>
<?php
}