@@ 207-212 (lines=6) @@ | ||
204 | } |
|
205 | ||
206 | $file_artists = array_pad( array(), $num_files, '' ); |
|
207 | if ( isset( $options['artists'] ) ) { |
|
208 | $artists = preg_split( '/,/', $options['artists'] ); |
|
209 | foreach ( $artists as $i => $artist ) { |
|
210 | $file_artists[$i] = esc_html( $artist ) . ' - '; |
|
211 | } |
|
212 | } |
|
213 | ||
214 | // generate default titles |
|
215 | $file_titles = array(); |
|
@@ 221-226 (lines=6) @@ | ||
218 | } |
|
219 | ||
220 | // replace with real titles if they exist |
|
221 | if ( isset( $options['titles'] ) ) { |
|
222 | $titles = preg_split( '/,/', $options['titles'] ); |
|
223 | foreach ( $titles as $i => $title ) { |
|
224 | $file_titles[$i] = esc_html( $title ); |
|
225 | } |
|
226 | } |
|
227 | ||
228 | // fallback for the fallback, just a download link |
|
229 | $not_supported = ''; |