comment_type ) :
case 'pingback' :
case 'trackback' :
?>
id="comment-">
', '' ); ?>
id="li-comment-">
',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
$author = sprintf( '%3$s',
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'macronine-lite' ), get_the_author() ) ),
get_the_author()
);
}
endif;
add_action( 'customize_register', 'themename_customize_register' );
function themename_customize_register($wp_customize) {
$wp_customize->add_section( 'ignite_custom_logo', array(
'title' => 'Logo',
'description' => 'Display a custom logo?',
'priority' => 25,
) );
$wp_customize->add_setting( 'custom_logo', array(
'default' => '',
'sanitize_callback' => 'macroninelite_the_custom_logo',
) );
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'custom_logo', array(
'label' => 'Custom logo',
'section' => 'ignite_custom_logo',
'settings' => 'custom_logo',
) ) );
}
if ( ! function_exists( 'macroninelite_the_custom_logo' ) ) :
function macroninelite_the_custom_logo() {
if ( function_exists( 'the_custom_logo' ) ) {
the_custom_logo();
}
}
endif;
// add subtitle to posts and pages
function vg_subtitle($posttitle) {
global $post;
$subtitle = get_post_meta ($post->ID, 'Subtitle', true);
echo $posttitle;
if ($subtitle) echo ' - ' . $subtitle;
}
add_action('thematic_postheader_posttitle','vg_subtitle');
function macronine_widgets_init() {
register_sidebar(array(
'name' => __('Sidebar', 'macronine-lite'),
'id' => 'sidebar-1',
'before_widget' => '',
'before_title' => '',
));
}
add_action('widgets_init', 'macronine_widgets_init');
function get_breadcrumb() {
echo 'Home';
if (is_category() || is_single()) {
echo " » ";
the_category(' • ');
if (is_single()) {
echo " » ";
the_title();
}
} elseif (is_page()) {
echo " » ";
echo the_title();
} elseif (is_search()) {
echo " » Search Results for... ";
echo '"';
echo the_search_query();
echo '"';
}
}
function header_fallback() {
echo '';
wp_list_pages(array('title_li' => '', 'depth' => 1));
echo '
';
}
?>