@@ 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 |
@@ 2874-2883 (lines=10) @@ | ||
2871 | // Get Featured Image |
|
2872 | $img_url = get_the_post_thumbnail( $lesson_id, array( $width, $height ), array( 'class' => 'woo-image thumbnail alignleft') ); |
|
2873 | ||
2874 | } else { |
|
2875 | ||
2876 | // Display Image Placeholder if none |
|
2877 | if ( Sensei()->settings->settings[ 'placeholder_images_enable' ] ) { |
|
2878 | ||
2879 | $img_url = apply_filters( 'sensei_lesson_placeholder_image_url', '<img src="http://placehold.it/' . $width . 'x' . $height . '" class="woo-image thumbnail alignleft" />' ); |
|
2880 | ||
2881 | } // End If Statement |
|
2882 | ||
2883 | } // End If Statement |
|
2884 | ||
2885 | $html .= '<a href="' . get_permalink( $lesson_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $lesson_id ) ) . '">' . $img_url . '</a>'; |
|
2886 |