@@ -23,34 +23,34 @@ |
||
23 | 23 | global $ss_podcasting; |
24 | 24 | |
25 | 25 | $atts = shortcode_atts( array( |
26 | - 'episode' => 0, |
|
27 | - 'content' => 'title,player,details', |
|
28 | - ), $params, 'podcast_episode' ); |
|
26 | + 'episode' => 0, |
|
27 | + 'content' => 'title,player,details', |
|
28 | + ), $params, 'podcast_episode' ); |
|
29 | 29 | |
30 | 30 | extract( $atts ); |
31 | 31 | |
32 | 32 | // If no episode ID is specified then use the current post's ID |
33 | - if ( ! $episode ) { |
|
33 | + if ( ! $episode ) { |
|
34 | 34 | |
35 | - global $post; |
|
36 | - if( isset( $post->ID ) ) { |
|
37 | - $episode = intval( $post->ID ); |
|
38 | - } |
|
35 | + global $post; |
|
36 | + if( isset( $post->ID ) ) { |
|
37 | + $episode = intval( $post->ID ); |
|
38 | + } |
|
39 | 39 | |
40 | - if ( ! $episode ) { |
|
41 | - return; |
|
42 | - } |
|
40 | + if ( ! $episode ) { |
|
41 | + return; |
|
42 | + } |
|
43 | 43 | |
44 | - } |
|
44 | + } |
|
45 | 45 | |
46 | - // Setup array of content items and trim whitespace |
|
47 | - $content_items = explode( ',', $content ); |
|
48 | - $content_items = array_map( 'trim', $content_items ); |
|
46 | + // Setup array of content items and trim whitespace |
|
47 | + $content_items = explode( ',', $content ); |
|
48 | + $content_items = array_map( 'trim', $content_items ); |
|
49 | 49 | |
50 | - // Get episode for display |
|
51 | - $html = $ss_podcasting->podcast_episode( $episode, $content_items, 'shortcode' ); |
|
50 | + // Get episode for display |
|
51 | + $html = $ss_podcasting->podcast_episode( $episode, $content_items, 'shortcode' ); |
|
52 | 52 | |
53 | - return $html; |
|
53 | + return $html; |
|
54 | 54 | |
55 | 55 | } |
56 | 56 |