' . esc_html( get_bloginfo( 'description', 'display' ) ) . '
';
}
}
if ( ! $echo ) {
return $html;
}
echo $html;
}
}
if ( ! function_exists('basepress_primary_navigation') ) {
function basepress_primary_navigation() {
?>
' . esc_html__( 'Pages:', 'basepress' ),
'after' => '
',
) );
}
}
if ( ! function_exists( 'basepress_post_single_content' ) ) {
/**
* Display the post content with a link to the single post
*
* @since 1.0.0
*/
function basepress_post_single_content() {
/**
* Functions hooked in to basepress_post_content_before action.
*
* @hooked basepress_post_thumbnail - 10
*/
do_action( 'basepress_post_single_content_before');
the_content( sprintf(
/* translators: %s: Name of current post. */
wp_kses( __( 'Continue Reading %s ' . esc_html__( 'Pages:', 'basepress' ),
'after' => '
',
) );
}
}
if ( ! function_exists( 'basepress_post_header_meta' ) ) {
function basepress_post_header_meta() {
basepress_post_metadata();
}
}
if ( ! function_exists( 'basepress_post_content_wrapper' ) ) {
function basepress_post_content_wrapper() {
echo '';
}
}
if ( ! function_exists( 'basepress_post_content_wrapper_close' ) ) {
function basepress_post_content_wrapper_close() {
echo '
';
}
}
if ( ! function_exists( 'basepress_post_tags' ) ) :
/**
* Displays the post tags on single post view
*/
function basepress_post_tags() {
// Get tags.
$tag_list = get_the_tag_list( '', __(', ', 'basepress') );
// Display tags.
if ( $tag_list ) : ?>
'%title',
'prev_text' => '%title',
);
the_post_navigation( $args );
}
}
if ( ! function_exists( 'basepress_display_comments' ) ) {
/**
* base display comments
*
* @since 1.0.0
*/
function basepress_display_comments() {
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || '0' != get_comments_number() ) :
comments_template();
endif;
}
}
if ( ! function_exists( 'basepress_post_thumbnail' ) ) {
/**
* Display post thumbnail
*
* @var $size thumbnail size. thumbnail|medium|large|full|$custom
* @uses has_post_thumbnail()
* @uses the_post_thumbnail
* @param string $size the post thumbnail size.
* @since 1.0.0
*/
function basepress_post_thumbnail( $size = 'thumbnail' ) {
if ( has_post_thumbnail() ) {
?>
';
}
}
if ( ! function_exists( 'basepress_credit_wrapper_close' )) {
/**
* Credit close wrapper
*/
function basepress_credit_wrapper_close() {
echo '
';
}
}
if ( ! function_exists( 'basepress_footer_nav' ) ) {
/**
* Display footer menu
*
* @since 1.0.0
* @return void
*/
function basepress_footer_nav() {
// Check if there is a footer menu.
if ( has_nav_menu( 'footer' ) ) {
echo '';
}
}
}
if ( ! function_exists( 'basepress_credit' ) ) {
/**
* Display the theme credit
*
* @since 1.0.0
* @return void
*/
function basepress_credit() {
?>
'
' . __( 'Pages:', 'basepress' ),
'after' => '
',
) );
?>
'webpage',
'@id' => get_the_permalink(),
);
$json['publisher'] = array(
'@type' => 'organization',
'name' => get_bloginfo( 'name' ),
'logo' => array(
'@type' => 'ImageObject',
'url' => $logo[0],
'width' => $logo[1],
'height' => $logo[2],
),
);
$json['author'] = array(
'@type' => 'person',
'name' => get_the_author(),
);
if ( $image ) {
$json['image'] = array(
'@type' => 'ImageObject',
'url' => $image[0],
'width' => $image[1],
'height' => $image[2],
);
}
$json['datePublished'] = get_post_time( 'c' );
$json['dateModified'] = get_the_modified_date( 'c' );
$json['name'] = get_the_title();
$json['headline'] = $json['name'];
$json['description'] = get_the_excerpt();
// Page's structured data.
} elseif ( is_page() ) {
$json['@type'] = 'WebPage';
$json['url'] = get_the_permalink();
$json['name'] = get_the_title();
$json['description'] = get_the_excerpt();
}
if ( isset( $json ) ) {
BasePress::set_structured_data( apply_filters( 'basepress_structured_data', $json ) );
}
}
}
if ( ! function_exists( 'basepress_posted_on' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*/
function basepress_posted_on() {
$meta_items = apply_filters('basepress_posted_metadata', array(
'meta-date' => true,
'meta-au' => true,
));
$time_string = '