max_num_pages < 2 ) { return; } ?> post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) { return; } ?> %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() ) ); printf( __( '

Posted on %1$s by %2$s', 'camise' ), sprintf( '%2$s', esc_url( get_permalink() ), $time_string ), sprintf( '%2$s.

', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ) ); } endif; if ( ! function_exists( 'camise_posted_on_blog' ) ) : /** * Prints HTML with meta information for the current post-date/time and author for blog. */ function camise_posted_on_blog() { $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() ) ); printf( __( '
  • %1$s by %2$s
  • ', 'camise' ), sprintf( '%2$s', esc_url( get_permalink() ), $time_string ), sprintf( '%2$s.', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ) ); } endif; /** * A fallback when no navigation is selected by default. */ function camise_menu_fallback() { echo ''; } /** * Removes wp-pagenavi style since it is handled by theme */ function camise_deregister_styles() { wp_deregister_style( 'wp-pagenavi' ); } add_action( 'wp_print_styles', 'camise_deregister_styles', 100 ); /** * Extract link from content for link Post Format */ // Extract first occurance of text from a string if( !function_exists ('extract_from_string') ) : function extract_from_string($start, $end, $tring) { $tring = stristr($tring, $start); $trimmed = stristr($tring, $end); return substr($tring, strlen($start), -strlen($trimmed)); } endif;