Add videos module option

This commit is contained in:
Brian Miyaji
2015-01-24 12:52:33 +11:00
parent 104cfcf99b
commit fabec5d9b3
7 changed files with 94 additions and 15 deletions

View File

@@ -332,7 +332,7 @@ if ( $id ) {
echo '<td class="data-article">';
if ( $link_events ) echo '<a href="' . get_permalink( $event->ID ) . '">';
if ( $video ):
if ( $video && 'yes' == get_option( 'sportspress_load_videos_module', 'yes' ) ):
echo '<div class="dashicons dashicons-video-alt"></div>';
elseif ( has_post_thumbnail( $event->ID ) ):
echo '<div class="dashicons dashicons-camera"></div>';