| @@ 2865-2874 (lines=10) @@ | ||
| 2862 | // Get Featured Image |
|
| 2863 | $img_url = get_the_post_thumbnail( $lesson_id, array( $width, $height ), array( 'class' => 'woo-image thumbnail alignleft') ); |
|
| 2864 | ||
| 2865 | } else { |
|
| 2866 | ||
| 2867 | // Display Image Placeholder if none |
|
| 2868 | if ( Sensei()->settings->settings[ 'placeholder_images_enable' ] ) { |
|
| 2869 | ||
| 2870 | $img_url = apply_filters( 'sensei_lesson_placeholder_image_url', '<img src="http://placehold.it/' . $width . 'x' . $height . '" class="woo-image thumbnail alignleft" />' ); |
|
| 2871 | ||
| 2872 | } // End If Statement |
|
| 2873 | ||
| 2874 | } // End If Statement |
|
| 2875 | ||
| 2876 | $html .= '<a href="' . get_permalink( $lesson_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $lesson_id ) ) . '">' . $img_url . '</a>'; |
|
| 2877 | ||
| @@ 825-834 (lines=10) @@ | ||
| 822 | } // End If Statement |
|
| 823 | } // End For Loop |
|
| 824 | ||
| 825 | if ( '' == $img_url ) { |
|
| 826 | ||
| 827 | // Display Image Placeholder if none |
|
| 828 | if ( Sensei()->settings->get( 'placeholder_images_enable' ) ) { |
|
| 829 | ||
| 830 | $img_url = apply_filters( 'sensei_course_placeholder_image_url', '<img src="http://placehold.it/' . $width . 'x' . $height . '" class="woo-image thumbnail alignleft" />' ); |
|
| 831 | ||
| 832 | } // End If Statement |
|
| 833 | ||
| 834 | } // End If Statement |
|
| 835 | ||
| 836 | } // End If Statement |
|
| 837 | ||