Changeset 1018008
- Timestamp:
- 11/01/2014 08:28:11 PM (11 years ago)
- Location:
- youtube-profile-field
- Files:
-
- 2 added
- 9 edited
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.png (added)
-
trunk/functions.php (modified) (4 diffs)
-
trunk/index.php (modified) (1 diff)
-
trunk/languages/youtube-profile-field-da_DK.mo (modified) (previous)
-
trunk/languages/youtube-profile-field-da_DK.po (modified) (2 diffs)
-
trunk/languages/youtube-profile-field-sr_RS.mo (modified) (previous)
-
trunk/languages/youtube-profile-field-sr_RS.po (modified) (2 diffs)
-
trunk/languages/youtube-profile-field.pot (modified) (2 diffs)
-
trunk/readme.md (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
youtube-profile-field/trunk/functions.php
r901055 r1018008 80 80 $headingEnd = html_entity_decode( $options['headingEnd'] ); 81 81 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 82 92 ob_start(); 83 93 … … 90 100 $url = "https://www.youtube.com/watch?v={$id}"; 91 101 ?> 92 <div class=" youtube-video">102 <div class="<?php echo esc_attr( join( ' ', $class ) ); ?>"> 93 103 <?php 94 104 // Display the video title. … … 104 114 105 115 <?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 ) ) { 108 124 109 125 echo wp_video_shortcode( array( 110 'src' => $url,111 'width' => $options['width'],126 'src' => $url, 127 'width' => $options['width'], 112 128 'height' => $options['height'] // Not used by the [video] shortcode 113 129 )); … … 234 250 /** 235 251 * Filter the default video aspect video. 236 *252 * 237 253 * @since 3.1.0 238 254 * 239 * @param type$ratio The default 4:3 aspect ratio.255 * @param string|int $ratio The default 4:3 aspect ratio. 240 256 */ 241 257 $aspect_ratio = apply_filters( 'youtube_profile_field_aspect_ratio', 4/3 ); -
youtube-profile-field/trunk/index.php
r901055 r1018008 6 6 * Author: Jesper Johansen 7 7 * Author URI: http://jayj.dk 8 * Version: 3.1 8 * Version: 3.1.1 9 9 * License: GPLv2 or later 10 10 * Text Domain: youtube-profile-field -
youtube-profile-field/trunk/languages/youtube-profile-field-da_DK.po
r901055 r1018008 3 3 "Project-Id-Version: Youtube Profile Field\n" 4 4 "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" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Jesper Johansen\n" … … 62 62 msgstr "Ingen videoer fundet." 63 63 64 #: functions.php:2 5264 #: functions.php:268 65 65 msgid "Youtube username" 66 66 msgstr "Youtube brugernavn" -
youtube-profile-field/trunk/languages/youtube-profile-field-sr_RS.po
r797854 r1018008 3 3 "Project-Id-Version: Youtube Profile Field\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 201 3-11-02 22:02+0100\n"5 "POT-Creation-Date: 2014-11-01 21:13+0100\n" 6 6 "PO-Revision-Date: \n" 7 "Last-Translator: Borisa Djuraskovic\n"7 "Last-Translator: Jesper Johansen\n" 8 8 "Language-Team: Borisa Djuraskovic\n" 9 9 "MIME-Version: 1.0\n" … … 15 15 "X-Poedit-SearchPath-0: ..\n" 16 16 17 #: admin.php: 12 admin.php:3017 #: admin.php:9 admin.php:28 18 18 msgid "Youtube Profile Field Options" 19 19 msgstr "Youtube Profile Field opcije" 20 20 21 #: admin.php:1 321 #: admin.php:10 22 22 msgid "Youtube Profile Field" 23 23 msgstr "Youtube Profile Field" 24 24 25 #: admin.php:5 4 functions.php:26025 #: admin.php:52 26 26 msgid "Settings" 27 27 msgstr "Postavke" 28 28 29 #: admin.php: 6130 msgid " Videos to show"31 msgstr " Videi za prikaz"29 #: admin.php:59 30 msgid "Default video count" 31 msgstr "" 32 32 33 33 #: admin.php:69 34 msgid " Heading to titles"35 msgstr " Heading za naslove"34 msgid "Before video title" 35 msgstr "" 36 36 37 37 #: 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 38 msgid "After video title" 39 msgstr "" 40 41 #: admin.php:113 54 42 msgid "" 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)" 45 msgstr "" 46 47 #: admin.php:127 48 msgid "" 49 "Text or HTML to show before the video title. Leave empty to hide the title." 50 msgstr "" 60 51 61 52 #: 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 53 msgid "Text or HTML to show after the video title." 54 msgstr "" 55 56 #: functions.php:70 57 msgid "No videos found." 58 msgstr "" 59 60 #: functions.php:268 92 61 msgid "Youtube username" 93 62 msgstr "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:" 94 101 95 102 #~ msgid "Use old embed code" -
youtube-profile-field/trunk/languages/youtube-profile-field.pot
r901055 r1018008 2 2 msgstr "" 3 3 "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" 5 5 "PO-Revision-Date: \n" 6 6 "Last-Translator: Jesper Johansen\n" … … 60 60 msgstr "" 61 61 62 #: functions.php:2 5262 #: functions.php:268 63 63 msgid "Youtube username" 64 64 msgstr "" -
youtube-profile-field/trunk/readme.md
r901055 r1018008 4 4 **Tags:** youtube, video, rss, feed, profile, field, username, user, shortcode, oembed 5 5 **Requires at least:** 3.6 6 **Tested up to:** 3.97 **Stable tag:** 3.1 6 **Tested up to:** 4.1-alpha 7 **Stable tag:** 3.1.1 8 8 **License:** GPLv2 or later 9 9 … … 94 94 ## Changelog ## 95 95 96 ### 3.1.1 ### 97 98 * Bugfix: Fix broken video player in Firefox and Safari 99 100 The native WordPress video player is broken for some Firefox and Safari users. 101 This version uses oEmbed until [#29223](https://core.trac.wordpress.org/ticket/29223) is fixed. 102 96 103 ### 3.1 ### 97 104 * Update to Youtube API v3 (the v2 API will stop working on April 20, 2015) -
youtube-profile-field/trunk/readme.txt
r901055 r1018008 4 4 Tags: youtube, video, rss, feed, profile, field, username, user, shortcode, oembed 5 5 Requires at least: 3.6 6 Tested up to: 3.97 Stable tag: 3.1 6 Tested up to: 4.1-alpha 7 Stable tag: 3.1.1 8 8 License: GPLv2 or later 9 9 … … 87 87 88 88 == Changelog == 89 90 = 3.1.1 = 91 92 * Bugfix: Fix broken video player in Firefox and Safari 93 94 The native WordPress video player is broken for some Firefox and Safari users. 95 This version uses oEmbed until [#29223](https://core.trac.wordpress.org/ticket/29223) is fixed. 89 96 90 97 = 3.1 =
Note: See TracChangeset
for help on using the changeset viewer.