Plugin Directory

Changeset 198637


Ignore:
Timestamp:
01/27/2010 06:04:23 AM (16 years ago)
Author:
fairweb
Message:
 
Location:
fw-vimeo-videowall/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • fw-vimeo-videowall/trunk/fw-vimeo-videowall-widget.class.php

    r195350 r198637  
    11<?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
    56 */
    67
     
    104105        <option <?php if ( 'image' == $instance['type'] ) echo 'selected="selected"'; ?> value="image"><?php _e('clickable video thumbnails','fwvvw');?></option>
    105106        <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>
    106108        </select>
    107109        </p>
  • fw-vimeo-videowall/trunk/fw-vimeo-videowall.class.php

    r195350 r198637  
    33 * @package fw-vimeo-videowall
    44 * @author fairweb
    5  * @version 1.0
     5 * @version 1.1
    66 */
    77
     
    5151        $video_details = $this->get_datas();
    5252
    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        }
    5458       
    5559        if (!$video_details) {
     
    6165        }
    6266         $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         }
    6472         if ($args['echo'] == false) {
    6573                 return $html;
     
    8997                foreach ($video_details as $video) {
    9098                    $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);
    91104                }
    92105                break;
     
    119132    }
    120133
     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
    121141    public function get_datas() {
    122142
  • fw-vimeo-videowall/trunk/fw-vimeo-videowall.css

    r195350 r198637  
    55*/
    66
    7 .fwvvw_vthumb {
     7div.fwvvw_vthumb {
    88    float:left;
    99    padding:3px;
  • fw-vimeo-videowall/trunk/fw-vimeo-videowall.js

    r195350 r198637  
    11jQuery(document).ready( function() {
    2         jQuery("div.fwvvw_vthumb").livequery('click',
     2        jQuery(".fwvvw_vthumb").livequery('click',
    33        function() {
    44            var idreq = jQuery(this).attr('id');
  • fw-vimeo-videowall/trunk/fw-vimeo-videowall.php

    r195350 r198637  
    22 * @package fw-vimeo-videowall
    33 * @author fairweb
    4  * @version 1.0
     4 * @version 1.1
    55 */
    66/*
     
    99Description: Displays a user, group, album or channel vimeo videowall with thumbnails or small videos in sidebar or content.
    1010Author: fairweb
    11 Version: 1.0
     11Version: 1.1
    1212Author URI: http://www.fairweb.fr/
    1313*/
     
    5757        if (file_exists(get_bloginfo('template_directory').'/fw-vimeo-videowall.css')) {
    5858            $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';
    6060        } else {
    6161            $plugincss_url = FWVVW_URL. '/fw-vimeo-videowall.css';
  • fw-vimeo-videowall/trunk/languages/fwvvw-fr_FR.po

    r195350 r198637  
    33"Project-Id-Version: fwvvw\n"
    44"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"
    66"PO-Revision-Date: \n"
    77"Last-Translator: Myriam Faulkner <[email protected]>\n"
     
    2020msgstr "Fermer la fenêtre"
    2121
    22 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:17
     22#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:18
    2323msgid "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"
    2424msgstr "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."
    2525
    26 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:23
     26#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:24
    2727msgid "Vimeo Videowall"
    2828msgstr "Videowall Vimeo"
    2929
    30 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:78
     30#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:79
    3131msgid "Videos"
    3232msgstr "Vidéos"
    3333
    34 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:82
     34#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:83
    3535msgid "Title"
    3636msgstr "Titre"
    3737
    38 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:87
     38#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:88
    3939msgid "Vimeo source type"
    4040msgstr "Type de source Vimeo"
    4141
    42 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:89
     42#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:90
    4343msgid "Vimeo User"
    4444msgstr "Utilisateur Vimeo"
    4545
    46 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:90
     46#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:91
    4747msgid "Vimeo Group"
    4848msgstr "Groupe Vimeo"
    4949
    50 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:91
     50#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:92
    5151msgid "Vimeo Album"
    5252msgstr "Album Vimeo"
    5353
    54 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:92
     54#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:93
    5555msgid "Vimeo Channel"
    5656msgstr "Canal Vimeo"
    5757
    58 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:97
     58#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:98
    5959msgid "Vimeo ID"
    6060msgstr "ID Vimeo"
    6161
    62 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:97
     62#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:98
    6363msgid "user, group, album or channel ID"
    6464msgstr "ID de l'utilisateur, du groupe, de l'album ou du canal"
    6565
    66 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:102
     66#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:103
    6767msgid "Display"
    6868msgstr "Afficher"
    6969
    70 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:104
     70#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:105
    7171msgid "clickable video thumbnails"
    7272msgstr "des miniatures cliquables"
    7373
    74 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:105
     74#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:106
    7575msgid "playable videos"
    7676msgstr "des vidéos jouables"
    7777
    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
     79msgid "list of video titles"
     80msgstr "Liste de titres"
     81
     82#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:112
    7983msgid "Number of videos"
    8084msgstr "Nombre de vidéos"
    8185
    82 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:115
     86#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:117
    8387msgid "Max video width"
    8488msgstr "Largeur max de la vidéo"
    8589
    86 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:120
     90#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall-widget.class.php:122
    8791msgid "Max video height"
    8892msgstr "Hauteur max de la vidéo"
    8993
    90 #: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall.class.php:57
     94#: wp-content\plugins\fw-vimeo-videowall/fw-vimeo-videowall.class.php:61
    9195msgid "No video"
    9296msgstr "Aucune vidéo"
  • fw-vimeo-videowall/trunk/readme.txt

    r195352 r198637  
    77Stable tag: '/trunk'
    88
    9 Displays a user, group, album or channel Vimeo videowall with thumbnails or small videos in sidebar or content.
     9Displays a user, group, album or channel Vimeo videowall with thumbnails or small videos or a list of video titles in sidebar or content.
    1010
    1111== Description ==
    12 Displays a user, group, album or channel vimeo videowall with thumbnails or small videos in sidebar or content.
     12Displays a user, group, album or channel vimeo videowall with thumbnails or small videos or a list of video titles in sidebar or content.
    1313= Choice to use =
    1414* Widget : A widget with custom settings
     
    1616* Template tag : for advanced themes, you can place the videowall wherever you want using a template tag
    1717
    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.
     18You may choose to display clickable video thumbnails or titles which will open a window with Vimeo default sized video or small playable videos.
     19You may choose how many thumbnails or titles you want to display.
    2020
    2121= Localized =
     
    27271. Upload the `fw-vimeo-videowall` folder to the `/wp-content/plugins/` directory
    28282. Activate the plugin through the 'Plugins' menu in WordPress
     293. 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.
    2930
    3031= Widget =
     
    44451. id : the Vimeo user, group, album or channel ID you intend to use. This can be identified in the Vimeo url. Default is "petole".
    45461. 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".
     471. 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".
    47481. 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.
     491. width : thumbnail max width. Default is 100. It has no effet if `type` is set to "title".
     501. height : thumbnail max height. Default is 100. It has no effet if `type` is set to "title".
    50511. echo : if true, displays the videowall, if false return the html without displaying it. Default is true.
    5152
     
    5556
    5657== 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)
    5861= 1.0 =
    5962* First plugin release
Note: See TracChangeset for help on using the changeset viewer.