get_the_title(), 'class' => 'entry-thumb, ' ) ); ?>
edit get_the_title(), 'class' => 'entry-thumb') ); ?>
ID ); if ( ! empty( $categories ) ) { foreach ( $categories as $category ) { $categories_array[$category->name] = array( 'link' => get_category_link( $category->cat_ID ) ); } } $post_categories .= ''; return $post_categories; } else { $selected_category_obj = ''; $selected_category_obj_id = ''; $selected_category_obj_name = ''; // default post type $categories = get_the_category( $post->ID ); if ( is_category() ) { foreach ( $categories as $category ) { if ($category->term_id == get_query_var('cat')) { $selected_category_obj = $category; break; } } } if ( empty( $selected_category_obj ) && ! empty( $categories[0] ) ) { if ( ! empty( $categories[0] ) ) { $selected_category_obj = $categories[0]; } } if ( ! empty( $selected_category_obj ) ) { $selected_category_obj_id = $selected_category_obj->cat_ID; $selected_category_obj_name = $selected_category_obj->name; } if ( ! empty( $selected_category_obj_id ) && ! empty( $selected_category_obj_name ) ) { $post_categories .= '' . $selected_category_obj_name . ''; } return $post_categories; } // End is_singular() } } if ( ! function_exists( 'tagdiv_post_header' ) ) { /** * Display the post header. * * @since MeisterMag 1.0 */ function tagdiv_post_header() { if ( is_singular() ) { ?>
', '' ); ?>
', esc_url( get_permalink() ) ), '' ); ?>
name ] = array( 'url' => get_tag_link( $tag->term_id ) ); } } if ( ! empty( $tags_array ) ) { $post_tags .= ''; } return $post_tags; } // End is_singular() return ''; } } if ( ! function_exists( 'tagdiv_next_prev_posts' ) ) { /** * Display the next/prev posts. * * @since MeisterMag 1.0 */ function tagdiv_next_prev_posts() { $next_prev_posts = ''; $next_post = get_next_post(); $prev_post = get_previous_post(); if ( is_singular() ) { if ( ! empty( $next_post ) or ! empty( $prev_post ) ) { $next_prev_posts .= '
'; if ( ! empty( $prev_post ) ) { $next_prev_posts .= '
'; $next_prev_posts .= '
' . __( 'Previous article', 'meistermag' ) . ''; $next_prev_posts .= '' . get_the_title( $prev_post->ID ) . ''; $next_prev_posts .= '
'; $next_prev_posts .= '
'; } else { $next_prev_posts .= '
'; $next_prev_posts .= '
'; } if ( ! empty( $next_post ) ) { $next_prev_posts .= '
'; $next_prev_posts .= '
' . __('Next article', 'meistermag') . ''; $next_prev_posts .= '' . get_the_title( $next_post->ID ) . ''; $next_prev_posts .= '
'; $next_prev_posts .= '
'; } $next_prev_posts .= '
'; } return $next_prev_posts; } // End is_singular() return ''; } } if ( ! function_exists( 'tagdiv_author_box' ) ) { /** * Display the post author box. * * @since MeisterMag 1.0 */ function tagdiv_author_box() { global $post; $author_box = ''; if ( is_singular() ) { $author_box .= '
'; $author_box .= ''; $author_box .= get_avatar( get_the_author_meta( 'email', $post->post_author ), '96' ); $author_box .= ''; $author_box .= '
'; $author_box .= '
'; $author_box .= ''; $author_box .= '' . get_the_author_meta( 'display_name', $post->post_author ) . ''; $author_box .= ''; $author_box .= '
'; if ( '' !== get_the_author_meta( 'user_url', $post->post_author ) ) { $author_box .= ''; } $author_box .= '
'; $author_box .= get_the_author_meta( 'description', $post->post_author ); $author_box .= '
'; $author_box .= '
'; $author_box .= '
'; //desc $author_box .= '
'; //author-box-wrap return $author_box; } // End is_singular() return ''; } } if ( ! function_exists( 'tagdiv_custom_logo' ) ) { /** * Displays the optional custom logo. * * Does nothing if the custom logo is not available. * * @since MeisterMag 1.0 */ function tagdiv_custom_logo() { if ( function_exists( 'the_custom_logo' ) ) { the_custom_logo(); } } } if ( ! function_exists( 'tagdiv_excerpt' ) ) { /** * Displays the optional excerpt. * * Wraps the excerpt in a div element. * * @since MeisterMag 1.0 * * @param string $class Optional. Class string of the div element. Defaults to 'entry-summary'. */ function tagdiv_excerpt( $class = 'entry-summary tagdiv-excerpt' ) { $class = esc_attr( $class ); ?>
edit no-thumb-placeholder