Changeset 1161754
- Timestamp:
- 05/16/2015 11:09:31 AM (11 years ago)
- Location:
- dynamic-audio-player-basic/trunk
- Files:
-
- 2 edited
-
dynamicplayer.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dynamic-audio-player-basic/trunk/dynamicplayer.php
r1160665 r1161754 4 4 Plugin URI: http://dynamicaudioplayer.com 5 5 Description: This plugin allows you to add an audio player widget with a dynamic playlist and shortcodes for single buttons 6 Version: 2.0. 56 Version: 2.0.6 7 7 Author: Manolo Salsas Durán 8 8 Author URI: http://msalsas.com/en/ … … 52 52 53 53 $dyn_option = get_option( "widget_dynamic-player-widget" ); 54 if(is_array($dyn_option) && isset($dyn_option[1]) && is_array($dyn_option[1]) && isset($dyn_option[1]['dynTotalWidth']) && $dyn_option[1]['dynTotalWidth'] == 'Small') 55 wp_register_style( 'default-stylesheet', plugins_url('/css/smallPlayer.css', __FILE__) ); 56 57 else if(is_array($dyn_option) && isset($dyn_option[1]) && is_array($dyn_option[1]) && isset($dyn_option[1]['dynTotalWidth']) && $dyn_option[1]['dynTotalWidth'] == 'Large') 58 wp_register_style( 'default-stylesheet', plugins_url('/css/largePlayer.css', __FILE__) ); 59 60 else 54 $styleRegistered = false; 55 foreach($dyn_option as $option) 56 { 57 if(is_array($option) && isset($option['dynTotalWidth']) && $option['dynTotalWidth'] == 'Small') 58 { 59 wp_register_style( 'default-stylesheet', plugins_url('/css/smallPlayer.css', __FILE__) ); 60 $styleRegistered = true; 61 break; 62 } 63 else if(is_array($option) && isset($option['dynTotalWidth']) && $option['dynTotalWidth'] == 'Large') 64 { 65 wp_register_style( 'default-stylesheet', plugins_url('/css/largePlayer.css', __FILE__) ); 66 $styleRegistered = true; 67 break; 68 } 69 70 } 71 72 if(! $styleRegistered) 73 { 61 74 wp_register_style( 'default-stylesheet', plugins_url('/css/default.css', __FILE__) ); 62 75 } 76 63 77 wp_enqueue_style( 'default-stylesheet' ); 64 78 … … 104 118 function dynamic_my_admin_scripts45656754() { 105 119 106 if( substr($_SERVER["REQUEST_URI"], 0, 57) === "/wp-admin/admin.php?page=dynamic_player_register_settings") {120 if(isset($_GET["page"]) && $_GET["page"] === "dynamic_player_register_settings") { 107 121 if(! wp_script_is('media-upload')) 108 122 wp_enqueue_script('media-upload'); -
dynamic-audio-player-basic/trunk/readme.txt
r1160665 r1161754 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.2.2 6 Stable tag: 1.1.26 Stable tag: 2.0.6 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 == Changelog == 50 50 51 = 2.0.6 = 52 Fix registering css. 53 51 54 = 2.0.5 = 52 55 Small fix.
Note: See TracChangeset
for help on using the changeset viewer.