Changeset 212590
- Timestamp:
- 03/03/2010 05:25:22 PM (16 years ago)
- Location:
- fw-vimeo-videowall
- Files:
-
- 18 added
- 7 edited
-
tags/1.3 (added)
-
tags/1.3/fw-vimeo-videowall-ajax-handler.php (added)
-
tags/1.3/fw-vimeo-videowall-widget.class.php (added)
-
tags/1.3/fw-vimeo-videowall.class.php (added)
-
tags/1.3/fw-vimeo-videowall.css (added)
-
tags/1.3/fw-vimeo-videowall.js (added)
-
tags/1.3/fw-vimeo-videowall.php (added)
-
tags/1.3/images (added)
-
tags/1.3/images/cross.png (added)
-
tags/1.3/images/opacity.png (added)
-
tags/1.3/jslib (added)
-
tags/1.3/jslib/jquery.livequery.js (added)
-
tags/1.3/languages (added)
-
tags/1.3/languages/fwvvw-fr_FR.mo (added)
-
tags/1.3/languages/fwvvw-fr_FR.po (added)
-
tags/1.3/readme.txt (added)
-
tags/1.3/screenshot-1.png (added)
-
tags/1.3/screenshot-2.png (added)
-
trunk/fw-vimeo-videowall-widget.class.php (modified) (3 diffs)
-
trunk/fw-vimeo-videowall.class.php (modified) (7 diffs)
-
trunk/fw-vimeo-videowall.css (modified) (2 diffs)
-
trunk/fw-vimeo-videowall.php (modified) (2 diffs)
-
trunk/languages/fwvvw-fr_FR.mo (modified) (previous)
-
trunk/languages/fwvvw-fr_FR.po (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fw-vimeo-videowall/trunk/fw-vimeo-videowall-widget.class.php
r201420 r212590 31 31 'number' => $instance['number'], 32 32 'width' => $instance['width'], 33 'height' => $instance['height']); 33 'height' => $instance['height'], 34 'title' => $instance['title']); 34 35 35 36 … … 63 64 $instance['width'] = strip_tags( $new_instance['width'] ); 64 65 $instance['height'] = strip_tags( $new_instance['height'] ); 65 66 $instance['title'] = strip_tags( $new_instance['title'] ); 66 67 67 68 return $instance; … … 103 104 </p> 104 105 106 <p><?php _e('Display video title under thumbnail (irrelevant if you display a list of video titles)','fwvvw');?><br /> 107 <label><input type="radio" name="<?php echo $this->get_field_name( 'title' ); ?>" value="1" <?php if ( 1 == $instance['title'] ) echo 'checked="checked"'; ?> /><?php _e('Yes','fwvvw');?></label> 108 <br /> 109 <label><input type="radio" name="<?php echo $this->get_field_name( 'title' ); ?>" value="0" <?php if ( 0 == $instance['title'] ) echo 'checked="checked"'; ?> /><?php _e('No','fwvvw');?></label> 110 </p> 111 105 112 <p> 106 113 <label for="<?php echo $this->get_field_id( 'number' ); ?>"><?php _e('Number of videos','fwvvw');?><br /></label> -
fw-vimeo-videowall/trunk/fw-vimeo-videowall.class.php
r201834 r212590 19 19 public $vpage = 1; 20 20 public $vpagination = true; 21 public $vtitle = false; 21 22 22 23 function FW_vimeo_videowall() { … … 38 39 case 'channel' : $this->api_endpoint = 'http://www.vimeo.com/api/v2/channel/'.$this->id.'/videos.json?page='.$this->vpage; 39 40 $this->info_endpoint = 'http://vimeo.com/api/v2/channel/'.$this->id.'/info.json'; break; 40 case 'video' : $this->api_endpoint = 'http://www.vimeo.com/api/oembed.json'; break; 41 case 'video' : $this->api_endpoint = 'http://vimeo.com/api/v2/video/'.$this->id.'.json'; break; 42 43 //case 'video' : $this->api_endpoint = 'http://www.vimeo.com/api/oembed.json'; break; 41 44 default : $this->api_endpoint = 'http://www.vimeo.com/api/v2/'.$this->id.'/videos.json'; break; 42 45 } … … 51 54 $this->vtype = $args['type']; 52 55 $this->vpage = $args['page']; 56 $this->vtitle = $this->vtype == 'title' ? false : $args['title']; 53 57 // $this->vperpage = $args['perpage']; 54 58 // $this->vpaginate = $args['paginate']; … … 112 116 public function display_single_video ($video_id) { 113 117 $this->id = $video_id; 114 118 115 119 $this->vsource = 'video'; 116 $this->choose_endpoint (); 120 //$this->choose_endpoint (); 121 $this->api_endpoint = 'http://www.vimeo.com/api/oembed.json'; 117 122 $oembed_url = $this->api_endpoint.'?url='.rawurlencode('http://vimeo.com/'.$this->id).'&maxwidth='.$this->vwidth.'&maxheight='.$this->vheight; 118 123 $oembed_req = wp_remote_retrieve_body( wp_remote_get($oembed_url)); … … 154 159 $html_code = '<div id="video_'.$video->id.'" class="fwvvw_vthumb">'; 155 160 $html_code .= html_entity_decode($oembed->html); 161 $html_code .= $this->vtitle == true ? '<div class="fwvvw-videotitle" style="width: '.$this->vwidth.'px;">'.$video->title.'</div>' : ''; 156 162 $html_code .= '</div>'; 157 163 return $html_code; … … 161 167 $html_code = '<div id="video_'.$video->id.'" class="fwvvw_vthumb">'; 162 168 $html_code .= '<img src="'.$video->thumbnail_small.'" alt="'.$video->title.'" title="'.$video->title.'" width="'.$this->vwidth.'" />'; 169 $html_code .= $this->vtitle == true ? '<div class="fwvvw-videotitle" style="width: '.$this->vwidth.'px;">'.$video->title.'</div>' : ''; 170 163 171 $html_code .= '</div>'; 164 172 return $html_code; … … 210 218 211 219 public function get_datas() { 212 //echo $this->api_endpoint;220 //echo $this->api_endpoint; 213 221 $endpoint_req = wp_remote_retrieve_body( wp_remote_get($this->api_endpoint)); 214 222 $videos = json_decode($endpoint_req ); -
fw-vimeo-videowall/trunk/fw-vimeo-videowall.css
r201420 r212590 10 10 border: #ebebeb 1px solid; 11 11 margin:2px; 12 cursor:pointer; 12 13 } 13 14 … … 71 72 font-weight:bold; 72 73 } 74 75 .fwvvw-videotitle { 76 font-size:0.8em; 77 } -
fw-vimeo-videowall/trunk/fw-vimeo-videowall.php
r201834 r212590 8 8 Description: Displays a user, group, album or channel vimeo videowall with thumbnails or small videos in sidebar or content with pagination if needed. 9 9 Author: fairweb 10 Version: 1. 2.110 Version: 1.3 11 11 Author URI: http://www.fairweb.fr/ 12 12 */ … … 41 41 'number' => 4, 'width' => 100, 42 42 'height' => 100, 'type' => 'image', 43 'source' => 'user', 'paginate' => true, 'page' => 1, ' echo' => true43 'source' => 'user', 'paginate' => true, 'page' => 1, 'title' => false, 'echo' => true 44 44 ); 45 45 -
fw-vimeo-videowall/trunk/languages/fwvvw-fr_FR.po
r201420 r212590 3 3 "Project-Id-Version: fwvvw\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2010-02- 03 15:58+0100\n"5 "POT-Creation-Date: 2010-02-12 05:08+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Myriam Faulkner <[email protected]>\n" … … 28 28 msgstr "Videowall Vimeo" 29 29 30 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:7 330 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:74 31 31 msgid "Videos" 32 32 msgstr "Vidéos" 33 33 34 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:7 734 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:78 35 35 msgid "Title" 36 36 msgstr "Titre" 37 37 38 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:8 238 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:83 39 39 msgid "Vimeo source type" 40 40 msgstr "Type de source Vimeo" 41 41 42 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:8 442 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:85 43 43 msgid "Vimeo User" 44 44 msgstr "Utilisateur Vimeo" 45 45 46 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:8 546 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:86 47 47 msgid "Vimeo Group" 48 48 msgstr "Groupe Vimeo" 49 49 50 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:8 650 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:87 51 51 msgid "Vimeo Album" 52 52 msgstr "Album Vimeo" 53 53 54 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:8 754 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:88 55 55 msgid "Vimeo Channel" 56 56 msgstr "Canal Vimeo" 57 57 58 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:9 258 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:93 59 59 msgid "Vimeo ID" 60 60 msgstr "ID Vimeo" 61 61 62 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:9 262 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:93 63 63 msgid "user, group, album or channel ID" 64 64 msgstr "ID de l'utilisateur, du groupe, de l'album ou du canal" 65 65 66 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:9 766 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:98 67 67 msgid "Display" 68 68 msgstr "Afficher" 69 69 70 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php: 9970 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:100 71 71 msgid "clickable video thumbnails" 72 72 msgstr "des miniatures cliquables" 73 73 74 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:10 074 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:101 75 75 msgid "playable videos" 76 76 msgstr "des vidéos jouables" 77 77 78 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:10 178 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:102 79 79 msgid "list of video titles" 80 80 msgstr "Liste de titres" 81 81 82 82 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:106 83 msgid "Display video title under thumbnail (irrelevant if you display a list of video titles)" 84 msgstr "Afficher le titre de la vidéo sous la miniature (sans effet si vous affichez une liste de titres)" 85 86 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:107 87 msgid "Yes" 88 msgstr "Oui" 89 90 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:109 91 msgid "No" 92 msgstr "Non" 93 94 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:113 83 95 msgid "Number of videos" 84 96 msgstr "Nombre de vidéos" 85 97 86 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:11 198 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:118 87 99 msgid "Max video width" 88 100 msgstr "Largeur max de la vidéo" 89 101 90 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:1 16102 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:123 91 103 msgid "Max video height" 92 104 msgstr "Hauteur max de la vidéo" 93 105 94 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall.class.php:8 1106 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall.class.php:85 95 107 msgid "No video" 96 108 msgstr "Aucune vidéo" -
fw-vimeo-videowall/trunk/readme.txt
r201834 r212590 18 18 You may choose to display clickable video thumbnails or titles which will open a window with Vimeo default sized video or small playable videos. 19 19 You may choose how many thumbnails or titles you want to display. 20 You may display video title under its thumbnail. 20 21 21 22 = Localized = … … 49 50 1. width : thumbnail max width. Default is 100. It has no effet if `type` is set to "title". 50 51 1. height : thumbnail max height. Default is 100. It has no effet if `type` is set to "title". 52 1. title : displays the video title under its thumbnail if set to true. Default is false. It has no effet if `type` is set to "title". Consider adding a height CSS attribute to div.fwvvw_vthumb. 51 53 1. echo : if true, displays the videowall, if false return the html without displaying it. Default is true. 52 54 … … 57 59 58 60 == Changelog == 61 = 1.3 = 62 * Corrected bug : display a single video (reported by Jaryd) 63 * Added the video title under thumbnail feature (requested by Jaryd) 59 64 = 1.2.1 = 60 65 * Corrected bug : limited number of videos displayed did not work since 1.2 (reported by Dan)
Note: See TracChangeset
for help on using the changeset viewer.