Changeset 1494496
- Timestamp:
- 09/12/2016 12:29:28 PM (10 years ago)
- Location:
- wibbitz
- Files:
-
- 4 edited
-
tags/0.1/readme.txt (modified) (2 diffs)
-
tags/0.1/wibbitz.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wibbitz.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wibbitz/tags/0.1/readme.txt
r1494452 r1494496 23 23 Next Clip - auto or manual. 24 24 25 26 25 == Installation == 27 26 … … 31 30 == Usage == 32 31 33 Clip id - wibbitz-clip-id= "b8a8ff52014cd408ea8a3b219b428d084"32 Clip id - wibbitz-clip-id=b8a8ff52014cd408ea8a3b219b428d084 34 33 Autoplay options - wibbitz-autoplay="false" | wibbitz-autoplay="true" | wibbitz-autoplay="scroll" 35 34 Sound options - wibbitz-mute="true" | wibbitz-mute="false" 36 35 Clip next options - wibbitz-next="auto" | wibbitz-next="manual" | wibbitz-next="auto-delay" 36 Hover to unmute - wibbitz-hovertounmute="true" (Only when autoplay and mute are enabled). 37 37 38 38 == Example Usage == -
wibbitz/tags/0.1/wibbitz.php
r1494452 r1494496 20 20 'wibbitz-autoplay' => 'wibbitz-autoplay', 21 21 'wibbitz-mute' => 'wibbitz-mute', 22 'wibbitz-next' => 'wibbitz-next' 22 'wibbitz-next' => 'wibbitz-next', 23 'wibbitz-hovertounmute' => 'wibbitz-hovertounmute' 23 24 ), $atts); 24 25 … … 26 27 wp_enqueue_script('script', plugin_dir_url(__FILE__) . 'script.js'); 27 28 28 // Create player div with parameters 29 return '<div wibbitz="wbtz-static-embed" wibbitz-clip-id="' . $atts['wibbitz-clip-id'] . '" wibbitz-autoplay="' . $atts['wibbitz-autoplay'] . '" wibbitz-mute="' . $atts['wibbitz-mute'] . '" wibbitz-next="' . $atts['wibbitz-next'] . '"></div>'; 29 // Handle autoplay mute 30 if ($atts['wibbitz-autoplay'] === "true" && $atts['wibbitz-mute'] === "true") { 31 return '<div wibbitz="wbtz-static-embed" wibbitz-clip-id="' . $atts['wibbitz-clip-id'] . '" wibbitz-autoplay="' . $atts['wibbitz-autoplay'] . '" wibbitz-mute="' . $atts['wibbitz-mute'] . '" wibbitz-next="' . $atts['wibbitz-next'] . '" wibbitz-hovertounmute="' . $atts['wibbitz-hovertounmute'] . '"></div>'; 32 } else { 33 return '<div wibbitz="wbtz-static-embed" wibbitz-clip-id="' . $atts['wibbitz-clip-id'] . '" wibbitz-autoplay="' . $atts['wibbitz-autoplay'] . '" wibbitz-mute="' . $atts['wibbitz-mute'] . '" wibbitz-next="' . $atts['wibbitz-next'] . '"></div>'; 34 } 30 35 } 31 36 ?> -
wibbitz/trunk/readme.txt
r1494452 r1494496 23 23 Next Clip - auto or manual. 24 24 25 26 25 == Installation == 27 26 … … 31 30 == Usage == 32 31 33 Clip id - wibbitz-clip-id= "b8a8ff52014cd408ea8a3b219b428d084"32 Clip id - wibbitz-clip-id=b8a8ff52014cd408ea8a3b219b428d084 34 33 Autoplay options - wibbitz-autoplay="false" | wibbitz-autoplay="true" | wibbitz-autoplay="scroll" 35 34 Sound options - wibbitz-mute="true" | wibbitz-mute="false" 36 35 Clip next options - wibbitz-next="auto" | wibbitz-next="manual" | wibbitz-next="auto-delay" 36 Hover to unmute - wibbitz-hovertounmute="true" (Only when autoplay and mute are enabled). 37 37 38 38 == Example Usage == -
wibbitz/trunk/wibbitz.php
r1494452 r1494496 20 20 'wibbitz-autoplay' => 'wibbitz-autoplay', 21 21 'wibbitz-mute' => 'wibbitz-mute', 22 'wibbitz-next' => 'wibbitz-next' 22 'wibbitz-next' => 'wibbitz-next', 23 'wibbitz-hovertounmute' => 'wibbitz-hovertounmute' 23 24 ), $atts); 24 25 … … 26 27 wp_enqueue_script('script', plugin_dir_url(__FILE__) . 'script.js'); 27 28 28 // Create player div with parameters 29 return '<div wibbitz="wbtz-static-embed" wibbitz-clip-id="' . $atts['wibbitz-clip-id'] . '" wibbitz-autoplay="' . $atts['wibbitz-autoplay'] . '" wibbitz-mute="' . $atts['wibbitz-mute'] . '" wibbitz-next="' . $atts['wibbitz-next'] . '"></div>'; 29 // Handle autoplay mute 30 if ($atts['wibbitz-autoplay'] === "true" && $atts['wibbitz-mute'] === "true") { 31 return '<div wibbitz="wbtz-static-embed" wibbitz-clip-id="' . $atts['wibbitz-clip-id'] . '" wibbitz-autoplay="' . $atts['wibbitz-autoplay'] . '" wibbitz-mute="' . $atts['wibbitz-mute'] . '" wibbitz-next="' . $atts['wibbitz-next'] . '" wibbitz-hovertounmute="' . $atts['wibbitz-hovertounmute'] . '"></div>'; 32 } else { 33 return '<div wibbitz="wbtz-static-embed" wibbitz-clip-id="' . $atts['wibbitz-clip-id'] . '" wibbitz-autoplay="' . $atts['wibbitz-autoplay'] . '" wibbitz-mute="' . $atts['wibbitz-mute'] . '" wibbitz-next="' . $atts['wibbitz-next'] . '"></div>'; 34 } 30 35 } 31 36 ?>
Note: See TracChangeset
for help on using the changeset viewer.