@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | parent::__construct( |
22 | 22 | 'podlove_subscribe_button_wp_plugin_widget', |
23 | 23 | ( self::is_podlove_publisher_active() ? 'Podlove Subscribe Button (WordPress plugin)' : 'Podlove Subscribe Button' ), |
24 | - array( 'description' => __( 'Adds a Podlove Subscribe Button to your Sidebar', 'podlove-subscribe-button' ), ) |
|
24 | + array( 'description' => __( 'Adds a Podlove Subscribe Button to your Sidebar', 'podlove-subscribe-button' ),) |
|
25 | 25 | ); |
26 | 26 | |
27 | 27 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function widget( $args, $instance ) { |
39 | 39 | // Fetch the (network)button by it's name |
40 | 40 | if ( ! $button = \PodloveSubscribeButton\Model\Button::get_button_by_name( $instance[ 'button' ] ) ) { |
41 | - return sprintf( __( 'Oops. There is no button with the ID "%s".', 'podlove-subscribe-button' ), $args['button'] ); |
|
41 | + return sprintf( __( 'Oops. There is no button with the ID "%s".', 'podlove-subscribe-button' ), $args[ 'button' ] ); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | echo $args[ 'before_widget' ]; |
@@ -113,16 +113,16 @@ |
||
113 | 113 | if ( isset( \PodloveSubscribeButton\MediaTypes::$audio[ $feed[ 'format' ] ][ 'extension' ] ) ) { |
114 | 114 | $new_feed = array( |
115 | 115 | 'type' => 'audio', |
116 | - 'format' => \PodloveSubscribeButton\MediaTypes::$audio[ $feed['format'] ]['extension'], |
|
117 | - 'url' => $feed['url'], |
|
116 | + 'format' => \PodloveSubscribeButton\MediaTypes::$audio[ $feed[ 'format' ] ][ 'extension' ], |
|
117 | + 'url' => $feed[ 'url' ], |
|
118 | 118 | 'variant' => 'high', |
119 | 119 | ); |
120 | 120 | |
121 | 121 | if ( isset( $feed[ 'itunesfeedid' ] ) && $feed[ 'itunesfeedid' ] > 0 ) { |
122 | - $new_feed['directory-url-itunes'] = "https://itunes.apple.com/podcast/id" . $feed['itunesfeedid']; |
|
122 | + $new_feed[ 'directory-url-itunes' ] = "https://itunes.apple.com/podcast/id" . $feed[ 'itunesfeedid' ]; |
|
123 | 123 | } |
124 | 124 | |
125 | - $feeds[] = $new_feed; |
|
125 | + $feeds[ ] = $new_feed; |
|
126 | 126 | |
127 | 127 | } |
128 | 128 | } |