Version Description
- Enhance: Merge two improvements for MagnificPopupAU fork from core library (commit 60d5aa4 and 1d0f697)
- Fix: TinyMCE button does not have icon when new post/page is created
- Fix: Strip non-number characters entered in shortcode TinyMCE creator for Fetch, Show, Initial Width and Description length attributes.
- Fix: make sure that Initial Width is always in pixels (if user enter width in percentage, strip percent sign and threat value as pixel value)
Download this release
Release Info
Developer | urkekg |
Plugin | YouTube Channel |
Version | 3.0.8.7 |
Comparing to | |
See all releases |
Code changes from version 3.0.8.6 to 3.0.8.7
- assets/css/admin.css +1 -1
- assets/css/admin.css.map +1 -0
- assets/css/youtube-channel.css +1 -1
- assets/css/youtube-channel.css.map +1 -0
- assets/lib/magnific-popup/jquery.magnific-popup.js +6 -3
- assets/lib/magnific-popup/jquery.magnific-popup.min.js +1 -1
- assets/lib/magnific-popup/magnific-popup.min.css +1 -1
- inc/tinymce/plugin.js +4 -4
- inc/tinymce/plugin.min.js +1 -1
- languages/youtube-channel-sr_RS.mo +0 -0
- languages/youtube-channel-sr_RS.po +40 -40
- languages/youtube-channel-xx_XX.pot +40 -40
- readme.txt +7 -1
- youtube-channel.php +11 -11
assets/css/admin.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
i.mce-i-ytc{font:
|
1 |
+
i.mce-i-ytc{font:normal 20px/1 'dashicons';padding:0;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-left:-2px;padding-right:2px}i.mce-i-ytc:before{content:'\f236'}div[id*='_youtube-channel-'] .widget-content p{width:100%;clear:both}div[id*='_youtube-channel-'] .widget-content p.half{width:49%}div[id*='_youtube-channel-'] .widget-content p.half.left{float:left;clear:left}div[id*='_youtube-channel-'] .widget-content p.half.right{float:right;clear:right}div[id*='_youtube-channel-'] .widget-content p.glue-top{margin-top:0}div[id*='_youtube-channel-'] .widget-content p.hidden{display:none}div[id*='_youtube-channel-'] .widget-content p.visible{display:block}@media screen and (max-width:782px){div[id*='_youtube-channel-'] .widget-content p.half.left,div[id*='_youtube-channel-'] .widget-content p.half.right{width:100%;float:none;clear:none}}.nav-tab.nav-tab-hidden{display:none}.subnav-tab-wrapper{margin-bottom:0}.subnav-tab-wrapper .nav-tab{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.subnav-tab-wrapper .nav-tab:focus{-webkit-box-shadow:initial;box-shadow:initial}.tab-content-ytc{display:none}.tab-content-ytc.tab-content-active{display:block;border-color:#ccc;border-width:0 1px 1px 1px;border-style:solid;padding:10px}/*# sourceMappingURL=admin.css.map */
|
assets/css/admin.css.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"file":"admin.css","sources":["admin.less"],"names":[],"mappings":"AAAA,CAAC,WACA,mBAAoB,WAApB,CACA,SAAA,CACA,kBAAA,CACA,UAAA,CACA,kCAAA,CACA,iCAAA,CACA,gBAAA,CACA,kBAEA,CAVA,UAUC,QACA,QAAS,QAGX,GAAG,yBAA0B,gBAAgB,GAC5C,UAAA,CACA,WAEA,GAJE,yBAA0B,gBAAgB,EAI3C,MACA,UAEA,GAPC,yBAA0B,gBAAgB,EAI3C,KAGC,MACA,UAAA,CACA,WAED,GAXC,yBAA0B,gBAAgB,EAI3C,KAOC,OACA,WAAA,CACA,YAIF,GAjBE,yBAA0B,gBAAgB,EAiB3C,UACA,aAED,GApBE,yBAA0B,gBAAgB,EAoB3C,QACA,aAED,GAvBE,yBAA0B,gBAAgB,EAuB3C,SACA,cAYF,mBATqC,iBACpC,GAAG,yBAA0B,gBAAgB,EAAC,KAAK,MACnD,GAAG,yBAA0B,gBAAgB,EAAC,KAAK,OAClD,UAAA,CACA,UAAA,CACA,YAKF,QAAQ,gBACP,aAED,oBACC,gBAEA,mBAAE,UACD,wBAAA,CACA,qBAAA,CACA,oBAAA,CACA,iBAEA,mBANC,SAMA,OACA,0BAAA,CACA,mBAIH,iBACC,aAEA,gBAAC,oBACA,aAAA,CACA,iBAAA,CACA,0BAAA,CACA,kBAAA,CACA","sourceRoot":""}
|
assets/css/youtube-channel.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.youtube_channel{float:left;clear:both;position:relative;box-sizing:border-box}.youtube_channel .ytc_video_container{float:left;position:relative}.youtube_channel .ytc_video_container iframe{margin-bottom:0}.youtube_channel .ytc_video_container a{border:none}.youtube_channel.responsive{width:100%}.youtube_channel.responsive .ytc_video_container{width:100% !important}.youtube_channel.responsive .ytc_video_container.ar16_9 .fluid-width-video-wrapper{position:relative;padding-bottom:56.25%;height:0}.youtube_channel.responsive .ytc_video_container.ar4_3 .fluid-width-video-wrapper{position:relative;padding-bottom:75%;height:0}.youtube_channel.responsive .ytc_video_container .fluid-width-video-wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%}.youtube_channel .ytc_thumb{display:block;overflow:hidden;position:relative;height:0;width:100%;top:0;right:0;bottom:0;left:0;cursor:pointer}.youtube_channel .ytc_thumb>span{height:0;width:100%;display:block;-webkit-background-size:cover;background-size:cover;background-position:center center;background-repeat:no-repeat}.youtube_channel .ytc_thumb>span:before{content:" ";display:block;width:84px;height:59px;background-image:url(../img/yt_play.png);background-position:top center;background-repeat:no-repeat;background-color:transparent;opacity:.9;position:absolute;top:50%;left:50%;padding:0 !important;margin-left:-42px;margin-top:-30px;cursor:pointer;transform:scale(.85)}.youtube_channel .ytc_thumb:hover>span:before{background-position:bottom center}.youtube_channel .ytc_thumb.ar16_9,.youtube_channel .ytc_thumb.ar16_9>span{padding-bottom:56.26%}.youtube_channel .ytc_thumb.ar4_3,.youtube_channel .ytc_thumb.ar4_3>span{padding-bottom:75%}.youtube_channel .ytc_link{position:relative;clear:both;float:left;width:100%}.youtube_channel .ytc_link>p{padding:0;margin:0}.youtube_channel p.ytc_error{color:#d00}.clearfix:after,.widget_youtube-channel:after,.youtube_channel:after{content:" ";visibility:hidden;display:block;height:0;clear:both}
|
1 |
+
.youtube_channel{float:left;clear:both;position:relative;box-sizing:border-box}.youtube_channel .ytc_video_container{float:left;position:relative}.youtube_channel .ytc_video_container iframe{margin-bottom:0}.youtube_channel .ytc_video_container a{border:none}.youtube_channel.responsive{width:100%}.youtube_channel.responsive .ytc_video_container{width:100% !important}.youtube_channel.responsive .ytc_video_container.ar16_9 .fluid-width-video-wrapper{position:relative;padding-bottom:56.25%;height:0}.youtube_channel.responsive .ytc_video_container.ar4_3 .fluid-width-video-wrapper{position:relative;padding-bottom:75%;height:0}.youtube_channel.responsive .ytc_video_container .fluid-width-video-wrapper iframe{position:absolute;top:0;left:0;width:100%;height:100%}.youtube_channel .ytc_thumb{display:block;overflow:hidden;position:relative;height:0;width:100%;top:0;right:0;bottom:0;left:0;cursor:pointer}.youtube_channel .ytc_thumb>span{height:0;width:100%;display:block;-webkit-background-size:cover;background-size:cover;background-position:center center;background-repeat:no-repeat}.youtube_channel .ytc_thumb>span:before{content:" ";display:block;width:84px;height:59px;background-image:url(../img/yt_play.png);background-position:top center;background-repeat:no-repeat;background-color:transparent;opacity:.9;position:absolute;top:50%;left:50%;padding:0 !important;margin-left:-42px;margin-top:-30px;cursor:pointer;transform:scale(.85)}.youtube_channel .ytc_thumb:hover>span:before{background-position:bottom center}.youtube_channel .ytc_thumb.ar16_9,.youtube_channel .ytc_thumb.ar16_9>span{padding-bottom:56.26%}.youtube_channel .ytc_thumb.ar4_3,.youtube_channel .ytc_thumb.ar4_3>span{padding-bottom:75%}.youtube_channel .ytc_link{position:relative;clear:both;float:left;width:100%}.youtube_channel .ytc_link>p{padding:0;margin:0}.youtube_channel p.ytc_error{color:#d00}.clearfix:after,.widget_youtube-channel:after,.youtube_channel:after{content:" ";visibility:hidden;display:block;height:0;clear:both}/*# sourceMappingURL=youtube-channel.css.map */
|
assets/css/youtube-channel.css.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"file":"youtube-channel.css","sources":["youtube-channel.less"],"names":[],"mappings":"AAAA,iBACC,UAAA,CACA,UAAA,CACA,iBAAA,CACA,sBAEA,gBAAE,sBACD,UAAA,CACA,kBAEA,gBAJC,qBAIC,QACD,gBAGD,gBARC,qBAQC,GACD,YAIF,gBAAC,YACA,WACA,gBAFA,WAEE,sBACD,UAAA,YAGA,gBAND,WAEE,qBAIA,OAAQ,4BACR,iBAAA,CACA,qBAAA,CACA,SAED,gBAXD,WAEE,qBASA,MAAO,4BACP,iBAAA,CACA,kBAAA,CACA,SAED,gBAhBD,WAEE,qBAcC,2BAA2B,QAC5B,iBAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,YAMH,gBAAE,YACD,aAAA,CACA,eAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CACA,KAAA,CACA,OAAA,CACA,QAAA,CACA,MAAA,CACA,eAEA,gBAZC,WAYA,MACA,QAAA,CACA,UAAA,CACA,aAAA,CACA,6BAAA,CACA,qBAAA,CACA,iCAAA,CACA,4BAEA,gBArBA,WAYA,KASC,QACA,QAAS,GAAT,CACA,aAAA,CAGA,UAAA,CACA,WAAA,CACA,wCAAA,CACA,8BAAA,CACA,2BAAA,CACA,4BAAA,CAEA,UAAA,CAEA,iBAAA,CACA,OAAA,CACA,QAAA,CACA,SAAA,YAGA,iBAAA,CACA,gBAAA,CACA,cAAA,CACA,UAAW,WAIb,gBAhDC,WAgDA,MAAM,KAAK,QAEX,kCAID,gBAtDC,WAsDA,QACD,gBAvDC,WAuDA,OAAO,MAEP,sBAED,gBA3DC,WA2DA,OACD,gBA5DC,WA4DA,MAAM,MAEN,mBAKF,gBAAE,WACD,iBAAA,CACA,UAAA,CACA,UAAA,CACA,WAEA,gBANC,UAMA,GACA,SAAA,CACA,SAKF,gBAAE,EAAC,WACF,WAKF,SAAS,OACT,uBAAuB,OACvB,gBAAgB,OACf,QAAS,GAAT,CACA,iBAAA,CACA,aAAA,CACA,QAAA,CACA","sourceRoot":""}
|
assets/lib/magnific-popup/jquery.magnific-popup.js
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
-
/*! Magnific Popup - v1.0.0.
|
2 |
* Mod v0.9.9.1 - 2014-09-14 Aleksandar Urosevic (YT rel)
|
3 |
* Mod v0.9.9.2 - 2014-12-07 Aleksandar Urosevic (YT controls, modestbranding)
|
4 |
* Mod v0.9.9.3 - 2015-06-09 Aleksandar Urosevic (YT noccookie support)
|
5 |
* Mod v1.0.0.1 - 2015-06-09 Aleksandar Urosevic (sync to MagnificPopup v1.0.0; remove all modules except iframe; add YT playsinline parameter support)
|
6 |
* Mod v1.0.0.2 - 2015-10-04 Aleksandar Urosevic (fix broken nocookie functionality on small screens)
|
|
|
|
|
|
|
7 |
* http://dimsemenov.com/plugins/magnific-popup/
|
8 |
* Copyright (c) 2015 Dmitry Semenov; */
|
9 |
;(function (factory) {
|
@@ -647,7 +650,7 @@ MagnificPopupAU.prototype = {
|
|
647 |
var midClick = options.midClick !== undefined ? options.midClick : $.magnificPopupAU.defaults.midClick;
|
648 |
|
649 |
|
650 |
-
if(!midClick && ( e.which === 2 || e.ctrlKey || e.metaKey ) ) {
|
651 |
return;
|
652 |
}
|
653 |
|
@@ -890,7 +893,7 @@ $.magnificPopupAU = {
|
|
890 |
fixedContentPos: 'auto',
|
891 |
fixedBgPos: 'auto',
|
892 |
overflowY: 'auto',
|
893 |
-
closeMarkup: '<button title="%title%" type="button" class="ytc-mfp-close"
|
894 |
tClose: 'Close (Esc)',
|
895 |
tLoading: 'Loading...'
|
896 |
|
1 |
+
/*! Magnific Popup - v1.0.0.3 - 2015-10-04
|
2 |
* Mod v0.9.9.1 - 2014-09-14 Aleksandar Urosevic (YT rel)
|
3 |
* Mod v0.9.9.2 - 2014-12-07 Aleksandar Urosevic (YT controls, modestbranding)
|
4 |
* Mod v0.9.9.3 - 2015-06-09 Aleksandar Urosevic (YT noccookie support)
|
5 |
* Mod v1.0.0.1 - 2015-06-09 Aleksandar Urosevic (sync to MagnificPopup v1.0.0; remove all modules except iframe; add YT playsinline parameter support)
|
6 |
* Mod v1.0.0.2 - 2015-10-04 Aleksandar Urosevic (fix broken nocookie functionality on small screens)
|
7 |
+
* Mod v1.0.0.3 - 2015-10-04 Aleksandar Urosevic
|
8 |
+
* * Update core.js to Support for Shift + Click which opens href into new window https://github.com/dimsemenov/Magnific-Popup/commit/60d5aa40930511ce141659a89e74d8b2ac955458
|
9 |
+
* * Changed × to × https://github.com/dimsemenov/Magnific-Popup/commit/1d0f6973dfc40483e5571ad892949675e6df1ae2
|
10 |
* http://dimsemenov.com/plugins/magnific-popup/
|
11 |
* Copyright (c) 2015 Dmitry Semenov; */
|
12 |
;(function (factory) {
|
650 |
var midClick = options.midClick !== undefined ? options.midClick : $.magnificPopupAU.defaults.midClick;
|
651 |
|
652 |
|
653 |
+
if(!midClick && ( e.which === 2 || e.ctrlKey || e.metaKey || e.altKey || e.shiftKey ) ) {
|
654 |
return;
|
655 |
}
|
656 |
|
893 |
fixedContentPos: 'auto',
|
894 |
fixedBgPos: 'auto',
|
895 |
overflowY: 'auto',
|
896 |
+
closeMarkup: '<button title="%title%" type="button" class="ytc-mfp-close">×</button>',
|
897 |
tClose: 'Close (Esc)',
|
898 |
tLoading: 'Loading...'
|
899 |
|
assets/lib/magnific-popup/jquery.magnific-popup.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,n,i,s,o,a,r="Close",c="BeforeClose",l="AfterClose",p="BeforeAppend",d="MarkupParse",f="Open",u="Change",m="ytc-mfp",h="."+m,g="ytc-mfp-ready",y="ytc-mfp-removing",v="ytc-mfp-prevent-close",b=function(){},C=!!window.jQuery,O=e(window),x=function(e,n){t.ev.on(m+e+h,n)},w=function(t,n,i,s){var o=document.createElement("div");return o.className="ytc-mfp-"+t,i&&(o.innerHTML=i),s?n&&n.appendChild(o):(o=e(o),n&&o.appendTo(n)),o},P=function(n,i){t.ev.triggerHandler(m+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},k=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},I=function(){e.magnificPopupAU.instance||(t=new b,t.init(),e.magnificPopupAU.instance=t)},E=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};b.prototype={constructor:b,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=E(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var s;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var a,r=n.items;for(s=0;s<r.length;s++)if(a=r[s],a.parsed&&(a=a.el[0]),a===n.el[0]){t.index=s;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],o="",t.ev=n.mainEl&&n.mainEl.length?n.mainEl.eq(0):i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopupAU.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=w("bg").on("click"+h,function(){t.close()}),t.wrap=w("wrap").attr("tabindex",-1).on("click"+h,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=w("container",t.wrap)),t.contentContainer=w("content"),t.st.preloader&&(t.preloader=w("preloader",t.container,t.st.tLoading));var c=e.magnificPopupAU.modules;for(s=0;s<c.length;s++){var l=c[s];l=l.charAt(0).toUpperCase()+l.slice(1),t["init"+l].call(t)}P("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(x(d,function(e,t,n,i){n.close_replaceWith=k(i.type)}),o+=" ytc-mfp-close-btn-in"):t.wrap.append(k())),t.st.alignTop&&(o+=" ytc-mfp-align-top"),t.wrap.css(t.fixedContentPos?{overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}:{top:O.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+h,function(e){27===e.keyCode&&t.close()}),O.on("resize"+h,function(){t.updateSize()}),t.st.closeOnContentClick||(o+=" ytc-mfp-auto-cursor"),o&&t.wrap.addClass(o);var p=t.wH=O.height(),u={};if(t.fixedContentPos&&t._hasScrollBar(p)){var m=t._getScrollbarSize();m&&(u.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):u.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" ytc-mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),P("BuildControls"),e("html").css(u),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(g),t._setFocus()):t.bgOverlay.addClass(g),i.on("focusin"+h,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(p),P(f),n},close:function(){t.isOpen&&(P(c),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(y),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){P(r);var n=y+" "+g+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var s={marginRight:""};t.isIE7?e("body, html").css("overflow",""):s.overflow="",e("html").css(s)}i.off("keyup"+h+" focusin"+h),t.ev.off(h),t.wrap.attr("class","ytc-mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","ytc-mfp-bg"),t.container.attr("class","ytc-mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,P(l)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||O.height();t.fixedContentPos||t.wrap.css("height",t.wH),P("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(P("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var o=t.st[i]?t.st[i].markup:!1;P("FirstMarkupParse",o),t.currTemplate[i]=o?e(o):!0}s&&s!==n.type&&t.container.removeClass("ytc-mfp-"+s+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,P(u,n),s=n.type,t.container.prepend(t.contentContainer),P("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".ytc-mfp-close").length||t.content.append(k()):t.content=e:t.content="",P(p),t.container.addClass("ytc-mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,s=t.items[n];if(s.tagName?s={el:e(s)}:(i=s.type,s={data:s,src:s.src}),s.el){for(var o=t.types,a=0;a<o.length;a++)if(s.el.hasClass("ytc-mfp-"+o[a])){i=o[a];break}s.src=s.el.attr("data-ytc-mfp-src"),s.src||(s.src=s.el.attr("href"))}return s.type=i||t.st.type||"inline",s.index=n,s.parsed=!0,t.items[n]=s,P("ElementParse",s),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var s="click.magnificPopupAU";n.mainEl=e,n.items?(n.isObj=!0,e.off(s).on(s,i)):(n.isObj=!1,n.delegate?e.off(s).on(s,n.delegate,i):(n.items=e,e.off(s).on(s,i)))},_openClick:function(n,i,s){var o=void 0!==s.midClick?s.midClick:e.magnificPopupAU.defaults.midClick;if(o||2!==n.which&&!n.ctrlKey&&!n.metaKey){var a=void 0!==s.disableOn?s.disableOn:e.magnificPopupAU.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(O.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),s.el=e(n.mfpEl),s.delegate&&(s.items=i.find(s.delegate)),t.open(s)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("ytc-mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var s={status:e,text:i};P("UpdateStatus",s),e=s.status,i=s.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("ytc-mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(v)){var i=t.st.closeOnContentClick,s=t.st.closeOnBgClick;if(i&&s)return!0;if(!t.content||e(n).hasClass("ytc-mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(s&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||O.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){return n.target===t.wrap[0]||e.contains(t.wrap[0],n.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,n,i){var s;i.data&&(n=e.extend(i.data,n)),P(d,[t,n,i]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0;if(s=e.split("_"),s.length>1){var i=t.find(h+"-"+s[0]);if(i.length>0){var o=s[1];"replaceWith"===o?i[0]!==n[0]&&i.replaceWith(n):"img"===o?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(s[1],n)}}else t.find(h+"-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopupAU={instance:null,proto:b.prototype,modules:[],open:function(t,n){return I(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopupAU.instance&&e.magnificPopupAU.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopupAU.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="ytc-mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopupAU=function(n){I();var i=e(this);if("string"==typeof n)if("open"===n){var s,o=C?i.data("magnificPopupAU"):i[0].magnificPopupAU,a=parseInt(arguments[1],10)||0;o.items?s=o.items[a]:(s=i,o.delegate&&(s=s.find(o.delegate)),s=s.eq(a)),t._openClick({mfpEl:s},i,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),C?i.data("magnificPopupAU",n):i[0].magnificPopupAU=n,t.addGroup(i,n);return i};var T="iframe",A="//about:blank",_=function(e){if(t.currTemplate[T]){var n=t.currTemplate[T].find("iframe");n.length&&(e||(n[0].src=A),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopupAU.registerModule(T,{options:{markup:'<div class="ytc-mfp-iframe-scaler"><div class="ytc-mfp-close"></div><iframe class="ytc-mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",rel:"rel=",modestbranding:"modestbranding=",theme:"theme=",controls:"controls=",playsinline:"playsinline=",enhanceprivacy:"enhanceprivacy=",src:"//www.youtube.com/embed/%id%?autoplay=1&rel=%rel%&modestbranding=%modestbranding%&controls=%controls%&playsinline=%playsinline%"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(T),x("BeforeChange",function(e,t,n){t!==n&&(t===T?_():n===T&&_(!0))}),x(r+"."+T,function(){_()})},getIframe:function(n,i){var s=n.src,o=n.src,a=n.src,r=n.src,c=n.src,l=t.st.iframe;e.each(l.patterns,function(){return s.indexOf(this.index)>-1?(this.enhanceprivacy&&"string"==typeof this.enhanceprivacy&&s.indexOf(this.enhanceprivacy)>0&&(enhancePrivacy=s.substr(s.lastIndexOf(this.enhanceprivacy)+this.enhanceprivacy.length,s.length),enhancePrivacy.indexOf("&")>0&&(enhancePrivacy=enhancePrivacy.substr(0,enhancePrivacy.indexOf("&"))),1==enhancePrivacy&&this.src.indexOf("youtube.com")>0&&(this.src=this.src.replace("youtube.com","youtube-nocookie.com"))),this.id&&("string"==typeof this.id?(s=s.substr(s.lastIndexOf(this.id)+this.id.length,s.length),s.indexOf("&")>0&&(s=s.substr(0,s.indexOf("&")))):s=this.id.call(this,s)),this.rel&&("string"==typeof this.rel&&o.indexOf(this.rel)>0?(o=o.substr(o.lastIndexOf(this.rel)+this.rel.length,o.length),o.indexOf("&")>0&&(o=o.substr(0,o.indexOf("&")))):o="1"),this.modestbranding&&("string"==typeof this.modestbranding&&a.indexOf(this.modestbranding)>0?(a=a.substr(a.lastIndexOf(this.modestbranding)+this.modestbranding.length,a.length),a.indexOf("&")>0&&(a=a.substr(0,a.indexOf("&")))):a="0"),this.controls&&("string"==typeof this.controls&&r.indexOf(this.controls)>0?(r=r.substr(r.lastIndexOf(this.controls)+this.controls.length,r.length),r.indexOf("&")>0&&(r=r.substr(0,r.indexOf("&")))):r="1"),this.playsinline&&("string"==typeof this.playsinline&&c.indexOf(this.playsinline)>0?(c=c.substr(c.lastIndexOf(this.playsinline)+this.playsinline.length,c.length),c.indexOf("&")>0&&(c=c.substr(0,c.indexOf("&")))):c="0"),s=this.src.replace("%id%",s).replace("%rel%",o).replace("%modestbranding%",a).replace("%controls%",r).replace("%playsinline%",c),!1):void 0});var p={};return l.srcAction&&(p[l.srcAction]=s),t._parseMarkup(i,p,n),t.updateStatus("ready"),i}}}),I()});
|
1 |
+
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,n,i,s,o,a,r="Close",c="BeforeClose",l="AfterClose",p="BeforeAppend",d="MarkupParse",f="Open",u="Change",m="ytc-mfp",h="."+m,y="ytc-mfp-ready",g="ytc-mfp-removing",v="ytc-mfp-prevent-close",b=function(){},C=!!window.jQuery,O=e(window),x=function(e,n){t.ev.on(m+e+h,n)},w=function(t,n,i,s){var o=document.createElement("div");return o.className="ytc-mfp-"+t,i&&(o.innerHTML=i),s?n&&n.appendChild(o):(o=e(o),n&&o.appendTo(n)),o},P=function(n,i){t.ev.triggerHandler(m+n,i),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(i)?i:[i]))},k=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},I=function(){e.magnificPopupAU.instance||(t=new b,t.init(),e.magnificPopupAU.instance=t)},E=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};b.prototype={constructor:b,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=E(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=e(document),t.popupsCache={}},open:function(n){var s;if(n.isObj===!1){t.items=n.items.toArray(),t.index=0;var a,r=n.items;for(s=0;s<r.length;s++)if(a=r[s],a.parsed&&(a=a.el[0]),a===n.el[0]){t.index=s;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],o="",t.ev=n.mainEl&&n.mainEl.length?n.mainEl.eq(0):i,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopupAU.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=w("bg").on("click"+h,function(){t.close()}),t.wrap=w("wrap").attr("tabindex",-1).on("click"+h,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=w("container",t.wrap)),t.contentContainer=w("content"),t.st.preloader&&(t.preloader=w("preloader",t.container,t.st.tLoading));var c=e.magnificPopupAU.modules;for(s=0;s<c.length;s++){var l=c[s];l=l.charAt(0).toUpperCase()+l.slice(1),t["init"+l].call(t)}P("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(x(d,function(e,t,n,i){n.close_replaceWith=k(i.type)}),o+=" ytc-mfp-close-btn-in"):t.wrap.append(k())),t.st.alignTop&&(o+=" ytc-mfp-align-top"),t.wrap.css(t.fixedContentPos?{overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}:{top:O.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:i.height(),position:"absolute"}),t.st.enableEscapeKey&&i.on("keyup"+h,function(e){27===e.keyCode&&t.close()}),O.on("resize"+h,function(){t.updateSize()}),t.st.closeOnContentClick||(o+=" ytc-mfp-auto-cursor"),o&&t.wrap.addClass(o);var p=t.wH=O.height(),u={};if(t.fixedContentPos&&t._hasScrollBar(p)){var m=t._getScrollbarSize();m&&(u.marginRight=m)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):u.overflow="hidden");var g=t.st.mainClass;return t.isIE7&&(g+=" ytc-mfp-ie7"),g&&t._addClassToMFP(g),t.updateItemHTML(),P("BuildControls"),e("html").css(u),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(y),t._setFocus()):t.bgOverlay.addClass(y),i.on("focusin"+h,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(p),P(f),n},close:function(){t.isOpen&&(P(c),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(g),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){P(r);var n=g+" "+y+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var s={marginRight:""};t.isIE7?e("body, html").css("overflow",""):s.overflow="",e("html").css(s)}i.off("keyup"+h+" focusin"+h),t.ev.off(h),t.wrap.attr("class","ytc-mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","ytc-mfp-bg"),t.container.attr("class","ytc-mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,P(l)},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,i=window.innerHeight*n;t.wrap.css("height",i),t.wH=i}else t.wH=e||O.height();t.fixedContentPos||t.wrap.css("height",t.wH),P("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var i=n.type;if(P("BeforeChange",[t.currItem?t.currItem.type:"",i]),t.currItem=n,!t.currTemplate[i]){var o=t.st[i]?t.st[i].markup:!1;P("FirstMarkupParse",o),t.currTemplate[i]=o?e(o):!0}s&&s!==n.type&&t.container.removeClass("ytc-mfp-"+s+"-holder");var a=t["get"+i.charAt(0).toUpperCase()+i.slice(1)](n,t.currTemplate[i]);t.appendContent(a,i),n.preloaded=!0,P(u,n),s=n.type,t.container.prepend(t.contentContainer),P("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[n]===!0?t.content.find(".ytc-mfp-close").length||t.content.append(k()):t.content=e:t.content="",P(p),t.container.addClass("ytc-mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var i,s=t.items[n];if(s.tagName?s={el:e(s)}:(i=s.type,s={data:s,src:s.src}),s.el){for(var o=t.types,a=0;a<o.length;a++)if(s.el.hasClass("ytc-mfp-"+o[a])){i=o[a];break}s.src=s.el.attr("data-ytc-mfp-src"),s.src||(s.src=s.el.attr("href"))}return s.type=i||t.st.type||"inline",s.index=n,s.parsed=!0,t.items[n]=s,P("ElementParse",s),t.items[n]},addGroup:function(e,n){var i=function(i){i.mfpEl=this,t._openClick(i,e,n)};n||(n={});var s="click.magnificPopupAU";n.mainEl=e,n.items?(n.isObj=!0,e.off(s).on(s,i)):(n.isObj=!1,n.delegate?e.off(s).on(s,n.delegate,i):(n.items=e,e.off(s).on(s,i)))},_openClick:function(n,i,s){var o=void 0!==s.midClick?s.midClick:e.magnificPopupAU.defaults.midClick;if(o||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var a=void 0!==s.disableOn?s.disableOn:e.magnificPopupAU.defaults.disableOn;if(a)if(e.isFunction(a)){if(!a.call(t))return!0}else if(O.width()<a)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),s.el=e(n.mfpEl),s.delegate&&(s.items=i.find(s.delegate)),t.open(s)}},updateStatus:function(e,i){if(t.preloader){n!==e&&t.container.removeClass("ytc-mfp-s-"+n),i||"loading"!==e||(i=t.st.tLoading);var s={status:e,text:i};P("UpdateStatus",s),e=s.status,i=s.text,t.preloader.html(i),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("ytc-mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(v)){var i=t.st.closeOnContentClick,s=t.st.closeOnBgClick;if(i&&s)return!0;if(!t.content||e(n).hasClass("ytc-mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(i)return!0}else if(s&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?i.height():document.body.scrollHeight)>(e||O.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){return n.target===t.wrap[0]||e.contains(t.wrap[0],n.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,n,i){var s;i.data&&(n=e.extend(i.data,n)),P(d,[t,n,i]),e.each(n,function(e,n){if(void 0===n||n===!1)return!0;if(s=e.split("_"),s.length>1){var i=t.find(h+"-"+s[0]);if(i.length>0){var o=s[1];"replaceWith"===o?i[0]!==n[0]&&i.replaceWith(n):"img"===o?i.is("img")?i.attr("src",n):i.replaceWith('<img src="'+n+'" class="'+i.attr("class")+'" />'):i.attr(s[1],n)}}else t.find(h+"-"+e).html(n)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopupAU={instance:null,proto:b.prototype,modules:[],open:function(t,n){return I(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopupAU.instance&&e.magnificPopupAU.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopupAU.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="ytc-mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopupAU=function(n){I();var i=e(this);if("string"==typeof n)if("open"===n){var s,o=C?i.data("magnificPopupAU"):i[0].magnificPopupAU,a=parseInt(arguments[1],10)||0;o.items?s=o.items[a]:(s=i,o.delegate&&(s=s.find(o.delegate)),s=s.eq(a)),t._openClick({mfpEl:s},i,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),C?i.data("magnificPopupAU",n):i[0].magnificPopupAU=n,t.addGroup(i,n);return i};var T="iframe",A="//about:blank",_=function(e){if(t.currTemplate[T]){var n=t.currTemplate[T].find("iframe");n.length&&(e||(n[0].src=A),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopupAU.registerModule(T,{options:{markup:'<div class="ytc-mfp-iframe-scaler"><div class="ytc-mfp-close"></div><iframe class="ytc-mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",rel:"rel=",modestbranding:"modestbranding=",theme:"theme=",controls:"controls=",playsinline:"playsinline=",enhanceprivacy:"enhanceprivacy=",src:"//www.youtube.com/embed/%id%?autoplay=1&rel=%rel%&modestbranding=%modestbranding%&controls=%controls%&playsinline=%playsinline%"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(T),x("BeforeChange",function(e,t,n){t!==n&&(t===T?_():n===T&&_(!0))}),x(r+"."+T,function(){_()})},getIframe:function(n,i){var s=n.src,o=n.src,a=n.src,r=n.src,c=n.src,l=t.st.iframe;e.each(l.patterns,function(){return s.indexOf(this.index)>-1?(this.enhanceprivacy&&"string"==typeof this.enhanceprivacy&&s.indexOf(this.enhanceprivacy)>0&&(enhancePrivacy=s.substr(s.lastIndexOf(this.enhanceprivacy)+this.enhanceprivacy.length,s.length),enhancePrivacy.indexOf("&")>0&&(enhancePrivacy=enhancePrivacy.substr(0,enhancePrivacy.indexOf("&"))),1==enhancePrivacy&&this.src.indexOf("youtube.com")>0&&(this.src=this.src.replace("youtube.com","youtube-nocookie.com"))),this.id&&("string"==typeof this.id?(s=s.substr(s.lastIndexOf(this.id)+this.id.length,s.length),s.indexOf("&")>0&&(s=s.substr(0,s.indexOf("&")))):s=this.id.call(this,s)),this.rel&&("string"==typeof this.rel&&o.indexOf(this.rel)>0?(o=o.substr(o.lastIndexOf(this.rel)+this.rel.length,o.length),o.indexOf("&")>0&&(o=o.substr(0,o.indexOf("&")))):o="1"),this.modestbranding&&("string"==typeof this.modestbranding&&a.indexOf(this.modestbranding)>0?(a=a.substr(a.lastIndexOf(this.modestbranding)+this.modestbranding.length,a.length),a.indexOf("&")>0&&(a=a.substr(0,a.indexOf("&")))):a="0"),this.controls&&("string"==typeof this.controls&&r.indexOf(this.controls)>0?(r=r.substr(r.lastIndexOf(this.controls)+this.controls.length,r.length),r.indexOf("&")>0&&(r=r.substr(0,r.indexOf("&")))):r="1"),this.playsinline&&("string"==typeof this.playsinline&&c.indexOf(this.playsinline)>0?(c=c.substr(c.lastIndexOf(this.playsinline)+this.playsinline.length,c.length),c.indexOf("&")>0&&(c=c.substr(0,c.indexOf("&")))):c="0"),s=this.src.replace("%id%",s).replace("%rel%",o).replace("%modestbranding%",a).replace("%controls%",r).replace("%playsinline%",c),!1):void 0});var p={};return l.srcAction&&(p[l.srcAction]=s),t._parseMarkup(i,p,n),t.updateStatus("ready"),i}}}),I()});
|
assets/lib/magnific-popup/magnific-popup.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ytc-mfp-bg,.ytc-mfp-container,.ytc-mfp-wrap{
|
1 |
+
.ytc-mfp-bg,.ytc-mfp-wrap{position:fixed;left:0;top:0}.ytc-mfp-bg,.ytc-mfp-container,.ytc-mfp-wrap{height:100%;width:100%}.ytc-mfp-bg{z-index:10042;overflow:hidden;background:#0b0b0b;opacity:.8;filter:alpha(opacity=80)}.ytc-mfp-wrap{z-index:10043;outline:0!important;-webkit-backface-visibility:hidden}.ytc-mfp-container{text-align:center;position:absolute;left:0;top:0;padding:0 8px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ytc-mfp-container:before{content:'';display:inline-block;height:100%;vertical-align:middle}.ytc-mfp-align-top .ytc-mfp-container:before{display:none}.ytc-mfp-content{position:relative;display:inline-block;vertical-align:middle;margin:0 auto;text-align:left;z-index:10045}.ytc-mfp-close,.ytc-mfp-preloader{text-align:center;position:absolute}.ytc-mfp-ajax-holder .ytc-mfp-content,.ytc-mfp-inline-holder .ytc-mfp-content{width:100%;cursor:auto}.ytc-mfp-arrow,.ytc-mfp-close,.ytc-mfp-counter,.ytc-mfp-preloader{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ytc-mfp-hide{display:none!important}.ytc-mfp-preloader{color:#ccc;top:50%;width:auto;margin-top:-.8em;left:8px;right:8px;z-index:10044}.ytc-mfp-preloader a{color:#ccc}.ytc-mfp-preloader a:hover{color:#fff}.ytc-mfp-s-error .ytc-mfp-content,.ytc-mfp-s-ready .ytc-mfp-preloader{display:none}button.ytc-mfp-arrow,button.ytc-mfp-close{overflow:visible;cursor:pointer;background:0 0;border:0;-webkit-appearance:none;display:block;outline:0;padding:0;z-index:10046;-webkit-box-shadow:none;box-shadow:none}button::-moz-focus-inner{padding:0;border:0}.ytc-mfp-close{width:44px;height:44px;line-height:44px;right:0;top:0;text-decoration:none;opacity:.65;filter:alpha(opacity=65);padding:0 0 18px 10px;color:#fff;font-style:normal;font-size:28px;font-family:Arial,Baskerville,monospace}.ytc-mfp-close:focus,.ytc-mfp-close:hover{opacity:1;filter:alpha(opacity=100);background:0 0}.ytc-mfp-close:active{top:1px}.ytc-mfp-close-btn-in .ytc-mfp-close{color:#333}.ytc-mfp-iframe-holder .ytc-mfp-close,.ytc-mfp-image-holder .ytc-mfp-close{color:#fff;right:-6px;text-align:right;padding-right:6px;width:100%}.ytc-mfp-iframe-holder{padding-top:40px;padding-bottom:40px}.ytc-mfp-iframe-holder .ytc-mfp-content{line-height:0;width:100%;max-width:900px}.ytc-mfp-iframe-holder .ytc-mfp-close{top:-40px}.ytc-mfp-iframe-scaler{width:100%;height:0;overflow:hidden;padding-top:56.25%}.ytc-mfp-iframe-scaler iframe{position:absolute;display:block;top:0;left:0;width:100%;height:100%;box-shadow:0 0 8px rgba(0,0,0,.6);background:#000}@media all and (max-width:900px){.ytc-mfp-container{padding-left:6px;padding-right:6px}}.ytc-mfp-ie7 .ytc-mfp-container{padding:0}.ytc-mfp-ie7 .ytc-mfp-content{padding-top:44px}.ytc-mfp-ie7 .ytc-mfp-close{top:0;right:0;padding-top:0}
|
inc/tinymce/plugin.js
CHANGED
@@ -330,13 +330,13 @@
|
|
330 |
if ( e.data.cache ) shortcode += ' cache=' + e.data.cache +'';
|
331 |
if ( e.data.privacy ) shortcode += ' privacy=1';
|
332 |
if ( e.data.random ) shortcode += ' random=1';
|
333 |
-
if ( e.data.fetch ) shortcode += ' fetch=' + e.data.fetch +'';
|
334 |
-
if ( e.data.num ) shortcode += ' num=' + e.data.num +'';
|
335 |
|
336 |
// Video Settings
|
337 |
if ( e.data.ratio ) shortcode += ' ratio=' + e.data.ratio + '';
|
338 |
if ( e.data.responsive ) shortcode += ' responsive=1';
|
339 |
-
if ( e.data.width ) shortcode += ' width=' + e.data.width + '';
|
340 |
if ( e.data.display ) shortcode += ' display=' + e.data.display + '';
|
341 |
// if ( e.data.cols ) shortcode += ' cols=' + e.data.cols + '';
|
342 |
if ( e.data.no_thumb_title ) shortcode += ' no_thumb_title=1';
|
@@ -350,7 +350,7 @@
|
|
350 |
// Content Layout
|
351 |
if ( e.data.showtitle ) shortcode += ' showtitle=' + e.data.showtitle + '';
|
352 |
if ( e.data.showdesc ) shortcode += ' showdesc=1';
|
353 |
-
if ( e.data.desclen ) shortcode += ' desclen=' + e.data.desclen + '';
|
354 |
if ( e.data.noanno ) shortcode += ' noanno=1';
|
355 |
if ( e.data.noinfo ) shortcode += ' noinfo=1';
|
356 |
|
330 |
if ( e.data.cache ) shortcode += ' cache=' + e.data.cache +'';
|
331 |
if ( e.data.privacy ) shortcode += ' privacy=1';
|
332 |
if ( e.data.random ) shortcode += ' random=1';
|
333 |
+
if ( e.data.fetch ) shortcode += ' fetch=' + e.data.fetch.replace(/[^0-9.]/g, '') +'';
|
334 |
+
if ( e.data.num ) shortcode += ' num=' + e.data.num.replace(/[^0-9.]/g, '') +'';
|
335 |
|
336 |
// Video Settings
|
337 |
if ( e.data.ratio ) shortcode += ' ratio=' + e.data.ratio + '';
|
338 |
if ( e.data.responsive ) shortcode += ' responsive=1';
|
339 |
+
if ( e.data.width ) shortcode += ' width=' + e.data.width.replace(/[^0-9.]/g, '') + '';
|
340 |
if ( e.data.display ) shortcode += ' display=' + e.data.display + '';
|
341 |
// if ( e.data.cols ) shortcode += ' cols=' + e.data.cols + '';
|
342 |
if ( e.data.no_thumb_title ) shortcode += ' no_thumb_title=1';
|
350 |
// Content Layout
|
351 |
if ( e.data.showtitle ) shortcode += ' showtitle=' + e.data.showtitle + '';
|
352 |
if ( e.data.showdesc ) shortcode += ' showdesc=1';
|
353 |
+
if ( e.data.desclen ) shortcode += ' desclen=' + e.data.desclen.replace(/[^0-9.]/g, '') + '';
|
354 |
if ( e.data.noanno ) shortcode += ' noanno=1';
|
355 |
if ( e.data.noinfo ) shortcode += ' noinfo=1';
|
356 |
|
inc/tinymce/plugin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){tinymce.PluginManager.add("youtube_channel",function(e){e.addButton("youtube_channel_shortcode",{tooltip:"YouTube Channel",icon:"ytc",onclick:function(){e.windowManager.open({title:"YouTube Channel",bodyType:"tabpanel",buttons:[{text:"Insert Shortcode",onclick:"submit",classes:"widget btn primary",minWidth:130},{text:"Cancel",onclick:"close"}],body:[{title:"General Settings",type:"form",items:[{type:"textbox",name:"class",label:"Custom CSS Class",value:"",tooltip:"Enter custom class for YTC block, if you wish to target block styling"},{type:"textbox",name:"vanity",label:"Vanity/Custom ID",value:""},{type:"textbox",name:"channel",label:"YouTube Channel ID",value:""},{type:"textbox",name:"legacy",label:"Legacy Username",value:""},{type:"textbox",name:"playlist",label:"Playlist ID",value:""},{type:"listbox",name:"resource",label:"Resource to use",tooltip:"",values:[{text:"Channel (User Uploads)",value:"0",selected:!0},{text:"Favourited videos",value:"1"},{text:"Liked videos",value:"3"},{text:"Playlist",value:"2"}]},{type:"listbox",name:"cache",label:"Cache feed",tooltip:"",values:[{text:"Do not cache",value:"0"},{text:"1 minute",value:"60"},{text:"5 minutes",value:"300",selected:!0},{text:"15 minutes",value:"900"},{text:"30 minutes",value:"1800"},{text:"1 hour",value:"3600"},{text:"2 hours",value:"7200"},{text:"5 hours",value:"18000"},{text:"10 hours",value:"36000"},{text:"12 hours",value:"43200"},{text:"18 hours",value:"64800"},{text:"1 day",value:"86400"},{text:"2 days",value:"172800"},{text:"3 days",value:"259200"},{text:"4 days",value:"345600"},{text:"5 days",value:"432000"},{text:"6 days",value:"518400"},{text:"1 week",value:"604800"},{text:"2 weeks",value:"1209600"},{text:"3 weeks",value:"1814400"},{text:"1 month",value:"2419200"}]},{type:"checkbox",name:"privacy",label:"Use Enhanced Privacy",tooltip:"Enable this option to protect your visitors privacy",checked:!1},{type:"checkbox",name:"random",label:"Random video",tooltip:'Show random video from resource (Have no effect if "What to show?" has been set to "Embedded Playlist")',checked:!1},{type:"textbox",name:"fetch",label:"Fetch",value:"10",tooltip:"Number of videos that will be used for random pick (min 2, max 50, default 25)"},{type:"textbox",name:"num",label:"Show",value:"1",tooltip:"Number of videos to display"}]},{title:"Video Settings",type:"form",items:[{type:"listbox",name:"ratio",label:"Aspect Ratio",values:[{text:"Widescreen (16:9)",value:"3",selected:!0},{text:"Standard TV (4:3)",value:"1"}]},{type:"checkbox",name:"responsive",label:"Responsive video",tooltip:"Make video responsive (distribute one full width video per row)",checked:!0},{type:"textbox",name:"width",label:"Initial width (px)",value:"306",tooltip:"Set initial width for video or thumbnail (in pixels)"},{type:"listbox",name:"display",label:"What to show?",tooltip:"",values:[{text:"Thumbnail",value:"thumbnail"},{text:"HTML5 (iframe)",value:"iframe"},{text:"HTML5 (iframe) Asynchronous",value:"iframe2"},{text:"Embedded Playlist",value:"playlist"}]},{type:"checkbox",name:"no_thumb_title",label:"Hide thumbnail tooltip",checked:!1},{type:"checkbox",name:"themelight",label:"Use light theme",tooltip:"Default theme is dark",checked:!1},{type:"checkbox",name:"controls",label:"Hide player controls",checked:!1},{type:"checkbox",name:"autoplay",label:"Autoplay video/playlist",checked:!1},{type:"checkbox",name:"mute",label:"Mute video on autoplay",checked:!1},{type:"checkbox",name:"norel",label:"Hide related videos",checked:!0},{type:"checkbox",name:"nobrand",label:"Hide YT Logo",tooltip:"Does not work for all videos",checked:!0}]},{title:"Content Layout",type:"form",items:[{type:"listbox",name:"showtitle",label:"Show video title",tooltip:"",values:[{text:"Hide title",value:"none",selected:!0},{text:"Above video/thumbnail",value:"above"},{text:"Below video/thumbnail",value:"below"}]},{type:"checkbox",name:"showdesc",label:"Show video description",checked:!1},{type:"textbox",name:"desclen",label:"Description length",value:"0",tooltip:"Set number of characters to cut down video description to (0 means full length)"},{type:"checkbox",name:"noanno",label:"Hide annotations",checked:!0},{type:"checkbox",name:"noinfo",label:"Hide video info",checked:!0}]},{title:"Link to Channel",type:"form",items:[{type:"listbox",name:"link_to",label:"Link to",values:[{text:"Hide link",value:"none",selected:!0},{text:"Vanity/Custom URL",value:"vanity"},{text:"Channel page URL",value:"channel"},{text:"Legacy username URL",value:"legacy"}]},{type:"textbox",name:"goto_txt",label:"Title for link",value:"Visit our YouTube channel"}]}],onsubmit:function(t){var a="[youtube_channel";t.data.vanity&&(a+=" vanity="+t.data.vanity),t.data.channel&&(a+=" channel="+t.data.channel),t.data.legacy&&(a+=" legacy="+t.data.legacy),t.data.playlist&&(a+=" playlist="+t.data.playlist),t.data.resource&&(a+=" resource="+t.data.resource),t.data.cache&&(a+=" cache="+t.data.cache),t.data.privacy&&(a+=" privacy=1"),t.data.random&&(a+=" random=1"),t.data.fetch&&(a+=" fetch="+t.data.fetch),t.data.num&&(a+=" num="+t.data.num),t.data.ratio&&(a+=" ratio="+t.data.ratio),t.data.responsive&&(a+=" responsive=1"),t.data.width&&(a+=" width="+t.data.width),t.data.display&&(a+=" display="+t.data.display),t.data.no_thumb_title&&(a+=" no_thumb_title=1"),t.data.themelight&&(a+=" themelight=1"),t.data.controls&&(a+=" controls=1"),t.data.autoplay&&(a+=" autoplay=1"),t.data.mute&&(a+=" mute=1"),t.data.norel&&(a+=" norel=1"),t.data.nobrand&&(a+=" nobrand=1"),t.data.showtitle&&(a+=" showtitle="+t.data.showtitle),t.data.showdesc&&(a+=" showdesc=1"),t.data.desclen&&(a+=" desclen="+t.data.desclen),t.data.noanno&&(a+=" noanno=1"),t.data.noinfo&&(a+=" noinfo=1"),t.data.link_to&&(a+=" link_to="+t.data.link_to),t.data.goto_txt&&(a+=' goto_txt="'+t.data.goto_txt+'"'),t.data
|
1 |
+
!function(){tinymce.PluginManager.add("youtube_channel",function(e,t){e.addButton("youtube_channel_shortcode",{tooltip:"YouTube Channel",icon:"ytc",onclick:function(){e.windowManager.open({title:"YouTube Channel",bodyType:"tabpanel",buttons:[{text:"Insert Shortcode",onclick:"submit",classes:"widget btn primary",minWidth:130},{text:"Cancel",onclick:"close"}],body:[{title:"General Settings",type:"form",items:[{type:"textbox",name:"class",label:"Custom CSS Class",value:"",tooltip:"Enter custom class for YTC block, if you wish to target block styling"},{type:"textbox",name:"vanity",label:"Vanity/Custom ID",value:""},{type:"textbox",name:"channel",label:"YouTube Channel ID",value:""},{type:"textbox",name:"legacy",label:"Legacy Username",value:""},{type:"textbox",name:"playlist",label:"Playlist ID",value:""},{type:"listbox",name:"resource",label:"Resource to use",tooltip:"",values:[{text:"Channel (User Uploads)",value:"0",selected:!0},{text:"Favourited videos",value:"1"},{text:"Liked videos",value:"3"},{text:"Playlist",value:"2"}]},{type:"listbox",name:"cache",label:"Cache feed",tooltip:"",values:[{text:"Do not cache",value:"0"},{text:"1 minute",value:"60"},{text:"5 minutes",value:"300",selected:!0},{text:"15 minutes",value:"900"},{text:"30 minutes",value:"1800"},{text:"1 hour",value:"3600"},{text:"2 hours",value:"7200"},{text:"5 hours",value:"18000"},{text:"10 hours",value:"36000"},{text:"12 hours",value:"43200"},{text:"18 hours",value:"64800"},{text:"1 day",value:"86400"},{text:"2 days",value:"172800"},{text:"3 days",value:"259200"},{text:"4 days",value:"345600"},{text:"5 days",value:"432000"},{text:"6 days",value:"518400"},{text:"1 week",value:"604800"},{text:"2 weeks",value:"1209600"},{text:"3 weeks",value:"1814400"},{text:"1 month",value:"2419200"}]},{type:"checkbox",name:"privacy",label:"Use Enhanced Privacy",tooltip:"Enable this option to protect your visitors privacy",checked:!1},{type:"checkbox",name:"random",label:"Random video",tooltip:'Show random video from resource (Have no effect if "What to show?" has been set to "Embedded Playlist")',checked:!1},{type:"textbox",name:"fetch",label:"Fetch",value:"10",tooltip:"Number of videos that will be used for random pick (min 2, max 50, default 25)"},{type:"textbox",name:"num",label:"Show",value:"1",tooltip:"Number of videos to display"}]},{title:"Video Settings",type:"form",items:[{type:"listbox",name:"ratio",label:"Aspect Ratio",values:[{text:"Widescreen (16:9)",value:"3",selected:!0},{text:"Standard TV (4:3)",value:"1"}]},{type:"checkbox",name:"responsive",label:"Responsive video",tooltip:"Make video responsive (distribute one full width video per row)",checked:!0},{type:"textbox",name:"width",label:"Initial width (px)",value:"306",tooltip:"Set initial width for video or thumbnail (in pixels)"},{type:"listbox",name:"display",label:"What to show?",tooltip:"",values:[{text:"Thumbnail",value:"thumbnail"},{text:"HTML5 (iframe)",value:"iframe"},{text:"HTML5 (iframe) Asynchronous",value:"iframe2"},{text:"Embedded Playlist",value:"playlist"}]},{type:"checkbox",name:"no_thumb_title",label:"Hide thumbnail tooltip",checked:!1},{type:"checkbox",name:"themelight",label:"Use light theme",tooltip:"Default theme is dark",checked:!1},{type:"checkbox",name:"controls",label:"Hide player controls",checked:!1},{type:"checkbox",name:"autoplay",label:"Autoplay video/playlist",checked:!1},{type:"checkbox",name:"mute",label:"Mute video on autoplay",checked:!1},{type:"checkbox",name:"norel",label:"Hide related videos",checked:!0},{type:"checkbox",name:"nobrand",label:"Hide YT Logo",tooltip:"Does not work for all videos",checked:!0}]},{title:"Content Layout",type:"form",items:[{type:"listbox",name:"showtitle",label:"Show video title",tooltip:"",values:[{text:"Hide title",value:"none",selected:!0},{text:"Above video/thumbnail",value:"above"},{text:"Below video/thumbnail",value:"below"}]},{type:"checkbox",name:"showdesc",label:"Show video description",checked:!1},{type:"textbox",name:"desclen",label:"Description length",value:"0",tooltip:"Set number of characters to cut down video description to (0 means full length)"},{type:"checkbox",name:"noanno",label:"Hide annotations",checked:!0},{type:"checkbox",name:"noinfo",label:"Hide video info",checked:!0}]},{title:"Link to Channel",type:"form",items:[{type:"listbox",name:"link_to",label:"Link to",values:[{text:"Hide link",value:"none",selected:!0},{text:"Vanity/Custom URL",value:"vanity"},{text:"Channel page URL",value:"channel"},{text:"Legacy username URL",value:"legacy"}]},{type:"textbox",name:"goto_txt",label:"Title for link",value:"Visit our YouTube channel"}]}],onsubmit:function(t){var a="[youtube_channel";t.data.vanity&&(a+=" vanity="+t.data.vanity),t.data.channel&&(a+=" channel="+t.data.channel),t.data.legacy&&(a+=" legacy="+t.data.legacy),t.data.playlist&&(a+=" playlist="+t.data.playlist),t.data.resource&&(a+=" resource="+t.data.resource),t.data.cache&&(a+=" cache="+t.data.cache),t.data.privacy&&(a+=" privacy=1"),t.data.random&&(a+=" random=1"),t.data.fetch&&(a+=" fetch="+t.data.fetch.replace(/[^0-9.]/g,"")),t.data.num&&(a+=" num="+t.data.num.replace(/[^0-9.]/g,"")),t.data.ratio&&(a+=" ratio="+t.data.ratio),t.data.responsive&&(a+=" responsive=1"),t.data.width&&(a+=" width="+t.data.width.replace(/[^0-9.]/g,"")),t.data.display&&(a+=" display="+t.data.display),t.data.no_thumb_title&&(a+=" no_thumb_title=1"),t.data.themelight&&(a+=" themelight=1"),t.data.controls&&(a+=" controls=1"),t.data.autoplay&&(a+=" autoplay=1"),t.data.mute&&(a+=" mute=1"),t.data.norel&&(a+=" norel=1"),t.data.nobrand&&(a+=" nobrand=1"),t.data.showtitle&&(a+=" showtitle="+t.data.showtitle),t.data.showdesc&&(a+=" showdesc=1"),t.data.desclen&&(a+=" desclen="+t.data.desclen.replace(/[^0-9.]/g,"")),t.data.noanno&&(a+=" noanno=1"),t.data.noinfo&&(a+=" noinfo=1"),t.data.link_to&&(a+=" link_to="+t.data.link_to),t.data.goto_txt&&(a+=' goto_txt="'+t.data.goto_txt+'"'),t.data["class"]&&(a+=" class="+t.data["class"]),a+="]",e.insertContent(a)}})}})})}();
|
languages/youtube-channel-sr_RS.mo
CHANGED
Binary file
|
languages/youtube-channel-sr_RS.po
CHANGED
@@ -2,7 +2,7 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YouTube Channel\n"
|
4 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/youtube-channel\n"
|
5 |
-
"POT-Creation-Date: 2015-10-
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Aleksandar Urošević <urke.kg@gmail.com>\n"
|
8 |
"Language-Team: Aleksandar Urosevic <urke.kg@gmail.com>\n"
|
@@ -64,7 +64,7 @@ msgid ""
|
|
64 |
"if you have set defaults in global plugin settings)."
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: inc/settings-usage-shortcode.php:12 youtube-channel.php:
|
68 |
msgid "General Settings"
|
69 |
msgstr "Опште поставке"
|
70 |
|
@@ -130,7 +130,7 @@ msgstr ""
|
|
130 |
"подразумеване поставке додатка помоћу параметара шорткода наведених у "
|
131 |
"секцији испод."
|
132 |
|
133 |
-
#: inc/settings.php:46 youtube-channel.php:
|
134 |
msgid "YouTube Data API Key"
|
135 |
msgstr "Јутјуб АПИ кључ за податке"
|
136 |
|
@@ -145,7 +145,7 @@ msgid ""
|
|
145 |
"%2$s</a>)"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: inc/settings.php:69 youtube-channel.php:
|
149 |
msgid "Google Developers Console"
|
150 |
msgstr "Гугловој страници за програмере"
|
151 |
|
@@ -235,83 +235,83 @@ msgstr "Одредите трајање кеша Јутјуб довода у с
|
|
235 |
msgid "Do not chache"
|
236 |
msgstr "Без кеширања"
|
237 |
|
238 |
-
#: inc/settings.php:214 youtube-channel.php:
|
239 |
msgid "1 minute"
|
240 |
msgstr "1 минут"
|
241 |
|
242 |
-
#: inc/settings.php:215 youtube-channel.php:
|
243 |
msgid "5 minutes"
|
244 |
msgstr "5 минута"
|
245 |
|
246 |
-
#: inc/settings.php:216 youtube-channel.php:
|
247 |
msgid "15 minutes"
|
248 |
msgstr "15 минута"
|
249 |
|
250 |
-
#: inc/settings.php:217 youtube-channel.php:
|
251 |
msgid "30 minutes"
|
252 |
msgstr "30 минута"
|
253 |
|
254 |
-
#: inc/settings.php:218 youtube-channel.php:
|
255 |
msgid "1 hour"
|
256 |
msgstr "1 сат"
|
257 |
|
258 |
-
#: inc/settings.php:219 youtube-channel.php:
|
259 |
msgid "2 hours"
|
260 |
msgstr "2 сата"
|
261 |
|
262 |
-
#: inc/settings.php:220 youtube-channel.php:
|
263 |
msgid "5 hours"
|
264 |
msgstr "5 сати"
|
265 |
|
266 |
-
#: inc/settings.php:221 youtube-channel.php:
|
267 |
msgid "10 hours"
|
268 |
msgstr "10 сати"
|
269 |
|
270 |
-
#: inc/settings.php:222 youtube-channel.php:
|
271 |
msgid "12 hours"
|
272 |
msgstr "12 сати"
|
273 |
|
274 |
-
#: inc/settings.php:223 youtube-channel.php:
|
275 |
msgid "18 hours"
|
276 |
msgstr "18 сати"
|
277 |
|
278 |
-
#: inc/settings.php:224 youtube-channel.php:
|
279 |
msgid "1 day"
|
280 |
msgstr "1 дан"
|
281 |
|
282 |
-
#: inc/settings.php:225 youtube-channel.php:
|
283 |
msgid "2 days"
|
284 |
msgstr "2 дана"
|
285 |
|
286 |
-
#: inc/settings.php:226 youtube-channel.php:
|
287 |
msgid "3 days"
|
288 |
msgstr "3 дана"
|
289 |
|
290 |
-
#: inc/settings.php:227 youtube-channel.php:
|
291 |
msgid "4 days"
|
292 |
msgstr "4 дана"
|
293 |
|
294 |
-
#: inc/settings.php:228 youtube-channel.php:
|
295 |
msgid "5 days"
|
296 |
msgstr "5 дана"
|
297 |
|
298 |
-
#: inc/settings.php:229 youtube-channel.php:
|
299 |
msgid "6 days"
|
300 |
msgstr "6 дана"
|
301 |
|
302 |
-
#: inc/settings.php:230 youtube-channel.php:
|
303 |
msgid "1 week"
|
304 |
msgstr "1 недеља"
|
305 |
|
306 |
-
#: inc/settings.php:231 youtube-channel.php:
|
307 |
msgid "2 weeks"
|
308 |
msgstr "2 недеље"
|
309 |
|
310 |
-
#: inc/settings.php:232 youtube-channel.php:
|
311 |
msgid "3 weeks"
|
312 |
msgstr "3 недеље"
|
313 |
|
314 |
-
#: inc/settings.php:233 youtube-channel.php:
|
315 |
msgid "1 month"
|
316 |
msgstr "1 месец"
|
317 |
|
@@ -834,7 +834,7 @@ msgid ""
|
|
834 |
"%channel% and %username%."
|
835 |
msgstr ""
|
836 |
|
837 |
-
#: inc/widget.php:219 youtube-channel.php:
|
838 |
msgid "Visit our YouTube channel"
|
839 |
msgstr "Посетите наш Јутјуб канал"
|
840 |
|
@@ -889,7 +889,7 @@ msgstr "често постављана питања"
|
|
889 |
msgid "Settings"
|
890 |
msgstr "Поставке"
|
891 |
|
892 |
-
#: youtube-channel.php:
|
893 |
#, php-format
|
894 |
msgid ""
|
895 |
"<p>Your website running on web server with PHP version %s. Please note that "
|
@@ -897,7 +897,7 @@ msgid ""
|
|
897 |
"href=\"%s\" class=\"dismiss\">Dismiss</a></p>"
|
898 |
msgstr ""
|
899 |
|
900 |
-
#: youtube-channel.php:
|
901 |
#, php-format
|
902 |
msgid ""
|
903 |
"<p>Since <strong>%s</strong> v3.0.6 we store <strong>YouTube Data API Key</"
|
@@ -906,7 +906,7 @@ msgid ""
|
|
906 |
"\">Dismiss</a></p>"
|
907 |
msgstr ""
|
908 |
|
909 |
-
#: youtube-channel.php:
|
910 |
#, php-format
|
911 |
msgid ""
|
912 |
"<p>Please note, to make <strong>%1$s</strong> plugin v3+ work, generate "
|
@@ -918,11 +918,11 @@ msgid ""
|
|
918 |
"mentioned above!</p>"
|
919 |
msgstr ""
|
920 |
|
921 |
-
#: youtube-channel.php:
|
922 |
msgid "support forum"
|
923 |
msgstr "форум за подршку"
|
924 |
|
925 |
-
#: youtube-channel.php:
|
926 |
#, php-format
|
927 |
msgid ""
|
928 |
"<p><strong>%s</strong> since version 2.4 supports linking to channel through "
|
@@ -931,7 +931,7 @@ msgid ""
|
|
931 |
"a>"
|
932 |
msgstr ""
|
933 |
|
934 |
-
#: youtube-channel.php:
|
935 |
#, php-format
|
936 |
msgid ""
|
937 |
"<p><strong>%s</strong> changed shortcode parameters by removing "
|
@@ -941,21 +941,21 @@ msgid ""
|
|
941 |
"<a href=\"%s\" class=\"dismiss\">Dismiss</a>"
|
942 |
msgstr ""
|
943 |
|
944 |
-
#: youtube-channel.php:
|
945 |
#, php-format
|
946 |
msgid ""
|
947 |
"<strong>%s</strong> version 3+ requires <strong>YouTube DATA API Key</"
|
948 |
"strong> to work. <a href=\"%s\" target=\"_blank\">Learn more here</a>."
|
949 |
msgstr ""
|
950 |
|
951 |
-
#: youtube-channel.php:
|
952 |
#, php-format
|
953 |
msgid ""
|
954 |
"You have set to display videos from %s [resource list ID: %s], but there "
|
955 |
"have no public videos in that resouce."
|
956 |
msgstr ""
|
957 |
|
958 |
-
#: youtube-channel.php:
|
959 |
#, php-format
|
960 |
msgid ""
|
961 |
"We have empty record for this feed. Please read <a href=\"%s\" target="
|
@@ -963,7 +963,7 @@ msgid ""
|
|
963 |
"\"_blank\">support</a>."
|
964 |
msgstr ""
|
965 |
|
966 |
-
#: youtube-channel.php:
|
967 |
#, php-format
|
968 |
msgid ""
|
969 |
"Double check <em>YouTube Data API Key</em> on <em>General</em> plugin tab "
|
@@ -971,29 +971,29 @@ msgid ""
|
|
971 |
"\">Installation</a> document."
|
972 |
msgstr ""
|
973 |
|
974 |
-
#: youtube-channel.php:
|
975 |
#, php-format
|
976 |
msgid ""
|
977 |
"You have set wrong Channel ID. Fix that in General plugin settings, Widget "
|
978 |
"and/or shortcode. Read <a href=\"%s\" target=\"_blank\">FAQ</a> document."
|
979 |
msgstr ""
|
980 |
|
981 |
-
#: youtube-channel.php:
|
982 |
#, php-format
|
983 |
msgid ""
|
984 |
"You do not have permission to access ressource <strong>%s</strong> (it's "
|
985 |
"maybe set to private or even does not exists!)"
|
986 |
msgstr ""
|
987 |
|
988 |
-
#: youtube-channel.php:
|
989 |
msgid "Oops, something went wrong."
|
990 |
msgstr "Извините, нешто не функционише како треба."
|
991 |
|
992 |
-
#: youtube-channel.php:
|
993 |
msgid "in new window/tab"
|
994 |
msgstr "у новом прозору"
|
995 |
|
996 |
-
#: youtube-channel.php:
|
997 |
#, php-format
|
998 |
msgid "Watch video %1$s published on %2$s"
|
999 |
msgstr "Гледај видео %1$s објављен на %2$s"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YouTube Channel\n"
|
4 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/youtube-channel\n"
|
5 |
+
"POT-Creation-Date: 2015-10-15 21:56+0200\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Aleksandar Urošević <urke.kg@gmail.com>\n"
|
8 |
"Language-Team: Aleksandar Urosevic <urke.kg@gmail.com>\n"
|
64 |
"if you have set defaults in global plugin settings)."
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: inc/settings-usage-shortcode.php:12 youtube-channel.php:327
|
68 |
msgid "General Settings"
|
69 |
msgstr "Опште поставке"
|
70 |
|
130 |
"подразумеване поставке додатка помоћу параметара шорткода наведених у "
|
131 |
"секцији испод."
|
132 |
|
133 |
+
#: inc/settings.php:46 youtube-channel.php:322
|
134 |
msgid "YouTube Data API Key"
|
135 |
msgstr "Јутјуб АПИ кључ за податке"
|
136 |
|
145 |
"%2$s</a>)"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: inc/settings.php:69 youtube-channel.php:324
|
149 |
msgid "Google Developers Console"
|
150 |
msgstr "Гугловој страници за програмере"
|
151 |
|
235 |
msgid "Do not chache"
|
236 |
msgstr "Без кеширања"
|
237 |
|
238 |
+
#: inc/settings.php:214 youtube-channel.php:1271
|
239 |
msgid "1 minute"
|
240 |
msgstr "1 минут"
|
241 |
|
242 |
+
#: inc/settings.php:215 youtube-channel.php:1272
|
243 |
msgid "5 minutes"
|
244 |
msgstr "5 минута"
|
245 |
|
246 |
+
#: inc/settings.php:216 youtube-channel.php:1273
|
247 |
msgid "15 minutes"
|
248 |
msgstr "15 минута"
|
249 |
|
250 |
+
#: inc/settings.php:217 youtube-channel.php:1274
|
251 |
msgid "30 minutes"
|
252 |
msgstr "30 минута"
|
253 |
|
254 |
+
#: inc/settings.php:218 youtube-channel.php:1277
|
255 |
msgid "1 hour"
|
256 |
msgstr "1 сат"
|
257 |
|
258 |
+
#: inc/settings.php:219 youtube-channel.php:1278
|
259 |
msgid "2 hours"
|
260 |
msgstr "2 сата"
|
261 |
|
262 |
+
#: inc/settings.php:220 youtube-channel.php:1279
|
263 |
msgid "5 hours"
|
264 |
msgstr "5 сати"
|
265 |
|
266 |
+
#: inc/settings.php:221 youtube-channel.php:1280
|
267 |
msgid "10 hours"
|
268 |
msgstr "10 сати"
|
269 |
|
270 |
+
#: inc/settings.php:222 youtube-channel.php:1281
|
271 |
msgid "12 hours"
|
272 |
msgstr "12 сати"
|
273 |
|
274 |
+
#: inc/settings.php:223 youtube-channel.php:1282
|
275 |
msgid "18 hours"
|
276 |
msgstr "18 сати"
|
277 |
|
278 |
+
#: inc/settings.php:224 youtube-channel.php:1285
|
279 |
msgid "1 day"
|
280 |
msgstr "1 дан"
|
281 |
|
282 |
+
#: inc/settings.php:225 youtube-channel.php:1286
|
283 |
msgid "2 days"
|
284 |
msgstr "2 дана"
|
285 |
|
286 |
+
#: inc/settings.php:226 youtube-channel.php:1287
|
287 |
msgid "3 days"
|
288 |
msgstr "3 дана"
|
289 |
|
290 |
+
#: inc/settings.php:227 youtube-channel.php:1288
|
291 |
msgid "4 days"
|
292 |
msgstr "4 дана"
|
293 |
|
294 |
+
#: inc/settings.php:228 youtube-channel.php:1289
|
295 |
msgid "5 days"
|
296 |
msgstr "5 дана"
|
297 |
|
298 |
+
#: inc/settings.php:229 youtube-channel.php:1290
|
299 |
msgid "6 days"
|
300 |
msgstr "6 дана"
|
301 |
|
302 |
+
#: inc/settings.php:230 youtube-channel.php:1293
|
303 |
msgid "1 week"
|
304 |
msgstr "1 недеља"
|
305 |
|
306 |
+
#: inc/settings.php:231 youtube-channel.php:1294
|
307 |
msgid "2 weeks"
|
308 |
msgstr "2 недеље"
|
309 |
|
310 |
+
#: inc/settings.php:232 youtube-channel.php:1295
|
311 |
msgid "3 weeks"
|
312 |
msgstr "3 недеље"
|
313 |
|
314 |
+
#: inc/settings.php:233 youtube-channel.php:1296
|
315 |
msgid "1 month"
|
316 |
msgstr "1 месец"
|
317 |
|
834 |
"%channel% and %username%."
|
835 |
msgstr ""
|
836 |
|
837 |
+
#: inc/widget.php:219 youtube-channel.php:1042
|
838 |
msgid "Visit our YouTube channel"
|
839 |
msgstr "Посетите наш Јутјуб канал"
|
840 |
|
889 |
msgid "Settings"
|
890 |
msgstr "Поставке"
|
891 |
|
892 |
+
#: youtube-channel.php:286
|
893 |
#, php-format
|
894 |
msgid ""
|
895 |
"<p>Your website running on web server with PHP version %s. Please note that "
|
897 |
"href=\"%s\" class=\"dismiss\">Dismiss</a></p>"
|
898 |
msgstr ""
|
899 |
|
900 |
+
#: youtube-channel.php:299
|
901 |
#, php-format
|
902 |
msgid ""
|
903 |
"<p>Since <strong>%s</strong> v3.0.6 we store <strong>YouTube Data API Key</"
|
906 |
"\">Dismiss</a></p>"
|
907 |
msgstr ""
|
908 |
|
909 |
+
#: youtube-channel.php:311
|
910 |
#, php-format
|
911 |
msgid ""
|
912 |
"<p>Please note, to make <strong>%1$s</strong> plugin v3+ work, generate "
|
918 |
"mentioned above!</p>"
|
919 |
msgstr ""
|
920 |
|
921 |
+
#: youtube-channel.php:329
|
922 |
msgid "support forum"
|
923 |
msgstr "форум за подршку"
|
924 |
|
925 |
+
#: youtube-channel.php:338
|
926 |
#, php-format
|
927 |
msgid ""
|
928 |
"<p><strong>%s</strong> since version 2.4 supports linking to channel through "
|
931 |
"a>"
|
932 |
msgstr ""
|
933 |
|
934 |
+
#: youtube-channel.php:352
|
935 |
#, php-format
|
936 |
msgid ""
|
937 |
"<p><strong>%s</strong> changed shortcode parameters by removing "
|
941 |
"<a href=\"%s\" class=\"dismiss\">Dismiss</a>"
|
942 |
msgstr ""
|
943 |
|
944 |
+
#: youtube-channel.php:615
|
945 |
#, php-format
|
946 |
msgid ""
|
947 |
"<strong>%s</strong> version 3+ requires <strong>YouTube DATA API Key</"
|
948 |
"strong> to work. <a href=\"%s\" target=\"_blank\">Learn more here</a>."
|
949 |
msgstr ""
|
950 |
|
951 |
+
#: youtube-channel.php:789
|
952 |
#, php-format
|
953 |
msgid ""
|
954 |
"You have set to display videos from %s [resource list ID: %s], but there "
|
955 |
"have no public videos in that resouce."
|
956 |
msgstr ""
|
957 |
|
958 |
+
#: youtube-channel.php:792
|
959 |
#, php-format
|
960 |
msgid ""
|
961 |
"We have empty record for this feed. Please read <a href=\"%s\" target="
|
963 |
"\"_blank\">support</a>."
|
964 |
msgstr ""
|
965 |
|
966 |
+
#: youtube-channel.php:834
|
967 |
#, php-format
|
968 |
msgid ""
|
969 |
"Double check <em>YouTube Data API Key</em> on <em>General</em> plugin tab "
|
971 |
"\">Installation</a> document."
|
972 |
msgstr ""
|
973 |
|
974 |
+
#: youtube-channel.php:840
|
975 |
#, php-format
|
976 |
msgid ""
|
977 |
"You have set wrong Channel ID. Fix that in General plugin settings, Widget "
|
978 |
"and/or shortcode. Read <a href=\"%s\" target=\"_blank\">FAQ</a> document."
|
979 |
msgstr ""
|
980 |
|
981 |
+
#: youtube-channel.php:843
|
982 |
#, php-format
|
983 |
msgid ""
|
984 |
"You do not have permission to access ressource <strong>%s</strong> (it's "
|
985 |
"maybe set to private or even does not exists!)"
|
986 |
msgstr ""
|
987 |
|
988 |
+
#: youtube-channel.php:964
|
989 |
msgid "Oops, something went wrong."
|
990 |
msgstr "Извините, нешто не функционише како треба."
|
991 |
|
992 |
+
#: youtube-channel.php:1045
|
993 |
msgid "in new window/tab"
|
994 |
msgstr "у новом прозору"
|
995 |
|
996 |
+
#: youtube-channel.php:1195
|
997 |
#, php-format
|
998 |
msgid "Watch video %1$s published on %2$s"
|
999 |
msgstr "Гледај видео %1$s објављен на %2$s"
|
languages/youtube-channel-xx_XX.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: YouTube Channel\n"
|
5 |
-
"POT-Creation-Date: 2015-10-
|
6 |
"PO-Revision-Date: 2015-06-19 21:15+0100\n"
|
7 |
"Last-Translator: Aleksandar Urošević <urke.kg@gmail.com>\n"
|
8 |
"Language-Team: Aleksandar Urošević <urke.kg@gmail.com>\n"
|
@@ -64,7 +64,7 @@ msgid ""
|
|
64 |
"if you have set defaults in global plugin settings)."
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: inc/settings-usage-shortcode.php:12 youtube-channel.php:
|
68 |
msgid "General Settings"
|
69 |
msgstr ""
|
70 |
|
@@ -125,7 +125,7 @@ msgid ""
|
|
125 |
"settings by shortcode parameters listed in section below."
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: inc/settings.php:46 youtube-channel.php:
|
129 |
msgid "YouTube Data API Key"
|
130 |
msgstr ""
|
131 |
|
@@ -140,7 +140,7 @@ msgid ""
|
|
140 |
"%2$s</a>)"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: inc/settings.php:69 youtube-channel.php:
|
144 |
msgid "Google Developers Console"
|
145 |
msgstr ""
|
146 |
|
@@ -230,83 +230,83 @@ msgstr ""
|
|
230 |
msgid "Do not chache"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: inc/settings.php:214 youtube-channel.php:
|
234 |
msgid "1 minute"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: inc/settings.php:215 youtube-channel.php:
|
238 |
msgid "5 minutes"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: inc/settings.php:216 youtube-channel.php:
|
242 |
msgid "15 minutes"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: inc/settings.php:217 youtube-channel.php:
|
246 |
msgid "30 minutes"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: inc/settings.php:218 youtube-channel.php:
|
250 |
msgid "1 hour"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: inc/settings.php:219 youtube-channel.php:
|
254 |
msgid "2 hours"
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: inc/settings.php:220 youtube-channel.php:
|
258 |
msgid "5 hours"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: inc/settings.php:221 youtube-channel.php:
|
262 |
msgid "10 hours"
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: inc/settings.php:222 youtube-channel.php:
|
266 |
msgid "12 hours"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: inc/settings.php:223 youtube-channel.php:
|
270 |
msgid "18 hours"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: inc/settings.php:224 youtube-channel.php:
|
274 |
msgid "1 day"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: inc/settings.php:225 youtube-channel.php:
|
278 |
msgid "2 days"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: inc/settings.php:226 youtube-channel.php:
|
282 |
msgid "3 days"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: inc/settings.php:227 youtube-channel.php:
|
286 |
msgid "4 days"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: inc/settings.php:228 youtube-channel.php:
|
290 |
msgid "5 days"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: inc/settings.php:229 youtube-channel.php:
|
294 |
msgid "6 days"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: inc/settings.php:230 youtube-channel.php:
|
298 |
msgid "1 week"
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: inc/settings.php:231 youtube-channel.php:
|
302 |
msgid "2 weeks"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: inc/settings.php:232 youtube-channel.php:
|
306 |
msgid "3 weeks"
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: inc/settings.php:233 youtube-channel.php:
|
310 |
msgid "1 month"
|
311 |
msgstr ""
|
312 |
|
@@ -805,7 +805,7 @@ msgid ""
|
|
805 |
"%channel% and %username%."
|
806 |
msgstr ""
|
807 |
|
808 |
-
#: inc/widget.php:219 youtube-channel.php:
|
809 |
msgid "Visit our YouTube channel"
|
810 |
msgstr ""
|
811 |
|
@@ -855,7 +855,7 @@ msgstr ""
|
|
855 |
msgid "Settings"
|
856 |
msgstr ""
|
857 |
|
858 |
-
#: youtube-channel.php:
|
859 |
#, php-format
|
860 |
msgid ""
|
861 |
"<p>Your website running on web server with PHP version %s. Please note that "
|
@@ -863,7 +863,7 @@ msgid ""
|
|
863 |
"href=\"%s\" class=\"dismiss\">Dismiss</a></p>"
|
864 |
msgstr ""
|
865 |
|
866 |
-
#: youtube-channel.php:
|
867 |
#, php-format
|
868 |
msgid ""
|
869 |
"<p>Since <strong>%s</strong> v3.0.6 we store <strong>YouTube Data API Key</"
|
@@ -872,7 +872,7 @@ msgid ""
|
|
872 |
"\">Dismiss</a></p>"
|
873 |
msgstr ""
|
874 |
|
875 |
-
#: youtube-channel.php:
|
876 |
#, php-format
|
877 |
msgid ""
|
878 |
"<p>Please note, to make <strong>%1$s</strong> plugin v3+ work, generate "
|
@@ -884,11 +884,11 @@ msgid ""
|
|
884 |
"mentioned above!</p>"
|
885 |
msgstr ""
|
886 |
|
887 |
-
#: youtube-channel.php:
|
888 |
msgid "support forum"
|
889 |
msgstr ""
|
890 |
|
891 |
-
#: youtube-channel.php:
|
892 |
#, php-format
|
893 |
msgid ""
|
894 |
"<p><strong>%s</strong> since version 2.4 supports linking to channel through "
|
@@ -897,7 +897,7 @@ msgid ""
|
|
897 |
"a>"
|
898 |
msgstr ""
|
899 |
|
900 |
-
#: youtube-channel.php:
|
901 |
#, php-format
|
902 |
msgid ""
|
903 |
"<p><strong>%s</strong> changed shortcode parameters by removing "
|
@@ -907,21 +907,21 @@ msgid ""
|
|
907 |
"<a href=\"%s\" class=\"dismiss\">Dismiss</a>"
|
908 |
msgstr ""
|
909 |
|
910 |
-
#: youtube-channel.php:
|
911 |
#, php-format
|
912 |
msgid ""
|
913 |
"<strong>%s</strong> version 3+ requires <strong>YouTube DATA API Key</"
|
914 |
"strong> to work. <a href=\"%s\" target=\"_blank\">Learn more here</a>."
|
915 |
msgstr ""
|
916 |
|
917 |
-
#: youtube-channel.php:
|
918 |
#, php-format
|
919 |
msgid ""
|
920 |
"You have set to display videos from %s [resource list ID: %s], but there "
|
921 |
"have no public videos in that resouce."
|
922 |
msgstr ""
|
923 |
|
924 |
-
#: youtube-channel.php:
|
925 |
#, php-format
|
926 |
msgid ""
|
927 |
"We have empty record for this feed. Please read <a href=\"%s\" target="
|
@@ -929,7 +929,7 @@ msgid ""
|
|
929 |
"\"_blank\">support</a>."
|
930 |
msgstr ""
|
931 |
|
932 |
-
#: youtube-channel.php:
|
933 |
#, php-format
|
934 |
msgid ""
|
935 |
"Double check <em>YouTube Data API Key</em> on <em>General</em> plugin tab "
|
@@ -937,29 +937,29 @@ msgid ""
|
|
937 |
"\">Installation</a> document."
|
938 |
msgstr ""
|
939 |
|
940 |
-
#: youtube-channel.php:
|
941 |
#, php-format
|
942 |
msgid ""
|
943 |
"You have set wrong Channel ID. Fix that in General plugin settings, Widget "
|
944 |
"and/or shortcode. Read <a href=\"%s\" target=\"_blank\">FAQ</a> document."
|
945 |
msgstr ""
|
946 |
|
947 |
-
#: youtube-channel.php:
|
948 |
#, php-format
|
949 |
msgid ""
|
950 |
"You do not have permission to access ressource <strong>%s</strong> (it's "
|
951 |
"maybe set to private or even does not exists!)"
|
952 |
msgstr ""
|
953 |
|
954 |
-
#: youtube-channel.php:
|
955 |
msgid "Oops, something went wrong."
|
956 |
msgstr ""
|
957 |
|
958 |
-
#: youtube-channel.php:
|
959 |
msgid "in new window/tab"
|
960 |
msgstr ""
|
961 |
|
962 |
-
#: youtube-channel.php:
|
963 |
#, php-format
|
964 |
msgid "Watch video %1$s published on %2$s"
|
965 |
msgstr ""
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: YouTube Channel\n"
|
5 |
+
"POT-Creation-Date: 2015-10-15 21:56+0200\n"
|
6 |
"PO-Revision-Date: 2015-06-19 21:15+0100\n"
|
7 |
"Last-Translator: Aleksandar Urošević <urke.kg@gmail.com>\n"
|
8 |
"Language-Team: Aleksandar Urošević <urke.kg@gmail.com>\n"
|
64 |
"if you have set defaults in global plugin settings)."
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: inc/settings-usage-shortcode.php:12 youtube-channel.php:327
|
68 |
msgid "General Settings"
|
69 |
msgstr ""
|
70 |
|
125 |
"settings by shortcode parameters listed in section below."
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: inc/settings.php:46 youtube-channel.php:322
|
129 |
msgid "YouTube Data API Key"
|
130 |
msgstr ""
|
131 |
|
140 |
"%2$s</a>)"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: inc/settings.php:69 youtube-channel.php:324
|
144 |
msgid "Google Developers Console"
|
145 |
msgstr ""
|
146 |
|
230 |
msgid "Do not chache"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: inc/settings.php:214 youtube-channel.php:1271
|
234 |
msgid "1 minute"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: inc/settings.php:215 youtube-channel.php:1272
|
238 |
msgid "5 minutes"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: inc/settings.php:216 youtube-channel.php:1273
|
242 |
msgid "15 minutes"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: inc/settings.php:217 youtube-channel.php:1274
|
246 |
msgid "30 minutes"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: inc/settings.php:218 youtube-channel.php:1277
|
250 |
msgid "1 hour"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: inc/settings.php:219 youtube-channel.php:1278
|
254 |
msgid "2 hours"
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: inc/settings.php:220 youtube-channel.php:1279
|
258 |
msgid "5 hours"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: inc/settings.php:221 youtube-channel.php:1280
|
262 |
msgid "10 hours"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: inc/settings.php:222 youtube-channel.php:1281
|
266 |
msgid "12 hours"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: inc/settings.php:223 youtube-channel.php:1282
|
270 |
msgid "18 hours"
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: inc/settings.php:224 youtube-channel.php:1285
|
274 |
msgid "1 day"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: inc/settings.php:225 youtube-channel.php:1286
|
278 |
msgid "2 days"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: inc/settings.php:226 youtube-channel.php:1287
|
282 |
msgid "3 days"
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: inc/settings.php:227 youtube-channel.php:1288
|
286 |
msgid "4 days"
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: inc/settings.php:228 youtube-channel.php:1289
|
290 |
msgid "5 days"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: inc/settings.php:229 youtube-channel.php:1290
|
294 |
msgid "6 days"
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: inc/settings.php:230 youtube-channel.php:1293
|
298 |
msgid "1 week"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: inc/settings.php:231 youtube-channel.php:1294
|
302 |
msgid "2 weeks"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: inc/settings.php:232 youtube-channel.php:1295
|
306 |
msgid "3 weeks"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: inc/settings.php:233 youtube-channel.php:1296
|
310 |
msgid "1 month"
|
311 |
msgstr ""
|
312 |
|
805 |
"%channel% and %username%."
|
806 |
msgstr ""
|
807 |
|
808 |
+
#: inc/widget.php:219 youtube-channel.php:1042
|
809 |
msgid "Visit our YouTube channel"
|
810 |
msgstr ""
|
811 |
|
855 |
msgid "Settings"
|
856 |
msgstr ""
|
857 |
|
858 |
+
#: youtube-channel.php:286
|
859 |
#, php-format
|
860 |
msgid ""
|
861 |
"<p>Your website running on web server with PHP version %s. Please note that "
|
863 |
"href=\"%s\" class=\"dismiss\">Dismiss</a></p>"
|
864 |
msgstr ""
|
865 |
|
866 |
+
#: youtube-channel.php:299
|
867 |
#, php-format
|
868 |
msgid ""
|
869 |
"<p>Since <strong>%s</strong> v3.0.6 we store <strong>YouTube Data API Key</"
|
872 |
"\">Dismiss</a></p>"
|
873 |
msgstr ""
|
874 |
|
875 |
+
#: youtube-channel.php:311
|
876 |
#, php-format
|
877 |
msgid ""
|
878 |
"<p>Please note, to make <strong>%1$s</strong> plugin v3+ work, generate "
|
884 |
"mentioned above!</p>"
|
885 |
msgstr ""
|
886 |
|
887 |
+
#: youtube-channel.php:329
|
888 |
msgid "support forum"
|
889 |
msgstr ""
|
890 |
|
891 |
+
#: youtube-channel.php:338
|
892 |
#, php-format
|
893 |
msgid ""
|
894 |
"<p><strong>%s</strong> since version 2.4 supports linking to channel through "
|
897 |
"a>"
|
898 |
msgstr ""
|
899 |
|
900 |
+
#: youtube-channel.php:352
|
901 |
#, php-format
|
902 |
msgid ""
|
903 |
"<p><strong>%s</strong> changed shortcode parameters by removing "
|
907 |
"<a href=\"%s\" class=\"dismiss\">Dismiss</a>"
|
908 |
msgstr ""
|
909 |
|
910 |
+
#: youtube-channel.php:615
|
911 |
#, php-format
|
912 |
msgid ""
|
913 |
"<strong>%s</strong> version 3+ requires <strong>YouTube DATA API Key</"
|
914 |
"strong> to work. <a href=\"%s\" target=\"_blank\">Learn more here</a>."
|
915 |
msgstr ""
|
916 |
|
917 |
+
#: youtube-channel.php:789
|
918 |
#, php-format
|
919 |
msgid ""
|
920 |
"You have set to display videos from %s [resource list ID: %s], but there "
|
921 |
"have no public videos in that resouce."
|
922 |
msgstr ""
|
923 |
|
924 |
+
#: youtube-channel.php:792
|
925 |
#, php-format
|
926 |
msgid ""
|
927 |
"We have empty record for this feed. Please read <a href=\"%s\" target="
|
929 |
"\"_blank\">support</a>."
|
930 |
msgstr ""
|
931 |
|
932 |
+
#: youtube-channel.php:834
|
933 |
#, php-format
|
934 |
msgid ""
|
935 |
"Double check <em>YouTube Data API Key</em> on <em>General</em> plugin tab "
|
937 |
"\">Installation</a> document."
|
938 |
msgstr ""
|
939 |
|
940 |
+
#: youtube-channel.php:840
|
941 |
#, php-format
|
942 |
msgid ""
|
943 |
"You have set wrong Channel ID. Fix that in General plugin settings, Widget "
|
944 |
"and/or shortcode. Read <a href=\"%s\" target=\"_blank\">FAQ</a> document."
|
945 |
msgstr ""
|
946 |
|
947 |
+
#: youtube-channel.php:843
|
948 |
#, php-format
|
949 |
msgid ""
|
950 |
"You do not have permission to access ressource <strong>%s</strong> (it's "
|
951 |
"maybe set to private or even does not exists!)"
|
952 |
msgstr ""
|
953 |
|
954 |
+
#: youtube-channel.php:964
|
955 |
msgid "Oops, something went wrong."
|
956 |
msgstr ""
|
957 |
|
958 |
+
#: youtube-channel.php:1045
|
959 |
msgid "in new window/tab"
|
960 |
msgstr ""
|
961 |
|
962 |
+
#: youtube-channel.php:1195
|
963 |
#, php-format
|
964 |
msgid "Watch video %1$s published on %2$s"
|
965 |
msgstr ""
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://urosevic.net/wordpress/donate/?donate_for=youtube-channel
|
|
4 |
Tags: youtube, channel, playlist, single, widget, widgets, youtube player, feed, video, thumbnail, embed, sidebar, iframe, html5, responsive
|
5 |
Requires at least: 3.9.0
|
6 |
Tested up to: 4.3.2
|
7 |
-
Stable tag: 3.0.8.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -347,6 +347,12 @@ If you really need that missing feature ASAP, feel free to [contact me](urosevic
|
|
347 |
If you don't wish to pay for enhancements (then you don't care would that be implemented in a week, month, year or so), then send new [Support topic](https://wordpress.org/support/plugin/youtube-channel) with *Topic title* in format **[Feature Request] ...**
|
348 |
|
349 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
= 3.0.8.6 =
|
351 |
* Fix: Broken Enhanced Privacy on small screens in forked MagnificPopupAU library
|
352 |
* Enhanced: Finished making code compliant to WordPress Core coding standards
|
4 |
Tags: youtube, channel, playlist, single, widget, widgets, youtube player, feed, video, thumbnail, embed, sidebar, iframe, html5, responsive
|
5 |
Requires at least: 3.9.0
|
6 |
Tested up to: 4.3.2
|
7 |
+
Stable tag: 3.0.8.7
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
347 |
If you don't wish to pay for enhancements (then you don't care would that be implemented in a week, month, year or so), then send new [Support topic](https://wordpress.org/support/plugin/youtube-channel) with *Topic title* in format **[Feature Request] ...**
|
348 |
|
349 |
== Changelog ==
|
350 |
+
= 3.0.8.7 =
|
351 |
+
* Enhance: Merge two improvements for MagnificPopupAU fork from core library (commit 60d5aa4 and 1d0f697)
|
352 |
+
* Fix: TinyMCE button does not have icon when new post/page is created
|
353 |
+
* Fix: Strip non-number characters entered in shortcode TinyMCE creator for Fetch, Show, Initial Width and Description length attributes.
|
354 |
+
* Fix: make sure that Initial Width is always in pixels (if user enter width in percentage, strip percent sign and threat value as pixel value)
|
355 |
+
|
356 |
= 3.0.8.6 =
|
357 |
* Fix: Broken Enhanced Privacy on small screens in forked MagnificPopupAU library
|
358 |
* Enhanced: Finished making code compliant to WordPress Core coding standards
|
youtube-channel.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: YouTube Channel
|
4 |
Plugin URI: http://urosevic.net/wordpress/plugins/youtube-channel/
|
5 |
Description: Quick and easy embed latest or random videos from YouTube channel (user uploads, liked or favourited videos) or playlist. Use <a href="widgets.php">widget</a> for sidebar or shortcode for content. Works with <em>YouTube Data API v3</em>.
|
6 |
-
Version: 3.0.8.
|
7 |
Author: Aleksandar Urošević
|
8 |
Author URI: http://urosevic.net/
|
9 |
Text Domain: youtube-channel
|
@@ -19,7 +19,7 @@ if ( ! class_exists( 'WPAU_YOUTUBE_CHANNEL' ) ) {
|
|
19 |
{
|
20 |
|
21 |
const DB_VER = 14;
|
22 |
-
const VER = '3.0.8.
|
23 |
|
24 |
public $plugin_name = 'YouTube Channel';
|
25 |
public $plugin_slug = 'youtube-channel';
|
@@ -63,7 +63,7 @@ if ( ! class_exists( 'WPAU_YOUTUBE_CHANNEL' ) ) {
|
|
63 |
add_action( 'admin_notices', array( $this, 'admin_notices' ) );
|
64 |
|
65 |
// Enqueue scripts and styles for Widgets page
|
66 |
-
add_action( 'admin_enqueue_scripts', array( $this, '
|
67 |
|
68 |
} else { // ELSE if ( is_admin() )
|
69 |
|
@@ -216,17 +216,17 @@ if ( ! class_exists( 'WPAU_YOUTUBE_CHANNEL' ) ) {
|
|
216 |
/**
|
217 |
* Enqueue admin scripts and styles for widget customization
|
218 |
*/
|
219 |
-
function
|
220 |
|
221 |
global $pagenow;
|
222 |
|
223 |
// Enqueue only on widget or post pages
|
224 |
-
if ( ! in_array( $pagenow, array( 'widgets.php', 'customize.php', 'options-general.php', 'post.php' ) ) ) {
|
225 |
return;
|
226 |
}
|
227 |
|
228 |
// Enqueue on post page only if tinymce is enabled
|
229 |
-
if ( 'post.php'
|
230 |
return;
|
231 |
}
|
232 |
|
@@ -237,7 +237,7 @@ if ( ! class_exists( 'WPAU_YOUTUBE_CHANNEL' ) ) {
|
|
237 |
self::VER
|
238 |
);
|
239 |
|
240 |
-
} // END function
|
241 |
|
242 |
/**
|
243 |
* Print dashboard notice
|
@@ -567,14 +567,14 @@ if ( ! class_exists( 'WPAU_YOUTUBE_CHANNEL' ) ) {
|
|
567 |
$instance['cache'] = $cache; // in seconds, def 5min - settings?
|
568 |
$instance['privacy'] = $privacy; // enhanced privacy
|
569 |
|
570 |
-
$instance['fetch'] = $fetch;
|
571 |
-
$instance['num'] = $num; // num: 1
|
572 |
|
573 |
$instance['random'] = $random; // use embedded playlist - false by default
|
574 |
|
575 |
// Video Settings
|
576 |
$instance['ratio'] = $ratio; // aspect ratio: 3 - 16:9, 2 - 16:10, 1 - 4:3
|
577 |
-
$instance['width'] = $width; // 306
|
578 |
$instance['responsive'] = $responsive; // enable responsivenes?
|
579 |
$instance['display'] = $display; // thumbnail, iframe, iframe2, playlist
|
580 |
$instance['no_thumb_title'] = $no_thumb_title; // hide tooltip for thumbnails
|
@@ -590,7 +590,7 @@ if ( ! class_exists( 'WPAU_YOUTUBE_CHANNEL' ) ) {
|
|
590 |
$instance['showtitle'] = $showtitle; // show video title, disabled by default
|
591 |
$instance['showdesc'] = $showdesc; // show video description, disabled by default
|
592 |
$instance['modestbranding'] = $nobrand; // hide YT logo
|
593 |
-
$instance['desclen'] = $desclen; // cut video description, number of characters
|
594 |
$instance['hideinfo'] = $noinfo; // hide info by default
|
595 |
$instance['hideanno'] = $noanno; // hide annotations, false by default
|
596 |
|
3 |
Plugin Name: YouTube Channel
|
4 |
Plugin URI: http://urosevic.net/wordpress/plugins/youtube-channel/
|
5 |
Description: Quick and easy embed latest or random videos from YouTube channel (user uploads, liked or favourited videos) or playlist. Use <a href="widgets.php">widget</a> for sidebar or shortcode for content. Works with <em>YouTube Data API v3</em>.
|
6 |
+
Version: 3.0.8.7
|
7 |
Author: Aleksandar Urošević
|
8 |
Author URI: http://urosevic.net/
|
9 |
Text Domain: youtube-channel
|
19 |
{
|
20 |
|
21 |
const DB_VER = 14;
|
22 |
+
const VER = '3.0.8.7';
|
23 |
|
24 |
public $plugin_name = 'YouTube Channel';
|
25 |
public $plugin_slug = 'youtube-channel';
|
63 |
add_action( 'admin_notices', array( $this, 'admin_notices' ) );
|
64 |
|
65 |
// Enqueue scripts and styles for Widgets page
|
66 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );
|
67 |
|
68 |
} else { // ELSE if ( is_admin() )
|
69 |
|
216 |
/**
|
217 |
* Enqueue admin scripts and styles for widget customization
|
218 |
*/
|
219 |
+
function admin_scripts() {
|
220 |
|
221 |
global $pagenow;
|
222 |
|
223 |
// Enqueue only on widget or post pages
|
224 |
+
if ( ! in_array( $pagenow, array( 'widgets.php', 'customize.php', 'options-general.php', 'post.php', 'post-new.php' ) ) ) {
|
225 |
return;
|
226 |
}
|
227 |
|
228 |
// Enqueue on post page only if tinymce is enabled
|
229 |
+
if ( in_array( $pagenow, array( 'post.php', 'post-new.php' ) ) && empty( $this->defaults['tinymce'] ) ) {
|
230 |
return;
|
231 |
}
|
232 |
|
237 |
self::VER
|
238 |
);
|
239 |
|
240 |
+
} // END function admin_scripts()
|
241 |
|
242 |
/**
|
243 |
* Print dashboard notice
|
567 |
$instance['cache'] = $cache; // in seconds, def 5min - settings?
|
568 |
$instance['privacy'] = $privacy; // enhanced privacy
|
569 |
|
570 |
+
$instance['fetch'] = (int) $fetch;
|
571 |
+
$instance['num'] = (int) $num; // num: 1
|
572 |
|
573 |
$instance['random'] = $random; // use embedded playlist - false by default
|
574 |
|
575 |
// Video Settings
|
576 |
$instance['ratio'] = $ratio; // aspect ratio: 3 - 16:9, 2 - 16:10, 1 - 4:3
|
577 |
+
$instance['width'] = (int) $width; // 306
|
578 |
$instance['responsive'] = $responsive; // enable responsivenes?
|
579 |
$instance['display'] = $display; // thumbnail, iframe, iframe2, playlist
|
580 |
$instance['no_thumb_title'] = $no_thumb_title; // hide tooltip for thumbnails
|
590 |
$instance['showtitle'] = $showtitle; // show video title, disabled by default
|
591 |
$instance['showdesc'] = $showdesc; // show video description, disabled by default
|
592 |
$instance['modestbranding'] = $nobrand; // hide YT logo
|
593 |
+
$instance['desclen'] = (int) $desclen; // cut video description, number of characters
|
594 |
$instance['hideinfo'] = $noinfo; // hide info by default
|
595 |
$instance['hideanno'] = $noanno; // hide annotations, false by default
|
596 |
|