'; $breadcrumb_markup_close = '
'; if ( function_exists( 'bcn_display' ) ) { echo $breadcrumb_markup_open; // WPCS: XSS OK. bcn_display(); echo $breadcrumb_markup_close; // WPCS: XSS OK. } elseif ( function_exists( 'breadcrumbs' ) ) { breadcrumbs(); } elseif ( function_exists( 'crumbs' ) ) { crumbs(); } elseif ( class_exists( 'WPSEO_Breadcrumbs' ) ) { yoast_breadcrumb( $breadcrumb_markup_open, $breadcrumb_markup_close ); } elseif( function_exists( 'yoast_breadcrumb' ) && ! class_exists( 'WPSEO_Breadcrumbs' ) ) { yoast_breadcrumb( $breadcrumb_markup_open, $breadcrumb_markup_close ); } } endif; if ( ! function_exists( 'atlantic_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function atlantic_posted_on() { $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $posted_on = '' . $time_string . ''; $byline = sprintf( /* translators: %s: post author. */ esc_html_x( 'by %s', 'post author', 'atlantic' ), '' . esc_html( get_the_author() ) . '' ); echo '' . $posted_on . ' ' . $byline . ''; // WPCS: XSS OK. edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'atlantic' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } endif; if ( ! function_exists( 'atlantic_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function atlantic_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'atlantic' ) ); if ( $categories_list ) { /* translators: 1: list of categories. */ printf( '%s ' . esc_html__( 'Posted in', 'atlantic' ) . ' %s', atlantic_get_svg( array( 'icon' => 'category' ) ), $categories_list ); // WPCS: XSS OK. } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'atlantic' ) ); if ( $tags_list ) { /* translators: 1: list of tags. */ printf( '%s ' . esc_html__( 'Tagged', 'atlantic' ) . ' %s', atlantic_get_svg( array( 'icon' => 'tag' ) ), $tags_list ); // WPCS: XSS OK. } } if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; echo atlantic_get_svg( array( 'icon' => 'comment' ) ); // WPCS: XSS OK. comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'atlantic' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } } endif; if ( ! function_exists( 'atlantic_post_thumbnail' ) ) : /** * Display an optional post thumbnail. * * Wraps the post thumbnail in an anchor element on index * views, or a div element when on single views. */ function atlantic_post_thumbnail( $size = 'post-thumbnail') { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( ! is_singular() ) { echo '
'; echo ''; the_post_thumbnail( $size ); echo ''; echo '
'; } else { echo '
'; the_post_thumbnail( $size ); echo '
'; } } endif; if ( !function_exists( 'atlantic_posts_navigation' ) ) : /** * [atlantic_posts_navigation description] * @return [type] [description] */ function atlantic_posts_navigation(){ if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'infinite-scroll' ) ) { return; } if ( get_theme_mod( 'posts_navigation', 'posts_navigation' ) == 'posts_navigation' ) { the_posts_navigation( array( 'prev_text' => esc_html__( '← Older posts', 'atlantic' ), 'next_text' => esc_html__( 'Newer posts →', 'atlantic' ), ) ); } else { the_posts_pagination( array( 'prev_text' => sprintf( '%s %s', atlantic_get_svg( array( 'icon' => 'previous' ) ), esc_html__( 'Previous Page', 'atlantic' ) ), 'next_text' => sprintf( '%s %s', atlantic_get_svg( array( 'icon' => 'next' ) ), esc_html__( 'Next Page', 'atlantic' ) ), 'before_page_number' => '' . esc_html__( 'Page', 'atlantic' ) . ' ', ) ); } } endif; if( ! function_exists( 'atlantic_get_footer_copyright' ) ) : /** * [atlantic_get_footer_copyright description] * @return [type] [description] */ function atlantic_get_footer_copyright() { // Translators: %1$s: Dynamic year, %2$s: Site link, %3$s: WordPress link $default_footer_copyright = sprintf( esc_html__( 'Copyright © %1$s %2$s. Proudly powered by %3$s.', 'atlantic' ), date_i18n( esc_html__( 'Y', 'atlantic' ) ), ''. esc_html( get_bloginfo( 'name' ) ) .'', ''. esc_html__( 'WordPress', 'atlantic' ) .'' ); apply_filters( 'atlantic_footer_copyright', $default_footer_copyright ); $footer_copyright = get_theme_mod( 'footer_copyright', $default_footer_copyright ); if ( ! empty( $footer_copyright ) ) { $footer_copyright = str_replace( '[YEAR]', date_i18n( esc_html__( 'Y', 'atlantic' ) ), $footer_copyright ); $footer_copyright = str_replace( '[SITE]', ''. esc_html( get_bloginfo( 'name' ) ) .'', $footer_copyright ); return wp_kses_post( $footer_copyright ); } else { return wp_kses_post( $default_footer_copyright ); } } endif; if( ! function_exists( 'atlantic_do_footer_copyright' ) ) : /** * [atlantic_do_footer_copyright description] * @return [type] [description] */ function atlantic_do_footer_copyright(){ echo '
'. wp_kses_post( atlantic_get_footer_copyright() ) . '
'; if ( get_theme_mod( 'theme_designer', true ) ) { echo '
'; // Translators: %1$s: Theme designer site link echo sprintf( esc_html__( 'Theme design by %1$s.', 'atlantic' ), 'Elevate360' ); // WPCS: XSS OK. echo '
'; } } endif; if ( ! function_exists( 'atlantic_return_to_top' ) ) : /** * [atlantic_return_to_top description] * @return string */ function atlantic_return_to_top(){ if( get_theme_mod( 'return_top', true ) ) { echo ''. atlantic_get_svg( array( 'icon' => 'top' ) ) .''; // WPCS: XSS OK. } } endif;