Changeset 198637
- Timestamp:
- 01/27/2010 06:04:23 AM (16 years ago)
- Location:
- fw-vimeo-videowall/trunk
- Files:
-
- 8 edited
-
fw-vimeo-videowall-widget.class.php (modified) (2 diffs)
-
fw-vimeo-videowall.class.php (modified) (5 diffs)
-
fw-vimeo-videowall.css (modified) (1 diff)
-
fw-vimeo-videowall.js (modified) (1 diff)
-
fw-vimeo-videowall.php (modified) (3 diffs)
-
languages/fwvvw-fr_FR.mo (modified) (previous)
-
languages/fwvvw-fr_FR.po (modified) (2 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fw-vimeo-videowall/trunk/fw-vimeo-videowall-widget.class.php
r195350 r198637 1 1 <?php 2 /* 3 * To change this template, choose Tools | Templates 4 * and open the template in the editor. 2 /** 3 * @package fw-vimeo-videowall 4 * @author fairweb 5 * @version 1.1 5 6 */ 6 7 … … 104 105 <option <?php if ( 'image' == $instance['type'] ) echo 'selected="selected"'; ?> value="image"><?php _e('clickable video thumbnails','fwvvw');?></option> 105 106 <option <?php if ( 'video' == $instance['type'] ) echo 'selected="selected"';?> value="video"><?php _e('playable videos','fwvvw');?></option> 107 <option <?php if ( 'title' == $instance['type'] ) echo 'selected="selected"';?> value="title"><?php _e('list of video titles','fwvvw');?></option> 106 108 </select> 107 109 </p> -
fw-vimeo-videowall/trunk/fw-vimeo-videowall.class.php
r195350 r198637 3 3 * @package fw-vimeo-videowall 4 4 * @author fairweb 5 * @version 1. 05 * @version 1.1 6 6 */ 7 7 … … 51 51 $video_details = $this->get_datas(); 52 52 53 $html='<div class="fwvvw-'.$this->vsource.'">'; 53 if ($this->vtype == 'title' && $video_details) { 54 $html ='<ul class="fwvvw-'.$this->vsource.'">'; 55 } else { 56 $html='<div class="fwvvw-'.$this->vsource.'">'; 57 } 54 58 55 59 if (!$video_details) { … … 61 65 } 62 66 $html .= $this->get_html($video_details); 63 $html .='<div class="fwclear"></div></div>'; 67 if ($this->vtype == 'title' && $video_details) { 68 $html .='</ul>'; 69 } else { 70 $html .='<div class="fwclear"></div></div>'; 71 } 64 72 if ($args['echo'] == false) { 65 73 return $html; … … 89 97 foreach ($video_details as $video) { 90 98 $full_html .= $this->get_video_html ($video); 99 } 100 break; 101 case 'title' : 102 foreach ($video_details as $video) { 103 $full_html .= $this->get_title_html ($video); 91 104 } 92 105 break; … … 119 132 } 120 133 134 public function get_title_html ($video) { 135 $html_code = '<li id="'.$video->id.'" class="fwvvw_vthumb">'; 136 $html_code .= '<a href="#" title="'.$video->title.'">'.$video->title.'</a>'; 137 $html_code .= '</li>'; 138 return $html_code; 139 } 140 121 141 public function get_datas() { 122 142 -
fw-vimeo-videowall/trunk/fw-vimeo-videowall.css
r195350 r198637 5 5 */ 6 6 7 .fwvvw_vthumb {7 div.fwvvw_vthumb { 8 8 float:left; 9 9 padding:3px; -
fw-vimeo-videowall/trunk/fw-vimeo-videowall.js
r195350 r198637 1 1 jQuery(document).ready( function() { 2 jQuery(" div.fwvvw_vthumb").livequery('click',2 jQuery(".fwvvw_vthumb").livequery('click', 3 3 function() { 4 4 var idreq = jQuery(this).attr('id'); -
fw-vimeo-videowall/trunk/fw-vimeo-videowall.php
r195350 r198637 2 2 * @package fw-vimeo-videowall 3 3 * @author fairweb 4 * @version 1. 04 * @version 1.1 5 5 */ 6 6 /* … … 9 9 Description: Displays a user, group, album or channel vimeo videowall with thumbnails or small videos in sidebar or content. 10 10 Author: fairweb 11 Version: 1. 011 Version: 1.1 12 12 Author URI: http://www.fairweb.fr/ 13 13 */ … … 57 57 if (file_exists(get_bloginfo('template_directory').'/fw-vimeo-videowall.css')) { 58 58 $plugincss_url = get_bloginfo('template_directory').'/fw-vimeo-videowall.css'; 59 $plugincss_file = FWVVW_DIR. '/fw-vimeo-videowall.css';59 $plugincss_file = TEMPLATEPATH . '/fw-vimeo-videowall.css'; 60 60 } else { 61 61 $plugincss_url = FWVVW_URL. '/fw-vimeo-videowall.css'; -
fw-vimeo-videowall/trunk/languages/fwvvw-fr_FR.po
r195350 r198637 3 3 "Project-Id-Version: fwvvw\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2010-01- 16 18:14+0100\n"5 "POT-Creation-Date: 2010-01-27 06:46+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Myriam Faulkner <[email protected]>\n" … … 20 20 msgstr "Fermer la fenêtre" 21 21 22 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:1 722 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:18 23 23 msgid "Adds a Vimeo Videowall in your sidebar. The videowall may contain a user's, a group's, an album's or channel's Vimeo videos" 24 24 msgstr "Ajoute un mur de vidéos Vimeo dans votre sidebar. Le mur de vidéos peut contenir des vidéos d'un utilisateur, d'un groupe, d'un album ou d'un canal." 25 25 26 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:2 326 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:24 27 27 msgid "Vimeo Videowall" 28 28 msgstr "Videowall Vimeo" 29 29 30 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:7 830 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:79 31 31 msgid "Videos" 32 32 msgstr "Vidéos" 33 33 34 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:8 234 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:83 35 35 msgid "Title" 36 36 msgstr "Titre" 37 37 38 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:8 738 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:88 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: 8942 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:90 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:9 046 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:91 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:9 150 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:92 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:9 254 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:93 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 758 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:98 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 762 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:98 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:10 266 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:103 67 67 msgid "Display" 68 68 msgstr "Afficher" 69 69 70 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:10 470 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:105 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 574 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:106 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:110 78 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:107 79 msgid "list of video titles" 80 msgstr "Liste de titres" 81 82 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:112 79 83 msgid "Number of videos" 80 84 msgstr "Nombre de vidéos" 81 85 82 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:11 586 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:117 83 87 msgid "Max video width" 84 88 msgstr "Largeur max de la vidéo" 85 89 86 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:12 090 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:122 87 91 msgid "Max video height" 88 92 msgstr "Hauteur max de la vidéo" 89 93 90 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall.class.php: 5794 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall.class.php:61 91 95 msgid "No video" 92 96 msgstr "Aucune vidéo" -
fw-vimeo-videowall/trunk/readme.txt
r195352 r198637 7 7 Stable tag: '/trunk' 8 8 9 Displays a user, group, album or channel Vimeo videowall with thumbnails or small videos in sidebar or content.9 Displays a user, group, album or channel Vimeo videowall with thumbnails or small videos or a list of video titles in sidebar or content. 10 10 11 11 == Description == 12 Displays a user, group, album or channel vimeo videowall with thumbnails or small videos in sidebar or content.12 Displays a user, group, album or channel vimeo videowall with thumbnails or small videos or a list of video titles in sidebar or content. 13 13 = Choice to use = 14 14 * Widget : A widget with custom settings … … 16 16 * Template tag : for advanced themes, you can place the videowall wherever you want using a template tag 17 17 18 You may choose to display clickable video thumbnails which will open a window with Vimeo default sized video or small playable videos.19 You may choose how many thumbnails you want to display.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 You may choose how many thumbnails or titles you want to display. 20 20 21 21 = Localized = … … 27 27 1. Upload the `fw-vimeo-videowall` folder to the `/wp-content/plugins/` directory 28 28 2. Activate the plugin through the 'Plugins' menu in WordPress 29 3. If you want to customize the CSS file, copy fw-vimeo-videowall.css file to your template directory so your styles won't be overwritten on next plugin upgrade. 29 30 30 31 = Widget = … … 44 45 1. id : the Vimeo user, group, album or channel ID you intend to use. This can be identified in the Vimeo url. Default is "petole". 45 46 1. source : the source type can be "user", "group", "album" or "channel". Default is "user". 46 1. type : will determine if you want a clickage image of the video or the video itself to be displayed. Values are "image" or "video". Default is "image".47 1. type : will determine if you want a clickage image of the video or a list of video titles or the video itself to be displayed. Values are "image", "title" or "video". Default is "image". 47 48 1. number : number of thumbnails to display. Default is 4, a 0 value will display all. 48 1. width : thumbnail max width. Default is 100. 49 1. height : thumbnail max height. Default is 100. 49 1. width : thumbnail max width. Default is 100. It has no effet if `type` is set to "title". 50 1. height : thumbnail max height. Default is 100. It has no effet if `type` is set to "title". 50 51 1. echo : if true, displays the videowall, if false return the html without displaying it. Default is true. 51 52 … … 55 56 56 57 == Changelog == 57 58 = 1.1 = 59 * Added an option to display a list of clickable titles instead of thumbnails or videos (as requested by Tim Johnson) 60 * corrected a bug on CSS choice (default plugin CSS or custom CSS in template directory) 58 61 = 1.0 = 59 62 * First plugin release
Note: See TracChangeset
for help on using the changeset viewer.