', '' . get_the_title() . '', ''; } /* ---------------------------------------------------------------------------------- BLOG CONTENT ---------------------------------------------------------------------------------- */ // Input post thumbnail / featured media function bolder_thinkup_input_blogimage() { global $post; $size = NULL; $link = NULL; $media = NULL; $output = NULL; $blog_lightbox = NULL; $blog_link = NULL; $blog_overlay = NULL; // Set image size for blog thumbnail $size = 'column3-2/3'; $featured_id = get_post_thumbnail_id( $post->ID ); $featured_img = wp_get_attachment_image_src($featured_id,'full', true); // Determine featured media to input $link = $featured_img[0]; $media = get_the_post_thumbnail( $post->ID, $size ); // Determine which links to show on hover $blog_lightbox = ''; $blog_link = ''; $blog_overlay .= '
'; // Output media on blog page if ( ! empty( $featured_id ) ) { $output .= '' . esc_html__( 'Read More', 'bolder') . '
'; return $link; } add_filter( 'excerpt_more', 'bolder_thinkup_input_readmore' ); add_filter( 'the_content_more_link', 'bolder_thinkup_input_readmore' ); /* ---------------------------------------------------------------------------------- INPUT BLOG META CONTENT ---------------------------------------------------------------------------------- */ // Add format-media class to post article for featured image, gallery and video function bolder_thinkup_input_blogmediaclass($classes) { global $post; // Get theme options values. $thinkup_blog_postswitch = bolder_thinkup_var ( 'thinkup_blog_postswitch' ); $featured_id = get_post_thumbnail_id( $post->ID ); // Determine featured media to input if ( bolder_thinkup_check_isblog() ) { if ( empty( $featured_id ) or $thinkup_blog_postswitch == 'option2' ) { $classes[] = 'format-nomedia'; } else if( has_post_thumbnail() ) { $classes[] = 'format-media'; } } return $classes; } add_action( 'post_class', 'bolder_thinkup_input_blogmediaclass'); // Blog meta content - Blog style 1 function bolder_thinkup_input_blogmeta() { echo ''; } /* ---------------------------------------------------------------------------------- INPUT POST META CONTENT ---------------------------------------------------------------------------------- */ function bolder_thinkup_input_postmedia() { global $post; // Set output variable to avoid php errors $output = NULL; if ( get_post_format() == 'image' ) { $output .= '