-
Notifications
You must be signed in to change notification settings - Fork 69
/
single.php
47 lines (39 loc) · 1.01 KB
/
single.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
<?php
/**
* Single Post
*
* @package EAGenesisChild
* @author Bill Erickson
* @since 1.0.0
* @license GPL-2.0+
**/
// Entry category in header
add_action( 'genesis_entry_header', 'ea_entry_category', 8 );
add_action( 'genesis_entry_header', 'ea_entry_author', 12 );
add_action( 'genesis_entry_header', 'ea_entry_header_share', 13 );
/**
* Entry header share
*
*/
function ea_entry_header_share() {
do_action( 'ea_entry_header_share' );
}
/**
* After Entry
*
*/
function ea_single_after_entry() {
echo '<div class="after-entry">';
// Breadcrumbs
genesis_do_breadcrumbs();
// Publish date
echo '<p class="publish-date">Published on ' . get_the_date( 'F j, Y' ) . '</p>';
// Sharing
do_action( 'ea_entry_footer_share' );
// Author Box
genesis_do_author_box_single();
}
add_action( 'genesis_after_entry', 'ea_single_after_entry', 8 );
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 );
genesis();