%2$s'; 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( '' . esc_html_x( 'by %s', 'post author', 'oceanica-lite' ), ' ' ); $string = '' . $posted_on . ' '; // WPCS: XSS OK. return $string; } endif; if ( ! function_exists( 'oceanica_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time, author, categories. */ function oceanica_posted_on() { global $post; $flag = false; $posted_on_by = apply_filters( 'oceanica_get_posted_on_by', oceanica_get_posted_on_by() ); if ( $posted_on_by != '' ) { $flag = true; } if ( is_sticky() ) : ?>
' . $more_link . '
'; } endif; if ( ! function_exists( 'oceanica_child_pages' ) ) : /** * Displays the page child pages. */ function oceanica_child_pages() { global $post; $args = apply_filters( 'oceanica_child_pages_args', array( 'post_type' => 'page', 'posts_per_page' => -1, 'post_parent' => $post->ID, 'order' => 'ASC', 'orderby' => 'menu_order', 'ignore_sticky_posts' => 1, 'meta_query' => array( array( 'key' => '_thumbnail_id' ) ) ) ); $parent = new WP_Query( $args ); if ( $parent->have_posts() ) :?>