Plugin Directory

Changeset 1018008


Ignore:
Timestamp:
11/01/2014 08:28:11 PM (11 years ago)
Author:
Jayjdk
Message:

Add plugin icons

Location:
youtube-profile-field
Files:
2 added
9 edited

Legend:

Unmodified
Added
Removed
  • youtube-profile-field/trunk/functions.php

    r901055 r1018008  
    8080    $headingEnd   = html_entity_decode( $options['headingEnd'] );
    8181
     82    /**
     83     * Filter the default video wrapper class.
     84     *
     85     * @since 3.1.1
     86     *
     87     * @param array $class The default classes.
     88     * @param int   $count The total number of videos shown.
     89     */
     90    $class = apply_filters( 'youtube_profile_field_wrapper_class', array( 'youtube-video' ), count( $videos ) );
     91
    8292    ob_start();
    8393
     
    90100        $url   = "https://www.youtube.com/watch?v={$id}";
    91101    ?>
    92         <div class="youtube-video">
     102        <div class="<?php echo esc_attr( join( ' ', $class ) ); ?>">
    93103            <?php
    94104                // Display the video title.
     
    104114
    105115            <?php
    106                 // Display the video with the [video] shortcode for 3.9 or later.
    107                 if ( function_exists( 'wp_playlist_shortcode' ) && apply_filters( 'youtube_profile_field_use_native_player', true ) ) {
     116                /**
     117                 * Display the video with the [video] shortcode for 3.9 or later.
     118                 *
     119                 * Turned off since v3.1.1 until #29223 is fixed
     120                 * (Video Shortcode with Youtube source broken in some browsers)
     121                 * https://core.trac.wordpress.org/ticket/29223
     122                 */
     123                if ( function_exists( 'wp_playlist_shortcode' ) && apply_filters( 'youtube_profile_field_use_native_player', false ) ) {
    108124
    109125                    echo wp_video_shortcode( array(
    110                         'src' => $url,
    111                         'width' => $options['width'],
     126                        'src'    => $url,
     127                        'width'  => $options['width'],
    112128                        'height' => $options['height'] // Not used by the [video] shortcode
    113129                    ));
     
    234250    /**
    235251     * Filter the default video aspect video.
    236     *
     252    *
    237253     * @since 3.1.0
    238254     *
    239      * @param type $ratio The default 4:3 aspect ratio.
     255     * @param string|int $ratio The default 4:3 aspect ratio.
    240256     */
    241257    $aspect_ratio = apply_filters( 'youtube_profile_field_aspect_ratio', 4/3 );
  • youtube-profile-field/trunk/index.php

    r901055 r1018008  
    66 * Author: Jesper Johansen
    77 * Author URI: http://jayj.dk
    8  * Version: 3.1
     8 * Version: 3.1.1
    99 * License: GPLv2 or later
    1010 * Text Domain: youtube-profile-field
  • youtube-profile-field/trunk/languages/youtube-profile-field-da_DK.po

    r901055 r1018008  
    33"Project-Id-Version: Youtube Profile Field\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2014-04-11 21:43+0100\n"
     5"POT-Creation-Date: 2014-11-01 21:13+0100\n"
    66"PO-Revision-Date: \n"
    77"Last-Translator: Jesper Johansen\n"
     
    6262msgstr "Ingen videoer fundet."
    6363
    64 #: functions.php:252
     64#: functions.php:268
    6565msgid "Youtube username"
    6666msgstr "Youtube brugernavn"
  • youtube-profile-field/trunk/languages/youtube-profile-field-sr_RS.po

    r797854 r1018008  
    33"Project-Id-Version: Youtube Profile Field\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2013-11-02 22:02+0100\n"
     5"POT-Creation-Date: 2014-11-01 21:13+0100\n"
    66"PO-Revision-Date: \n"
    7 "Last-Translator: Borisa Djuraskovic\n"
     7"Last-Translator: Jesper Johansen\n"
    88"Language-Team: Borisa Djuraskovic\n"
    99"MIME-Version: 1.0\n"
     
    1515"X-Poedit-SearchPath-0: ..\n"
    1616
    17 #: admin.php:12 admin.php:30
     17#: admin.php:9 admin.php:28
    1818msgid "Youtube Profile Field Options"
    1919msgstr "Youtube Profile Field opcije"
    2020
    21 #: admin.php:13
     21#: admin.php:10
    2222msgid "Youtube Profile Field"
    2323msgstr "Youtube Profile Field"
    2424
    25 #: admin.php:54 functions.php:260
     25#: admin.php:52
    2626msgid "Settings"
    2727msgstr "Postavke"
    2828
    29 #: admin.php:61
    30 msgid "Videos to show"
    31 msgstr "Videi za prikaz"
     29#: admin.php:59
     30msgid "Default video count"
     31msgstr ""
    3232
    3333#: admin.php:69
    34 msgid "Heading to titles"
    35 msgstr "Heading za naslove"
     34msgid "Before video title"
     35msgstr ""
    3636
    3737#: admin.php:77
    38 msgid "End heading"
    39 msgstr "Krajnji heading"
    40 
    41 #: admin.php:85
    42 msgid "Width"
    43 msgstr "Širina"
    44 
    45 #: admin.php:93
    46 msgid "Height"
    47 msgstr "Visina"
    48 
    49 #: admin.php:101
    50 msgid "Help"
    51 msgstr "Pomoć"
    52 
    53 #: admin.php:128
     38msgid "After video title"
     39msgstr ""
     40
     41#: admin.php:113
    5442msgid ""
    55 "Number of videos you want to show (Can be overriden with a template tag or "
    56 "shortcode)"
    57 msgstr ""
    58 "Broj videa koje želite da pokažete (Može biti prepsan sa  template tagom "
    59 "skraćenice)"
     43"Number of videos you want shown (can be overridden in the shortcode or "
     44"template tag)"
     45msgstr ""
     46
     47#: admin.php:127
     48msgid ""
     49"Text or HTML to show before the video title. Leave empty to hide the title."
     50msgstr ""
    6051
    6152#: admin.php:141
    62 msgid "<h3>, <p> or something else. Leave empty to hide titles"
    63 msgstr "<h3>, <p> ili nešto drugo. Ostaviti prazno da bi se sakrili naslovi"
    64 
    65 #: admin.php:154
    66 msgid "</h3>, </p>"
    67 msgstr "</h3>, </p>"
    68 
    69 #: admin.php:167
    70 msgid ""
    71 "If left blank, or 0, the width of the videos will default to your media "
    72 "settings."
    73 msgstr ""
    74 "Ako je levo prazno ili 0 širina videa će biti default vašim media postavkama."
    75 
    76 #: admin.php:180
    77 msgid ""
    78 "If left blank, or 0, the height of the videos will be calculated using the "
    79 "width"
    80 msgstr ""
    81 "Ako je levo prazno ili 0 visina videa će biti default vašim media postavkama."
    82 
    83 #: admin.php:208
    84 msgid "Helpful video sizes:"
    85 msgstr "Pomoćne veličine videa:"
    86 
    87 #: functions.php:87
    88 msgid "Error: No video ID found."
    89 msgstr "Greška: ID videa nije pronadjen"
    90 
    91 #: functions.php:240
     53msgid "Text or HTML to show after the video title."
     54msgstr ""
     55
     56#: functions.php:70
     57msgid "No videos found."
     58msgstr ""
     59
     60#: functions.php:268
    9261msgid "Youtube username"
    9362msgstr "Youtube korisničko ime"
     63
     64#~ msgid "Videos to show"
     65#~ msgstr "Videi za prikaz"
     66
     67#~ msgid "Heading to titles"
     68#~ msgstr "Heading za naslove"
     69
     70#~ msgid "End heading"
     71#~ msgstr "Krajnji heading"
     72
     73#~ msgid "Width"
     74#~ msgstr "Širina"
     75
     76#~ msgid "Height"
     77#~ msgstr "Visina"
     78
     79#~ msgid "Help"
     80#~ msgstr "Pomoć"
     81
     82#~ msgid "</h3>, </p>"
     83#~ msgstr "</h3>, </p>"
     84
     85#~ msgid ""
     86#~ "If left blank, or 0, the width of the videos will default to your media "
     87#~ "settings."
     88#~ msgstr ""
     89#~ "Ako je levo prazno ili 0 širina videa će biti default vašim media "
     90#~ "postavkama."
     91
     92#~ msgid ""
     93#~ "If left blank, or 0, the height of the videos will be calculated using "
     94#~ "the width"
     95#~ msgstr ""
     96#~ "Ako je levo prazno ili 0 visina videa će biti default vašim media "
     97#~ "postavkama."
     98
     99#~ msgid "Helpful video sizes:"
     100#~ msgstr "Pomoćne veličine videa:"
    94101
    95102#~ msgid "Use old embed code"
  • youtube-profile-field/trunk/languages/youtube-profile-field.pot

    r901055 r1018008  
    22msgstr ""
    33"Project-Id-Version: Youtube Profile Field\n"
    4 "POT-Creation-Date: 2014-04-11 21:43+0100\n"
     4"POT-Creation-Date: 2014-11-01 21:13+0100\n"
    55"PO-Revision-Date: \n"
    66"Last-Translator: Jesper Johansen\n"
     
    6060msgstr ""
    6161
    62 #: functions.php:252
     62#: functions.php:268
    6363msgid "Youtube username"
    6464msgstr ""
  • youtube-profile-field/trunk/readme.md

    r901055 r1018008  
    44**Tags:** youtube, video, rss, feed, profile, field, username, user, shortcode, oembed 
    55**Requires at least:** 3.6 
    6 **Tested up to:** 3.9 
    7 **Stable tag:** 3.1 
     6**Tested up to:** 4.1-alpha 
     7**Stable tag:** 3.1.1 
    88**License:** GPLv2 or later 
    99
     
    9494## Changelog ##
    9595
     96### 3.1.1 ###
     97
     98* Bugfix: Fix broken video player in Firefox and Safari
     99
     100The native WordPress video player is broken for some Firefox and Safari users.
     101This version uses oEmbed until [#29223](https://core.trac.wordpress.org/ticket/29223) is fixed.
     102
    96103### 3.1 ###
    97104* Update to Youtube API v3 (the v2 API will stop working on April 20, 2015)
  • youtube-profile-field/trunk/readme.txt

    r901055 r1018008  
    44Tags: youtube, video, rss, feed, profile, field, username, user, shortcode, oembed
    55Requires at least: 3.6
    6 Tested up to: 3.9
    7 Stable tag: 3.1
     6Tested up to: 4.1-alpha
     7Stable tag: 3.1.1
    88License: GPLv2 or later
    99
     
    8787
    8888== Changelog ==
     89
     90= 3.1.1 =
     91
     92* Bugfix: Fix broken video player in Firefox and Safari
     93
     94The native WordPress video player is broken for some Firefox and Safari users.
     95This version uses oEmbed until [#29223](https://core.trac.wordpress.org/ticket/29223) is fixed.
    8996
    9097= 3.1 =
Note: See TracChangeset for help on using the changeset viewer.