' . "\n"; echo '' . "\n"; echo '' . "\n"; // If not, then display the Site Title and Site Description. elseif ( display_header_text() ) : echo ''. "\n"; endif; } endif; if ( ! function_exists( 'bulan_attachment_posted_on' ) ) : /** * Attachment page meta information * * @since 1.0.0 */ function bulan_attachment_posted_on() { // Theme prefix $prefix = 'bulan-'; // Get the data set in customizer $date = bulan_mod( $prefix . 'post-date' ); $author = bulan_mod( $prefix . 'post-author' ); $date_style = bulan_mod( $prefix . 'post-date-style' ); // Set up empty variable $style = ''; if ( $date_style == 'absolute' ) { $style = esc_html( get_the_date() ); } else { $style = sprintf( __( '%s ago', 'bulan' ), human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) ); } ?> > ' . esc_html( get_the_author() ) . '' ); ?> ' . $metadata['width'] . ' × ' . $metadata['height'] . '' ); ?> ' . $camera . '' ); ?> ' . $aperture . '' ); ?> ' . $focal . '' ); ?> ' . $iso . '' ); ?> ' . $shutter . '' ); ?> 'ids', 'hide_empty' => 1, // We only need to know if there is more than one category. 'number' => 2, ) ); // Count the number of categories that are attached to the posts. $all_the_cool_cats = count( $all_the_cool_cats ); set_transient( 'bulan_categories', $all_the_cool_cats ); } if ( $all_the_cool_cats > 1 ) { // This blog has more than 1 category so bulan_categorized_blog should return true. return true; } else { // This blog has only 1 category so bulan_categorized_blog should return false. return false; } } /** * Flush out the transients used in bulan_categorized_blog. * * @since 1.0.0 */ function bulan_category_transient_flusher() { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } // Like, beat it. Dig? delete_transient( 'bulan_categories' ); } add_action( 'edit_category', 'bulan_category_transient_flusher' ); add_action( 'save_post', 'bulan_category_transient_flusher' ); if ( ! function_exists( 'bulan_post_author' ) ) : /** * Author post informations. * * @since 1.0.0 */ function bulan_post_author() { // Theme prefix $prefix = 'bulan-'; // Get the data set in customizer $enable = bulan_mod( $prefix . 'post-author' ); // Disable if user choose it. if ( $enable == 0 ) { return; } // Bail if not on the single post. if ( ! is_single() ) { return; } // Bail if user hasn't fill the Biographical Info field. if ( ! get_the_author_meta( 'description' ) ) { return; } ?>
>

ID, 'category', array( 'fields' => 'ids' ) ); // Bail if the term empty. if ( empty( $terms ) ) { return; } // Posts query arguments. $query = array( 'post__not_in' => array( $post->ID ), 'tax_query' => array( array( 'taxonomy' => 'category', 'field' => 'id', 'terms' => $terms, 'operator' => 'IN' ) ), 'posts_per_page' => 3, 'post_type' => 'post', ); // Allow dev to filter the query. $args = apply_filters( 'bulan_related_posts_args', $query ); // The post query $related = new WP_Query( $args ); if ( $related->have_posts() ) : ?> comment_type ) : case 'pingback' : case 'trackback' : // Display trackbacks differently than normal comments. ?>
  • id="comment-" >

    > > ', '' ); ?>

  • id="li-comment-" >
    >
    %4$s', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'bulan' ), get_comment_date(), get_comment_time() ), sprintf( __( '%1$s· Edit%2$s', 'bulan' ), '', '' ) ); ?>
    > comment_approved ) : ?>

    __( ' Reply', 'bulan' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    ' . __( 'Author', 'bulan' ) . ''; } // Display the badge return apply_filters( 'bulan_comment_author_badge', $output ); } endif; if ( ! function_exists( 'bulan_social_links' ) ) : /** * Social profile links * * @since 1.0.0 */ function bulan_social_links() { // Theme prefix $prefix = 'bulan-'; // Get the data set in customizer $twitter = bulan_mod( $prefix . 'twitter' ); $facebook = bulan_mod( $prefix . 'facebook' ); $gplus = bulan_mod( $prefix . 'gplus' ); $linkedin = bulan_mod( $prefix . 'linkedin' ); $dribbble = bulan_mod( $prefix . 'dribbble' ); $instagram = bulan_mod( $prefix . 'instagram' ); // Display the data echo ''; } endif; if ( ! function_exists( 'bulan_footer_text' ) ) : /** * Footer Text */ function bulan_footer_text() { // Theme prefix $prefix = 'bulan-'; // Get the customizer data $footer_text = bulan_mod( $prefix . 'footer-text' ); // Display the data echo ''; } endif; if ( ! function_exists( 'bulan_posts_query_404' ) ) : /** * Custom query to display latest posts on 404 page. * * @since 1.0.0 */ function bulan_posts_query_404() { // Posts arguments $args = array( 'post_type' => 'post', 'posts_per_page' => 6 ); // Allow dev to filter the arguments $posts = apply_filters( 'bulan_posts_query_404_args', $args ); // Our hero! $posts = new WP_Query( $args ); // Display the posts if ( $posts->have_posts() ) : while ( $posts->have_posts() ) : $posts->the_post(); get_template_part( 'content', '404' ); endwhile; endif; // Reset the query. wp_reset_postdata(); } endif;