Changeset 2156192
- Timestamp:
- 09/13/2019 03:03:41 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-soundsystem/trunk/templates/importers-list.php
r2156185 r2156192 6 6 7 7 if (!$importers || is_wp_error($importers) ) return; 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 8 32 9 33 /* … … 28 52 //supported URL shortcut 29 53 $urls_el = sprintf('<a id="wpsstm-list-urls-bt" href="#">%s</a>',__('supported URL','wpsstm')); 30 $list_bangs[] = sprintf('<li>%s </li>',sprintf(__('...Or type any %s!','wpsstm'),$urls_el));54 $list_bangs[] = sprintf('<li>%s); 31 55 32 56 33 /*34 URLs35 */36 57 37 $url_importers = array_filter($importers, function($importer) {return $importer['type']==='url'; }); //only URLs38 39 foreach((array)$url_importers as $importer){40 $url_items[] = sprintf('<span>%s</span> <small>%s: %s</small>',$importer['name'],__('eg.','wpsstm'),$importer['label']);41 }42 //wrap43 $list_urls = array_map(44 function ($el) {45 return "<li>{$el}</li>";46 },47 $url_items48 );49 58 50 59 /* … … 83 92 <?php 84 93 } 85 if ($list_urls){86 ?>87 <div id="wpsstm-importer-urls">88 <h4><?php _e('Supported URLs','wpsstm');?></h4>89 <ul>90 <?php echo implode("\n",$list_urls); ?>91 </ul>92 </div>93 <?php94 }95 94 if ($list_services){ 96 95 ?>
Note: See TracChangeset
for help on using the changeset viewer.