From: "Theo Chatzimichos" <tampakrap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/blogs-gentoo:master commit in: plugins/smart-youtube/themes/theme1/images/, ...
Date: Sun, 5 Aug 2012 19:54:05 +0000 (UTC) [thread overview]
Message-ID: <1344196377.4b32357c9c7b62df4e374018f2e41a5ab992d599.tampakrap@gentoo> (raw)
commit: 4b32357c9c7b62df4e374018f2e41a5ab992d599
Author: Theo Chatzimichos <tampakrap <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 5 19:52:57 2012 +0000
Commit: Theo Chatzimichos <tampakrap <AT> gentoo <DOT> org>
CommitDate: Sun Aug 5 19:52:57 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/blogs-gentoo.git;a=commit;h=4b32357c
Remove smart-youtube, jetpack provides youtube embedding support
---
plugins/smart-youtube/i/help.png | Bin 997 -> 0 bytes
plugins/smart-youtube/i/home.png | Bin 963 -> 0 bytes
plugins/smart-youtube/i/icon.png | Bin 1000 -> 0 bytes
plugins/smart-youtube/i/idea.png | Bin 829 -> 0 bytes
plugins/smart-youtube/i/logo.png | Bin 2193 -> 0 bytes
plugins/smart-youtube/i/more.png | Bin 760 -> 0 bytes
plugins/smart-youtube/i/p1.png | Bin 13486 -> 0 bytes
plugins/smart-youtube/i/paypal.gif | Bin 2815 -> 0 bytes
plugins/smart-youtube/i/rate.png | Bin 659 -> 0 bytes
plugins/smart-youtube/i/twit.png | Bin 724 -> 0 bytes
plugins/smart-youtube/img/default.jpg | Bin 893 -> 0 bytes
.../smart-youtube/img/embed_selection-vfl29294.png | Bin 2056 -> 0 bytes
.../smart-youtube/img/preview_embed_acid_sm.gif | Bin 3304 -> 0 bytes
.../smart-youtube/img/preview_embed_acid_sm_nb.gif | Bin 2657 -> 0 bytes
.../smart-youtube/img/preview_embed_blank_sm.gif | Bin 3285 -> 0 bytes
.../img/preview_embed_blank_sm_nb.gif | Bin 2640 -> 0 bytes
.../smart-youtube/img/preview_embed_green_sm.gif | Bin 3088 -> 0 bytes
.../img/preview_embed_green_sm_nb.gif | Bin 2656 -> 0 bytes
.../smart-youtube/img/preview_embed_iceberg_sm.gif | Bin 3186 -> 0 bytes
.../img/preview_embed_iceberg_sm_nb.gif | Bin 2689 -> 0 bytes
.../smart-youtube/img/preview_embed_orange_sm.gif | Bin 3097 -> 0 bytes
.../img/preview_embed_orange_sm_nb.gif | Bin 2687 -> 0 bytes
.../smart-youtube/img/preview_embed_pink_sm.gif | Bin 3132 -> 0 bytes
.../smart-youtube/img/preview_embed_pink_sm_nb.gif | Bin 2673 -> 0 bytes
.../smart-youtube/img/preview_embed_purple_sm.gif | Bin 3195 -> 0 bytes
.../img/preview_embed_purple_sm_nb.gif | Bin 2654 -> 0 bytes
.../smart-youtube/img/preview_embed_rubyred_sm.gif | Bin 3126 -> 0 bytes
.../img/preview_embed_rubyred_sm_nb.gif | Bin 2653 -> 0 bytes
.../smart-youtube/img/preview_embed_storm_sm.gif | Bin 3276 -> 0 bytes
.../img/preview_embed_storm_sm_nb.gif | Bin 2631 -> 0 bytes
.../javascripts/jquery.colorbox-min.js | 4 -
.../smart-youtube/javascripts/jquery.colorbox.js | 788 ----------
plugins/smart-youtube/readme.txt | 251 ----
plugins/smart-youtube/screenshot-1.png | Bin 81776 -> 0 bytes
plugins/smart-youtube/screenshot-2.png | Bin 34088 -> 0 bytes
plugins/smart-youtube/screenshots/screenshot-1.jpg | Bin 32272 -> 0 bytes
.../smart-youtube/screenshots/screenshot-10.jpg | Bin 29568 -> 0 bytes
.../smart-youtube/screenshots/screenshot-11.jpg | Bin 29188 -> 0 bytes
plugins/smart-youtube/screenshots/screenshot-2.jpg | Bin 27315 -> 0 bytes
plugins/smart-youtube/screenshots/screenshot-3.jpg | Bin 32135 -> 0 bytes
plugins/smart-youtube/screenshots/screenshot-4.jpg | Bin 28864 -> 0 bytes
plugins/smart-youtube/screenshots/screenshot-5.jpg | Bin 32523 -> 0 bytes
plugins/smart-youtube/screenshots/screenshot-6.jpg | Bin 29250 -> 0 bytes
plugins/smart-youtube/screenshots/screenshot-7.jpg | Bin 30177 -> 0 bytes
plugins/smart-youtube/screenshots/screenshot-8.jpg | Bin 29553 -> 0 bytes
plugins/smart-youtube/screenshots/screenshot-9.jpg | Bin 27605 -> 0 bytes
plugins/smart-youtube/smartyoutube.chk | 2 -
plugins/smart-youtube/smartyoutube.class.php | 812 ----------
plugins/smart-youtube/smartyoutube.php | 1566 --------------------
plugins/smart-youtube/style.css | 213 ---
plugins/smart-youtube/styleyt.css | 212 ---
plugins/smart-youtube/themes/theme1/colorbox.css | 43 -
.../smart-youtube/themes/theme1/images/border.png | Bin 112 -> 0 bytes
.../themes/theme1/images/controls.png | Bin 1249 -> 0 bytes
.../internet_explorer/borderBottomCenter.png | Bin 111 -> 0 bytes
.../images/internet_explorer/borderBottomLeft.png | Bin 215 -> 0 bytes
.../images/internet_explorer/borderBottomRight.png | Bin 217 -> 0 bytes
.../images/internet_explorer/borderMiddleLeft.png | Bin 108 -> 0 bytes
.../images/internet_explorer/borderMiddleRight.png | Bin 108 -> 0 bytes
.../images/internet_explorer/borderTopCenter.png | Bin 111 -> 0 bytes
.../images/internet_explorer/borderTopLeft.png | Bin 216 -> 0 bytes
.../images/internet_explorer/borderTopRight.png | Bin 214 -> 0 bytes
.../smart-youtube/themes/theme1/images/loading.gif | Bin 9427 -> 0 bytes
.../themes/theme1/images/loading_background.png | Bin 157 -> 0 bytes
.../smart-youtube/themes/theme1/images/overlay.png | Bin 145 -> 0 bytes
plugins/smart-youtube/themes/theme10/colorbox.css | 36 -
.../smart-youtube/themes/theme10/images/close.png | Bin 706 -> 0 bytes
.../themes/theme10/images/loading.gif | Bin 9427 -> 0 bytes
.../smart-youtube/themes/theme10/images/next.png | Bin 1507 -> 0 bytes
.../smart-youtube/themes/theme10/images/prev.png | Bin 1468 -> 0 bytes
plugins/smart-youtube/themes/theme11/colorbox.css | 43 -
.../smart-youtube/themes/theme11/images/border.png | Bin 203 -> 0 bytes
.../themes/theme11/images/controls.png | Bin 3369 -> 0 bytes
.../internet_explorer/borderBottomCenter.png | Bin 190 -> 0 bytes
.../images/internet_explorer/borderBottomLeft.png | Bin 448 -> 0 bytes
.../images/internet_explorer/borderBottomRight.png | Bin 614 -> 0 bytes
.../images/internet_explorer/borderMiddleLeft.png | Bin 169 -> 0 bytes
.../images/internet_explorer/borderMiddleRight.png | Bin 187 -> 0 bytes
.../images/internet_explorer/borderTopCenter.png | Bin 173 -> 0 bytes
.../images/internet_explorer/borderTopLeft.png | Bin 292 -> 0 bytes
.../images/internet_explorer/borderTopRight.png | Bin 453 -> 0 bytes
.../themes/theme11/images/loading.gif | Bin 9427 -> 0 bytes
.../themes/theme11/images/loading_background.png | Bin 157 -> 0 bytes
.../themes/theme11/images/overlay.png | Bin 145 -> 0 bytes
plugins/smart-youtube/themes/theme2/colorbox.css | 41 -
.../themes/theme2/images/controls.png | Bin 570 -> 0 bytes
.../smart-youtube/themes/theme2/images/loading.gif | Bin 9427 -> 0 bytes
plugins/smart-youtube/themes/theme3/colorbox.css | 36 -
.../themes/theme3/images/controls.png | Bin 1633 -> 0 bytes
.../smart-youtube/themes/theme3/images/loading.gif | Bin 9427 -> 0 bytes
plugins/smart-youtube/themes/theme4/colorbox.css | 40 -
.../smart-youtube/themes/theme4/images/border1.png | Bin 896 -> 0 bytes
.../smart-youtube/themes/theme4/images/border2.png | Bin 183 -> 0 bytes
.../internet_explorer/borderBottomCenter.png | Bin 153 -> 0 bytes
.../images/internet_explorer/borderBottomLeft.png | Bin 473 -> 0 bytes
.../images/internet_explorer/borderBottomRight.png | Bin 470 -> 0 bytes
.../images/internet_explorer/borderMiddleLeft.png | Bin 154 -> 0 bytes
.../images/internet_explorer/borderMiddleRight.png | Bin 148 -> 0 bytes
.../images/internet_explorer/borderTopCenter.png | Bin 143 -> 0 bytes
.../images/internet_explorer/borderTopLeft.png | Bin 405 -> 0 bytes
.../images/internet_explorer/borderTopRight.png | Bin 465 -> 0 bytes
.../smart-youtube/themes/theme4/images/loading.gif | Bin 9427 -> 0 bytes
plugins/smart-youtube/themes/theme5/colorbox.css | 50 -
.../smart-youtube/themes/theme5/images/border.png | Bin 163 -> 0 bytes
.../themes/theme5/images/controls.png | Bin 2033 -> 0 bytes
.../smart-youtube/themes/theme5/images/loading.gif | Bin 9427 -> 0 bytes
.../themes/theme5/images/loading_background.png | Bin 166 -> 0 bytes
plugins/smart-youtube/themes/theme6/colorbox.css | 43 -
.../smart-youtube/themes/theme6/images/border.png | Bin 203 -> 0 bytes
.../themes/theme6/images/controls.png | Bin 3369 -> 0 bytes
.../internet_explorer/borderBottomCenter.png | Bin 190 -> 0 bytes
.../images/internet_explorer/borderBottomLeft.png | Bin 448 -> 0 bytes
.../images/internet_explorer/borderBottomRight.png | Bin 614 -> 0 bytes
.../images/internet_explorer/borderMiddleLeft.png | Bin 169 -> 0 bytes
.../images/internet_explorer/borderMiddleRight.png | Bin 187 -> 0 bytes
.../images/internet_explorer/borderTopCenter.png | Bin 173 -> 0 bytes
.../images/internet_explorer/borderTopLeft.png | Bin 292 -> 0 bytes
.../images/internet_explorer/borderTopRight.png | Bin 453 -> 0 bytes
.../smart-youtube/themes/theme6/images/loading.gif | Bin 9427 -> 0 bytes
.../themes/theme6/images/loading_background.png | Bin 157 -> 0 bytes
.../smart-youtube/themes/theme6/images/overlay.png | Bin 145 -> 0 bytes
plugins/smart-youtube/themes/theme7/colorbox.css | 43 -
.../smart-youtube/themes/theme7/images/border.png | Bin 112 -> 0 bytes
.../themes/theme7/images/controls.png | Bin 1249 -> 0 bytes
.../internet_explorer/borderBottomCenter.png | Bin 111 -> 0 bytes
.../images/internet_explorer/borderBottomLeft.png | Bin 215 -> 0 bytes
.../images/internet_explorer/borderBottomRight.png | Bin 217 -> 0 bytes
.../images/internet_explorer/borderMiddleLeft.png | Bin 108 -> 0 bytes
.../images/internet_explorer/borderMiddleRight.png | Bin 108 -> 0 bytes
.../images/internet_explorer/borderTopCenter.png | Bin 111 -> 0 bytes
.../images/internet_explorer/borderTopLeft.png | Bin 216 -> 0 bytes
.../images/internet_explorer/borderTopRight.png | Bin 214 -> 0 bytes
.../smart-youtube/themes/theme7/images/loading.gif | Bin 9427 -> 0 bytes
.../themes/theme7/images/loading_background.png | Bin 157 -> 0 bytes
.../smart-youtube/themes/theme7/images/overlay.png | Bin 145 -> 0 bytes
plugins/smart-youtube/themes/theme8/colorbox.css | 43 -
.../smart-youtube/themes/theme8/images/border.png | Bin 203 -> 0 bytes
.../themes/theme8/images/controls.png | Bin 3369 -> 0 bytes
.../internet_explorer/borderBottomCenter.png | Bin 190 -> 0 bytes
.../images/internet_explorer/borderBottomLeft.png | Bin 448 -> 0 bytes
.../images/internet_explorer/borderBottomRight.png | Bin 614 -> 0 bytes
.../images/internet_explorer/borderMiddleLeft.png | Bin 169 -> 0 bytes
.../images/internet_explorer/borderMiddleRight.png | Bin 187 -> 0 bytes
.../images/internet_explorer/borderTopCenter.png | Bin 173 -> 0 bytes
.../images/internet_explorer/borderTopLeft.png | Bin 292 -> 0 bytes
.../images/internet_explorer/borderTopRight.png | Bin 453 -> 0 bytes
.../smart-youtube/themes/theme8/images/loading.gif | Bin 9427 -> 0 bytes
.../themes/theme8/images/loading_background.png | Bin 157 -> 0 bytes
.../smart-youtube/themes/theme8/images/overlay.png | Bin 145 -> 0 bytes
plugins/smart-youtube/themes/theme9/colorbox.css | 58 -
.../smart-youtube/themes/theme9/images/border1.png | Bin 896 -> 0 bytes
.../smart-youtube/themes/theme9/images/border2.png | Bin 183 -> 0 bytes
.../themes/theme9/images/controls.png | Bin 570 -> 0 bytes
.../internet_explorer/borderBottomCenter.png | Bin 153 -> 0 bytes
.../images/internet_explorer/borderBottomLeft.png | Bin 473 -> 0 bytes
.../images/internet_explorer/borderBottomRight.png | Bin 470 -> 0 bytes
.../images/internet_explorer/borderMiddleLeft.png | Bin 154 -> 0 bytes
.../images/internet_explorer/borderMiddleRight.png | Bin 148 -> 0 bytes
.../images/internet_explorer/borderTopCenter.png | Bin 143 -> 0 bytes
.../images/internet_explorer/borderTopLeft.png | Bin 405 -> 0 bytes
.../images/internet_explorer/borderTopRight.png | Bin 465 -> 0 bytes
.../smart-youtube/themes/theme9/images/loading.gif | Bin 9427 -> 0 bytes
plugins/smart-youtube/yt.js | 124 --
163 files changed, 0 insertions(+), 4448 deletions(-)
diff --git a/plugins/smart-youtube/i/help.png b/plugins/smart-youtube/i/help.png
deleted file mode 100644
index b580f51..0000000
Binary files a/plugins/smart-youtube/i/help.png and /dev/null differ
diff --git a/plugins/smart-youtube/i/home.png b/plugins/smart-youtube/i/home.png
deleted file mode 100644
index ccab192..0000000
Binary files a/plugins/smart-youtube/i/home.png and /dev/null differ
diff --git a/plugins/smart-youtube/i/icon.png b/plugins/smart-youtube/i/icon.png
deleted file mode 100644
index fdab17b..0000000
Binary files a/plugins/smart-youtube/i/icon.png and /dev/null differ
diff --git a/plugins/smart-youtube/i/idea.png b/plugins/smart-youtube/i/idea.png
deleted file mode 100644
index 8d72794..0000000
Binary files a/plugins/smart-youtube/i/idea.png and /dev/null differ
diff --git a/plugins/smart-youtube/i/logo.png b/plugins/smart-youtube/i/logo.png
deleted file mode 100644
index 36b14de..0000000
Binary files a/plugins/smart-youtube/i/logo.png and /dev/null differ
diff --git a/plugins/smart-youtube/i/more.png b/plugins/smart-youtube/i/more.png
deleted file mode 100644
index 8ca1d67..0000000
Binary files a/plugins/smart-youtube/i/more.png and /dev/null differ
diff --git a/plugins/smart-youtube/i/p1.png b/plugins/smart-youtube/i/p1.png
deleted file mode 100644
index d31effc..0000000
Binary files a/plugins/smart-youtube/i/p1.png and /dev/null differ
diff --git a/plugins/smart-youtube/i/paypal.gif b/plugins/smart-youtube/i/paypal.gif
deleted file mode 100644
index b5cda14..0000000
Binary files a/plugins/smart-youtube/i/paypal.gif and /dev/null differ
diff --git a/plugins/smart-youtube/i/rate.png b/plugins/smart-youtube/i/rate.png
deleted file mode 100644
index d41c914..0000000
Binary files a/plugins/smart-youtube/i/rate.png and /dev/null differ
diff --git a/plugins/smart-youtube/i/twit.png b/plugins/smart-youtube/i/twit.png
deleted file mode 100644
index de51c69..0000000
Binary files a/plugins/smart-youtube/i/twit.png and /dev/null differ
diff --git a/plugins/smart-youtube/img/default.jpg b/plugins/smart-youtube/img/default.jpg
deleted file mode 100644
index f8fa049..0000000
Binary files a/plugins/smart-youtube/img/default.jpg and /dev/null differ
diff --git a/plugins/smart-youtube/img/embed_selection-vfl29294.png b/plugins/smart-youtube/img/embed_selection-vfl29294.png
deleted file mode 100644
index b8dfab0..0000000
Binary files a/plugins/smart-youtube/img/embed_selection-vfl29294.png and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_acid_sm.gif b/plugins/smart-youtube/img/preview_embed_acid_sm.gif
deleted file mode 100644
index ff240bf..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_acid_sm.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_acid_sm_nb.gif b/plugins/smart-youtube/img/preview_embed_acid_sm_nb.gif
deleted file mode 100644
index b01d2f4..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_acid_sm_nb.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_blank_sm.gif b/plugins/smart-youtube/img/preview_embed_blank_sm.gif
deleted file mode 100644
index 78f94ca..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_blank_sm.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_blank_sm_nb.gif b/plugins/smart-youtube/img/preview_embed_blank_sm_nb.gif
deleted file mode 100644
index 9726944..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_blank_sm_nb.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_green_sm.gif b/plugins/smart-youtube/img/preview_embed_green_sm.gif
deleted file mode 100644
index 69dbd1b..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_green_sm.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_green_sm_nb.gif b/plugins/smart-youtube/img/preview_embed_green_sm_nb.gif
deleted file mode 100644
index a22f27a..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_green_sm_nb.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_iceberg_sm.gif b/plugins/smart-youtube/img/preview_embed_iceberg_sm.gif
deleted file mode 100644
index 42d8b45..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_iceberg_sm.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_iceberg_sm_nb.gif b/plugins/smart-youtube/img/preview_embed_iceberg_sm_nb.gif
deleted file mode 100644
index 9acbb4b..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_iceberg_sm_nb.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_orange_sm.gif b/plugins/smart-youtube/img/preview_embed_orange_sm.gif
deleted file mode 100644
index 0096037..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_orange_sm.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_orange_sm_nb.gif b/plugins/smart-youtube/img/preview_embed_orange_sm_nb.gif
deleted file mode 100644
index c02860e..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_orange_sm_nb.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_pink_sm.gif b/plugins/smart-youtube/img/preview_embed_pink_sm.gif
deleted file mode 100644
index 26f9d64..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_pink_sm.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_pink_sm_nb.gif b/plugins/smart-youtube/img/preview_embed_pink_sm_nb.gif
deleted file mode 100644
index 5ec1a4a..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_pink_sm_nb.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_purple_sm.gif b/plugins/smart-youtube/img/preview_embed_purple_sm.gif
deleted file mode 100644
index 00920f5..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_purple_sm.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_purple_sm_nb.gif b/plugins/smart-youtube/img/preview_embed_purple_sm_nb.gif
deleted file mode 100644
index 8d80089..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_purple_sm_nb.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_rubyred_sm.gif b/plugins/smart-youtube/img/preview_embed_rubyred_sm.gif
deleted file mode 100644
index 6d8156b..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_rubyred_sm.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_rubyred_sm_nb.gif b/plugins/smart-youtube/img/preview_embed_rubyred_sm_nb.gif
deleted file mode 100644
index 5a24987..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_rubyred_sm_nb.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_storm_sm.gif b/plugins/smart-youtube/img/preview_embed_storm_sm.gif
deleted file mode 100644
index 39ed982..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_storm_sm.gif and /dev/null differ
diff --git a/plugins/smart-youtube/img/preview_embed_storm_sm_nb.gif b/plugins/smart-youtube/img/preview_embed_storm_sm_nb.gif
deleted file mode 100644
index a3da0ac..0000000
Binary files a/plugins/smart-youtube/img/preview_embed_storm_sm_nb.gif and /dev/null differ
diff --git a/plugins/smart-youtube/javascripts/jquery.colorbox-min.js b/plugins/smart-youtube/javascripts/jquery.colorbox-min.js
deleted file mode 100644
index e9400d3..0000000
--- a/plugins/smart-youtube/javascripts/jquery.colorbox-min.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// ColorBox v1.3.15 - a full featured, light-weight, customizable lightbox based on jQuery 1.3+
-// Copyright (c) 2010 Jack Moore - jack@colorpowered.com
-// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
-(function(b,ib){var t="none",M="LoadedContent",c=false,v="resize.",o="y",q="auto",e=true,L="nofollow",m="x";function f(a,c){a=a?' id="'+i+a+'"':"";c=c?' style="'+c+'"':"";return b("<div"+a+c+"/>")}function p(a,b){b=b===m?n.width():n.height();return typeof a==="string"?Math.round(/%/.test(a)?b/100*parseInt(a,10):parseInt(a,10)):a}function U(b){return a.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(b)}function cb(a){for(var c in a)if(b.isFunction(a[c])&&c.substring(0,2)!=="on")a[c]=a[c].call(l);a.rel=a.rel||l.rel||L;a.href=a.href||b(l).attr("href");a.title=a.title||l.title;return a}function w(c,a){a&&a.call(l);b.event.trigger(c)}function jb(){var b,e=i+"Slideshow_",c="click."+i,f,k;if(a.slideshow&&h[1]){f=function(){F.text(a.slideshowStop).unbind(c).bind(V,function(){if(g<h.length-1||a.loop)b=setTimeout(d.next,a.slideshowSpeed)}).bind(W,function(){clearTimeout(b)}).one(c+" "+N,k);j.removeClass(e+"off").addClass(e+"on");b=setTimeout(d.next,a.slideshowSpeed)}
;k=function(){clearTimeout(b);F.text(a.slideshowStart).unbind([V,W,N,c].join(" ")).one(c,f);j.removeClass(e+"on").addClass(e+"off")};a.slideshowAuto?f():k()}}function db(c){if(!O){l=c;a=cb(b.extend({},b.data(l,r)));h=b(l);g=0;if(a.rel!==L){h=b("."+G).filter(function(){return (b.data(this,r).rel||this.rel)===a.rel});g=h.index(l);if(g===-1){h=h.add(l);g=h.length-1}}if(!u){u=D=e;j.show();if(a.returnFocus)try{l.blur();b(l).one(eb,function(){try{this.focus()}catch(a){}})}catch(f){}x.css({opacity:+a.opacity,cursor:a.overlayClose?"pointer":q}).show();a.w=p(a.initialWidth,m);a.h=p(a.initialHeight,o);d.position(0);X&&n.bind(v+P+" scroll."+P,function(){x.css({width:n.width(),height:n.height(),top:n.scrollTop(),left:n.scrollLeft()})}).trigger("scroll."+P);w(fb,a.onOpen);Y.add(H).add(I).add(F).add(Z).hide();ab.html(a.close).show()}d.load(e)}}var gb={transition:"elastic",speed:300,width:c,initialWidth:"600",innerWidth:c,maxWidth:c,height:c,initialHeight:"450",innerHeight:c,maxHeight:c,sc
alePhotos:e,scrolling:e,inline:c,html:c,iframe:c,photo:c,href:c,title:c,rel:c,opacity:.9,preloading:e,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:c,returnFocus:e,loop:e,slideshow:c,slideshowAuto:e,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:c,onLoad:c,onComplete:c,onCleanup:c,onClosed:c,overlayClose:e,escKey:e,arrowKey:e},r="colorbox",i="cbox",fb=i+"_open",W=i+"_load",V=i+"_complete",N=i+"_cleanup",eb=i+"_closed",Q=i+"_purge",hb=i+"_loaded",E=b.browser.msie&&!b.support.opacity,X=E&&b.browser.version<7,P=i+"_IE6",x,j,A,s,bb,T,R,S,h,n,k,J,K,Z,Y,F,I,H,ab,B,C,y,z,l,g,a,u,D,O=c,d,G=i+"Element";d=b.fn[r]=b[r]=function(c,f){var a=this,d;if(!a[0]&&a.selector)return a;c=c||{};if(f)c.onComplete=f;if(!a[0]||a.selector===undefined){a=b("<a/>");c.open=e}a.each(function(){b.data(this,r,b.extend({},b.data(this,r)||gb,c));b(this).addClass(G)});d=c.open;if(b.isFunction(d))d=d.call(a);d&&db(a[0]);return
a};d.init=function(){var l="hover",m="clear:left";n=b(ib);j=f().attr({id:r,"class":E?i+"IE":""});x=f("Overlay",X?"position:absolute":"").hide();A=f("Wrapper");s=f("Content").append(k=f(M,"width:0; height:0; overflow:hidden"),K=f("LoadingOverlay").add(f("LoadingGraphic")),Z=f("Title"),Y=f("Current"),I=f("Next"),H=f("Previous"),F=f("Slideshow").bind(fb,jb),ab=f("Close"));A.append(f().append(f("TopLeft"),bb=f("TopCenter"),f("TopRight")),f(c,m).append(T=f("MiddleLeft"),s,R=f("MiddleRight")),f(c,m).append(f("BottomLeft"),S=f("BottomCenter"),f("BottomRight"))).children().children().css({"float":"left"});J=f(c,"position:absolute; width:9999px; visibility:hidden; display:none");b("body").prepend(x,j.append(A,J));s.children().hover(function(){b(this).addClass(l)},function(){b(this).removeClass(l)}).addClass(l);B=bb.height()+S.height()+s.outerHeight(e)-s.height();C=T.width()+R.width()+s.outerWidth(e)-s.width();y=k.outerHeight(e);z=k.outerWidth(e);j.css({"padding-bottom":B,"padding-ri
ght":C}).hide();I.click(d.next);H.click(d.prev);ab.click(d.close);s.children().removeClass(l);b("."+G).live("click",function(a){if(!(a.button!==0&&typeof a.button!=="undefined"||a.ctrlKey||a.shiftKey||a.altKey)){a.preventDefault();db(this)}});x.click(function(){a.overlayClose&&d.close()});b(document).bind("keydown",function(b){if(u&&a.escKey&&b.keyCode===27){b.preventDefault();d.close()}if(u&&a.arrowKey&&!D&&h[1])if(b.keyCode===37&&(g||a.loop)){b.preventDefault();H.click()}else if(b.keyCode===39&&(g<h.length-1||a.loop)){b.preventDefault();I.click()}})};d.remove=function(){j.add(x).remove();b("."+G).die("click").removeData(r).removeClass(G)};d.position=function(f,d){function b(a){bb[0].style.width=S[0].style.width=s[0].style.width=a.style.width;K[0].style.height=K[1].style.height=s[0].style.height=T[0].style.height=R[0].style.height=a.style.height}var e,h=Math.max(document.documentElement.clientHeight-a.h-y-B,0)/2+n.scrollTop(),g=Math.max(n.width()-a.w-z-C,0)/2+n.scrollLeft()
;e=j.width()===a.w+z&&j.height()===a.h+y?0:f;A[0].style.width=A[0].style.height="9999px";j.dequeue().animate({width:a.w+z,height:a.h+y,top:h,left:g},{duration:e,complete:function(){b(this);D=c;A[0].style.width=a.w+z+C+"px";A[0].style.height=a.h+y+B+"px";d&&d()},step:function(){b(this)}})};d.resize=function(b){if(u){b=b||{};if(b.width)a.w=p(b.width,m)-z-C;if(b.innerWidth)a.w=p(b.innerWidth,m);k.css({width:a.w});if(b.height)a.h=p(b.height,o)-y-B;if(b.innerHeight)a.h=p(b.innerHeight,o);if(!b.innerHeight&&!b.height){b=k.wrapInner("<div style='overflow:auto'></div>").children();a.h=b.height();b.replaceWith(b.children())}k.css({height:a.h});d.position(a.transition===t?0:a.speed)}};d.prep=function(m){var c="hidden";function l(s){var p,f,m,c,l=h.length,q=a.loop;d.position(s,function(){function s(){E&&j[0].style.removeAttribute("filter")}if(u){E&&o&&k.fadeIn(100);k.show();w(hb);Z.show().html(a.title);if(l>1){typeof a.current==="string"&&Y.html(a.current.replace(/\{current\}/,g+1).rep
lace(/\{total\}/,l)).show();I[q||g<l-1?"show":"hide"]().html(a.next);H[q||g?"show":"hide"]().html(a.previous);p=g?h[g-1]:h[l-1];m=g<l-1?h[g+1]:h[0];a.slideshow&&F.show();if(a.preloading){c=b.data(m,r).href||m.href;f=b.data(p,r).href||p.href;c=b.isFunction(c)?c.call(m):c;f=b.isFunction(f)?f.call(p):f;if(U(c))b("<img/>")[0].src=c;if(U(f))b("<img/>")[0].src=f}}K.hide();a.transition==="fade"?j.fadeTo(e,1,function(){s()}):s();n.bind(v+i,function(){d.position(0)});w(V,a.onComplete)}})}if(u){var o,e=a.transition===t?0:a.speed;n.unbind(v+i);k.remove();k=f(M).html(m);k.hide().appendTo(J.show()).css({width:function(){a.w=a.w||k.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w}(),overflow:a.scrolling?q:c}).css({height:function(){a.h=a.h||k.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h}()}).prependTo(s);J.hide();b("#"+i+"Photo").css({cssFloat:t,marginLeft:q,marginRight:q});X&&b("select").not(j.find("select")).filter(function(){return this.style.visibility!==c}).css({visibility:c}).one(N
,function(){this.style.visibility="inherit"});a.transition==="fade"?j.fadeTo(e,0,function(){l(0)}):l(e)}};d.load=function(u){var n,c,s,q=d.prep;D=e;l=h[g];u||(a=cb(b.extend({},b.data(l,r))));w(Q);w(W,a.onLoad);a.h=a.height?p(a.height,o)-y-B:a.innerHeight&&p(a.innerHeight,o);a.w=a.width?p(a.width,m)-z-C:a.innerWidth&&p(a.innerWidth,m);a.mw=a.w;a.mh=a.h;if(a.maxWidth){a.mw=p(a.maxWidth,m)-z-C;a.mw=a.w&&a.w<a.mw?a.w:a.mw}if(a.maxHeight){a.mh=p(a.maxHeight,o)-y-B;a.mh=a.h&&a.h<a.mh?a.h:a.mh}n=a.href;K.show();if(a.inline){f().hide().insertBefore(b(n)[0]).one(Q,function(){b(this).replaceWith(k.children())});q(b(n))}else if(a.iframe){j.one(hb,function(){var c=b("<iframe frameborder='0' style='width:100%; height:100%; border:0; display:block'/>")[0];c.name=i+ +new Date;c.src=a.href;if(!a.scrolling)c.scrolling="no";if(E)c.allowtransparency="true";b(c).appendTo(k).one(Q,function(){c.src="//about:blank"})});q(" ")}else if(a.html)q(a.html);else if(U(n)){c=new Image;c.onload=function(){v
ar e;c.onload=null;c.id=i+"Photo";b(c).css({border:t,display:"block",cssFloat:"left"});if(a.scalePhotos){s=function(){c.height-=c.height*e;c.width-=c.width*e};if(a.mw&&c.width>a.mw){e=(c.width-a.mw)/c.width;s()}if(a.mh&&c.height>a.mh){e=(c.height-a.mh)/c.height;s()}}if(a.h)c.style.marginTop=Math.max(a.h-c.height,0)/2+"px";h[1]&&(g<h.length-1||a.loop)&&b(c).css({cursor:"pointer"}).click(d.next);if(E)c.style.msInterpolationMode="bicubic";setTimeout(function(){q(c)},1)};setTimeout(function(){c.src=n},1)}else n&&J.load(n,function(d,c,a){q(c==="error"?"Request unsuccessful: "+a.statusText:b(this).children())})};d.next=function(){if(!D){g=g<h.length-1?g+1:0;d.load()}};d.prev=function(){if(!D){g=g?g-1:h.length-1;d.load()}};d.close=function(){if(u&&!O){O=e;u=c;w(N,a.onCleanup);n.unbind("."+i+" ."+P);x.fadeTo("fast",0);j.stop().fadeTo("fast",0,function(){w(Q);k.remove();j.add(x).css({opacity:1,cursor:q}).hide();setTimeout(function(){O=c;w(eb,a.onClosed)},1)})}};d.element=function(){r
eturn b(l)};d.settings=gb;b(d.init)})(jQuery,this);
diff --git a/plugins/smart-youtube/javascripts/jquery.colorbox.js b/plugins/smart-youtube/javascripts/jquery.colorbox.js
deleted file mode 100644
index 86f875f..0000000
--- a/plugins/smart-youtube/javascripts/jquery.colorbox.js
+++ /dev/null
@@ -1,788 +0,0 @@
-// ColorBox v1.3.15 - a full featured, light-weight, customizable lightbox based on jQuery 1.3+
-// Copyright (c) 2010 Jack Moore - jack@colorpowered.com
-// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
-(function ($, window) {
-
- var
- // ColorBox Default Settings.
- // See http://colorpowered.com/colorbox for details.
- defaults = {
- transition: "elastic",
- speed: 300,
- width: false,
- initialWidth: "600",
- innerWidth: false,
- maxWidth: false,
- height: false,
- initialHeight: "450",
- innerHeight: false,
- maxHeight: false,
- scalePhotos: true,
- scrolling: true,
- inline: false,
- html: false,
- iframe: false,
- photo: false,
- href: false,
- title: false,
- rel: false,
- opacity: 0.9,
- preloading: true,
- current: "image {current} of {total}",
- previous: "previous",
- next: "next",
- close: "close",
- open: false,
- returnFocus: true,
- loop: true,
- slideshow: false,
- slideshowAuto: true,
- slideshowSpeed: 2500,
- slideshowStart: "start slideshow",
- slideshowStop: "stop slideshow",
- onOpen: false,
- onLoad: false,
- onComplete: false,
- onCleanup: false,
- onClosed: false,
- overlayClose: true,
- escKey: true,
- arrowKey: true
- },
-
- // Abstracting the HTML and event identifiers for easy rebranding
- colorbox = 'colorbox',
- prefix = 'cbox',
-
- // Events
- event_open = prefix + '_open',
- event_load = prefix + '_load',
- event_complete = prefix + '_complete',
- event_cleanup = prefix + '_cleanup',
- event_closed = prefix + '_closed',
- event_purge = prefix + '_purge',
- event_loaded = prefix + '_loaded',
-
- // Special Handling for IE
- isIE = $.browser.msie && !$.support.opacity, // feature detection alone gave a false positive on at least one phone browser and on some development versions of Chrome.
- isIE6 = isIE && $.browser.version < 7,
- event_ie6 = prefix + '_IE6',
-
- // Cached jQuery Object Variables
- $overlay,
- $box,
- $wrap,
- $content,
- $topBorder,
- $leftBorder,
- $rightBorder,
- $bottomBorder,
- $related,
- $window,
- $loaded,
- $loadingBay,
- $loadingOverlay,
- $title,
- $current,
- $slideshow,
- $next,
- $prev,
- $close,
-
- // Variables for cached values or use across multiple functions
- interfaceHeight,
- interfaceWidth,
- loadedHeight,
- loadedWidth,
- element,
- index,
- settings,
- open,
- active,
- closing = false,
-
- publicMethod,
- boxElement = prefix + 'Element';
-
- // ****************
- // HELPER FUNCTIONS
- // ****************
-
- // jQuery object generator to reduce code size
- function $div(id, css) {
- id = id ? ' id="' + prefix + id + '"' : '';
- css = css ? ' style="' + css + '"' : '';
- return $('<div' + id + css + '/>');
- }
-
- // Convert % values to pixels
- function setSize(size, dimension) {
- dimension = dimension === 'x' ? $window.width() : $window.height();
- return (typeof size === 'string') ? Math.round((/%/.test(size) ? (dimension / 100) * parseInt(size, 10) : parseInt(size, 10))) : size;
- }
-
- // Checks an href to see if it is a photo.
- // There is a force photo option (photo: true) for hrefs that cannot be matched by this regex.
- function isImage(url) {
- return settings.photo || /\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(url);
- }
-
- // Assigns function results to their respective settings. This allows functions to be used as values.
- function process(settings) {
- for (var i in settings) {
- if ($.isFunction(settings[i]) && i.substring(0, 2) !== 'on') { // checks to make sure the function isn't one of the callbacks, they will be handled at the appropriate time.
- settings[i] = settings[i].call(element);
- }
- }
- settings.rel = settings.rel || element.rel || 'nofollow';
- settings.href = settings.href || $(element).attr('href');
- settings.title = settings.title || element.title;
- return settings;
- }
-
- function trigger(event, callback) {
- if (callback) {
- callback.call(element);
- }
- $.event.trigger(event);
- }
-
- // Slideshow functionality
- function slideshow() {
- var
- timeOut,
- className = prefix + "Slideshow_",
- click = "click." + prefix,
- start,
- stop,
- clear;
-
- if (settings.slideshow && $related[1]) {
- start = function () {
- $slideshow
- .text(settings.slideshowStop)
- .unbind(click)
- .bind(event_complete, function () {
- if (index < $related.length - 1 || settings.loop) {
- timeOut = setTimeout(publicMethod.next, settings.slideshowSpeed);
- }
- })
- .bind(event_load, function () {
- clearTimeout(timeOut);
- })
- .one(click + ' ' + event_cleanup, stop);
- $box.removeClass(className + "off").addClass(className + "on");
- timeOut = setTimeout(publicMethod.next, settings.slideshowSpeed);
- };
-
- stop = function () {
- clearTimeout(timeOut);
- $slideshow
- .text(settings.slideshowStart)
- .unbind([event_complete, event_load, event_cleanup, click].join(' '))
- .one(click, start);
- $box.removeClass(className + "on").addClass(className + "off");
- };
-
- if (settings.slideshowAuto) {
- start();
- } else {
- stop();
- }
- }
- }
-
- function launch(elem) {
- if (!closing) {
-
- element = elem;
-
- settings = process($.extend({}, $.data(element, colorbox)));
-
- $related = $(element);
-
- index = 0;
-
- if (settings.rel !== 'nofollow') {
- $related = $('.' + boxElement).filter(function () {
- var relRelated = $.data(this, colorbox).rel || this.rel;
- return (relRelated === settings.rel);
- });
- index = $related.index(element);
-
- // Check direct calls to ColorBox.
- if (index === -1) {
- $related = $related.add(element);
- index = $related.length - 1;
- }
- }
-
- if (!open) {
- open = active = true; // Prevents the page-change action from queuing up if the visitor holds down the left or right keys.
-
- $box.show();
-
- if (settings.returnFocus) {
- try {
- element.blur();
- $(element).one(event_closed, function () {
- try {
- this.focus();
- } catch (e) {
- // do nothing
- }
- });
- } catch (e) {
- // do nothing
- }
- }
-
- // +settings.opacity avoids a problem in IE when using non-zero-prefixed-string-values, like '.5'
- $overlay.css({"opacity": +settings.opacity, "cursor": settings.overlayClose ? "pointer" : "auto"}).show();
-
- // Opens inital empty ColorBox prior to content being loaded.
- settings.w = setSize(settings.initialWidth, 'x');
- settings.h = setSize(settings.initialHeight, 'y');
- publicMethod.position(0);
-
- if (isIE6) {
- $window.bind('resize.' + event_ie6 + ' scroll.' + event_ie6, function () {
- $overlay.css({width: $window.width(), height: $window.height(), top: $window.scrollTop(), left: $window.scrollLeft()});
- }).trigger('scroll.' + event_ie6);
- }
-
- trigger(event_open, settings.onOpen);
-
- $current.add($prev).add($next).add($slideshow).add($title).hide();
-
- $close.html(settings.close).show();
- }
-
- publicMethod.load(true);
- }
- }
-
- // ****************
- // PUBLIC FUNCTIONS
- // Usage format: $.fn.colorbox.close();
- // Usage from within an iframe: parent.$.fn.colorbox.close();
- // ****************
-
- publicMethod = $.fn[colorbox] = $[colorbox] = function (options, callback) {
- var $this = this, autoOpen;
-
- if (!$this[0] && $this.selector) { // if a selector was given and it didn't match any elements, go ahead and exit.
- return $this;
- }
-
- options = options || {};
-
- if (callback) {
- options.onComplete = callback;
- }
-
- if (!$this[0] || $this.selector === undefined) { // detects $.colorbox() and $.fn.colorbox()
- $this = $('<a/>');
- options.open = true; // assume an immediate open
- }
-
- $this.each(function () {
- $.data(this, colorbox, $.extend({}, $.data(this, colorbox) || defaults, options));
- $(this).addClass(boxElement);
- });
-
- autoOpen = options.open;
-
- if ($.isFunction(autoOpen)) {
- autoOpen = autoOpen.call($this);
- }
-
- if (autoOpen) {
- launch($this[0]);
- }
-
- return $this;
- };
-
- // Initialize ColorBox: store common calculations, preload the interface graphics, append the html.
- // This preps colorbox for a speedy open when clicked, and lightens the burdon on the browser by only
- // having to run once, instead of each time colorbox is opened.
- publicMethod.init = function () {
- // Create & Append jQuery Objects
- $window = $(window);
- $box = $div().attr({id: colorbox, 'class': isIE ? prefix + 'IE' : ''});
- $overlay = $div("Overlay", isIE6 ? 'position:absolute' : '').hide();
-
- $wrap = $div("Wrapper");
- $content = $div("Content").append(
- $loaded = $div("LoadedContent", 'width:0; height:0; overflow:hidden'),
- $loadingOverlay = $div("LoadingOverlay").add($div("LoadingGraphic")),
- $title = $div("Title"),
- $current = $div("Current"),
- $next = $div("Next"),
- $prev = $div("Previous"),
- $slideshow = $div("Slideshow").bind(event_open, slideshow),
- $close = $div("Close")
- );
- $wrap.append( // The 3x3 Grid that makes up ColorBox
- $div().append(
- $div("TopLeft"),
- $topBorder = $div("TopCenter"),
- $div("TopRight")
- ),
- $div(false, 'clear:left').append(
- $leftBorder = $div("MiddleLeft"),
- $content,
- $rightBorder = $div("MiddleRight")
- ),
- $div(false, 'clear:left').append(
- $div("BottomLeft"),
- $bottomBorder = $div("BottomCenter"),
- $div("BottomRight")
- )
- ).children().children().css({'float': 'left'});
-
- $loadingBay = $div(false, 'position:absolute; width:9999px; visibility:hidden; display:none');
-
- $('body').prepend($overlay, $box.append($wrap, $loadingBay));
-
- $content.children()
- .hover(function () {
- $(this).addClass('hover');
- }, function () {
- $(this).removeClass('hover');
- }).addClass('hover');
-
- // Cache values needed for size calculations
- interfaceHeight = $topBorder.height() + $bottomBorder.height() + $content.outerHeight(true) - $content.height();//Subtraction needed for IE6
- interfaceWidth = $leftBorder.width() + $rightBorder.width() + $content.outerWidth(true) - $content.width();
- loadedHeight = $loaded.outerHeight(true);
- loadedWidth = $loaded.outerWidth(true);
-
- // Setting padding to remove the need to do size conversions during the animation step.
- $box.css({"padding-bottom": interfaceHeight, "padding-right": interfaceWidth}).hide();
-
- // Setup button events.
- $next.click(publicMethod.next);
- $prev.click(publicMethod.prev);
- $close.click(publicMethod.close);
-
- // Adding the 'hover' class allowed the browser to load the hover-state
- // background graphics. The class can now can be removed.
- $content.children().removeClass('hover');
-
- $('.' + boxElement).live('click', function (e) {
- // checks to see if it was a non-left mouse-click and for clicks modified with ctrl, shift, or alt.
- if (!((e.button !== 0 && typeof e.button !== 'undefined') || e.ctrlKey || e.shiftKey || e.altKey)) {
- e.preventDefault();
- launch(this);
- }
- });
-
- $overlay.click(function () {
- if (settings.overlayClose) {
- publicMethod.close();
- }
- });
-
- // Set Navigation Key Bindings
- $(document).bind("keydown", function (e) {
- if (open && settings.escKey && e.keyCode === 27) {
- e.preventDefault();
- publicMethod.close();
- }
- if (open && settings.arrowKey && !active && $related[1]) {
- if (e.keyCode === 37 && (index || settings.loop)) {
- e.preventDefault();
- $prev.click();
- } else if (e.keyCode === 39 && (index < $related.length - 1 || settings.loop)) {
- e.preventDefault();
- $next.click();
- }
- }
- });
- };
-
- publicMethod.remove = function () {
- $box.add($overlay).remove();
- $('.' + boxElement).die('click').removeData(colorbox).removeClass(boxElement);
- };
-
- publicMethod.position = function (speed, loadedCallback) {
- var
- animate_speed,
- // keeps the top and left positions within the browser's viewport.
- posTop = Math.max(document.documentElement.clientHeight - settings.h - loadedHeight - interfaceHeight, 0) / 2 + $window.scrollTop(),
- posLeft = Math.max($window.width() - settings.w - loadedWidth - interfaceWidth, 0) / 2 + $window.scrollLeft();
-
- // setting the speed to 0 to reduce the delay between same-sized content.
- animate_speed = ($box.width() === settings.w + loadedWidth && $box.height() === settings.h + loadedHeight) ? 0 : speed;
-
- // this gives the wrapper plenty of breathing room so it's floated contents can move around smoothly,
- // but it has to be shrank down around the size of div#colorbox when it's done. If not,
- // it can invoke an obscure IE bug when using iframes.
- $wrap[0].style.width = $wrap[0].style.height = "9999px";
-
- function modalDimensions(that) {
- // loading overlay height has to be explicitly set for IE6.
- $topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = that.style.width;
- $loadingOverlay[0].style.height = $loadingOverlay[1].style.height = $content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = that.style.height;
- }
-
- $box.dequeue().animate({width: settings.w + loadedWidth, height: settings.h + loadedHeight, top: posTop, left: posLeft}, {
- duration: animate_speed,
- complete: function () {
- modalDimensions(this);
-
- active = false;
-
- // shrink the wrapper down to exactly the size of colorbox to avoid a bug in IE's iframe implementation.
- $wrap[0].style.width = (settings.w + loadedWidth + interfaceWidth) + "px";
- $wrap[0].style.height = (settings.h + loadedHeight + interfaceHeight) + "px";
-
- if (loadedCallback) {
- loadedCallback();
- }
- },
- step: function () {
- modalDimensions(this);
- }
- });
- };
-
- publicMethod.resize = function (options) {
- if (open) {
- options = options || {};
-
- if (options.width) {
- settings.w = setSize(options.width, 'x') - loadedWidth - interfaceWidth;
- }
- if (options.innerWidth) {
- settings.w = setSize(options.innerWidth, 'x');
- }
- $loaded.css({width: settings.w});
-
- if (options.height) {
- settings.h = setSize(options.height, 'y') - loadedHeight - interfaceHeight;
- }
- if (options.innerHeight) {
- settings.h = setSize(options.innerHeight, 'y');
- }
- if (!options.innerHeight && !options.height) {
- var $child = $loaded.wrapInner("<div style='overflow:auto'></div>").children(); // temporary wrapper to get an accurate estimate of just how high the total content should be.
- settings.h = $child.height();
- $child.replaceWith($child.children()); // ditch the temporary wrapper div used in height calculation
- }
- $loaded.css({height: settings.h});
-
- publicMethod.position(settings.transition === "none" ? 0 : settings.speed);
- }
- };
-
- publicMethod.prep = function (object) {
- if (!open) {
- return;
- }
-
- var photo,
- speed = settings.transition === "none" ? 0 : settings.speed;
-
- $window.unbind('resize.' + prefix);
- $loaded.remove();
- $loaded = $div('LoadedContent').html(object);
-
- function getWidth() {
- settings.w = settings.w || $loaded.width();
- settings.w = settings.mw && settings.mw < settings.w ? settings.mw : settings.w;
- return settings.w;
- }
- function getHeight() {
- settings.h = settings.h || $loaded.height();
- settings.h = settings.mh && settings.mh < settings.h ? settings.mh : settings.h;
- return settings.h;
- }
-
- $loaded.hide()
- .appendTo($loadingBay.show())// content has to be appended to the DOM for accurate size calculations.
- .css({width: getWidth(), overflow: settings.scrolling ? 'auto' : 'hidden'})
- .css({height: getHeight()})// sets the height independently from the width in case the new width influences the value of height.
- .prependTo($content);
-
- $loadingBay.hide();
-
- // floating the IMG removes the bottom line-height and fixed a problem where IE miscalculates the width of the parent element as 100% of the document width.
- $('#' + prefix + 'Photo').css({cssFloat: 'none', marginLeft: 'auto', marginRight: 'auto'});
-
- // Hides SELECT elements in IE6 because they would otherwise sit on top of the overlay.
- if (isIE6) {
- $('select').not($box.find('select')).filter(function () {
- return this.style.visibility !== 'hidden';
- }).css({'visibility': 'hidden'}).one(event_cleanup, function () {
- this.style.visibility = 'inherit';
- });
- }
-
- function setPosition(s) {
- var prev, prevSrc, next, nextSrc, total = $related.length, loop = settings.loop;
- publicMethod.position(s, function () {
- function defilter() {
- if (isIE) {
- //IE adds a filter when ColorBox fades in and out that can cause problems if the loaded content contains transparent pngs.
- $box[0].style.removeAttribute("filter");
- }
- }
-
- if (!open) {
- return;
- }
-
- if (isIE) {
- //This fadeIn helps the bicubic resampling to kick-in.
- if (photo) {
- $loaded.fadeIn(100);
- }
- }
-
- $loaded.show();
-
- trigger(event_loaded);
-
- $title.show().html(settings.title);
-
- if (total > 1) { // handle grouping
- if (typeof settings.current === "string") {
- $current.html(settings.current.replace(/\{current\}/, index + 1).replace(/\{total\}/, total)).show();
- }
-
- $next[(loop || index < total - 1) ? "show" : "hide"]().html(settings.next);
- $prev[(loop || index) ? "show" : "hide"]().html(settings.previous);
-
- prev = index ? $related[index - 1] : $related[total - 1];
- next = index < total - 1 ? $related[index + 1] : $related[0];
-
- if (settings.slideshow) {
- $slideshow.show();
- }
-
- // Preloads images within a rel group
- if (settings.preloading) {
- nextSrc = $.data(next, colorbox).href || next.href;
- prevSrc = $.data(prev, colorbox).href || prev.href;
-
- nextSrc = $.isFunction(nextSrc) ? nextSrc.call(next) : nextSrc;
- prevSrc = $.isFunction(prevSrc) ? prevSrc.call(prev) : prevSrc;
-
- if (isImage(nextSrc)) {
- $('<img/>')[0].src = nextSrc;
- }
-
- if (isImage(prevSrc)) {
- $('<img/>')[0].src = prevSrc;
- }
- }
- }
-
- $loadingOverlay.hide();
-
- if (settings.transition === 'fade') {
- $box.fadeTo(speed, 1, function () {
- defilter();
- });
- } else {
- defilter();
- }
-
- $window.bind('resize.' + prefix, function () {
- publicMethod.position(0);
- });
-
- trigger(event_complete, settings.onComplete);
- });
- }
-
- if (settings.transition === 'fade') {
- $box.fadeTo(speed, 0, function () {
- setPosition(0);
- });
- } else {
- setPosition(speed);
- }
- };
-
- publicMethod.load = function (launched) {
- var href, img, setResize, prep = publicMethod.prep;
-
- active = true;
- element = $related[index];
-
- if (!launched) {
- settings = process($.extend({}, $.data(element, colorbox)));
- }
-
- trigger(event_purge);
-
- trigger(event_load, settings.onLoad);
-
- settings.h = settings.height ?
- setSize(settings.height, 'y') - loadedHeight - interfaceHeight :
- settings.innerHeight && setSize(settings.innerHeight, 'y');
-
- settings.w = settings.width ?
- setSize(settings.width, 'x') - loadedWidth - interfaceWidth :
- settings.innerWidth && setSize(settings.innerWidth, 'x');
-
- // Sets the minimum dimensions for use in image scaling
- settings.mw = settings.w;
- settings.mh = settings.h;
-
- // Re-evaluate the minimum width and height based on maxWidth and maxHeight values.
- // If the width or height exceed the maxWidth or maxHeight, use the maximum values instead.
- if (settings.maxWidth) {
- settings.mw = setSize(settings.maxWidth, 'x') - loadedWidth - interfaceWidth;
- settings.mw = settings.w && settings.w < settings.mw ? settings.w : settings.mw;
- }
- if (settings.maxHeight) {
- settings.mh = setSize(settings.maxHeight, 'y') - loadedHeight - interfaceHeight;
- settings.mh = settings.h && settings.h < settings.mh ? settings.h : settings.mh;
- }
-
- href = settings.href;
-
- $loadingOverlay.show();
-
- if (settings.inline) {
- // Inserts an empty placeholder where inline content is being pulled from.
- // An event is bound to put inline content back when ColorBox closes or loads new content.
- $div().hide().insertBefore($(href)[0]).one(event_purge, function () {
- $(this).replaceWith($loaded.children());
- });
- prep($(href));
- } else if (settings.iframe) {
- // IFrame element won't be added to the DOM until it is ready to be displayed,
- // to avoid problems with DOM-ready JS that might be trying to run in that iframe.
- $box.one(event_loaded, function () {
- var iframe = $("<iframe frameborder='0' style='width:100%; height:100%; border:0; display:block'/>")[0];
- iframe.name = prefix + (+new Date());
- iframe.src = settings.href;
-
- if (!settings.scrolling) {
- iframe.scrolling = "no";
- }
-
- if (isIE) {
- iframe.allowtransparency = "true";
- }
-
- $(iframe).appendTo($loaded).one(event_purge, function () {
- iframe.src = "//about:blank";
- });
- });
-
- prep(" ");
- } else if (settings.html) {
- prep(settings.html);
- } else if (isImage(href)) {
- img = new Image();
- img.onload = function () {
- var percent;
- img.onload = null;
- img.id = prefix + 'Photo';
- $(img).css({border: 'none', display: 'block', cssFloat: 'left'});
- if (settings.scalePhotos) {
- setResize = function () {
- img.height -= img.height * percent;
- img.width -= img.width * percent;
- };
- if (settings.mw && img.width > settings.mw) {
- percent = (img.width - settings.mw) / img.width;
- setResize();
- }
- if (settings.mh && img.height > settings.mh) {
- percent = (img.height - settings.mh) / img.height;
- setResize();
- }
- }
-
- if (settings.h) {
- img.style.marginTop = Math.max(settings.h - img.height, 0) / 2 + 'px';
- }
-
- if ($related[1] && (index < $related.length - 1 || settings.loop)) {
- $(img).css({cursor: 'pointer'}).click(publicMethod.next);
- }
-
- if (isIE) {
- img.style.msInterpolationMode = 'bicubic';
- }
-
- setTimeout(function () { // Chrome will sometimes report a 0 by 0 size if there isn't pause in execution
- prep(img);
- }, 1);
- };
-
- setTimeout(function () { // Opera 10.6+ will sometimes load the src before the onload function is set
- img.src = href;
- }, 1);
- } else if (href) {
- $loadingBay.load(href, function (data, status, xhr) {
- prep(status === 'error' ? 'Request unsuccessful: ' + xhr.statusText : $(this).children());
- });
- }
- };
-
- // Navigates to the next page/image in a set.
- publicMethod.next = function () {
- if (!active) {
- index = index < $related.length - 1 ? index + 1 : 0;
- publicMethod.load();
- }
- };
-
- publicMethod.prev = function () {
- if (!active) {
- index = index ? index - 1 : $related.length - 1;
- publicMethod.load();
- }
- };
-
- // Note: to use this within an iframe use the following format: parent.$.fn.colorbox.close();
- publicMethod.close = function () {
- if (open && !closing) {
- closing = true;
-
- open = false;
-
- trigger(event_cleanup, settings.onCleanup);
-
- $window.unbind('.' + prefix + ' .' + event_ie6);
-
- $overlay.fadeTo('fast', 0);
-
- $box.stop().fadeTo('fast', 0, function () {
-
- trigger(event_purge);
-
- $loaded.remove();
-
- $box.add($overlay).css({'opacity': 1, cursor: 'auto'}).hide();
-
- setTimeout(function () {
- closing = false;
- trigger(event_closed, settings.onClosed);
- }, 1);
- });
- }
- };
-
- // A method for fetching the current element ColorBox is referencing.
- // returns a jQuery object.
- publicMethod.element = function () {
- return $(element);
- };
-
- publicMethod.settings = defaults;
-
- // Initializes ColorBox when the DOM has loaded
- $(publicMethod.init);
-
-}(jQuery, this));
\ No newline at end of file
diff --git a/plugins/smart-youtube/readme.txt b/plugins/smart-youtube/readme.txt
deleted file mode 100644
index 27bcf08..0000000
--- a/plugins/smart-youtube/readme.txt
+++ /dev/null
@@ -1,251 +0,0 @@
-=== Smart YouTube PRO ===
-Contributors: freediver
-Donate link: https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=520781390
-Tags: youtube, video, play, media, Post, posts, admin, metacafe, liveleak, vimeo, facebook, thumbnails
-Requires at least: 2.0
-Tested up to: 3.3.2
-Stable tag: trunk
-
-Smart Youtube is a professional WordPress Video plugin that allows you to easily insert videos/playlists into your post, comments and in your RSS feed. The plugin is designed to be small and fast and not use any external resources.
-
-== Description ==
-
-Smart Youtube is one of the most popular WordPress plugins, with more than 1,000,000 downloads to date..
-
-From version 4.0 Smart Youtube changed the name to Smart Youtube PRO and now also supports playback of **Youtube, Vimeo, Metacafe, Liveleak and Facebook** high quality videos, **works on iPhone & iPad**, produces xHTML valid code (unlike YouTube embed code), allows you to view videos in fullscreen, has **video thumbnails support**, has robust widget support and much more.
-
-The plugin is designed to be small and fast and not use any external resources. It has a number of customizable options.
-
-Main Features:
-
-* Easily embeds YouTube, Vimeo, Metacafe, Liveleak and Facebook videos (normal/HD mode)
-* Works on iPhone, iPad and iPod
-* Embed YouTube playlist (normal/HD)
-* Supports latest high definition video protocols
-* Extract video thumbnails in your archive/category posts
-* Provides a sidebar widget for videos as well
-* Supports video deep linking (starting at desired point with &start=time parameter)
-* Autoplay videos, autoplay only the first video on the page (if multiple vidoes)
-* Show video in Colorbox
-* Supports migrated blogs from Wordpress.com
-* Supports migration from other Youtube plugins such as wp-youtube
-* Produces xHTML valid code
-
-
-Example:
-http://www.youtube.com/watch?v=zlfKdbWwruY
-
-**Related plugins:**
-
-* [Theme Test Drive](http://wordpress.org/extend/plugins/theme-test-drive/)
-* [WP Quick Deploy](http://wordpress.org/extend/plugins/wp-quick-deploy/)
-
-If you like what I do in WordPress, you will also like [ManageWP](http://managewp.com "Manage WordPress sites") service.
-
-For updates, you can check out [my blog](http://www.prelovac.com/vladimir/) or follow me on Twitter [@vprelovac](http://twitter.com/vprelovac).
-
-
-
-
-== Changelog ==
-
-= 4.1.6 =
-* Loop videos workaround
-
-= 4.1.4 =
-* Support for HTTPS in the dashboard (thanks to Mile Rosu)
-
-= 4.1.3 =
-* Fixed support for videos in RSS feed
-
-= 4.1.2 =
-* Playlists fixed, make sure to use the new format for playlist embed ie. httpvp://www.youtube.com/playlist?list=PL050E43A49BC5E5E5
-
-= 4.1.1 =
-* Logo-less mode fix
-
-= 4.1.0 =
-* Added wmode=transparent as default paramater
-* Added support for new Playlist format
-
-= 4.0.3 =
-* More bug fixes
-
-= 4.0.2 =
-* Bug fix release
-
-= 4.0 =
-* Major release
-* Added support for Vimeo, Metacafe, Liveleak and Facebook videos
-* New, much better, sidebar Widget support
-* Extract Video thumbnails to show in your excerpts on categories/archive pages
-* Show video in Colorbox
-* Now parses http:// and httpv:// videos just the same
-* Option to autoplay only the first video on the page
-* Plugin localization support
-
-= 3.9.1 =
-* Support for [WiziApp](http://www.wiziapp.com/ "WiziApp")
-* Bug fixes
-
-= 3.9.0 =
-* Support for no-branding player
-* Fixed a bug with two dashes in name
-
-= 3.8.9 =
-* Supports new youtube dark 'Cosmic panda' theme
-
-= 3.8.8 =
-* Fixed the problem with autoplaying iframe embed videos
-
-= 3.8.7 =
-* Now supports both youtube.com and youtu.be links
-* Fixed single vs double dash problem
-
-= 3.8.6 =
-* Brought back the loop option (thanks to John Kennedy)
-
-= 3.8.5 =
-* Fixed transparency issues (thanks to John Landells)
-* Added iframe playlist code
-
-= 3.8.4 =
-* WordPress 3.1 update
-
-= 3.8.3 =
-* Fixed a bug that caused video options not to be set to default
-
-= 3.8.2 =
-* Sometimes video won't show because template option is empty - now made sure that default template is used
-
-
-= 3.8.1 =
-* Support for new IFRAME embed code
-* Support for HD playlists (httpvhp://)
-* Support for new play formats (1280x745 & 960x745)
-
-= 3.7.1 =
-* Widget function now supports multi-languge plugins (thanks Emmanuel Gravel)
-* Playlist link in the feeds correctly displayed
-
-= 3.7 =
-* WP3.0 checked
-* Fixed hd and related videos parameter option
-
-= 3.6.1 =
-* Added iPad compatibility
-
-= 3.6 =
-* Added compatibility with other Youtube plugins such as wp-youtube ([yt]...[/yt] type code)
-
-= 3.5 =
-* Fixed Iphone Issues
-
-= 3.4.3 =
-* Fixed privacy option
-* Supports new #! style Youtube URLs
-
-= 3.4.1 =
-* Fixed widget problem
-
-= 3.4 =
-* Completely rewritten the plugin
-* Added new HD video support (use vh now for all high quality videos)
-* Added video privacy option
-
-
-= 3.3.2 =
-* Fixed xHTML validation for playlists (credit Dietmar)
-
-= 3.3.1 =
-* Fixed Iphone validation (credits to John Neumann)
-
-= 3.3 =
-* Supports migrated blogs from Wordpress.com
-
-= 3.2 =
-* Added title to widget, fixed HTML code issue with widget
-
-= 3.1.1 =
-* param closed properly for HTML validation (thanks Jan Eberl)
-
-
-== Credits ==
-
-Some of the functions of SmartYoutube plugin came from other plugins. So I can at least thank these people:
-
-* [Oliver](http://www.deliciousdays.com/ "Oliver") for his [cforms II](http://www.deliciousdays.com/cforms-plugin "cforms II") plugin
-* [Scott](http://www.plaintxt.org/ "Scott") for his excellent readme.txt file
-* [YouTube](http://www.youtube.com/ "YouTube") folks for their service and javascript selector
-
-Thanks.
-
-== Installation ==
-
-1. Upload the whole plugin folder to your /wp-content/plugins/ folder.
-2. Go to the Plugins page and activate the plugin.
-3. Use the Options page to change your options
-4. When you want to display Youtube video in your post, copy the video URL to your post and change http:// to httpv:// (notice the 'v' character)
-
-TTo use the video in your posts, paste YouTube video URL with httpv:// (notice the 'v').
-
-Important: The URL should just be copied into your post normally and the letter 'v' added, do not create a clickable link!
-
-Example: httpv://www.youtube.com/watch?v=OWfksMD4PAg
-
-If you want to embed High/HD Quality video use httpvh:// instead (Video High Defintion).
-
-Vimeo Example: httpv://vimeo.com/27287078
-
-Metacafe Example: httpvh://vww.metacafe.com/watch/7815470/harry_potter_and_the_deathly_hallows_dvd_interview/
-
-Live Leak Example: httpv://www.liveleak.com/view?i=cad_1322822486
-
-To embed playlists use httpvp:// (eg. httpvp://www.youtube.com/view_play_list?p=528026B4F7B34094)
-
-Smart Youtube also supports migrated blogs from Wordpress.com using [youtube=youtubeadresss]
-
- httpv:// - regular video
- httpvh:// - high/HD quality
- httpvp:// - playlist
- httpvhp:// - HD playlist
- [youtube=youtubeadresss] - supported for blogs migrated from wordpress.com
-
-
-
-Additionally, you can set how do you want the video to be displayed in your RSS feed. Smart Youtube can show the preview image of the video (automatically grabbed from Youtube), the link to the video, or both. I recommend enabling only the preview image.
-
-== Screenshots ==
-
-1. Plugin Admin Panel
-2. Plugin in action in your RSS feed
-
-== License ==
-
-This file is part of Smart YouTube.
-
-Smart YouTube is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
-
-Smart YouTube is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License along with Smart YouTube. If not, see <http://www.gnu.org/licenses/>.
-
-
-== Frequently Asked Questions ==
-
-= How do I correctly use this plugin? =
-
-Copy the URL of YouTube video you want to watch. Paste it in your post anywhere. Example: httpv://www.youtube.com/watch?v=OWfksMD4PAg
-
-= The plugin still does not show up a video! =
-
-Make sure you copied the URL as text, do not create a link!
-
-
-= Can I suggest an feature for the plugin? =
-
-Of course, visit <a href="http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube#comments">Smart YouTube Home Page</a>
-
-= I love your work, are you available for hire? =
-
-Yes I am, visit my <a href="http://www.prelovac.com/vladimir/services">WordPress Consulting</a> page to find out more.
diff --git a/plugins/smart-youtube/screenshot-1.png b/plugins/smart-youtube/screenshot-1.png
deleted file mode 100644
index 0e90bea..0000000
Binary files a/plugins/smart-youtube/screenshot-1.png and /dev/null differ
diff --git a/plugins/smart-youtube/screenshot-2.png b/plugins/smart-youtube/screenshot-2.png
deleted file mode 100644
index 5db4975..0000000
Binary files a/plugins/smart-youtube/screenshot-2.png and /dev/null differ
diff --git a/plugins/smart-youtube/screenshots/screenshot-1.jpg b/plugins/smart-youtube/screenshots/screenshot-1.jpg
deleted file mode 100644
index de729b3..0000000
Binary files a/plugins/smart-youtube/screenshots/screenshot-1.jpg and /dev/null differ
diff --git a/plugins/smart-youtube/screenshots/screenshot-10.jpg b/plugins/smart-youtube/screenshots/screenshot-10.jpg
deleted file mode 100644
index 4690fb7..0000000
Binary files a/plugins/smart-youtube/screenshots/screenshot-10.jpg and /dev/null differ
diff --git a/plugins/smart-youtube/screenshots/screenshot-11.jpg b/plugins/smart-youtube/screenshots/screenshot-11.jpg
deleted file mode 100644
index 6c63b27..0000000
Binary files a/plugins/smart-youtube/screenshots/screenshot-11.jpg and /dev/null differ
diff --git a/plugins/smart-youtube/screenshots/screenshot-2.jpg b/plugins/smart-youtube/screenshots/screenshot-2.jpg
deleted file mode 100644
index 58534fd..0000000
Binary files a/plugins/smart-youtube/screenshots/screenshot-2.jpg and /dev/null differ
diff --git a/plugins/smart-youtube/screenshots/screenshot-3.jpg b/plugins/smart-youtube/screenshots/screenshot-3.jpg
deleted file mode 100644
index 40c6a3d..0000000
Binary files a/plugins/smart-youtube/screenshots/screenshot-3.jpg and /dev/null differ
diff --git a/plugins/smart-youtube/screenshots/screenshot-4.jpg b/plugins/smart-youtube/screenshots/screenshot-4.jpg
deleted file mode 100644
index 2f84e73..0000000
Binary files a/plugins/smart-youtube/screenshots/screenshot-4.jpg and /dev/null differ
diff --git a/plugins/smart-youtube/screenshots/screenshot-5.jpg b/plugins/smart-youtube/screenshots/screenshot-5.jpg
deleted file mode 100644
index 2ecd9c4..0000000
Binary files a/plugins/smart-youtube/screenshots/screenshot-5.jpg and /dev/null differ
diff --git a/plugins/smart-youtube/screenshots/screenshot-6.jpg b/plugins/smart-youtube/screenshots/screenshot-6.jpg
deleted file mode 100644
index 051d4b0..0000000
Binary files a/plugins/smart-youtube/screenshots/screenshot-6.jpg and /dev/null differ
diff --git a/plugins/smart-youtube/screenshots/screenshot-7.jpg b/plugins/smart-youtube/screenshots/screenshot-7.jpg
deleted file mode 100644
index c2424cc..0000000
Binary files a/plugins/smart-youtube/screenshots/screenshot-7.jpg and /dev/null differ
diff --git a/plugins/smart-youtube/screenshots/screenshot-8.jpg b/plugins/smart-youtube/screenshots/screenshot-8.jpg
deleted file mode 100644
index 3df670a..0000000
Binary files a/plugins/smart-youtube/screenshots/screenshot-8.jpg and /dev/null differ
diff --git a/plugins/smart-youtube/screenshots/screenshot-9.jpg b/plugins/smart-youtube/screenshots/screenshot-9.jpg
deleted file mode 100644
index 52084ed..0000000
Binary files a/plugins/smart-youtube/screenshots/screenshot-9.jpg and /dev/null differ
diff --git a/plugins/smart-youtube/smartyoutube.chk b/plugins/smart-youtube/smartyoutube.chk
deleted file mode 100644
index 57d0744..0000000
--- a/plugins/smart-youtube/smartyoutube.chk
+++ /dev/null
@@ -1,2 +0,0 @@
-Version@1.5@
-Message@<ul><li>New video customization features including color and border</li></ul>
diff --git a/plugins/smart-youtube/smartyoutube.class.php b/plugins/smart-youtube/smartyoutube.class.php
deleted file mode 100644
index 1fe2d19..0000000
--- a/plugins/smart-youtube/smartyoutube.class.php
+++ /dev/null
@@ -1,812 +0,0 @@
-<?php
-class SmartYouTube
-{
- var $local_version;
- var $custom_colors;
- var $plugin_url;
- var $options;
- var $key;
-
- function SmartYouTube()
- {
- $this->__construct();
- }
-
- function __construct()
- {
- $this->local_version = '3.8.9'; // TODO: Change this number???
- $this->custom_colors = array(
- 'blank' => array('d6d6d6', 'f0f0f0'),
- 'storm' => array('3a3a3a', '999999'),
- 'iceberg' => array('2b405b', '6b8ab6'),
- 'acid' => array('006699', '54abd6'),
- 'green' => array('234900', '4e9e00'),
- 'orange' => array('e1600f', 'febd01'),
- 'pink' => array('cc2550', 'e87a9f'),
- 'purple' => array('402061', '9461ca'),
- 'rubyred' => array('5d1719', 'cd311b'),
- );
-
- $this->plugin_url = defined('WP_PLUGIN_URL') ?
- trailingslashit(WP_PLUGIN_URL . '/' . dirname(plugin_basename(__FILE__))) :
- trailingslashit(get_bloginfo('wpurl')) . PLUGINDIR . '/' . dirname(plugin_basename(__FILE__));
-
- $this->key = 'smart_youtube';
-
-
- $this->options=$this->get_options();
-
- $this->add_filters_and_hooks();
- }
-
- function add_filters_and_hooks()
- {
- if ($this->options['posts'] == 'on')
- {
- add_filter('the_content', array($this, 'check'), 100);
- add_filter('the_excerpt', array($this, 'check'), 100);
- }
-
- if ($this->options['comments'] == 'on')
- {
- add_filter('comment_text', array($this, 'check'), 100);
- }
-
- add_action( 'plugins_loaded', array($this, 'install'));
- add_action( 'after_plugin_row', array($this, 'check_plugin_version'));
-
- add_action('admin_menu', array($this, 'add_menu_items'));
-
- register_activation_hook(__FILE__, array($this, 'install'));
- }
-
- function add_menu_items()
- {
- add_options_page('Smart Youtube options', 'Smart Youtube', 8, __FILE__, array($this, 'options_page'));
- }
-
- function options_page()
- {
- /* $status = $this->get_info();
-
- $the_version = $status[1];
- $the_message = $status[3];
-
- if ((version_compare(strval($the_version), strval($this->local_version), '>') == 1))
- {
- $msg = 'Latest version available '.' <strong>'.$the_version.'</strong><br />'.$the_message;
- _e('<div id="message" class="updated fade"><p>' . $msg . '</p></div>');
- }
- */
-
- // If form was submitted
- if (isset($_POST['submitted']))
- {
- check_admin_referer('smart-youtube');
-
- #---------------------------------------------------------------------#
- $this->options['img'] = !isset($_POST['disp_img']) ? 'off' : 'on';
- $this->options['link'] = !isset($_POST['disp_link']) ? 'off' : 'on';
- $this->options['valid'] = !isset($_POST['valid']) ? 'off' : 'on';
- $this->options['search'] = !isset($_POST['disp_search']) ? 'off' : 'on';
- $this->options['ann'] = !isset($_POST['disp_ann']) ? 'off' : 'on';
-
- $this->options['info'] = !isset($_POST['disp_info']) ? 'off' : 'on';
-
- $this->options['width'] = !isset($_POST['disp_width']) ? 425 : intval($_POST['disp_width']);
- $this->options['height'] = !isset($_POST['disp_height']) ? 344 : intval($_POST['disp_height']);
-
- $this->options['widthhq'] = !isset($_POST['disp_widthhq']) ? 480 : intval($_POST['disp_widthhq']);
- $this->options['heighthq'] = !isset($_POST['disp_heighthq']) ? 295 : intval($_POST['disp_heighthq']);
-
- $this->options['widthside'] = !isset($_POST['disp_widthside']) ? 150 : intval($_POST['disp_widthside']);
- $this->options['heightside'] = !isset($_POST['disp_heightside']) ? 125 : intval($_POST['disp_heightside']);
-
- $this->options['rel'] = !isset($_POST['embedRel']) ? 1 : $_POST['embedRel'];
- $this->options['border'] = !isset($_POST['embedBorder']) ? 0 : 1;
- $this->options['color'] = !isset($_POST['embedColor']) ? 'blank' : $_POST['embedColor'];
- $this->options['autoplay'] = !isset($_POST['autoplay']) ? 0 : 1;
- $this->options['loop'] = !isset($_POST['loop']) ? 0 : 1;
- $this->options['privacy'] = !isset($_POST['disp_privacy']) ? 0 : 1;
-
- $this->options['posts'] = !isset($_POST['disp_posts']) ? 'off' : 'on';
- $this->options['comments'] = !isset($_POST['disp_comments']) ? 'off' : 'on';
- $this->options['iframe'] = !isset($_POST['iframe']) ? 'off' : 'on';
-
- $this->options['template'] = !isset($_POST['disp_template']) ?
- '{video}' :
- stripslashes(htmlspecialchars($_POST['disp_template']));;
- $this->options['tag'] = !isset($_POST['tag']) ? '' : $_POST['tag'];
- $this->options['dark_player'] = ! isset( $_POST['dark_player'] ) ? 'off' : 'on';
-
- update_option($this->key, $this->options);
-
- $msg_status = 'Smart Youtube options saved.';
-
- // Show message
- _e('<div id="message" class="updated fade"><p>' . $msg_status . '</p></div>');
-
- }
-
- $disp_img = $this->options['img'] == 'on' ? 'checked="checked"' : '';
- $disp_link = $this->options['link'] == 'on' ? 'checked="checked"' : '';
- $disp_search = $this->options['search'] == 'on' ? 'checked="checked"' : '';
- $disp_ann = $this->options['ann'] == 'on' ? 'checked="checked"' : '';
- $disp_info = $this->options['info'] == 'on' ? 'checked="checked"' : '';
-
- $valid = $this->options['valid'] == 'on' ? 'checked="checked"' : '';
-
- $disp_width = $this->options['width'];
- $disp_height = $this->options['height'];
-
- $disp_widthhq = $this->options['widthhq'];
- $disp_heighthq = $this->options['heighthq'];
-
- $disp_widthside = $this->options['widthside'];
- $disp_heightside = $this->options['heightside'];
-
- $disp_autoplay = $this->options['autoplay'] ? 'checked="checked"' : '';
- $disp_loop = $this->options['loop'] ? 'checked="checked"' : '';
- $disp_rel = $this->options['rel'] ? 'checked="checked"' : '';
- $disp_rel2 = $this->options['rel'] ? '' : 'checked="checked"';
- $disp_border = $this->options['border'] ? 'checked="checked"' : '';
- $disp_color = $this->options['color'];
- $disp_posts = $this->options['posts'] == 'on' ? 'checked="checked"' : '' ;
- $disp_comments = $this->options['comments'] == 'on' ? 'checked="checked"' : '';
-
- $disp_privacy = $this->options['privacy'] ? 'checked="checked"' : '';
- $iframe = $this->options['iframe'] =='on' ? 'checked="checked"' : '';
-
- $disp_template = wp_specialchars($this->options['template']);
- $tag = $this->options['tag'];
- $dark_player = $this->options['dark_player'] == 'on' ? 'checked="checked"' : '';
-
- if (!$disp_width)
- {
- $disp_width = 425;
- }
-
- if (!$disp_height)
- {
- $disp_height = 344;
- }
-
- global $wp_version;
-
- $embed_img = $this->plugin_url . '/img/embed_selection-vfl29294.png';
-
- echo '<script src="' . $this->plugin_url . '/yt.js" type="text/javascript"></script>
-<link rel="stylesheet" type="text/css" href="' . $this->plugin_url . '/styleyt.css" />';
-
- $imgpath = $this->plugin_url.'/i';
- $actionurl = $_SERVER['REQUEST_URI'];
- $nonce = wp_create_nonce( 'smart-youtube');
- $example = htmlentities('<div style="float:left;margin-right: 10px;">{video}</div>');
-
- // Configuration Page
-
- echo <<<END
-<div class="wrap smartyoutube" >
- <div id="icon-options-general" class="icon32"><br /></div>
- <h2>Smart YouTube</h2>
- <div id="poststuff" style="margin-top:10px;">
- <div id="sideblock" style="float:right;width:270px;margin-left:10px;">
-
- <iframe width=270 height=800 frameborder="0" src="http://www.prelovac.com/plugin/news.php?id=0&utm_source=plugin&utm_medium=plugin&utm_campaign=Smart%2BYoutube"></iframe>
-
- </div>
-
- <div id="mainblock" style="width:710px">
- <div class="dbx-content">
- <h2 id="usageHeader">Usage <span style="font-size:small">[<a href="#">view instructions</a>]</span></h2>
-
- <div id="usage" style="display:none">
- <p>To use the video in your posts, paste YouTube video URL with <strong>httpv://</strong> (notice the 'v'). </p>
- <p><strong>Important:</strong> The URL should just be copied into your post normally and the letter 'v' added, do not create a clickable link!</p>
- <p>Example: httpv://www.youtube.com/watch?v=OWfksMD4PAg</p>
- <p>If you want to embed High/HD Quality video use <strong>httpvh://</strong> instead (Video High Defintion).</p>
- <p>To embed playlists use httpvp:// (eg. httpvp://www.youtube.com/view_play_list?p=528026B4F7B34094)</p>
- <p>Smart Youtube also supports migrated blogs from Wordpress.com using [youtube=youtubeadresss]</p>
-
- <ul>
- <li>httpv:// - regular video</li>
- <li>httpvh:// - high/HD quality</li>
- <li>httpvp:// - playlist</li>
- <li>httpvhp:// - HD playlist</li>
- <li>[youtube=youtubeadresss] - supported for blogs migrated from wordpress.com</li>
- </ul>
- </div>
-
- <form name="yteform" action="$action_url" method="post">
- <input type="hidden" name="submitted" value="1" />
- <input type="hidden" id="_wpnonce" name="_wpnonce" value="$nonce" />
- <h2>Options</h2>
- <p> You can adjust the way your embeded youtube videos behave in the options below.</p>
-
- <h3>Video settings</h3>
- <div>
- <input id="check3" type="checkbox" name="disp_posts" $disp_posts />
- <label for="check3">Display videos in posts</label>
- </div>
- <div>
- <input id="check4" type="checkbox" name="disp_comments" $disp_comments />
- <label for="check4">Display videos in comments</label>
- </div>
-<br />
-<div>
- <input id="iframe" type="checkbox" name="iframe" $iframe />
- <label for="iframe">Use IFRAME embed code (recommended)</label>
- </div>
-
-
- <h3>Video Appearence</h3>
- <p class="instruct">Video template. Default is just {video}. <br />
- You can try <code>$example</code> if you want the text to wrap around video.</p>
- <textarea cols="50" id="disp_template" name="disp_template">$disp_template</textarea>
- <p class="instruct">Video width and height in normal mode (httpv://). Default is 425x344. </p>
- <div id="inputSizeNormal">
- <input class="width" name="disp_width" value="$disp_width" size="7"/>x<input class="height" name="disp_height" value="$disp_height" size="7" />
- </div>
- <div class="size-chooser" forDiv="inputSizeNormal">
- <a v-width="320" v-height="265" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="425" v-height="344" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="480" v-height="385" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="640" v-height="505" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="960" v-height="745" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <br clear="both" />
- </div>
-
- <p class="instruct">Video width and height in <strong>high quality</strong> mode (httpvh://). Default is 480x295. </p>
- <div id="inputSizeHQ">
- <input class="width" name="disp_widthhq" value="$disp_widthhq" size="7" />x<input class="height" name="disp_heighthq" value="$disp_heighthq" size="7" />
- </div>
- <div class="size-chooser" forDiv="inputSizeHQ">
- <a v-width="480" v-height="295" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="560" v-height="340" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="640" v-height="385" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="853" v-height="505" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="1280" v-height="745" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <br clear="both" />
- </div>
-
- <p class="instruct">Video width and height in <strong>sidebar</strong> mode (regardless of quality). Default is 150x125.</p>
- <input id="disp_widthside" name="disp_widthside" value="$disp_widthside" size="7" />x<input id="disp_heightside" name="disp_heightside" value="$disp_heightside" size="7" /><br /><br />
- <div id="watch-customize-embed-form">
- <input type="radio" $disp_rel id="embedCustomization1" name="embedRel" value="1"/>
- <label for="embedCustomization1">Include related videos</label><br/>
- <input type="radio" $disp_rel2 id="embedCustomization0" name="embedRel" value="0"/>
- <label for="embedCustomization0">Do not include related videos</label><br/>
- </div>
- <img id="watch-customize-embed-theme-preview" src="$this->plugin_url/img/preview_embed_blank_sm.gif"/>
- <div id="watch-customize-embed-theme-swatches">
- <a onclick="onChangeColor('blank'); return false;" class="watch-image-radio-link radio_selected" href="#" id="theme_color_blank_img"><img alt="" src="http://s.ytimg.com/yt/img/pixel-vfl73.gif" class="watch-embed-select watch-embed-blank"/></a>
- <a onclick="onChangeColor('storm'); return false;" class="watch-image-radio-link" href="#" id="theme_color_storm_img"><img alt="" src="http://s.ytimg.com/yt/img/pixel-vfl73.gif" class="watch-embed-select watch-embed-storm"/></a>
- <a onclick="onChangeColor('iceberg'); return false;" class="watch-image-radio-link " href="#" id="theme_color_iceberg_img"><img alt="" src="http://s.ytimg.com/yt/img/pixel-vfl73.gif" class="watch-embed-select watch-embed-iceberg"/></a>
- <a onclick="onChangeColor('acid'); return false;" class="watch-image-radio-link" href="#" id="theme_color_acid_img"><img alt="" src="http://s.ytimg.com/yt/img/pixel-vfl73.gif" class="watch-embed-select watch-embed-acid"/></a>
- <a onclick="onChangeColor('green'); return false;" class="watch-image-radio-link" href="#" id="theme_color_green_img"><img alt="" src="http://s.ytimg.com/yt/img/pixel-vfl73.gif" class="watch-embed-select watch-embed-green"/></a>
- <a onclick="onChangeColor('orange'); return false;" class="watch-image-radio-link" href="#" id="theme_color_orange_img"><img alt="" src="http://s.ytimg.com/yt/img/pixel-vfl73.gif" class="watch-embed-select watch-embed-orange"/></a>
- <a onclick="onChangeColor('pink'); return false;" class="watch-image-radio-link" href="#" id="theme_color_pink_img"><img alt="" src="http://s.ytimg.com/yt/img/pixel-vfl73.gif" class="watch-embed-select watch-embed-pink"/></a>
- <a onclick="onChangeColor('purple'); return false;" class="watch-image-radio-link" href="#" id="theme_color_purple_img"><img alt="" src="http://s.ytimg.com/yt/img/pixel-vfl73.gif" class="watch-embed-select watch-embed-purple"/></a>
- <a onclick="onChangeColor('rubyred'); return false;" class="watch-image-radio-link" href="#" id="theme_color_rubyred_img"><img alt="" src="http://s.ytimg.com/yt/img/pixel-vfl73.gif" class="watch-embed-select watch-embed-rubyred"/></a>
- <input id="embedColor" type="hidden" name="embedColor" value="$disp_color">
- <input id="prevUrl" type="hidden" name="prevUrl" value="$this->plugin_url/img/">
- </div>
- <div style="margin: 0 0 0 4px; clear: both;">
- <input type="checkbox" onchange="onUpdatePreviewImage();" id="show_border_checkbox" name="embedBorder" $disp_border /><label for="show_border_checkbox"> Show Border</label><br />
- <input type="checkbox" id="autoplay_checkbox" name="autoplay" $disp_autoplay /><label for="autoplay_checkbox"> Autoplay videos</label><br />
- <input type="checkbox" id="loop_checkbox" name="loop" $disp_loop /><label for="loop_checkbox"> Loop videos</label><br />
- <input type="checkbox" id="disp_search" name="disp_search" $disp_search /><label for="disp_search"> Display search box</label><br />
- <input type="checkbox" id="disp_info" name="disp_info" $disp_info /><label for="disp_info"> Remove Titles & Ratings</label><br />
- <input type="checkbox" id="disp_ann" name="disp_ann" $disp_ann /><label for="disp_ann"> Remove Annotations</label><br />
- <input type="checkbox" id="privacy" name="disp_privacy" $disp_privacy /><label for="privacy"> Enable privacy-enhanced mode [<a target="_blank" href="http://www.google.com/support/youtube/bin/answer.py?answer=141046">?</a>] (videos may not work for Iphone users)</label><br />
- <input type="checkbox" id="dark_player" name="dark_player" $dark_player /><label for="dark_player"> Use new Youtube "dark" player (requires IFRAME mode to be turned on)</label><br />
- </div>
-
- <h3>Custom code compatibility</h3>
- <p>Use this option if you have used another youtube plugin and switched over to Smart Youtube.<p>
- <p>For example if you used [yt]qYWWBwf2wHE[/yt] type of code, you would type yt in the box below.</p>
- <input id="tag" type="text" name="tag" value="$tag" />
- <label for="tag">Custom code</label>
-
- <h3>xHTML validation</h3>
- <p class="instruct">Enabling the option below will change default YouTube code to be xHTML valid. (videos may not work for Iphone users)</p>
- <input id="valid" type="checkbox" name="valid" $valid />
- <label for="valid">Enable xHTML Validation</label>
-
- <h3>RSS feed options</h3>
- <p class="instruct">Some RSS feed readers like Bloglines will show embeded YouTube videos. Some will not and Smart YouTube allows you to display a video link and a video screenshot instead.</p>
- <p class="instruct">Smart YouTube will always embed the video but it can not know if the reader supports embeded video or not. So use these additional options at your own likening.</p>
-
- <input id="check2" type="checkbox" name="disp_link" $disp_link />
- <label for="check2">Display video link in RSS feed</label><br />
- <input id="check1" type="checkbox" name="disp_img" $disp_img />
- <label for="check1">Display video preview image in RSS feed</label>
-
- <div class="submit"><input type="submit" name="Submit" value="Update options" /></div>
- </form>
- </div>
- </div>
- </div>
-</div>
-<h5 class="author">Another fine WordPress plugin by <a href="http://www.prelovac.com/vladimir/">Vladimir Prelovac</a></h5>
-END;
- }
-
-
- /**
- * Looks for Smart Youtube URL(s) in the post content
- * and replace them with proper HTML tags
- *
- * @param mixed $the_content
- * @param mixed $side
- * @return mixed
- */
- function check($the_content, $side = 0)
- {
- if (strpos($the_content, "httpv") !== false )
- {
- $char_codes = array('×', '–');
- $replacements = array("x", "-");
- $the_content = str_replace($char_codes, $replacements, $the_content);
-
-
- preg_match_all("/http(v|vh|vhd):\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $the_content, $matches['youtube.com'], PREG_SET_ORDER);
- preg_match_all("/http(v|vh|vhd):\/\/([a-zA-Z0-9\-\_]+\.|)youtu\.be\/([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $the_content, $matches['youtu.be'], PREG_SET_ORDER);
-
- if (isset($matches['youtube.com']))
- foreach ($matches['youtube.com'] as $match)
- {
- $the_content = preg_replace("/http".$match[1].":\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^\s<]*)/", $this->tag($match[4], $match[1], $match[5], $side), $the_content, 1);
- }
-
- if (isset($matches['youtu.be']))
- {
-
- foreach ($matches['youtu.be'] as $match)
- {
-
- $the_content = preg_replace("/http".$match[1].":\/\/([a-zA-Z0-9\-\_]+\.|)youtu\.be\/([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $this->tag($match[3], $match[1], $match[4], $side), $the_content, 1);
- }
- }
-
-
-
- preg_match_all("/http(vp|vhp):\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/view_play_list(\?p\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{16})([^<\s]*)/", $the_content, $matches, PREG_SET_ORDER);
- foreach ($matches as $match)
- {
- $the_content = preg_replace("/http".$match[1].":\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/view_play_list(\?p\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{16})([^\s<]*)/", $this->tag($match[4], $match[1], $match[5], $side), $the_content, 1);
- }
-
-
- }
-
- // to work with migrated blogs from Wordpress.com replacing [youtube=youtubeadresss]
- if (strpos($the_content, "[youtube") !== false )
- {
- preg_match_all("/\[youtube\=http:\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^<\s]*)\]/", $the_content, $matches, PREG_SET_ORDER);
- foreach ($matches as $match)
- {
- $the_content = preg_replace("/\[youtube\=http:\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^\s<]*)\]/", $this->tag($match[3], '', $match[4], $side), $the_content, 1);
- }
- }
- $tag=$this->options['tag'];
-
- if ($tag!='' && strpos($the_content, "[".$tag."]") !== false )
- {
- preg_match_all("/\[$tag\]([a-zA-Z0-9\-\_]{11})([^<\s]*)\[\/$tag\]/", $the_content, $matches, PREG_SET_ORDER);
- foreach ($matches as $match)
- {
- //print_r($matches);
- $the_content = preg_replace("/\[$tag\]([a-zA-Z0-9\-\_]{11})([^<\s]*)\[\/$tag\]/", $this->tag($match[1], '', '', $side), $the_content, 1);
- }
- }
-
- return $the_content;
- }
-
- function tag($file, $high = 'v', $time = '', $side = 0)
- {
- $playlist = 0;
- $disp_rel = $this->options['rel'];
- $disp_border = $this->options['border'];
- $disp_color = $this->options['color'];
- $autoplay = $this->options['autoplay'];
- $loop = $this->options['loop'];
- $disp_search = $this->options['search'] == 'on' ? 1 : 0;
- $disp_info = $this->options['info'] == 'on' ? '&showinfo=0' : '';
- $disp_ann = $this->options['ann'] == 'on' ? '&iv_load_policy=3' : '';
- $template = trim($this->options['template']) == '' ? '{video}' : $this->options['template'];
- $valid = $this->options['valid'];
- $dark_player = ( $this->options['dark_player'] == 'on' ) ? '&theme=dark' : '';
-
- switch ($high)
- {
- case 'v':
- $high = '';
- break;
- case 'vh':
- $high = '&hd=1';
- break;
- case 'vhd':
- $high = '&hd=1';
- break;
- case 'vp':
- $high = '';
- $playlist = 1;
- break;
- case 'vhp':
- $high = '&hd=1';
- $playlist = 1;
- break;
- default:
- $high = '';
- break;
- }
-
- $width = $side ?
- $this->options['widthside'] :
- ($high ? $this->options['widthhq'] : $this->options['width']);
-
- $height = $side ?
- $this->options['heightside'] :
- ($high ? $this->options['heighthq'] : $this->options['height']);
-
- if (!$width)
- {
- $width = !$high ? 480 : 425 ;
- }
-
- if (!$height)
- {
- $height = !$high ? 360 : 344;
- }
-
- if ($disp_border)
- {
- $height += 18;
- }
-
- if ($autoplay)
- $ap='&autoplay=1';
-
- $root_url = $this->options['privacy'] ? 'http://www.youtube-nocookie.com' : 'http://www.youtube.com';
-
- if ($this->options['iframe']=='on')
-$video_url = htmlspecialchars("$root_url/embed/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en$ap&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel$dark_player", ENT_QUOTES) . $high . $time;
-else
-$video_url = htmlspecialchars("$root_url/v/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en$ap&loop=$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel$dark_player", ENT_QUOTES) . $high . $time;
-
- if ($playlist)
- {
-
- $video_url = htmlspecialchars("$root_url/p/$file?color1={$this->custom_colors[$disp_color][0]}&color2={$this->custom_colors[$disp_color][1]}&border=$disp_border&fs=1&hl=en$ap&loop={$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel$dark_player", ENT_QUOTES) . $high . $time;
-
-if ($this->options['iframe']=='on')
-$yte_tag = <<<EOT
-<span class="youtube">
-<object type="application/x-shockwave-flash" width="$width" height="$height" data="$video_url" >
-<param name="movie" value="$video_url" />
-<param name="allowFullScreen" value="true" />
-<param name="allowscriptaccess" value="always" />
-</object>
-</span>
-EOT;
-else
-$yte_tag = <<<EOT
-<span class="youtube">
-<iframe title="YouTube video player" class="youtube-player" type="text/html" src="$video_url" width="$width" height="$height" frameborder="0" allowfullscreen></iframe>
-</span>
-EOT;
- }
- elseif ($valid == 'off' || strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone')===TRUE || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod')===TRUE || strpos($_SERVER['HTTP_USER_AGENT'], 'iPad')===TRUE)
- {
-if ($this->options['iframe']=='on')
-$yte_tag = <<<EOT
-<span class="youtube">
-<iframe title="YouTube video player" class="youtube-player" type="text/html" width="$width" height="$height" src="$video_url" frameborder="0" allowfullscreen></iframe>
-</span>
-EOT;
-else
- $yte_tag = <<<EOT
-<span class="youtube">
-<object width="$width" height="$height">
-<param name="movie" value="$video_url" />
-<param name="allowFullScreen" value="true" />
-<embed wmode="opaque" src="$video_url" type="application/x-shockwave-flash" allowfullscreen="true" width="$width" height="$height"></embed>
-<param name="wmode" value="opaque" />
-</object>
-</span>
-EOT;
- }
- else
- {
-
-if ($this->options['iframe']=='on')
-$yte_tag = <<<EOT
-<span class="youtube">
-<iframe title="YouTube video player" class="youtube-player" type="text/html" width="$width" height="$height" src="$video_url" frameborder="0" allowfullscreen></iframe>
-</span>
-EOT;
-else
- $yte_tag = <<<EOT
-<span class="youtube">
-<object type="application/x-shockwave-flash" width="$width" height="$height" data="$video_url">
-<param name="movie" value="$video_url" />
-<param name="allowFullScreen" value="true" />
-<param name="wmode" value="transparent" />
-</object>
-</span>
-EOT;
- }
-
- if (is_feed())
- {
-
- if ($high)
- {
- $high = '&fmt=18';
- }
- if ($playlist)
- $url='http://www.youtube.com/view_play_list?p=';
- else
- $url='http://www.youtube.com/watch?v=';
-
- if ($this->options['img'] == 'on')
- {
- $yte_tag .= '<p><a href="'.$url . $file . $high. '"><img src="http://img.youtube.com/vi/' . $file . '/default.jpg" width="130" height="97" border=0></a></p>';
- }
-
- if ($this->options['link'] == 'on')
- {
- $yte_tag.='<p><a href="'.$url . $file . $high . '">www.youtube.com/watch?v=' . $file . '</a></p>';
- }
- // if ($this->options['link'] == 'off' && $this->options['img'] == 'off')
- // $yte_tag='http://www.youtube.com/watch?v='.$file;
- }
-
- return str_replace('{video}', $yte_tag, html_entity_decode($template));
- }
-
- function install()
- {
- // register widget
- if (function_exists('register_sidebar_widget'))
- {
- register_sidebar_widget('Smart YouTube', array($this, 'widget'));
- }
-
- if (function_exists('register_widget_control'))
- {
- register_widget_control('Smart YouTube', array($this, 'widget_control'));
- }
-
- if (get_option($this->key)) {
- $this->options=$this->get_options();
- }
- /*
- // upgrade the options format (as all-in-one, not single entries)
- $this->options = array(
- 'posts' => 'on',
- 'comments' => 'off',
- 'img' => 'off',
- 'width' => 425,
- 'height' => 344,
- 'widthhq' => 480,
- 'heighthq' => 295,
- 'widthside' => 150,
- 'heightside' => 125,
- 'rel' => 1,
- 'color' => 'blank',
- 'border' => 0,
- 'link' => 'on',
- 'valid' => 'off',
- 'search' => 'off',
- 'info' => 'on',
- 'ann' => 'on',
- 'template' => '{video}',
- 'autoplay' => 0,
- 'privacy' => 0,
- 'wtext' => '',
- 'wtitle' => '',
- 'tag' => '',
- 'iframe' => 'on'
- );
-
- // migrate the old-fashion options
- foreach ($this->options as $key => $value)
- {
- if (false !== $old_option = get_option("smart_yt_$key"))
- {
- $this->options[$key] = $old_option;
- }
-
- delete_option("smart_yt_$key");
- }
-
- add_option($this->key, $this->options);*/
- }
-
- // Handle our options
- function get_options()
- {
-
- $options = array(
- 'posts' => 'on',
- 'comments' => 'off',
- 'img' => 'off',
- 'width' => 425,
- 'height' => 344,
- 'widthhq' => 480,
- 'heighthq' => 295,
- 'widthside' => 150,
- 'heightside' => 125,
- 'rel' => 1,
- 'color' => 'blank',
- 'border' => 0,
- 'link' => 'on',
- 'valid' => 'off',
- 'search' => 'off',
- 'info' => 'on',
- 'ann' => 'on',
- 'template' => '{video}',
- 'autoplay' => 0,
- 'privacy' => 0,
- 'wtext' => '',
- 'wtitle' => '',
- 'tag' => '',
- 'iframe' => 'on',
- 'dark_player' => ''
- );
-
- $saved = get_option($this->key);
-
- if (!empty($saved)) {
- foreach ($saved as $key => $option)
- $options[$key] = $option;
- }
-
- if ($saved != $options)
- update_option($this->key, $options);
-
-
-
-
-
- return $options;
- }
-
-
- function widget($args = array())
- {
- extract ($args);
- $text = apply_filters( 'widget_text', $this->check($this->options['wtext'], 1));
- $title = apply_filters( 'widget_title', $this->options['wtitle']);
- echo
- $before_widget,
- $before_title, $title, $after_title,
- $text,
- $after_widget;
- }
-
- function widget_control()
- {
- if ($_REQUEST['submit'])
- {
- $this->options['wtext'] = stripslashes($_REQUEST['yte_text']);
- $this->options['wtitle'] = stripslashes($_REQUEST['yte_title']);
- }
-
- update_option($this->key, $this->options);
-
- $text = wp_specialchars($this->options['wtext']);
- $title = wp_specialchars($this->options['wtitle']);
-
- echo <<<EOT
- Title:<br /><input type="text" id="yte_title" name="yte_title" value="$title" /><br />
- Insert HTML code below. In addition to normal text you may use httpv, httpvh and httpvhd links just like in your posts.<br />
- <textarea id="text" name="yte_text" rows="10" cols="16" class="widefat">$text</textarea>
- <input type="hidden" id="submit" name="submit" value="1" />
-EOT;
- }
-
- /**
- * Checks the plugin version
- * @param $plugin
- * @return unknown_type
- */
- function check_plugin_version($plugin)
- {
- global $plugindir;
-
- if (strpos($plugin, 'smartyoutube.php') === false) return;
-
- $status = $this->get_info();
-
- $the_version = $status[1];
- $the_message = $status[3];
-
- if ((version_compare(strval($the_version), strval($this->local_version), '>') != 1)) return;
-
- $msg = "Latest version available: <strong>$the_version</strong><br />.$the_message";
-
- echo <<<EOT
- <td colspan="5" class="plugin-update" style="line-height:1.2em;">
- Latest version available: <strong>$the_version</strong><br />$the_message
- </td>
-EOT;
-
- }
-
- /**
- * Gets plugin info from WordPress Codex repo
- * @return mixed
- */
- function get_info()
- {
- $checkfile = 'http://svn.wp-plugins.org/smart-youtube/trunk/smartyoutube.chk';
-
- $status = array();
-
- return $status; //???
-
- $vcheck = wp_remote_fopen($checkfile);
-
- if ($vcheck)
- {
- $version = $$this->local_version;
-
- $status = explode('@', $vcheck);
- return $status;
- }
- }
-}
diff --git a/plugins/smart-youtube/smartyoutube.php b/plugins/smart-youtube/smartyoutube.php
deleted file mode 100644
index e1e9ae0..0000000
--- a/plugins/smart-youtube/smartyoutube.php
+++ /dev/null
@@ -1,1566 +0,0 @@
-<?php
-/*
-Plugin Name: Smart Youtube PRO
-Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/smart-youtube
-Description: Insert YouTube videos in posts, comments and RSS feeds with ease and full customization.
-Author: Vladimir Prelovac
-Version: 4.1.6
-Author URI: http://www.prelovac.com/vladimir/
-
-
-To-Do:
-
-- Is there a way to have smart youtube display multiple thumbnails of youtube videos in this fashion:
-http://wordpress.org/extend/plugins/my-youtube-playlist/
-
-The author of this plugin has done a good job in birthing the concept, but is unable to really do much by way of support or add features, e.g. highlight thumbnail currently playing, flexible grouping styles of thumbnails (horizontal, vertical listing) etc.
-
-- Wondering if there's a way to have smartyoutube generate a thumbnail of the youtube video that shows up as one of the thumbnail options for the article when someone shares the blog post?
-
-- Would it be possible to overwrite the global autoplay param in a post, something like httpv://www.youtube.com/watch?v=00000000&autoplay=true; I tried to add autoplay=1 but unfortunately in the resuling html it adds autoplay=0 (the global option) and also autoplay=1
-The result is no autoplay :(
-
-- Instead of editing the shortcut, we have copied from youtube.
-I would love to have a button,
-like insert Smart YouTube Video
-A dialogue box would pop up,
-and allow me to just simply paste the link.
-Then having check boxes on the side,
-which allow me to choose whether you would like HD or not.
-thus editing the link correctly.
-
-I find this would greatly help, especiall when I help create video blogs for community provider who have very little computer background.
-
-- Please add support for it on the BuddyPress Acitivity page, currently it just shows the url (which won't work because of the httpv and httpvh)
-
-- Was wondering if it was possible for you to have the plugin take the URL for the Youtube thumbnail for the video and place it into a user defined custom field. The plugin "YoutubeThumb2CustomField" but no longer works in WP 3.0 (network).
-
-- love to see vimeo support! i have video intensive site...love Vimeo
-
-Only issue is I would LOVE to add the widget into another sidebar and I do not see this possibility. Can you have multiple Smart YouTubes?
-
-- 1. Adding few possibilities for posting videos into post � I have great production of videos but before end of 2009 all was in 320 x 240 and after end of 2009 I start publishing video in 640 x 480 resolution. I have adjusted player video for 640 x 480 but now 320 x 240 videos are stretched across all of player window.
-
-For changes to be easy implemented � I suggest adding 2 or even 3 possibilities for playing videos � like this:
-Your original code httpv://www.youtube.com/********************
-Another version of httpv#1://www.youtube.com/********************
-Another version of httpv#2://www.youtube.com/********************
-Another version of httpv#3://www.youtube.com/********************
-
-Adding #1 after v will allow us to predefine what will be size of player for #1 or number #2 or number #3 � I think it is good idea
-
-If you don�t put #1, #2, #3 player will be those which is default (without number) � in my case that is 640 x 480.
-
-2. If some video is for �personal use� which mean somebody must be log into you tube to see it, than I suggest making possibility for login for authors of those videos � If I put all my materials to be private (up to 25 people can see it) � than I cant publish them trough this way � and allowing authors to write theirs username and password will allow that those vides can be seen on my posts. That way I can protect all my archive of video on youtube, but allow those video can be visible on my blog � which can increase hits, visits and others possibility � that possibility is visible on this plug in http://tubepress.org/ where people can use its username and password for publishing all vides from if they have account on youtube
-
-
-- marinas javascript suggestion for hq videos
-- add editor button
-- The plugin places a preview image in the RSS feed which is great, but it links to the video on http://www.youtube.com. I would like to change it so the image links to the blog post so I can generate some traffic on my blog.
-- localization
-- the images appear under the embedded Smart Youtube videos. Is there any way to edit the z-index for Smart Youtube CSS? I
-- would like to use multiple instances of the Smart YouTube plugin. I saw the reply that said to simply use multiple calls in one instance of the widget, but that doesn't let me choose different videos for different pages.
-- was wondering if it's possible to get a vid and playlist in a custom page template?? Is it possible to add a preview image to search results?
-- I wondered if there were a way to bring the video to the forefront layer (perhaps z-index)? I know this actually breaks good design practice in my intended use, but have a look here:
-- However, on one page I have two videos and therefore I want to add a a parameter to the second video embed URL to _not_ start automatically. Something like httpv://www.youtube.com/watch?v=xyz123&autostart=off
-- Single videos work well from wordpress on the Iphone/ipod. Is there a way to make the playlists work, just getting the ? cube instead of image.
-- I would like to "inject" automatically this preview image url in a custom field, in each post, to auto-generate the thumb on my homepage with this image.
-*/
-
-
-
-if (isset($smart_youtube_pro)) return false;
-
-$smart_youtube_pro = new SmartYouTube_PRO();
-
-class SmartYouTube_PRO {
- var $local_version;
- var $plugin_url;
- var $options;
- var $key;
- var $first;
- var $first_post_on_archive;
-
- function SmartYouTube() {
- $this->__construct();
- }
-
- function __construct() {
- $this->local_version = '1.0'; // TODO: Change this number???
-
- $this->plugin_url = trailingslashit(plugins_url(null,__FILE__));
-
-
- $this->key = 'smart_youtube_pro';
- $this->first_post_on_archive = false;
-
- $script_path = $this->plugin_url . '/javascripts/jquery.colorbox-min.js';
- wp_register_script( 'colorbox', $script_path );
-
- $this->options = $this->get_options();
-
- $this->add_filters_and_hooks();
- }
-
- function add_filters_and_hooks() {
- if ( $this->options['posts'] == 'on' ) {
- add_filter( 'the_content', array( $this, 'check' ), 5 );
- add_filter( 'the_excerpt', array( $this, 'check_excerpt' ), 5 );
- }
-
- if ( $this->options['comments'] == 'on' ) {
- add_filter( 'comment_text', array( $this, 'check' ), 100 );
- }
-
- add_action( 'plugins_loaded', array( $this, 'install' ) );
- add_action( 'admin_menu', array( $this, 'add_menu_items' ) );
- add_action( 'admin_head', array( $this, 'plugin_header' ) );
- add_action( 'wp_head', array( $this, 'post_header' ) );
- add_action( 'wp_print_scripts', array( $this, 'load_scripts' ) );
- add_action( 'wp_print_styles', array( $this, 'load_styles' ) );
- add_action( 'template_redirect', array( $this, 'mark_first_post_on_archive' ) );
-
- register_activation_hook(__FILE__, array($this, 'install' ) );
- }
-
- function post_header() {
- if ( is_singular() ) {
- global $wp_query;
- $the_content = $wp_query->post->post_content;
- $char_codes = array( '×', '–' );
- $replacements = array( "x", "--" );
- $the_content = str_replace( $char_codes, $replacements, $the_content );
-
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $the_content, $matches, PREG_SET_ORDER );
-
- if ( isset( $matches[0][5] ) )
- if ( $matches[0][5] != '' )
- echo '<meta property="og:image" content="http://i.ytimg.com/vi/' . $matches[0][5] . '/default.jpg" />';
-
- if ( $this->options['colorbox'] == 'on' ) {
- ?>
- <script>
- jQuery(document).ready(function($){
- $(".colorbox_video").colorbox({iframe:true, innerWidth:<?php echo $this->options['width']; ?>, innerHeight:<?php echo $this->options['height']; ?>});
- });
- </script>
- <?php
- }
- }
- }
-
- function load_scripts() {
- if ( $this->options["colorbox"] == 'on' && is_singular() ) {
- wp_enqueue_script( 'jquery' );
- wp_enqueue_script( 'colorbox' );
- }
- }
-
- function load_styles() {
- $style_path = $this->plugin_url . '/themes/theme' . $this->options['colorbox_theme'] . '/colorbox.css';
- wp_register_style( 'colorbox', $style_path );
-
- if ( $this->options["colorbox"] == 'on' && is_singular() ) {
- wp_enqueue_style( 'colorbox' );
- }
- }
-
- function plugin_header() {
- if ( ! empty( $_REQUEST['page'] ) )
- $page = $_REQUEST['page'];
- else
- $page = '';
- ?>
- <style>
- <?php if ( ( $page == 'syt_settings' ) || ( $page == 'syt_colorbox_options' ) || ( $page == 'syt_about' ) ) : ?>
- #icon-syt_settings { background:transparent url('<?php echo $this->plugin_url .'i/logo.png';?>') no-repeat; }
- <?php endif; ?>
- </style>
- <script>
- <?php if ( $page == 'syt_settings' ) : ?>
- jQuery(document).ready(function($){
- if (($)('#disp_excerpt').val() == 'not')
- ($)('#disp_excerpt_align_div').hide();
- else
- ($)('#disp_excerpt_align_div').show();
- ($)('#disp_excerpt').change(function(){
- if (($)(this).val() == 'not')
- ($)('#disp_excerpt_align_div').hide();
- else
- ($)('#disp_excerpt_align_div').show();
- });
- });
- <?php endif; ?>
- <?php if ( $page == 'syt_colorbox_options' ) : ?>
- jQuery(document).ready(function($){
- $("#colorbox_theme").change(function() {
- var src = $("option:selected", this).val();
- if ( src != "" ){
- var $imgTag = "<img src=\"" + "<?php echo $this->plugin_url; echo '/screenshots/screenshot-'; ?>" + src + ".jpg\" />";
- $("#screenshot_image").empty().html($imgTag).fadeIn();
- }
- });
- });
- <?php endif; ?>
- </script>
- <?php
- }
-
- function add_menu_items() {
- $image = $this->plugin_url . '/i/icon.png';
- add_menu_page( __( 'Smart Youtube', 'smart-youtube' ), __( 'Smart Youtube', 'smart-youtube' ), 'manage_options', 'syt_settings', array(
- &$this,
- 'options_page'
- ), $image);
- $page_settings = add_submenu_page( 'syt_settings', __( 'Smart Youtube', 'smart-youtube' ) . __( ' Settings', 'smart-youtube' ), __( 'Settings', 'smart-youtube' ), 'manage_options', 'syt_settings', array(
- &$this,
- 'options_page'
- ) );
- $page_colorbox = add_submenu_page( 'syt_settings', __( 'Smart Youtube', 'smart-youtube' ) . __( ' Colorbox Options', 'smart-youtube' ), __( 'Colorbox Options', 'smart-youtube' ), 'manage_options', 'syt_colorbox_options', array(
- &$this,
- 'handle_colorbox_options'
- ) );
- $page_about = add_submenu_page( 'syt_settings', __( 'Smart Youtube', 'smart-youtube' ) . __( ' About', 'smart-youtube' ), __( 'About', 'smart-youtube' ), 'manage_options', 'syt_about', array(
- &$this,
- 'handle_about'
- ) );
- }
-
- function options_page() {
- // If form was submitted
- if ( isset( $_POST['submitted'] ) ) {
- check_admin_referer( 'smart-youtube' );
-
- $this->options['img'] = ! isset( $_POST['disp_img'] ) ? 'off' : 'on';
- $this->options['link'] = ! isset( $_POST['disp_link'] ) ? 'off' : 'on';
- $this->options['valid'] = ! isset( $_POST['valid'] ) ? 'off' : 'on';
- $this->options['search'] = ! isset( $_POST['disp_search'] ) ? 'off' : 'on';
- $this->options['ann'] = ! isset( $_POST['disp_ann'] ) ? 'off' : 'on';
-
- $this->options['info'] = ! isset( $_POST['disp_info'] ) ? 'off' : 'on';
-
- $this->options['width'] = ! isset( $_POST['disp_width'] ) ? 425 : intval( $_POST['disp_width'] );
- $this->options['height'] = ! isset( $_POST['disp_height'] ) ? 344 : intval( $_POST['disp_height'] );
-
- $this->options['widthhq'] = ! isset( $_POST['disp_widthhq'] ) ? 480 : intval( $_POST['disp_widthhq'] );
- $this->options['heighthq'] = ! isset( $_POST['disp_heighthq'] ) ? 295 : intval( $_POST['disp_heighthq'] );
-
- $this->options['widthside'] = ! isset( $_POST['disp_widthside'] ) ? 150 : intval( $_POST['disp_widthside'] );
- $this->options['heightside'] = ! isset( $_POST['disp_heightside'] ) ? 125 : intval( $_POST['disp_heightside'] );
-
- $this->options['rel'] = ! isset( $_POST['embedRel'] ) ? 1 : $_POST['embedRel'];
- $this->options['autoplay'] = ! isset( $_POST['autoplay'] ) ? 0 : 1;
- $this->options['autoplay_first'] = ! isset( $_POST['autoplay_first'] ) ? 0 : 1;
- $this->options['privacy'] = ! isset( $_POST['disp_privacy'] ) ? 0 : 1;
-
- $this->options['posts'] = ! isset( $_POST['disp_posts'] ) ? 'off' : 'on';
- $this->options['comments'] = ! isset( $_POST['disp_comments'] ) ? 'off' : 'on';
- $this->options['iframe'] = ! isset( $_POST['iframe'] ) ? 'off' : 'on';
- $this->options['www'] = ! isset( $_POST['www'] ) ? 'off' : 'on';
- $this->options['http'] = ! isset( $_POST['http'] ) ? 'off' : 'on';
-
- $this->options['template'] = ! isset( $_POST['disp_template'] ) ? '{video}' : stripslashes( htmlspecialchars( $_POST['disp_template'] ) );
- $this->options['tag'] = ! isset( $_POST['tag'] ) ? '' : $_POST['tag'];
- $this->options['wiziapp'] = ! isset( $_POST['wiziapp'] ) ? 'off' : 'on';
- $this->options['loop'] = ! isset( $_POST['loop'] ) ? 0 : 1;
- $this->options['thumb'] = ! isset( $_POST['thumb'] ) ? 'off' : 'on';
- $this->options['colorbox'] = ! isset( $_POST['colorbox'] ) ? 'off' : 'on';
- $this->options['excerpt'] = ! isset( $_POST['excerpt'] ) ? '' : $_POST['excerpt'];
- $this->options['excerpt_align'] = ! isset( $_POST['excerpt_align'] ) ? '' : $_POST['excerpt_align'];
- $this->options['logoless'] = ! isset( $_POST['logoless'] ) ? 'off' : 'on';
- $this->options['theme'] = ! isset( $_POST['theme'] ) ? '' : $_POST['theme'];
-
- update_option( $this->key, $this->options );
-
- // Show message
- echo '<div id="message" class="updated fade"><p>' . __( 'Smart Youtube options saved.', 'smart-youtube' ) . '</p></div>';
- }
-
- $disp_img = $this->options['img'] == 'on' ? 'checked="checked"' : '';
- $disp_link = $this->options['link'] == 'on' ? 'checked="checked"' : '';
- $disp_search = $this->options['search'] == 'on' ? 'checked="checked"' : '';
- $disp_ann = $this->options['ann'] == 'on' ? 'checked="checked"' : '';
- $disp_info = $this->options['info'] == 'on' ? 'checked="checked"' : '';
-
- $valid = $this->options['valid'] == 'on' ? 'checked="checked"' : '';
-
- $disp_width = $this->options['width'];
- $disp_height = $this->options['height'];
-
- $disp_widthhq = $this->options['widthhq'];
- $disp_heighthq = $this->options['heighthq'];
-
- $disp_widthside = $this->options['widthside'];
- $disp_heightside = $this->options['heightside'];
-
- $disp_autoplay = $this->options['autoplay'] ? 'checked="checked"' : '';
- $disp_autoplay_first = $this->options['autoplay_first'] ? 'checked="checked"' : '';
- $disp_rel = $this->options['rel'] ? 'checked="checked"' : '';
- $disp_rel2 = $this->options['rel'] ? '' : 'checked="checked"';
- $disp_posts = $this->options['posts'] == 'on' ? 'checked="checked"' : '' ;
- $disp_comments = $this->options['comments'] == 'on' ? 'checked="checked"' : '';
-
- $disp_privacy = $this->options['privacy'] ? 'checked="checked"' : '';
- $iframe = $this->options['iframe'] =='on' ? 'checked="checked"' : '';
- $www = $this->options['www'] =='on' ? 'checked="checked"' : '';
- $http = $this->options['http'] =='on' ? 'checked="checked"' : '';
- $disp_loop = $this->options['loop'] ? 'checked="checked"' : '';
- $thumb = $this->options['thumb'] == 'on' ? 'checked="checked"' : '';
- $colorbox = $this->options['colorbox'] == 'on' ? 'checked="checked"' : '';
- $excerpt = isset( $this->options['excerpt'] ) ? $this->options['excerpt'] : 'not';
- $excerpt_align = isset( $this->options['excerpt_align'] ) ? $this->options['excerpt_align'] : 'left';
-
- $disp_template = esc_html( $this->options['template'] );
- $tag = $this->options['tag'];
- $wiziapp = $this->options['wiziapp'] == 'on' ? 'checked="checked"' : '';
- $logoless = $this->options['logoless'] == 'on' ? 'checked="checked"' : '';
- $theme = isset( $this->options['theme'] ) ? $this->options['theme'] : '';
-
- if ( ! $disp_width ) {
- $disp_width = 425;
- }
-
- if ( ! $disp_height ) {
- $disp_height = 344;
- }
-
- global $wp_version;
-
- $embed_img = $this->plugin_url . '/img/embed_selection-vfl29294.png';
-
- echo '<script src="' . $this->plugin_url . '/yt.js" type="text/javascript"></script>
-<link rel="stylesheet" type="text/css" href="' . $this->plugin_url . '/styleyt.css" />';
-
- $imgpath = $this->plugin_url.'/i';
- $actionurl = $_SERVER['REQUEST_URI'];
- $nonce = wp_create_nonce( 'smart-youtube' );
- $example = htmlentities( '<div style="float:left;margin-right: 10px;">{video}</div>' );
-
- // Configuration Page
-
-?>
-<div class="wrap smartyoutube" >
- <?php screen_icon(); ?>
- <h2><?php _e( 'Smart YouTube PRO', 'smart-youtube' ); ?></h2>
- <a href="admin.php?page=syt_settings"><?php _e( 'Settings', 'smart-youtube' ); ?></a> | <a href="admin.php?page=syt_colorbox_options"><?php _e( 'Colorbox Options', 'smart-youtube' ); ?></a> | <a href="admin.php?page=syt_about"><?php _e( 'About', 'smart-youtube' ); ?></a>
- <div id="poststuff" style="margin-top:10px;">
- <div id="sideblock" style="float:right;width:270px;margin-left:10px;">
- <iframe width=270 height=800 frameborder="0" src="http://www.prelovac.com/plugin/news.php?id=0&utm_source=plugin&utm_medium=plugin&utm_campaign=Smart%2BYoutube"></iframe>
- </div>
- <div id="mainblock" style="width:710px">
- <div class="dbx-content">
- <h2 id="usageHeader"><?php _e( 'Usage <span style="font-size:small">[<a href="#">view instructions</a>]</span>', 'smart-youtube' ); ?></h2>
- <div id="usage" style="display:none">
- <p><?php _e( 'To use the video in your posts, paste YouTube video URL with <strong>httpv://</strong> (notice the \'v\').', 'smart-youtube' ); ?> </p>
- <p><?php _e( '<strong>Important:</strong> The URL should just be copied into your post normally and the letter \'v\' added, do not create a clickable link!', 'smart-youtube' ); ?></p>
- <p><?php _e( 'Example: httpv://www.youtube.com/watch?v=OWfksMD4PAg', 'smart-youtube' ); ?></p>
- <p><?php _e( 'If you want to embed High/HD Quality video use <strong>httpvh://</strong> instead (Video High Defintion).', 'smart-youtube' ); ?></p>
- <p><?php _e( 'Vimeo Example: httpv://vimeo.com/27287078', 'smart-youtube' ); ?></p>
- <p><?php _e( 'Metacafe Example: httpvh://vww.metacafe.com/watch/7815470/harry_potter_and_the_deathly_hallows_dvd_interview/', 'smart-youtube' ); ?></p>
- <p><?php _e( 'Live Leak Example: httpv://www.liveleak.com/view?i=cad_1322822486', 'smart-youtube' ); ?></p>
- <p><?php _e( 'To embed playlists use httpvp:// (eg. httpvp://www.youtube.com/playlist?list=PL050E43A49BC5E5E5)', 'smart-youtube' ); ?></p>
- <p><?php _e( 'Smart Youtube also supports migrated blogs from Wordpress.com using [youtube=youtubeadresss]', 'smart-youtube' ); ?></p>
- <ul>
- <li><?php _e( 'httpv:// - regular video', 'smart-youtube' ); ?></li>
- <li><?php _e( 'httpvh:// - high/HD quality', 'smart-youtube' ); ?></li>
- <li><?php _e( 'httpvp:// - playlist', 'smart-youtube' ); ?></li>
- <li><?php _e( 'httpvhp:// - HD playlist', 'smart-youtube' ); ?></li>
- <li><?php _e( '[youtube=youtubeadresss] - supported for blogs migrated from wordpress.com', 'smart-youtube' ); ?></li>
- </ul>
- </div>
- <form name="yteform" action="<?php echo $actionurl; ?>" method="post">
- <input type="hidden" name="submitted" value="1" />
- <input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo $nonce; ?>" />
- <h2><?php _e( 'Options', 'smart-youtube' ); ?></h2>
- <p><?php _e( 'Smart Youtube is powerful and free WordPress plugin for embeding videos into your blog. ', 'smart-youtube' ); ?></p>
-
- <p><?php _e( 'From the same author: <a href="http://managewp.com" target="_blank">ManageWP.com</a> - Wordpress service that helps you manage all your WordPress sites from one location.', 'smart-youtube' ); ?></p>
- <p><?php _e( 'You can adjust the way your embeded youtube videos behave in the options below.', 'smart-youtube' ); ?></p>
- <h3><?php _e( 'Video settings', 'smart-youtube' ); ?></h3>
- <div>
- <input id="check3" type="checkbox" name="disp_posts" <?php echo $disp_posts; ?> />
- <label for="check3"><?php _e( 'Display videos in posts', 'smart-youtube' ); ?></label>
- </div>
- <div>
- <input id="check4" type="checkbox" name="disp_comments" <?php echo $disp_comments; ?> />
- <label for="check4"><?php _e( 'Display videos in comments', 'smart-youtube' ); ?></label>
- </div>
- <br />
- <div>
- <input id="iframe" type="checkbox" name="iframe" <?php echo $iframe; ?> />
- <label for="iframe"><?php _e( 'Use IFRAME embed code', 'smart-youtube' ); ?></label> [<a target="_blank" href="http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html">?</a>]
- </div>
- <h3><?php _e( 'Video Appearence', 'smart-youtube' ); ?></h3>
- <p class="instruct">
- <?php _e( 'Video template. Default is just {video}.', 'smart-youtube' ); ?><br />
- <?php echo __( 'You can try <code>', 'smart-youtube' ) . $example . __( '</code> if you want the text to wrap around video.', 'smart-youtube' ); ?>
- </p>
- <textarea cols="50" id="disp_template" name="disp_template"><?php echo $disp_template; ?></textarea>
- <br />
- <input id="http" type="checkbox" name="http" <?php echo $http; ?> />
- <label for="http"><?php _e( 'Parse links with http:// prefix same as httpv://', 'smart-youtube' ); ?></label>
- <br />
- <input id="www" type="checkbox" name="www" <?php echo $www; ?> />
- <label for="www"><?php _e( 'Parse links without http:// prefix', 'smart-youtube' ); ?></label>
- <p class="instruct"><?php _e( 'Video width and height in normal mode (httpv://). Default is 425x344.', 'smart-youtube' ); ?></p>
- <div id="inputSizeNormal">
- <input class="width" name="disp_width" value="<?php echo $disp_width; ?>" size="7"/>x<input class="height" name="disp_height" value="<?php echo $disp_height; ?>" size="7" />
- </div>
- <div class="size-chooser" forDiv="inputSizeNormal">
- <a v-width="320" v-height="265" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="425" v-height="344" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="480" v-height="385" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="640" v-height="505" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="960" v-height="745" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <br clear="both" />
- </div>
- <p class="instruct"><?php _e( 'Video width and height in <strong>high quality</strong> mode (httpvh://). Default is 480x295.', 'smart-youtube' ); ?></p>
- <div id="inputSizeHQ">
- <input class="width" name="disp_widthhq" value="<?php echo $disp_widthhq; ?>" size="7" />x<input class="height" name="disp_heighthq" value="<?php echo $disp_heighthq; ?>" size="7" />
- </div>
- <div class="size-chooser" forDiv="inputSizeHQ">
- <a v-width="480" v-height="295" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="560" v-height="340" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="640" v-height="385" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="853" v-height="505" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <a v-width="1280" v-height="745" href="#">
- <span></span>
- <div class="outer">
- <div></div>
- </div>
- </a>
- <br clear="both" />
- </div>
- <p class="instruct"><?php _e( 'Video width and height in <strong>sidebar</strong> mode (regardless of quality). Default is 150x125.', 'smart-youtube' ); ?></p>
- <input id="disp_widthside" name="disp_widthside" value="<?php echo $disp_widthside; ?>" size="7" />x<input id="disp_heightside" name="disp_heightside" value="<?php echo $disp_heightside; ?>" size="7" /><br /><br />
- <div id="watch-customize-embed-form">
- <input type="radio" <?php echo $disp_rel; ?> id="embedCustomization1" name="embedRel" value="1"/>
- <label for="embedCustomization1"><?php _e( 'Include related videos', 'smart-youtube' ); ?></label>
- <br/>
- <input type="radio" <?php echo $disp_rel2; ?> id="embedCustomization0" name="embedRel" value="0"/>
- <label for="embedCustomization0"><?php _e( 'Do not include related videos', 'smart-youtube' ); ?></label>
- <br/>
- </div>
- <br/>
- <div style="margin: 0 0 0 4px; clear: both;">
- <input type="checkbox" id="autoplay_checkbox" name="autoplay" <?php echo $disp_autoplay; ?> /><label for="autoplay_checkbox"><?php _e( 'Autoplay videos', 'smart-youtube' ); ?></label><br />
- <input type="checkbox" id="autoplay_first_checkbox" name="autoplay_first" <?php echo $disp_autoplay_first; ?> /><label for="autoplay_first_checkbox"><?php _e( 'Autoplay only first video on page', 'smart-youtube' ); ?></label><br />
- <input type="checkbox" id="loop_checkbox" name="loop" <?php echo $disp_loop; ?> /><label for="loop_checkbox"><?php _e( 'Loop videos', 'smart-youtube' ); ?></label><br />
- <input type="checkbox" id="disp_search" name="disp_search" <?php echo $disp_search; ?> /><label for="disp_search"><?php _e( 'Display search box', 'smart-youtube' ); ?></label><br />
- <input type="checkbox" id="thumb_checkbox" name="thumb" <?php echo $thumb; ?> /><label for="thumb_checkbox"><?php _e( 'Display thumbnails on home/archive pages', 'smart-youtube' ); ?></label><br />
- <input type="checkbox" id="cbox_checkbox" name="colorbox" <?php echo $colorbox; ?> /><label for="cbox_checkbox"><?php _e( 'Show video in colorbox', 'smart-youtube' ); ?></label><br />
- <input type="checkbox" id="disp_info" name="disp_info" <?php echo $disp_info; ?> /><label for="disp_info"><?php _e( 'Remove Titles & Ratings', 'smart-youtube' ); ?></label><br />
- <input type="checkbox" id="disp_ann" name="disp_ann" <?php echo $disp_ann; ?> /><label for="disp_ann"><?php _e( 'Remove Annotations', 'smart-youtube' ); ?></label><br />
- <input type="checkbox" id="logoless" name="logoless" <?php echo $logoless; ?> /><label for="logoless"><?php _e( 'Hide YouTube Logo', 'smart-youtube' ); ?></label><br />
- <label for="theme"><?php _e( 'Theme (YouTube only):', 'smart-youtube' ); ?></label>
- <select id="theme" name="theme" />
- <option value="dark" <?php echo ( ( $theme == 'dark' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Dark', 'smart-youtube' ); ?></option>
- <option value="light" <?php echo ( ( $theme == 'light' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Light', 'smart-youtube' ); ?></option>
- </select><br />
- <input type="checkbox" id="privacy" name="disp_privacy" <?php echo $disp_privacy; ?> /><label for="privacy"><?php _e( 'Enable privacy-enhanced mode', 'smart-youtube' ); ?> [<a target="_blank" href="http://www.google.com/support/youtube/bin/answer.py?answer=141046">?</a>] <?php _e( 'videos may not work for Iphone users)', 'smart-youtube' ); ?></label><br />
- <div id="disp_excerpt_div">
- <label for="disp_excerpt"><?php _e( 'Show embeds in post excerpts as', 'smart-youtube' ); ?></label>
- <select id="disp_excerpt" name="excerpt">
- <option value="vid" <?php echo ( ( $excerpt == 'vid' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Video', 'smart-youtube' ); ?></option>
- <option value="thm" <?php echo ( ( $excerpt == 'thm' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Thumbnail', 'smart-youtube' ); ?></option>
- <option value="not" <?php echo ( ( $excerpt == 'not' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Nothing', 'smart-youtube' ); ?></option>
- </select>
- </div>
- <div id="disp_excerpt_align_div">
- <label for="disp_excerpt_align"><?php _e( 'Align embeds in post excerpts to', 'smart-youtube' ); ?></label>
- <select id="disp_excerpt_align" name="excerpt_align">
- <option value="left" <?php echo ( ( $excerpt_align == 'left' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Left', 'smart-youtube' ); ?></option>
- <option value="right" <?php echo ( ( $excerpt_align == 'right' ) ? 'selected="yes"' : '' ); ?>><?php _e( 'Right', 'smart-youtube' ); ?></option>
- </select>
- </div>
- </div>
- <h3><?php _e( 'Custom code compatibility', 'smart-youtube' ); ?></h3>
- <p><?php _e( 'Use this option if you have used another youtube plugin and switched over to Smart Youtube.', 'smart-youtube' ); ?><p>
- <p><?php _e( 'For example if you used [yt]qYWWBwf2wHE[/yt] type of code, you would type yt in the box below.', 'smart-youtube' ); ?></p>
- <input id="tag" type="text" name="tag" value="<?php echo $tag; ?>" />
- <label for="tag"><?php _e( 'Custom code', 'smart-youtube' ); ?></label>
-
- <h3><?php _e( 'WiziApp support', 'smart-youtube' ); ?></h3>
- <p><?php _e( 'This will integrate your video seamlessly with WiziApp', 'smart-youtube' ); ?></p>
- <input id="wiziapp" type="checkbox" name="wiziapp" <?php echo $wiziapp; ?> />
- <label for="wiziapp"><?php _e( 'Enable WiziApp support', 'smart-youtube' ); ?></label>
- <h3><?php _e( 'xHTML validation', 'smart-youtube' ); ?></h3>
- <p class="instruct"><?php _e( 'Enabling the option below will change default YouTube code to be xHTML valid. (videos may not work for Iphone users)', 'smart-youtube' ); ?></p>
- <input id="valid" type="checkbox" name="valid" <?php echo $valid; ?> />
- <label for="valid"><?php _e( 'Enable xHTML Validation', 'smart-youtube' ); ?></label>
- <h3><?php _e( 'RSS feed options', 'smart-youtube' ); ?></h3>
- <p class="instruct"><?php _e( 'Some RSS feed readers like Bloglines will show embeded YouTube videos. Some will not and Smart YouTube allows you to display a video link and a video screenshot instead.', 'smart-youtube' ); ?></p>
- <p class="instruct"><?php _e( 'Smart YouTube will always embed the video but it can not know if the reader supports embeded video or not. So use these additional options at your own likening.', 'smart-youtube' ); ?></p>
- <input id="check2" type="checkbox" name="disp_link" <?php echo $disp_link; ?> />
- <label for="check2"><?php _e( 'Display video link in RSS feed', 'smart-youtube' ); ?></label><br />
- <input id="check1" type="checkbox" name="disp_img" <?php echo $disp_img; ?> />
- <label for="check1"><?php _e( 'Display video preview image in RSS feed', 'smart-youtube' ); ?></label>
- <div class="submit"><input type="submit" name="Submit" value="<?php _e( 'Update options', 'smart-youtube' ); ?>" /></div>
- </form>
- </div>
- </div>
- </div>
-</div>
-<h5 class="author"><?php _e( 'Another fine WordPress plugin by <a href="http://www.prelovac.com/vladimir/">Vladimir Prelovac', 'smart-youtube' ); ?></a></h5>
-<?php
- }
-
- function handle_colorbox_options() {
- if ( isset( $_POST['submitted'] ) ) {
- $this->options['colorbox_theme'] = ( ! isset( $_POST['colorbox_theme'] ) ? '1' : $_POST['colorbox_theme'] );
-
- update_option( $this->key, $this->options );
-
- $msg_status = __( 'SEO Friendly Images PRO colorbox options saved.', 'smart-youtube' );
-
- // Show message
- echo '<div id="message" class="updated fade"><p>' . $msg_status . '</p></div>';
- }
-
- $imgpath = $this->plugin_url . '/i';
- $actionurl = $_SERVER['REQUEST_URI'];
-
- $this->options = $this->get_options();
- ?>
- <div class="wrap">
- <?php screen_icon(); ?>
- <h2><?php _e( 'Smart YouTube PRO', 'smart-youtube' ); echo ' ' . $this->local_version; ?></h2>
- <a href="admin.php?page=syt_settings"><?php _e( 'Settings', 'smart-youtube' ); ?></a> | <a href="admin.php?page=syt_colorbox_options"><?php _e( 'Colorbox Options', 'smart-youtube' ); ?></a> | <a href="admin.php?page=syt_about"><?php _e( 'About', 'smart-youtube' ); ?></a>
- <div id="poststuff" style="margin-top:10px;">
- <div id="sideblock" style="float:right;width:270px;margin-left:10px;">
- <iframe width=270 height=800 frameborder="0" src="http://www.prelovac.com/plugin/news.php?id=2&utm_source=plugin&utm_medium=plugin&utm_campaign=SEO%2BFriendly%2BImages%2BPRO"></iframe>
- </div>
- </div>
- <div id="mainblock" class="submit">
- <div class="dbx-content">
- <h2><?php _e( 'Colorbox Options', 'smart-youtube' ); ?></h2>
- <br />
- <form name="sytform" action="<?php echo $actionurl; ?>" method="post">
- <input type="hidden" name="submitted" value="1" />
- <div>
- <label for="colorbox_theme"><?php _e( 'Choose ColorBox theme:', 'smart-youtube' ); ?></label>
- <select id="colorbox_theme" name="colorbox_theme">
- <?php for($i = 1; $i <= 11; $i++): ?>
- <option value="<?php echo $i; ?>" <?php echo ( $this->options['colorbox_theme'] == $i ) ? 'selected="yes"' : ''; ?>><?php echo __( 'Theme ', 'smart-youtube' ) . $i; ?></option>
- <?php endfor; ?>
- </select>
- </div>
- <div>
- <label for="screenshot_image"><?php _e( 'Theme screenshot:', 'smart-youtube' ); ?></label>
- <div id="screenshot_image">
- <img src="<?php echo $this->plugin_url . '/screenshots/screenshot-' . $this->options['colorbox_theme'] . '.jpg'; ?>" />
- </div>
- </div>
- <div style="padding: 1.5em 0;margin: 5px 0;">
- <input type="submit" name="Submit" value="<?php _e( 'Update options', 'smart-youtube' ); ?>" />
- </div>
- </form>
- </div>
- </div>
- <h5><?php _e( 'Another fine WordPress plugin by', 'smart-youtube' ); ?> <a href="http://www.prelovac.com/vladimir/">Vladimir Prelovac</a></h5>
- </div>
- <?php
- }
-
- function handle_about() {
- global $wp_version;
-
- $upd_msg = "";
-
- $actionurl = $_SERVER['REQUEST_URI'];
- $nonce = wp_create_nonce( 'smart-youtube' );
-
- $lic_msg = '<p>Welcome to ' . __( 'Smart YouTube PRO', 'smart-youtube' ) . '.</p>';
- ?>
- <div class="wrap">
- <?php screen_icon(); ?>
- <h2><?php _e( 'Smart YouTube PRO', 'smart-youtube' ); echo ' ' . $this->local_version; ?></h2>
- <a href="admin.php?page=syt_settings"><?php _e( 'Settings', 'smart-youtube' ); ?></a> | <a href="admin.php?page=syt_colorbox_options"><?php _e( 'Colorbox Options', 'smart-youtube' ); ?></a> | <a href="admin.php?page=syt_about"><?php _e( 'About', 'smart-youtube' ); ?></a>
- <div id="poststuff" style="margin-top:10px;">
-
- <div id="sideblock" style="float:right;width:270px;margin-left:10px;">
- <iframe width=270 height=800 frameborder="0" src="http://www.prelovac.com/plugin/news.php?id=2&utm_source=plugin&utm_medium=plugin&utm_campaign=SEO%2BFriendly%2BImages%2BPRO"></iframe>
- </div>
- </div>
- <div id="mainblock" class="submit">
- <div class="dbx-content">
- <h2><?php _e( 'About', 'smart-youtube' ); ?></h2>
- <br />
- <form name="STY_about" action="$actionurl" method="post">
- <input type="hidden" id="_wpnonce" name="_wpnonce" value="$nonce" />
- <input type="hidden" name="submitted" value="1" />
- <?php echo $lic_msg; ?>
- <?php echo __( 'Version:', 'smart-youtube' ) . $this->local_version; ?> <?php echo $upd_msg; ?>
- </form>
- </div>
- </div>
- <h5><?php _e( 'Another fine WordPress plugin by', 'smart-youtube' ); ?> <a href="http://www.prelovac.com/vladimir/">Vladimir Prelovac</a></h5>
- </div>
- <?php
- }
-
- function mark_first_post_on_archive() {
- if ( is_archive() || is_home() || is_front_page() ) {
- $this->first_post_on_archive = true;
- }
- }
-
- /**
- * Looks for Smart Youtube URL(s) in the post content
- * and replace them with proper HTML tags
- *
- * @param mixed $the_content
- * @param mixed $side
- * @return mixed
- */
- function check( $the_content, $side = 0 ) {
- $char_codes = array( '×', '–' );
- $replacements = array( "x", "--" );
- $the_content = str_replace( $char_codes, $replacements, $the_content );
- $this->first = false;
-
- $context = $side ? 'side' : 'post';
-
- preg_match_all( "/((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^<\s]*))|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtu\.be\/([a-zA-Z0-9\-\_]{11}))|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?metacafe\.com\/watch\/([a-zA-Z0-9\-\_]{7})\/([^<^\/\s]*)([\/])?)|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?vimeo\.com\/([a-zA-Z0-9\-\_]{8})([\/])?)|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?liveleak\.com\/view(\?i\=)([a-zA-Z0-9\-\_]*))|((http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?facebook\.com\/video\/video.php\?v\=([a-zA-Z0-9\-\_]*))|((http(vp|vhp)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtube\.com\/(view_play_list\?p\=|playlist\?list\=)([a-zA-Z0-9\-\_]{18})([^<\s]*))/", $the_content, $matches, PREG_SET_ORDER );
-
- foreach ( $matches as $match ) {
- if ( $match[1] != '' ) {
- if ( 'on' == $this->options['wiziapp'] ) {
- $videos = array();
- $video_info['src'] = "http://www.youtube.com/watch?v={$match[6]}";
- array_push( $videos, $video_info );
- $replace_text = '';
- $replace_text = apply_filters( 'wiziapp_3rd_party_plugin', $replace_text, 'video', $videos );
- $the_content = str_replace( $match[1], $replace_text, $the_content );
- } else if ( ( $match[2] == 'http://' && $this->options['http'] == 'on' ) || ( $match[2] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[1], $this->tag_youtube( $context, $match[6], 'v', $match[7] ), $the_content );
- } else if ( $match[3] == 'v' || $match[3] == 'vh' || $match[3] == 'vhd' ) {
- $the_content = str_replace( $match[1], $this->tag_youtube( $context, $match[6], $match[3], $match[7] ), $the_content );
- }
- } elseif ( $match[8] != '' ) {
- if ( 'on' == $this->options['wiziapp'] ) {
- $videos = array();
- $video_info['src'] = "http://www.youtube.com/watch?v={$match[12]}";
- array_push( $videos, $video_info );
- $replace_text = '';
- $replace_text = apply_filters( 'wiziapp_3rd_party_plugin', $replace_text, 'video', $videos );
- $the_content = str_replace( $match[1], $replace_text, $the_content );
- } else if ( ( $match[9] == 'http://' && $this->options['http'] == 'on' ) || ( $match[9] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[8], $this->tag_youtube( $context, $match[12], 'v' ), $the_content );
- } else if ( $match[10] == 'v' || $match[10] == 'vh' || $match[10] == 'vhd' ) {
- $the_content = str_replace( $match[8], $this->tag_youtube( $context, $match[12], $match[10] ), $the_content );
- }
- } elseif ( $match[13] != '' ) {
- if ( 'on' == $this->options['wiziapp'] ) {
- $videos = array();
- $video_info['src'] = "http://www.metacafe.com/watch/{$match[17]}/{$match[18]}/";
- array_push( $videos, $video_info );
- $replace_text = '';
- $replace_text = apply_filters( 'wiziapp_3rd_party_plugin', $replace_text, 'video', $videos );
- $the_content = str_replace( $match[1], $replace_text, $the_content );
- } else if ( ( $match[14] == 'http://' && $this->options['http'] == 'on' ) || ( $match[14] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[13], $this->tag_metacafe( $context, $match[17], 'v', $match[18] ), $the_content );
- } else if ( $match[15] == 'v' || $match[15] == 'vh' || $match[15] == 'vhd' ) {
- $the_content = str_replace( $match[13], $this->tag_metacafe( $context, $match[17], $match[15], $match[18] ), $the_content );
- }
- } elseif ( $match[20] != '' ) {
- if ( 'on' == $this->options['wiziapp'] ) {
- $videos = array();
- $video_info['src'] = "http://www.vimeo.com/{$match[24]}";
- array_push( $videos, $video_info );
- $replace_text = '';
- $replace_text = apply_filters( 'wiziapp_3rd_party_plugin', $replace_text, 'video', $videos );
- $the_content = str_replace( $match[1], $replace_text, $the_content );
- } else if ( ( $match[21] == 'http://' && $this->options['http'] == 'on' ) || ( $match[21] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[20], $this->tag_vimeo( $context, $match[24], 'v' ), $the_content );
- } else if ( $match[22] == 'v' || $match[22] == 'vh' || $match[22] == 'vhd' ) {
- $the_content = str_replace( $match[20], $this->tag_vimeo( $context, $match[24], $match[22] ), $the_content );
- }
- } elseif ( $match[26] != '' ) {
- if ( 'on' == $this->options['wiziapp'] ) {
- $videos = array();
- $video_info['src'] = "http://www.liveleak.com/view?i={$match[31]}";
- array_push( $videos, $video_info );
- $replace_text = '';
- $replace_text = apply_filters( 'wiziapp_3rd_party_plugin', $replace_text, 'video', $videos );
- $the_content = str_replace( $match[1], $replace_text, $the_content );
- } else if ( ( $match[27] == 'http://' && $this->options['http'] == 'on' ) || ( $match[27] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[26], $this->tag_liveleak( $context, $match[31], 'v' ), $the_content );
- } else if ( $match[28] == 'v' || $match[28] == 'vh' || $match[28] == 'vhd' ) {
- $the_content = str_replace( $match[26], $this->tag_liveleak( $context, $match[31], $match[28] ), $the_content );
- }
- } elseif ( $match[32] != '' ) {
- if ( 'on' == $this->options['wiziapp'] ) {
- $videos = array();
- $video_info['src'] = "http://www.facebook.com/video/video.php?v={$match[36]}";
- array_push( $videos, $video_info );
- $replace_text = '';
- $replace_text = apply_filters( 'wiziapp_3rd_party_plugin', $replace_text, 'video', $videos );
- $the_content = str_replace( $match[1], $replace_text, $the_content );
- } else if ( ( $match[33] == 'http://' && $this->options['http'] == 'on' ) || ( $match[33] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[32], $this->tag_facebook( $context, $match[36], 'v' ), $the_content );
- } else if ( $match[34] == 'v' || $match[34] == 'vh' || $match[34] == 'vhd' ) {
- $the_content = str_replace( $match[32], $this->tag_facebook( $context, $match[36], $match[34] ), $the_content );
- }
- } elseif ( $match[37] != '' ) {
-
- if ( 'on' == $this->options['wiziapp'] ) {
- $videos = array();
- $video_info['src'] = "http://www.youtube.com/playlist?list={$match[42]}";
- array_push( $videos, $video_info );
- $replace_text = '';
- $replace_text = apply_filters( 'wiziapp_3rd_party_plugin', $replace_text, 'video', $videos );
- $the_content = str_replace( $match[1], $replace_text, $the_content );
- } else if ( ( $match[38] == 'http://' && $this->options['http'] == 'on' ) || ( $match[38] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[37], $this->tag_youtube( $context, $match[42], 'vp', $match[43] ), $the_content );
- } else if ( $match[39] == 'vp' || $match[39] == 'vhp' ) {
- $the_content = str_replace( $match[37], $this->tag_youtube( $context, $match[42], $match[39], $match[43] ), $the_content );
- }
- }
- }
-
- /*preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtu\.be\/([a-zA-Z0-9\-\_]{11})/", $the_content, $matches, PREG_SET_ORDER );
- foreach ( $matches as $match ) {
- if (( $match[1] == 'http://' && $this->options['http'] == 'on' ) || ( $match[1] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[0], $this->tag_youtube( $context, $match[4], 'v' ), $the_content );
- } else if ( $match[2] == 'v' || $match[2] == 'vh' || $match[2] == 'vhd' ) {
- $the_content = str_replace( $match[0], $this->tag_youtube( $context, $match[4], $match[2] ), $the_content );
- }
- }
-
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?metacafe\.com\/watch\/([a-zA-Z0-9\-\_]{7})\/([^<^\/\s]*)([\/])?/", $the_content, $matches, PREG_SET_ORDER );
- foreach ( $matches as $match ) {
- if ( ( $match[1] == 'http://' && $this->options['http'] == 'on' ) || ( $match[1] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[0], $this->tag_metacafe( $context, $match[4], 'v', $match[5] ), $the_content );
- } else if ( $match[2] == 'v' || $match[2] == 'vh' || $match[2] == 'vhd' ) {
- $the_content = str_replace( $match[0], $this->tag_metacafe( $context, $match[4], $match[2], $match[5] ), $the_content );
- }
- }
-
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?vimeo\.com\/([a-zA-Z0-9\-\_]{8})([\/])?/", $the_content, $matches, PREG_SET_ORDER );
- foreach ( $matches as $match ) {
- if ( ( $match[1] == 'http://' && $this->options['http'] == 'on' ) || ( $match[1] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[0], $this->tag_vimeo( $context, $match[4], 'v' ), $the_content );
- } else if ( $match[2] == 'v' || $match[2] == 'vh' || $match[2] == 'vhd' ) {
- $the_content = str_replace( $match[0], $this->tag_vimeo( $context, $match[4], $match[2] ), $the_content );
- }
- }
-
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?liveleak\.com\/view(\?i\=)([a-zA-Z0-9\-\_]*)/", $the_content, $matches, PREG_SET_ORDER );
- foreach ( $matches as $match ) {
- if ( ( $match[1] == 'http://' && $this->options['http'] == 'on' ) || ( $match[1] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[0], $this->tag_liveleak( $context, $match[5], 'v' ), $the_content );
- } else if ( $match[2] == 'v' || $match[2] == 'vh' || $match[2] == 'vhd' ) {
- $the_content = str_replace( $match[0], $this->tag_liveleak( $context, $match[5], $match[2] ), $the_content );
- }
- }
-
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?facebook\.com\/video\/video.php\?v\=([a-zA-Z0-9\-\_]*)/", $the_content, $matches, PREG_SET_ORDER );
- foreach ( $matches as $match ) {
- if ( ( $match[1] == 'http://' && $this->options['http'] == 'on' ) || ( $match[1] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[0], $this->tag_facebook( $context, $match[4], 'v' ), $the_content );
- } else if ( $match[2] == 'v' || $match[2] == 'vh' || $match[2] == 'vhd' ) {
- $the_content = str_replace( $match[0], $this->tag_facebook( $context, $match[4], $match[2] ), $the_content );
- }
- }
-
- preg_match_all( "/(http(vp|vhp)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtube\.com\/view_play_list(\?p\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{16})([^<\s]*)/", $the_content, $matches, PREG_SET_ORDER );
- foreach ( $matches as $match ) {
- if ( ( $match[1] == 'http://' && $this->options['http'] == 'on' ) || ( $match[1] == '' && $this->options['www'] == 'on' ) ) {
- $the_content = str_replace( $match[0], $this->tag_youtube( $context, $match[5], 'vp', $match[6] ), $the_content );
- } else if ( $match[2] == 'vp' || $match[2] == 'vhp' ) {
- $the_content = str_replace( $match[0], $this->tag_youtube( $context, $match[5], $match[2], $match[6] ), $the_content );
- }
- }*/
-
- // to work with migrated blogs from Wordpress.com replacing [youtube=youtubeadresss]
- if ( strpos($the_content, "[youtube") !== false ) {
- preg_match_all( "/\[youtube\=http:\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^<\s]*)\]/", $the_content, $matches, PREG_SET_ORDER );
- foreach ( $matches as $match ) {
- $the_content = preg_replace( "/\[youtube\=http:\/\/([a-zA-Z0-9\-\_]+\.|)youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^\s<]*)\]/", $this->tag_youtube( $context, $match[3], '', $match[4] ), $the_content, 1 );
- }
- }
- $tag = $this->options['tag'];
-
- if ( $tag != '' && strpos( $the_content, "[".$tag."]" ) !== false ) {
- preg_match_all( "/\[$tag\]([a-zA-Z0-9\-\_]{11})([^<\s]*)\[\/$tag\]/", $the_content, $matches, PREG_SET_ORDER );
- foreach ( $matches as $match ) {
- $the_content = preg_replace( "/\[$tag\]([a-zA-Z0-9\-\_]{11})([^<\s]*)\[\/$tag\]/", $this->tag_youtube( $context, $match[1], '', '' ), $the_content, 1 );
- }
- }
-
- if ( $this->first_post_on_archive ) {
- $this->first_post_on_archive = false;
- }
-
- return $the_content;
- }
-
- function check_excerpt( $the_content ) {
- $excerpt = $this->options['excerpt'];
- $template = trim($this->options['template']) == '' ? '{video}' : $this->options['template'];
-
- if ( $excerpt != 'not' ) {
- global $post;
- $content = $post->post_content;
-
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $content, $matches['youtube.com'], PREG_SET_ORDER );
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtu\.be\/([a-zA-Z0-9\-\_]{11})/", $content, $matches['youtu.be'], PREG_SET_ORDER );
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?metacafe\.com\/watch\/([a-zA-Z0-9\-\_]{7})\/([^<^\/\s]*)([\/])?/", $content, $matches['metacafe.com'], PREG_SET_ORDER );
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?vimeo\.com\/([a-zA-Z0-9\-\_]{8})([\/])?/", $content, $matches['vimeo.com'], PREG_SET_ORDER );
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?liveleak\.com\/view(\?i\=)([a-zA-Z0-9\-\_]*)/", $content, $matches['liveleak.com'], PREG_SET_ORDER );
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?facebook\.com\/video\/video.php\?v\=([a-zA-Z0-9\-\_]*)/", $content, $matches['facebook.com'], PREG_SET_ORDER );
-
- if ( isset( $matches['youtube.com'][0] ) ) {
- if ( ( $matches['youtube.com'][0][1] == 'http://' && $this->options['http'] == 'on' ) || ( $matches['youtube.com'][0][1] == '' && $this->options['www'] == 'on' ) ) {
- $matches['youtube.com'][0][0] = str_replace( $matches['youtube.com'][0][0], $this->tag_youtube( 'excerpt', $matches['youtube.com'][0][5], 'v', $matches['youtube.com'][0][6] ), $matches['youtube.com'][0][0] );
- } else if ( $matches['youtube.com'][0][2] == 'v' || $matches['youtube.com'][0][2] == 'vh' || $matches['youtube.com'][0][2] == 'vhd' ) {
- $matches['youtube.com'][0][0] = str_replace( $matches['youtube.com'][0][0], $this->tag_youtube( 'excerpt', $matches['youtube.com'][0][5], $matches['youtube.com'][0][2], $matches['youtube.com'][0][6] ), $matches['youtube.com'][0][0] );
- }
- $result = $matches['youtube.com'][0][0];
- } else if ( isset( $matches['youtu.be'][0] ) ) {
- if ( ( $matches['youtu.be'][0][1] == 'http://' && $this->options['http'] == 'on' ) || ( $matches['youtu.be'][0][1] == '' && $this->options['www'] == 'on' ) ) {
- $matches['youtu.be'][0][0] = str_replace( $matches['youtu.be'][0][0], $this->tag_youtube( 'excerpt', $matches['youtu.be'][0][4], 'v' ), $matches['youtu.be'][0][0] );
- } else if ( $matches['youtu.be'][0][2] == 'v' || $matches['youtu.be'][0][2] == 'vh' || $matches['youtu.be'][0][2] == 'vhd' ) {
- $matches['youtu.be'][0][0] = str_replace( $matches['youtu.be'][0][0], $this->tag_youtube( 'excerpt', $matches['youtu.be'][0][4], $matches['youtu.be'][0][2]), $matches['youtu.be'][0][0] );
- }
- $result = $matches['youtu.be'][0][0];
- } else if ( isset( $matches['metacafe.com'][0] ) ) {
- if ( ( $matches['metacafe.com'][0][1] == 'http://' && $this->options['http'] == 'on' ) || ( $matches['metacafe.com'][0][1] == '' && $this->options['www'] == 'on' ) ) {
- $matches['metacafe.com'][0][0] = str_replace( $matches['metacafe.com'][0][0], $this->tag_metacafe( 'excerpt', $matches['metacafe.com'][0][4], 'v', $matches['metacafe.com'][0][5] ), $matches['metacafe.com'][0][0] );
- } else if ( $matches['metacafe.com'][0][2] == 'v' || $matches['metacafe.com'][0][2] == 'vh' || $matches['metacafe.com'][0][2] == 'vhd' ) {
- $matches['metacafe.com'][0][0] = str_replace( $matches['metacafe.com'][0][0], $this->tag_metacafe( 'excerpt', $matches['metacafe.com'][0][4], $matches['metacafe.com'][0][2], $matches['metacafe.com'][0][5] ), $matches['metacafe.com'][0][0] );
- }
- $result = $matches['metacafe.com'][0][0];
- } else if ( isset($matches['vimeo.com'][0] ) ) {
- if ( ( $matches['vimeo.com'][0][1] == 'http://' && $this->options['http'] == 'on' ) || ( $matches['vimeo.com'][0][1] == '' && $this->options['www'] == 'on' ) ) {
- $matches['vimeo.com'][0][0] = str_replace( $matches['vimeo.com'][0][0], $this->tag_vimeo( 'excerpt', $matches['vimeo.com'][0][4], 'v' ), $matches['vimeo.com'][0][0] );
- }
- else if ( $matches['vimeo.com'][0][2] == 'v' || $matches['vimeo.com'][0][2] == 'vh' || $matches['vimeo.com'][0][2] == 'vhd' ) {
- $matches['vimeo.com'][0][0] = str_replace( $matches['vimeo.com'][0][0], $this->tag_vimeo( 'excerpt', $matches['vimeo.com'][0][4], $matches['vimeo.com'][0][2] ), $matches['vimeo.com'][0][0] );
- }
- $result = $matches['vimeo.com'][0][0];
- } else if ( isset( $matches['liveleak.com'][0] ) ) {
- if ( ( $matches['liveleak.com'][0][1] == 'http://' && $this->options['http'] == 'on' ) || ( $matches['liveleak.com'][0][1] == '' && $this->options['www'] == 'on' ) ) {
- $matches['liveleak.com'][0][0] = str_replace( $matches['liveleak.com'][0][0], $this->tag_liveleak( 'excerpt', $matches['liveleak.com'][0][4], 'v' ), $matches['liveleak.com'][0][0] );
- } else if ( $matches['liveleak.com'][0][2] == 'v' || $matches['liveleak.com'][0][2] == 'vh' || $matches['liveleak.com'][0][2] == 'vhd' ) {
- $matches['liveleak.com'][0][0] = str_replace( $matches['liveleak.com'][0][0], $this->tag__liveleak( 'excerpt', $matches['liveleak.com'][0][4], $matches['liveleak.com'][0][2] ), $matches['liveleak.com'][0][0] );
- }
- $result = $matches['liveleak.com'][0][0];
- } else if ( isset( $matches['facebook.com'][0] ) ) {
- if ( ( $matches['facebook.com'][0][1] == 'http://' && $this->options['http'] == 'on' ) || ( $matches['facebook.com'][0][1] == '' && $this->options['www'] == 'on' ) ) {
- $matches['facebook.com'][0][0] = str_replace( $matches['facebook.com'][0][0], $this->tag_facebook( 'excerpt', $matches['facebook.com'][0][4], 'v' ), $matches['facebook.com'][0][0] );
- } else if ( $matches['facebook.com'][0][2] == 'v' || $matches['facebook.com'][0][2] == 'vh' || $matches['facebook.com'][0][2] == 'vhd' ) {
- $matches['facebook.com'][0][0] = str_replace( $matches['facebook.com'][0][0], $this->tag_facebook( 'excerpt', $matches['facebook.com'][0][4], $matches['facebook.com'][0][2] ), $matches['facebook.com'][0][0] );
- }
- $result = $matches['facebook.com'][0][0];
- } else {
- /*$width = $this->options['widthside'];
- $height = $this->options['heightside'];
-
- $img_url = htmlspecialchars( $this->plugin_url . '/img/default.jpg' );
- $post_url = get_permalink( $post->ID );
- $yte_tag = <<<EOT
-<a href="$post_url">
-<img src="$img_url" height="$height" width="$width" />
-</a>
-EOT;
- $result = str_replace( '{video}', $yte_tag, html_entity_decode( $template ) );*/
-
- return $the_content;
- }
- if ( isset( $result ) ) {
- $the_content = '<div style="float:' . $this->options["excerpt_align"] . ';padding-' . ( $this->options["excerpt_aign"] == 'left' ? 'right' : 'left' ) . ':10px;">' . $result . '</div>' . $the_content . '<div style="clear:both"></div>';
- }
- }
-
- if ( $this->first_post_on_archive ) {
- $this->first_post_on_archive = false;
- }
-
- return $the_content;
- }
-
- function tag_youtube( $context, $file, $high = 'v', $time = '' ) {
- $playlist = 0;
- $disp_rel = $this->options['rel'];
- $autoplay = $this->options['autoplay'];
- $autoplay_first = $this->options['autoplay_first'];
- $disp_search = $this->options['search'] == 'on' ? 1 : 0;
- $disp_info = $this->options['info'] == 'on' ? '&showinfo=0' : '';
- $disp_ann = $this->options['ann'] == 'on' ? '&iv_load_policy=3' : '';
- $template = trim( $this->options['template'] ) == '' ? '{video}' : $this->options['template'];
- $valid = $this->options['valid'];
- if ($this->options['loop'])
- $loop="&loop=1&playlist=$file";
- else $loop='';
- $thumb = $this->options['thumb'];
- $colorbox = $this->options['colorbox'];
- $logoless = $this->options['logoless'];
- $theme = $this->options['theme'];
- $excerpt = $this->options['excerpt'];
-
- switch ( $high ) {
- case 'v':
- $high = '';
- break;
- case 'vh':
- $high = '&hd=1';
- break;
- case 'vhd':
- $high = '&hd=1';
- break;
- case 'vp':
- $high = '';
- $playlist = 1;
- break;
- case 'vhp':
- $high = '&hd=1';
- $playlist = 1;
- break;
- default:
- $high = '';
- break;
- }
-
- $width = ( $context == 'excerpt' || $context == 'side' ) ?
- $this->options['widthside'] :
- ( $high ? $this->options['widthhq'] : $this->options['width'] );
-
- $height = ( $context == 'excerpt' || $context == 'side' ) ?
- $this->options['heightside'] :
- ( $high ? $this->options['heighthq'] : $this->options['height'] );
-
- if ( ! $width ) {
- $width = ! $high ? 480 : 425 ;
- }
-
- if ( ! $height ) {
- $height = ! $high ? 360 : 344;
- }
-
- $ap = '';
- if ( is_single() ) {
- if ( $context == 'post' && $autoplay_first && ! $this->first ) {
- $ap = '&autoplay=1';
- $this->first = true;
- } else if ( ( $context == 'post' && $autoplay && ! $autoplay_first ) || ( $context == 'excerpt' && $autoplay ) ) {
- $ap = '&autoplay=1';
- } else {
- $ap = '';
- }
- } elseif ( $this->first_post_on_archive ) {
- if ( $context == 'post' && $autoplay_first && ! $this->first ) {
- $ap = '&autoplay=1';
- $this->first = true;
- } else if ( ( $context == 'post' && $autoplay && ! $autoplay_first ) || ( $context == 'excerpt' && $autoplay ) ) {
- $ap = '&autoplay=1';
- } else {
- $ap = '';
- }
- }
-
- if ( $logoless == 'on' ) {
- $ll = '&modestbranding=1';
- $disp_info = '';
- } else {
- $ll = '';
- }
-
- $root_url = $this->options['privacy'] ? 'http://www.youtube-nocookie.com' : 'http://www.youtube.com';
-
- if ( $excerpt == 'thm' ) {
- $img_url = htmlspecialchars( "http://img.youtube.com/vi/$file/0.jpg" );
- global $post;
- $post_url = get_permalink( $post->ID );
- $yte_tag = <<<EOT
-<a href="$post_url"><img src="$img_url" height="$height" width="$width" /></a>
-EOT;
- }
-
- if ( ( ( is_home() || is_front_page() || is_archive() ) && $context == 'post' && $thumb == 'on' ) || ( $context == 'thumb' ) || ( $context == 'excerpt' && $excerpt == 'thm' ) ) {
- $img_url = htmlspecialchars( "http://img.youtube.com/vi/$file/0.jpg" );
- if ( $context == 'excerpt' && $excerpt == 'thm' ) {
- global $post;
- $post_url = get_permalink( $post->ID );
- $yte_tag = <<<EOT
-<a href="$post_url"><img src="$img_url" height="$height" width="$width" /></a>
-EOT;
- } else {
- $yte_tag = <<<EOT
-<img src="$img_url" height="$height" width="$width" />
-EOT;
- }
- } else {
- if ( $this->options['iframe'] == 'on' )
- $video_url = htmlspecialchars( "$root_url/embed/$file?wmode=transparent&fs=1&hl=en$ap$ll$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
- else
- $video_url = htmlspecialchars( "$root_url/v/$file?wmode=transparent&fs=1&hl=en&$ap$ll$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
-
- if ( $playlist ) {
- $video_url = htmlspecialchars( "$root_url/embed/videoseries?list=$file&fs=1&hl=en$ap$ll$loop{$disp_info}$disp_ann&showsearch=$disp_search&rel=$disp_rel&theme=$theme", ENT_QUOTES ) . $high . $time;
- $yte_tag = <<<EOT
-<span class="youtube"><iframe class="youtube-player" src="$video_url" width="$width" height="$height" frameborder="0" allowfullscreen></iframe></span>
-EOT;
- } elseif ( $valid == 'off' || strpos( $_SERVER['HTTP_USER_AGENT'], 'iPhone' ) === TRUE || strpos( $_SERVER['HTTP_USER_AGENT'], 'iPod' ) === TRUE || strpos( $_SERVER['HTTP_USER_AGENT'], 'iPad' ) === TRUE ) {
- if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
- $img_url = htmlspecialchars( "http://img.youtube.com/vi/$file/0.jpg" );
- $yte_tag = <<<EOT
-<a class="colorbox_video" href="$video_url"><img width="$width" height="$height" src="$img_url" /></iframe></span>
-EOT;
- } else if ( $this->options['iframe'] == 'on' )
- $yte_tag = <<<EOT
-<span class="youtube"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="$width" height="$height" src="$video_url" frameborder="0" allowfullscreen></iframe></span>
-EOT;
- else
- $yte_tag = <<<EOT
-<span class="youtube"><object width="$width" height="$height"><param name="movie" value="$video_url" />
-<param name="allowFullScreen" value="true" /><embed wmode="opaque" src="$video_url" type="application/x-shockwave-flash" allowfullscreen="true" width="$width" height="$height"></embed><param name="wmode" value="opaque" /></object></span>
-EOT;
- } else {
- if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
- $img_url = htmlspecialchars( "http://img.youtube.com/vi/$file/0.jpg" );
- $yte_tag = <<<EOT
-<a class="colorbox_video" href="$video_url"><img width="$width" height="$height" src="$img_url" /></iframe></span>
-EOT;
- } else if ( $this->options['iframe'] == 'on' ) {
- $yte_tag = <<<EOT
-<span class="youtube"><iframe title="YouTube video player" class="youtube-player" type="text/html" width="$width" height="$height" src="$video_url" frameborder="0" allowfullscreen></iframe></span>
-EOT;
- } else {
- $yte_tag = <<<EOT
-<span class="youtube"><object type="application/x-shockwave-flash" width="$width" height="$height" data="$video_url"><param name="movie" value="$video_url" />
-<param name="allowFullScreen" value="true" /><param name="wmode" value="transparent" /></object></span>
-EOT;
- }
- }
- }
-
- if ( is_feed() && ( $context == 'post' || $context = 'excerpt' ) ) {
- if ( $high ) {
- $high = '&fmt=18';
- }
- if ( $playlist )
- $url = 'http://www.youtube.com/playlist?list=';
- else
- $url = 'http://www.youtube.com/watch?v=';
-
- $yte_tag = '';
- if ( $this->options['link'] == 'on' ) {
- $yte_tag .= '<p><a href="' . $url . $file . $high . '">'.$url. $file . '</a></p>';
- }
-
- if ( $this->options['img'] == 'on' ) {
- $yte_tag .= '<p><a href="' . $url . $file . $high. '"><img src="http://img.youtube.com/vi/' . $file . '/default.jpg" width="130" height="97" border=0></a></p>';
- }
-
- if ($this->options['link'] == 'off' && $this->options['img'] == 'off')
- $yte_tag=$url.$file;
- }
-
- return str_replace( '{video}', $yte_tag, html_entity_decode( $template ) );
- }
-
- function tag_metacafe( $context, $file, $high = 'v', $name = '' ) {
- $width = ( $context == 'excerpt' || $context == 'side' ) ?
- $this->options['widthside'] :
- ( $high ? $this->options['widthhq'] : $this->options['width'] );
-
- $height = ( $context == 'excerpt' || $context == 'side' ) ?
- $this->options['heightside'] :
- ( $high ? $this->options['heighthq'] : $this->options['height'] );
-
- if ( ! $width ) {
- $width = ! ( $high == 'v' ) ? 480 : 425 ;
- }
-
- if ( ! $height ) {
- $height = ! ( $high == 'v' ) ? 360 : 344;
- }
-
- $template = trim( $this->options['template'] ) == '' ? '{video}' : $this->options['template'];
- $excerpt = $this->options['excerpt'];
- $thumb = $this->options['thumb'];
- $colorbox = $this->options['colorbox'];
- $autoplay = $this->options['autoplay'];
- $autoplay_first = $this->options['autoplay_first'];
-
- $ap = 'no';
- if ( is_single() ) {
- if ( $context == 'post' && $autoplay_first && ! $this->first ) {
- $ap = 'yes';
- $this->first = true;
- } else if ( ( $context == 'post' && $autoplay && ! $autoplay_first ) || ( $context == 'excerpt' && $autoplay ) ) {
- $ap = 'yes';
- } else {
- $ap = 'no';
- }
- } elseif ( $this->first_post_on_archive ) {
- if ( $context == 'post' && $autoplay_first && ! $this->first ) {
- $ap = 'yes';
- $this->first = true;
- } else if ( ( $context == 'post' && $autoplay && ! $autoplay_first ) || ( $context == 'excerpt' && $autoplay ) ) {
- $ap = 'yes';
- } else {
- $ap = 'no';
- }
- }
-
- $flash_vars = "playerVars=showStats=no|autoPlay=$ap|";
-
- if ( ( ( is_home() || is_front_page() || is_archive() ) && $context == 'post' && $thumb == 'on' ) || ( $context == 'thumb' ) || ( $context == 'excerpt' && $excerpt == 'thm' ) ) {
- $img_url = htmlspecialchars( "http://www.metacafe.com/thumb/$file.jpg" );
- if ( $context == 'excerpt' && $excerpt == 'thm' ) {
- global $post;
- $post_url = get_permalink( $post->ID );
- $yte_tag = <<<EOT
-<a href="$post_url"><img src="$img_url" height="$height" width="$width" /></a>
-EOT;
- } else {
- $yte_tag = <<<EOT
-<img src="$img_url" height="$height" width="$width" />
-EOT;
- }
- } else if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
- $img_url = htmlspecialchars( "http://www.metacafe.com/thumb/$file.jpg" );
- $yte_tag = <<<EOT
-<a class="colorbox_video" href="http://www.metacafe.com/fplayer/$file/$name.swf"><img width="$width" height="$height" src="$img_url" /></iframe></span>
-EOT;
- } else {
- $yte_tag = <<<EOT
-<embed flashVars="$flash_vars" src="http://www.metacafe.com/fplayer/$file/$name.swf" width="$width" height="$height" wmode="transparent" allowFullScreen="true" allowScriptAccess="always" name="Metacafe_6261286" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
-EOT;
- }
-
- return str_replace( '{video}', $yte_tag, html_entity_decode( $template ) );
- }
-
- function tag_vimeo( $context, $file, $high = 'v', $side = 0 ) {
- $width = ( $context == 'excerpt' || $context == 'side' ) ?
- $this->options['widthside'] :
- ( $high ? $this->options['widthhq'] : $this->options['width'] );
-
- $height = ( $context == 'excerpt' || $context == 'side' ) ?
- $this->options['heightside'] :
- ( $high ? $this->options['heighthq'] : $this->options['height'] );
-
- if ( ! $width ) {
- $width = ! ( $high == 'v' ) ? 480 : 425 ;
- }
-
- if ( ! $height ) {
- $height = ! ( $high == 'v' ) ? 360 : 344;
- }
-
- $template = trim( $this->options['template'] ) == '' ? '{video}' : $this->options['template'];
- $excerpt = $this->options['excerpt'];
- $thumb = $this->options['thumb'];
- $colorbox = $this->options['colorbox'];
- $autoplay = $this->options['autoplay'];
- $autoplay_first = $this->options['autoplay_first'];
- $loop = $this->options['loop'];
-
- $video_url = "http://player.vimeo.com/video/$file";
-
- if ( $context == 'post' && $autoplay_first && ! $this->first ) {
- if ( is_single() ) {
- $video_url .= "?autoplay=1";
- } elseif ( $this->first_post_on_archive ) {
- $video_url .= "?autoplay=1";
- }
- if ( $loop ) {
- $video_url .= "&loop=1";
- }
- $this->first = true;
- } else if ( ( $context == 'post' && $autoplay && ! $autoplay_first ) || ( $context == 'excerpt' && $autoplay ) ) {
- if ( is_single() ) {
- $video_url .= "?autoplay=1";
- } elseif ( $this->first_post_on_archive ) {
- $video_url .= "?autoplay=1";
- }
- if ( $loop ) {
- $video_url .= "&loop=1";
- }
- } else {
- if ( $loop ) {
- $video_url .= "?loop=1";
- }
- }
-
- if ( ( ( is_home() || is_front_page() || is_archive() ) && $context == 'post' && $thumb == 'on' ) || ( $context == 'thumb' ) || ( $context == 'excerpt' && $excerpt == 'thm' ) ) {
- $thumbs = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$file.php"));
- $img_url = htmlspecialchars($thumbs[0]['thumbnail_large']);
- if ( $context == 'excerpt' && $excerpt == 'thm' ) {
- global $post;
- $post_url = get_permalink( $post->ID );
- $yte_tag = <<<EOT
-<a href="$post_url"><img src="$img_url" height="$height" width="$width" /></a>
-EOT;
- } else {
- $yte_tag = <<<EOT
-<img src="$img_url" height="$height" width="$width" />
-EOT;
- }
- }
- else if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
- $thumbs = unserialize( file_get_contents( "http://vimeo.com/api/v2/video/$file.php" ) );
- $img_url = htmlspecialchars( $thumbs[0]['thumbnail_large'] );
- $yte_tag = <<<EOT
-<a class="colorbox_video" href="$video_url"><img width="$width" height="$height" src="$img_url" /></a>
-EOT;
- } else {
- $yte_tag = <<<EOT
-<iframe src="$video_url" width="$width" height="$height" frameborder="0"></iframe>
-EOT;
- }
-
- return str_replace( '{video}', $yte_tag, html_entity_decode( $template ) );
- }
-
- function tag_liveleak( $context, $file, $high = 'v', $side = 0 ) {
- $width = ( $context == 'excerpt' || $context == 'side' ) ?
- $this->options['widthside'] :
- ( $high ? $this->options['widthhq'] : $this->options['width'] );
-
- $height = ( $context == 'excerpt' || $context == 'side' ) ?
- $this->options['heightside'] :
- ( $high ? $this->options['heighthq'] : $this->options['height'] );
-
- if ( ! $width ) {
- $width = ! ( $high == 'v' ) ? 480 : 425 ;
- }
-
- if ( ! $height ) {
- $height = ! ( $high == 'v' ) ? 360 : 344;
- }
-
- $template = trim($this->options['template']) == '' ? '{video}' : $this->options['template'];
- $thumb = $this->options['thumb'];
- $colorbox = $this->options['colorbox'];
- $excerpt = $this->options['excerpt'];
-
- if ( ( ( is_home() || is_front_page() || is_archive() ) && $context == 'post' && $thumb == 'on' ) || ( $context == 'thumb' ) || ( $context == 'excerpt' && $excerpt == 'thm' ) ) {
- $img_url = htmlspecialchars( $this->plugin_url . '/img/default.jpg' );
- if ( $context == 'excerpt' && $excerpt == 'thm' ) {
- global $post;
- $post_url = get_permalink( $post->ID );
- $yte_tag = <<<EOT
-<a href="$post_url"><img src="$img_url" height="$height" width="$width" /></a>
-EOT;
- } else {
- $yte_tag = <<<EOT
-<img src="$img_url" height="$height" width="$width" />
-EOT;
- }
- } else if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
- $img_url = htmlspecialchars( $this->plugin_url . '/img/default.jpg' );
- $yte_tag = <<<EOT
-<a class="colorbox_video" href="http://www.liveleak.com/e/$file"><img width="$width" height="$height" src="$img_url" /></iframe></span>
-EOT;
- } else {
- $yte_tag = <<<EOT
-<object width="$width" height="$height"><param name="movie" value="http://www.liveleak.com/e/$file"></param><param name="wmode" value="transparent"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.liveleak.com/e/$file" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" width="$width" height="$height"></embed></object>
-EOT;
- }
-
- return str_replace( '{video}', $yte_tag, html_entity_decode( $template ) );
- }
-
- function tag_facebook( $context, $file, $high = 'v', $side = 0 ) {
- $width = ( $context == 'excerpt' || $context == 'side' ) ?
- $this->options['widthside'] :
- ( $high ? $this->options['widthhq'] : $this->options['width'] );
-
- $height = ( $context == 'excerpt' || $context == 'side' ) ?
- $this->options['heightside'] :
- ( $high ? $this->options['heighthq'] : $this->options['height'] );
-
- if ( ! $width ) {
- $width = ! ( $high == 'v' ) ? 480 : 425 ;
- }
-
- if ( ! $height ) {
- $height = ! ( $high == 'v' ) ? 360 : 344;
- }
-
- $template = trim($this->options['template']) == '' ? '{video}' : $this->options['template'];
- $thumb = $this->options['thumb'];
- $colorbox = $this->options['colorbox'];
- $excerpt = $this->options['excerpt'];
-
- if ( ( ( is_home() || is_front_page() || is_archive() ) && $context == 'post' && $thumb == 'on' ) || ( $context == 'thumb' ) || ( $context == 'excerpt' && $excerpt == 'thm' ) ) {
- $img_url = htmlspecialchars( $this->plugin_url . '/img/default.jpg' );
- if ( $context == 'excerpt' && $excerpt == 'thm' ) {
- global $post;
- $post_url = get_permalink( $post->ID );
- $yte_tag = <<<EOT
-<a href="$post_url"><img src="$img_url" height="$height" width="$width" /></a>
-EOT;
- } else {
- $yte_tag = <<<EOT
-<img src="$img_url" height="$height" width="$width" />
-EOT;
- }
- } else if ( $context == 'post' && $colorbox == 'on' && is_singular() ) {
- $img_url = htmlspecialchars( $this->plugin_url . '/img/default.jpg' );
- $yte_tag = <<<EOT
-<a class="colorbox_video" href="http://www.facebook.com/v/$file"><img width="$width" height="$height" src="$img_url" /></iframe></span>
-EOT;
- } else {
- $yte_tag = <<<EOT
-<object width="$width" height="$height"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" />
-<param name="movie" value="http://www.facebook.com/v/$file" /><embed src="http://www.facebook.com/v/$file" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="$width" height="$height"></embed></object>
-EOT;
- }
-
- return str_replace( '{video}', $yte_tag, html_entity_decode( $template ) );
- }
-
- function install() {
- add_action( 'widgets_init', array( $this, 'load_widgets' ) );
-
- if ( get_option( $this->key ) ) {
- $this->options = $this->get_options();
- }
- }
-
- // Handle our options
- function get_options() {
- $options = array(
- 'posts' => 'on',
- 'comments' => 'off',
- 'img' => 'off',
- 'width' => 425,
- 'height' => 344,
- 'widthhq' => 480,
- 'heighthq' => 295,
- 'widthside' => 200,
- 'heightside' => 167,
- 'rel' => 1,
- 'link' => 'on',
- 'valid' => 'off',
- 'search' => 'off',
- 'info' => 'on',
- 'ann' => 'on',
- 'template' => '{video}',
- 'autoplay' => 0,
- 'autoplay_first' => 0,
- 'privacy' => 0,
- 'wtext' => '',
- 'wtitle' => '',
- 'tag' => '',
- 'iframe' => 'on',
- 'http' => 'off',
- 'www' => 'off',
- 'loop' => 0,
- 'thumb' => 'off',
- 'colorbox' => 'off',
- 'colorbox_theme' => 1,
- 'excerpt' => 'not',
- 'logoless' => 'on',
- 'wiziapp' => 'off',
- 'theme' => 'dark'
- );
- $saved = get_option( $this->key );
-
- if ( ! empty( $saved ) ) {
- foreach ( $saved as $key => $option ) {
- $options[$key] = $option;
- }
- }
-
- if ( $saved != $options ) {
- update_option( $this->key, $options );
- }
-
- return $options;
- }
-
- function load_widgets() {
- register_widget( 'SmartYouTube_Widget' );
- }
-
- /**
- * Gets plugin info from WordPress Codex repo
- * @return mixed
- */
- function get_info() {
- $checkfile = 'http://svn.wp-plugins.org/smart-youtube/trunk/smartyoutube.chk';
-
- $status = array();
-
- return $status; //???
-
- $vcheck = wp_remote_fopen( $checkfile );
-
- if ( $vcheck ) {
- $version = $this->local_version;
-
- $status = explode( '@', $vcheck );
- return $status;
- }
- }
-}
-
-class SmartYouTube_Widget extends WP_Widget {
- function SmartYouTube_Widget() {
- $widget_ops = array( 'classname' => 'smart-youtube', 'description' => 'A widget which dispalys some video from Youtube.' );
- $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'smart-youtube' );
- $this->WP_Widget( 'smart-youtube', 'Smart Youtube', $widget_ops, $control_ops );
- }
-
- function widget( $args, $instance ) {
- extract( $args );
- $text = smart_youtube_check( $instance['text'], 1 );
- $title = $instance['title'];
-
- echo
- $before_widget,
- $before_title, $title, $after_title,
- $text,
- $after_widget;
- }
-
- function update( $new_instance, $old_instance ) {
- $instance = $old_instance;
-
- $instance['text'] = strip_tags( $new_instance['text'] );
- $instance['title'] = strip_tags( $new_instance['title'] );
- return $instance;
- }
-
- function form( $instance ) {
- $defaults = array( 'title' => 'Smart Youtube Widget', 'text' => '' );
- $instance = wp_parse_args( ( array )$instance, $defaults );
-?>
-<?php _e('Title:', 'smart-youtube'); ?><br /><input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" /><br />
-<?php _e('Insert HTML code below. In addition to normal text you may use httpv, httpvh and httpvhd links just like in your posts.'); ?><br />
-<textarea id="<?php echo $this->get_field_id( 'text' ); ?>" name="<?php echo $this->get_field_name( 'text' ); ?>" rows="10" cols="16" class="widefat"><?php echo $instance['text']; ?></textarea>
-<?php
- }
-}
-
-function smart_youtube_check( $the_content, $side = 0 ) {
- global $smart_youtube_pro;
- return $smart_youtube_pro->check( $the_content, $side );
-}
-
-function syt_show_thumb( $post_id ) {
- $p = get_post( $post_id );
- $content = $p->post_content;
-
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtube\.com\/watch(\?v\=|\/v\/|#!v=)([a-zA-Z0-9\-\_]{11})([^<\s]*)/", $content, $matches['youtube.com'], PREG_SET_ORDER );
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?youtu\.be\/([a-zA-Z0-9\-\_]{11})/", $content, $matches['youtu.be'], PREG_SET_ORDER );
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?metacafe\.com\/watch\/([a-zA-Z0-9\-\_]{7})\/([^<^\/\s]*)([\/])?/", $content, $matches['metacafe.com'], PREG_SET_ORDER );
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?vimeo\.com\/([a-zA-Z0-9\-\_]{8})([\/])?/", $content, $matches['vimeo.com'], PREG_SET_ORDER );
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?liveleak\.com\/view(\?i\=)([a-zA-Z0-9\-\_]*)/", $content, $matches['liveleak.com'], PREG_SET_ORDER );
- preg_match_all( "/(http(v|vh|vhd)?:\/\/)?([a-zA-Z0-9\-\_]+\.|)?facebook\.com\/video\/video.php\?v\=([a-zA-Z0-9\-\_]*)/", $content, $matches['facebook.com'], PREG_SET_ORDER );
-
- global $smart_youtube_pro;
-
- if ( isset( $matches['youtube.com'][0] ) ) {
- if ( ( $matches['youtube.com'][0][1] == 'http://' && $smart_youtube_pro->options['http'] == 'on' ) || ( $matches['youtube.com'][0][1] == '' && $smart_youtube_pro->options['www'] == 'on' ) ) {
- $matches['youtube.com'][0][0] = str_replace( $matches['youtube.com'][0][0], $smart_youtube_pro->tag_youtube( 'excerpt', $matches['youtube.com'][0][5], 'v', $matches['youtube.com'][0][6] ), $matches['youtube.com'][0][0] );
- } else if ( $matches['youtube.com'][0][2] == 'v' || $matches['youtube.com'][0][2] == 'vh' || $matches['youtube.com'][0][2] == 'vhd' ) {
- $matches['youtube.com'][0][0] = str_replace( $matches['youtube.com'][0][0], $smart_youtube_pro->tag_youtube( 'excerpt', $matches['youtube.com'][0][5], $matches['youtube.com'][0][2], $matches['youtube.com'][0][6] ), $matches['youtube.com'][0][0] );
- }
- $result = $matches['youtube.com'][0][0];
- } else if ( isset( $matches['youtu.be'][0] ) ) {
- if ( ( $matches['youtu.be'][0][1] == 'http://' && $smart_youtube_pro->options['http'] == 'on' ) || ( $matches['youtu.be'][0][1] == '' && $smart_youtube_pro->options['www'] == 'on' ) ) {
- $matches['youtu.be'][0][0] = str_replace( $matches['youtu.be'][0][0], $smart_youtube_pro->tag_youtube( 'excerpt', $matches['youtu.be'][0][4], 'v' ), $matches['youtu.be'][0][0] );
- } else if ( $matches['youtu.be'][0][2] == 'v' || $matches['youtu.be'][0][2] == 'vh' || $matches['youtu.be'][0][2] == 'vhd' ) {
- $matches['youtu.be'][0][0] = str_replace( $matches['youtu.be'][0][0], $smart_youtube_pro->tag_youtube( 'excerpt', $matches['youtu.be'][0][4], $matches['youtu.be'][0][2]), $matches['youtu.be'][0][0] );
- }
- $result = $matches['youtu.be'][0][0];
- } else if ( isset( $matches['metacafe.com'][0] ) ) {
- if ( ( $matches['metacafe.com'][0][1] == 'http://' && $smart_youtube_pro->options['http'] == 'on' ) || ( $matches['metacafe.com'][0][1] == '' && $smart_youtube_pro->options['www'] == 'on' ) ) {
- $matches['metacafe.com'][0][0] = str_replace( $matches['metacafe.com'][0][0], $smart_youtube_pro->tag_metacafe( 'excerpt', $matches['metacafe.com'][0][4], 'v', $matches['metacafe.com'][0][5] ), $matches['metacafe.com'][0][0] );
- } else if ( $matches['metacafe.com'][0][2] == 'v' || $matches['metacafe.com'][0][2] == 'vh' || $matches['metacafe.com'][0][2] == 'vhd' ) {
- $matches['metacafe.com'][0][0] = str_replace( $matches['metacafe.com'][0][0], $smart_youtube_pro->tag_metacafe( 'excerpt', $matches['metacafe.com'][0][4], $matches['metacafe.com'][0][2], $matches['metacafe.com'][0][5] ), $matches['metacafe.com'][0][0] );
- }
- $result = $matches['metacafe.com'][0][0];
- } else if ( isset($matches['vimeo.com'][0] ) ) {
- if ( ( $matches['vimeo.com'][0][1] == 'http://' && $smart_youtube_pro->options['http'] == 'on' ) || ( $matches['vimeo.com'][0][1] == '' && $smart_youtube_pro->options['www'] == 'on' ) ) {
- $matches['vimeo.com'][0][0] = str_replace( $matches['vimeo.com'][0][0], $smart_youtube_pro->tag_vimeo( 'excerpt', $matches['vimeo.com'][0][4], 'v' ), $matches['vimeo.com'][0][0] );
- }
- else if ( $matches['vimeo.com'][0][2] == 'v' || $matches['vimeo.com'][0][2] == 'vh' || $matches['vimeo.com'][0][2] == 'vhd' ) {
- $matches['vimeo.com'][0][0] = str_replace( $matches['vimeo.com'][0][0], $smart_youtube_pro->tag_vimeo( 'excerpt', $matches['vimeo.com'][0][4], $matches['vimeo.com'][0][2] ), $matches['vimeo.com'][0][0] );
- }
- $result = $matches['vimeo.com'][0][0];
- } else if ( isset( $matches['liveleak.com'][0] ) ) {
- if ( ( $matches['liveleak.com'][0][1] == 'http://' && $smart_youtube_pro->options['http'] == 'on' ) || ( $matches['liveleak.com'][0][1] == '' && $smart_youtube_pro->options['www'] == 'on' ) ) {
- $matches['liveleak.com'][0][0] = str_replace( $matches['liveleak.com'][0][0], $smart_youtube_pro->tag_liveleak( 'excerpt', $matches['liveleak.com'][0][4], 'v' ), $matches['liveleak.com'][0][0] );
- } else if ( $matches['liveleak.com'][0][2] == 'v' || $matches['liveleak.com'][0][2] == 'vh' || $matches['liveleak.com'][0][2] == 'vhd' ) {
- $matches['liveleak.com'][0][0] = str_replace( $matches['liveleak.com'][0][0], $smart_youtube_pro->tag__liveleak( 'excerpt', $matches['liveleak.com'][0][4], $matches['liveleak.com'][0][2] ), $matches['liveleak.com'][0][0] );
- }
- $result = $matches['liveleak.com'][0][0];
- } else if ( isset( $matches['facebook.com'][0] ) ) {
- if ( ( $matches['facebook.com'][0][1] == 'http://' && $smart_youtube_pro->options['http'] == 'on' ) || ( $matches['facebook.com'][0][1] == '' && $smart_youtube_pro->options['www'] == 'on' ) ) {
- $matches['facebook.com'][0][0] = str_replace( $matches['facebook.com'][0][0], $smart_youtube_pro->tag_facebook( 'excerpt', $matches['facebook.com'][0][4], 'v' ), $matches['facebook.com'][0][0] );
- } else if ( $matches['facebook.com'][0][2] == 'v' || $matches['facebook.com'][0][2] == 'vh' || $matches['facebook.com'][0][2] == 'vhd' ) {
- $matches['facebook.com'][0][0] = str_replace( $matches['facebook.com'][0][0], $smart_youtube_pro->tag_facebook( 'excerpt', $matches['facebook.com'][0][4], $matches['facebook.com'][0][2] ), $matches['facebook.com'][0][0] );
- }
- $result = $matches['facebook.com'][0][0];
- } else {
- $width = $smart_youtube_pro->options['width'];
- $height = $smart_youtube_pro->options['height'];
-
- $img_url = htmlspecialchars( $smart_youtube_pro->plugin_url . '/img/default.jpg' );
- $post_url = get_permalink( $post->ID );
- $yte_tag = <<<EOT
-<a href="$post_url">
-<img src="$img_url" height="$height" width="$width" />
-</a>
-EOT;
- $result = str_replace( '{video}', $yte_tag, html_entity_decode( $template ) );
- }
- if ( isset( $result ) ) {
- return $result;
- }
-}
-?>
diff --git a/plugins/smart-youtube/style.css b/plugins/smart-youtube/style.css
deleted file mode 100644
index 20cc1fd..0000000
--- a/plugins/smart-youtube/style.css
+++ /dev/null
@@ -1,213 +0,0 @@
-#watch-embed-div,
-#watch-url-div{
-border-top:1px solid #CCC;
-font-size:11px;
-}
-#watch-url-div{
-margin:5px 0;
-}
-#watch-url-field{
-font-size:10px;
-width:340px;
-margin-top:2px;
-}
-#watch-embed-div label,
-#watch-url-div label{
-color:#999;
-line-height:18px;
-font-size:12px;
-}
-#watch-embed-div input{
-font-size:10px;
-width:339px;
-margin-top:2px;
-}
-#watch-embed-div #watch-embed-customize{
-font-weight:normal;
-color:#03c;
-}
-#watch-customize-embed-div{
-display:none;
-background-color:white;
-border-top:1px solid #CCC;
-margin-top:5px;
-padding:5px;
-}
-#watch-customize-embed-form{
-display:block;
-
-}
-#watch-customize-embed-desc{
-display:block;
-padding:6px;
-}
-#watch-customize-embed-theme{
-display:block;
-clear:both;
-}
-#watch-customize-embed-theme-swatches{
-padding:5px;
-display:block;
-margin-top:5px;
-width:310px;
-height:80px;
-}
-#watch-customize-embed-theme-preview{
-display:block;
-float:right;
-margin:4px 140px;
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll 0px -23px;
-width:100px;
-height:86px;
-}
-.watch-image-radio-link{
-border:0;
-display:inline-block;
-float:left;
-margin:3px;
-}
-.watch-image-radio-link:hover{
-background-color:#ADD8E6;
-}
-.watch-image-radio-link.radio_selected{
-border:1px solid #000;
-margin:2px;
-}
-.watch-image-radio-link img{
-border:1px solid #fff;
-background-color:#fff;
-padding:0px;
-margin:4px;
-}
-.watch-embed-select{
-width:46px;
-height:23px;
-}
-.watch-embed-iceberg{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll 0px 0px;
-}
-.watch-embed-blank{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -46px 0px;
-}
-.watch-embed-acid{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -92px 0px;
-}
-.watch-embed-storm{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -138px 0px;
-}
-.watch-embed-green{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -184px 0px;
-}
-.watch-embed-orange{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -230px 0px;
-}
-.watch-embed-pink{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -276px 0px;
-}
-.watch-embed-purple{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -322px 0px;
-}
-.watch-embed-rubyred{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -368px 0px;
-}
-div#dbx-content a{
-text-decoration:none;
-}
-
-.smartyoutube h3
-{
- margin: 25px 0 10px !important;
- padding: 0 !important;
- font-size: 14px !important;
-}
-
-.smartyoutube p.instruct
-{
- color: #555;
- font-size: 11px;
-}
-
-#sideblock
-{
- padding: 10px 0 10px 10px;
- background: #fdffee;
- border: 1px solid #ddd;
-}
-
-#sideblock h2
-{
- margin: 0 0 5px 0 !important;
-}
-
-h5.author
-{
- background: #eee;
- border-top: 1px solid #ddd;
- height: 28px !important;
- line-height: 28px !important;
- padding-left: 12px !important;
- margin: 20px 0 -5px !important;
-}
-
-.size-chooser
-{
- border: 1px solid #ddd;
- padding: 5px;
- margin: 3px 0 10px;
- width: 400px;
-}
-
-.size-chooser a
-{
- display: block;
- padding: 2px;
- float: left;
- margin-right: 5px;
- color: #888;
- border: 2px solid transparent;
- text-decoration: none;
-}
-
-.size-chooser a:hover
-{
- border-color: #add8e6;
-}
-
-.size-chooser a.chosen .outer
-{
- border-color: #a0b3d9;
- background: #d8e6fb;
-}
-
-.size-chooser a span
-{
- display: block;
- color: #999;
- font-size: 11px;
- text-align: center;
-}
-
-.size-chooser a.chosen span
-{
- color: #000;
-}
-
-.size-chooser a .outer
-{
- background: #ddd;
- border: 1px solid #999;
- margin: 0 auto;
-}
-
-.size-chooser a .outer div
-{
- border-left: 1px solid #fff;
- border-top: 1px solid #fff;
- height: 99%;
-}
-
-#usageHeader a
-{
- font-size: 10px;
- font-style: normal;
-}
\ No newline at end of file
diff --git a/plugins/smart-youtube/styleyt.css b/plugins/smart-youtube/styleyt.css
deleted file mode 100644
index 7eadb02..0000000
--- a/plugins/smart-youtube/styleyt.css
+++ /dev/null
@@ -1,212 +0,0 @@
-#watch-embed-div,
-#watch-url-div{
-border-top:1px solid #CCC;
-font-size:11px;
-}
-#watch-url-div{
-margin:5px 0;
-}
-#watch-url-field{
-font-size:10px;
-width:340px;
-margin-top:2px;
-}
-#watch-embed-div label,
-#watch-url-div label{
-color:#999;
-line-height:18px;
-font-size:12px;
-}
-#watch-embed-div input{
-font-size:10px;
-width:339px;
-margin-top:2px;
-}
-#watch-embed-div #watch-embed-customize{
-font-weight:normal;
-color:#03c;
-}
-#watch-customize-embed-div{
-display:none;
-background-color:white;
-border-top:1px solid #CCC;
-margin-top:5px;
-padding:5px;
-}
-#watch-customize-embed-form{
-display:block;
-
-}
-#watch-customize-embed-desc{
-display:block;
-padding:6px;
-}
-#watch-customize-embed-theme{
-display:block;
-clear:both;
-}
-#watch-customize-embed-theme-swatches{
-padding:5px;
-display:block;
-margin-top:5px;
-width:310px;
-height:80px;
-}
-#watch-customize-embed-theme-preview{
-display:block;
-float:right;
-margin:4px 140px;
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll 0px -23px;
-width:100px;
-height:86px;
-}
-.watch-image-radio-link{
-border:0;
-display:inline-block;
-float:left;
-margin:3px;
-}
-.watch-image-radio-link:hover{
-background-color:#ADD8E6;
-}
-.watch-image-radio-link.radio_selected{
-border:1px solid #000;
-margin:2px;
-}
-.watch-image-radio-link img{
-border:1px solid #fff;
-background-color:#fff;
-padding:0px;
-margin:4px;
-}
-.watch-embed-select{
-width:46px;
-height:23px;
-}
-.watch-embed-iceberg{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll 0px 0px;
-}
-.watch-embed-blank{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -46px 0px;
-}
-.watch-embed-acid{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -92px 0px;
-}
-.watch-embed-storm{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -138px 0px;
-}
-.watch-embed-green{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -184px 0px;
-}
-.watch-embed-orange{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -230px 0px;
-}
-.watch-embed-pink{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -276px 0px;
-}
-.watch-embed-purple{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -322px 0px;
-}
-.watch-embed-rubyred{
-background:transparent url('img/embed_selection-vfl29294.png') no-repeat scroll -368px 0px;
-}
-div#dbx-content a{
-text-decoration:none;
-}
-
-.smartyoutube h3
-{
- margin: 25px 0 10px !important;
- padding: 0 !important;
- font-size: 14px !important;
-}
-
-.smartyoutube p.instruct
-{
- color: #555;
- font-size: 11px;
-}
-
-#sideblock
-{
-
-}
-
-#sideblock h2
-{
- margin: 0 0 5px 0 !important;
-}
-
-h5.author
-{
- background: #eee;
- border-top: 1px solid #ddd;
- height: 28px !important;
- line-height: 28px !important;
- padding-left: 12px !important;
- margin: 20px 0 -5px !important;
-}
-
-.size-chooser
-{
- border: 1px solid #ddd;
- padding: 5px;
- margin: 3px 0 10px;
- width: 560px;
- height:125px;
-}
-
-.size-chooser a
-{
- display: block;
- padding: 2px;
- float: left;
- margin-right: 5px;
- color: #888;
- border: 2px solid transparent;
- text-decoration: none;
-}
-
-.size-chooser a:hover
-{
- border-color: #add8e6;
-}
-
-.size-chooser a.chosen .outer
-{
- border-color: #a0b3d9;
- background: #d8e6fb;
-}
-
-.size-chooser a span
-{
- display: block;
- color: #999;
- font-size: 11px;
- text-align: center;
-}
-
-.size-chooser a.chosen span
-{
- color: #000;
-}
-
-.size-chooser a .outer
-{
- background: #ddd;
- border: 1px solid #999;
- margin: 0 auto;
-}
-
-.size-chooser a .outer div
-{
- border-left: 1px solid #fff;
- border-top: 1px solid #fff;
- height: 99%;
-}
-
-#usageHeader a
-{
- font-size: 10px;
- font-style: normal;
-}
diff --git a/plugins/smart-youtube/themes/theme1/colorbox.css b/plugins/smart-youtube/themes/theme1/colorbox.css
deleted file mode 100644
index 5e6585b..0000000
--- a/plugins/smart-youtube/themes/theme1/colorbox.css
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- ColorBox Core Style
- The following rules are the styles that are consistant between themes.
- Avoid changing this area to maintain compatability with future versions of ColorBox.
-*/
-#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
-#cboxOverlay{position:fixed; width:100%; height:100%;}
-#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
-#cboxContent{position:relative; overflow:hidden;}
-#cboxLoadedContent{overflow:auto;}
-#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
-#cboxTitle{margin:0;}
-#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
-#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
-
-/*
- Example user style
- The following rules are ordered and tabbed in a way that represents the
- order/nesting of the generated HTML, so that the structure easier to understand.
-*/
-#cboxOverlay{background:url(images/overlay.png) 0 0 repeat;}
-#colorbox{font: 12px Tahoma, Arial,sans-serif;}
- #cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) -100px 0 no-repeat;}
- #cboxTopRight{width:21px; height:21px; background:url(images/controls.png) -129px 0 no-repeat;}
- #cboxBottomLeft{width:21px; height:21px; background:url(images/controls.png) -100px -29px no-repeat;}
- #cboxBottomRight{width:21px; height:21px; background:url(images/controls.png) -129px -29px no-repeat;}
- #cboxMiddleLeft{width:21px; background:url(images/controls.png) left top repeat-y;}
- #cboxMiddleRight{width:21px; background:url(images/controls.png) right top repeat-y;}
- #cboxTopCenter{height:21px; background:url(images/border.png) 0 0 repeat-x;}
- #cboxBottomCenter{height:21px; background:url(images/border.png) 0 -29px repeat-x;}
- #cboxContent{background:#fff;}
- #cboxLoadedContent{margin-bottom:28px;}
- #cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
- #cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
- #cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
- #cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) -75px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxPrevious.hover{background-position:-75px -25px;}
- #cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) -50px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxNext.hover{background-position:-50px -25px;}
- #cboxLoadingOverlay{background:url(images/loading_background.png) center center no-repeat;}
- #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
- #cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) -25px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxClose.hover{background-position:-25px -25px;}
\ No newline at end of file
diff --git a/plugins/smart-youtube/themes/theme1/images/border.png b/plugins/smart-youtube/themes/theme1/images/border.png
deleted file mode 100644
index f463a10..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/border.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme1/images/controls.png b/plugins/smart-youtube/themes/theme1/images/controls.png
deleted file mode 100644
index 9257176..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/controls.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderBottomCenter.png b/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderBottomCenter.png
deleted file mode 100644
index 0d4475e..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderBottomCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderBottomLeft.png b/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderBottomLeft.png
deleted file mode 100644
index 2775eba..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderBottomLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderBottomRight.png b/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderBottomRight.png
deleted file mode 100644
index f7f5137..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderBottomRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderMiddleLeft.png b/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderMiddleLeft.png
deleted file mode 100644
index a2d63d1..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderMiddleLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderMiddleRight.png b/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderMiddleRight.png
deleted file mode 100644
index fd7c3e8..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderMiddleRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderTopCenter.png b/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderTopCenter.png
deleted file mode 100644
index 2937a9c..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderTopCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderTopLeft.png b/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderTopLeft.png
deleted file mode 100644
index f9d458b..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderTopLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderTopRight.png b/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderTopRight.png
deleted file mode 100644
index 74b8583..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/internet_explorer/borderTopRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme1/images/loading.gif b/plugins/smart-youtube/themes/theme1/images/loading.gif
deleted file mode 100644
index b4695d8..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/loading.gif and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme1/images/loading_background.png b/plugins/smart-youtube/themes/theme1/images/loading_background.png
deleted file mode 100644
index 6ae83e6..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/loading_background.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme1/images/overlay.png b/plugins/smart-youtube/themes/theme1/images/overlay.png
deleted file mode 100644
index 6f3d321..0000000
Binary files a/plugins/smart-youtube/themes/theme1/images/overlay.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme10/colorbox.css b/plugins/smart-youtube/themes/theme10/colorbox.css
deleted file mode 100644
index 638dc6f..0000000
--- a/plugins/smart-youtube/themes/theme10/colorbox.css
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- ColorBox Core Style
- The following rules are the styles that are consistant between themes.
- Avoid changing this area to maintain compatability with future versions of ColorBox.
-*/
-#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
-#cboxOverlay{position:fixed; width:100%; height:100%;}
-#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
-#cboxContent{position:relative; overflow:hidden;}
-#cboxLoadedContent{overflow:auto;}
-#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
-#cboxTitle{margin:0;}
-#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
-#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
-
-/*
- ColorBox example user style
- The following rules are ordered and tabbed in a way that represents the
- order/nesting of the generated HTML, so that the structure easier to understand.
-*/
-#cboxOverlay{background:#000;}
-
-#colorbox{font: 12px Tahoma, Arial,sans-serif;}
- #cboxContent{margin-top:20px;}
- #cboxLoadedContent{background:#fff; padding:10px 10px 34px; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px;}
- #cboxTitle{overflow:auto; position:absolute; bottom:12px; left:10px; text-align:center; color:#555; word-wrap: break-word; font-size:0.9em; border: 1px solid #ccc; max-width:40%; background:#fff; padding:1px 7px; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px; box-shadow: 1px 1px 3px #888; -moz-box-shadow: 1px 1px 3px #888; -webkit-box-shadow: 1px 1px 3px #888;}
- #cboxCurrent{position:absolute; bottom:11px; right:36px; color:#333; font-weight:bold; padding:1px 7px; border: 1px solid #ccc; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px; box-shadow: 1px 1px 3px #888; -moz-box-shadow: 1px 1px 3px #888; -webkit-box-shadow: 1px 1px 3px #888;}
- #cboxSlideshow{position:absolute; bottom:11px; right:150px; color:#eee; overflow:visible; border: 1px solid #555; background:#666; padding:1px 7px; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px; box-shadow: 1px 1px 3px #888; -moz-box-shadow: 1px 1px 3px #888; -webkit-box-shadow: 1px 1px 3px #888;}
- #cboxPrevious{opacity:0.5;filter:alpha(opacity=50);position:absolute; top:36%; left:10px; margin-top:-32px; background:url(images/prev.png) no-repeat; width:64px; height:32px; text-indent:-9999px;}
- #cboxPrevious.hover{opacity:1;filter:alpha(opacity=100);background-position:bottom left;}
- #cboxNext{opacity:0.5;filter:alpha(opacity=50);position:absolute; top:36%; right:10px; margin-top:-32px; background:url(images/next.png) top right no-repeat; width:64px; height:32px; text-indent:-9999px;}
- #cboxNext.hover{opacity:1;filter:alpha(opacity=100);}
- #cboxLoadingOverlay{background:#fff; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px;}
- #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
- #cboxClose{opacity:0.5;filter:alpha(opacity=50);position:absolute; bottom:10px; right:10px; display:block; background:url(images/close.png) no-repeat; width:22px; height:22px; text-indent:-9999px;}
- #cboxClose.hover{opacity:1;filter:alpha(opacity=100);}
\ No newline at end of file
diff --git a/plugins/smart-youtube/themes/theme10/images/close.png b/plugins/smart-youtube/themes/theme10/images/close.png
deleted file mode 100644
index 1392e9f..0000000
Binary files a/plugins/smart-youtube/themes/theme10/images/close.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme10/images/loading.gif b/plugins/smart-youtube/themes/theme10/images/loading.gif
deleted file mode 100644
index b4695d8..0000000
Binary files a/plugins/smart-youtube/themes/theme10/images/loading.gif and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme10/images/next.png b/plugins/smart-youtube/themes/theme10/images/next.png
deleted file mode 100644
index 03eae66..0000000
Binary files a/plugins/smart-youtube/themes/theme10/images/next.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme10/images/prev.png b/plugins/smart-youtube/themes/theme10/images/prev.png
deleted file mode 100644
index 28aaed8..0000000
Binary files a/plugins/smart-youtube/themes/theme10/images/prev.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/colorbox.css b/plugins/smart-youtube/themes/theme11/colorbox.css
deleted file mode 100644
index 243b00e..0000000
--- a/plugins/smart-youtube/themes/theme11/colorbox.css
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- ColorBox Core Style
- The following rules are the styles that are consistant between themes.
- Avoid changing this area to maintain compatability with future versions of ColorBox.
-*/
-#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
-#cboxOverlay{position:fixed; width:100%; height:100%;}
-#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
-#cboxContent{position:relative; overflow:hidden;}
-#cboxLoadedContent{overflow:auto;}
-#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
-#cboxTitle{margin:0;}
-#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
-#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
-
-/*
- Example user style
- The following rules are ordered and tabbed in a way that represents the
- order/nesting of the generated HTML, so that the structure easier to understand.
-*/
-#cboxOverlay{background:#fff;}
-#colorbox{font: 12px Tahoma, Arial,sans-serif;}
- #cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) -100px 0 no-repeat;}
- #cboxTopRight{width:21px; height:21px; background:url(images/controls.png) -129px 0 no-repeat;}
- #cboxBottomLeft{width:21px; height:21px; background:url(images/controls.png) -100px -29px no-repeat;}
- #cboxBottomRight{width:21px; height:21px; background:url(images/controls.png) -129px -29px no-repeat;}
- #cboxMiddleLeft{width:21px; background:url(images/controls.png) left top repeat-y;}
- #cboxMiddleRight{width:21px; background:url(images/controls.png) right top repeat-y;}
- #cboxTopCenter{height:21px; background:url(images/border.png) 0 0 repeat-x;}
- #cboxBottomCenter{height:21px; background:url(images/border.png) 0 -29px repeat-x;}
- #cboxContent{background:#fff;}
- #cboxLoadedContent{margin-bottom:28px;}
- #cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
- #cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
- #cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
- #cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) -75px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxPrevious.hover{background-position:-75px -25px;}
- #cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) -50px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxNext.hover{background-position:-50px -25px;}
- #cboxLoadingOverlay{background:url(images/loading_background.png) center center no-repeat;}
- #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
- #cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) -25px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxClose.hover{background-position:-25px -25px;}
\ No newline at end of file
diff --git a/plugins/smart-youtube/themes/theme11/images/border.png b/plugins/smart-youtube/themes/theme11/images/border.png
deleted file mode 100644
index c7a7448..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/border.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/images/controls.png b/plugins/smart-youtube/themes/theme11/images/controls.png
deleted file mode 100644
index 25d7696..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/controls.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderBottomCenter.png b/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderBottomCenter.png
deleted file mode 100644
index c6ddac0..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderBottomCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderBottomLeft.png b/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderBottomLeft.png
deleted file mode 100644
index 6dc8984..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderBottomLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderBottomRight.png b/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderBottomRight.png
deleted file mode 100644
index ac82ba5..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderBottomRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderMiddleLeft.png b/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderMiddleLeft.png
deleted file mode 100644
index 467eddc..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderMiddleLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderMiddleRight.png b/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderMiddleRight.png
deleted file mode 100644
index 5b9cb03..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderMiddleRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderTopCenter.png b/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderTopCenter.png
deleted file mode 100644
index 322307f..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderTopCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderTopLeft.png b/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderTopLeft.png
deleted file mode 100644
index 6909b12..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderTopLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderTopRight.png b/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderTopRight.png
deleted file mode 100644
index 21f9bc3..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/internet_explorer/borderTopRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/images/loading.gif b/plugins/smart-youtube/themes/theme11/images/loading.gif
deleted file mode 100644
index 602ce3c..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/loading.gif and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/images/loading_background.png b/plugins/smart-youtube/themes/theme11/images/loading_background.png
deleted file mode 100644
index 6ae83e6..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/loading_background.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme11/images/overlay.png b/plugins/smart-youtube/themes/theme11/images/overlay.png
deleted file mode 100644
index 6f3d321..0000000
Binary files a/plugins/smart-youtube/themes/theme11/images/overlay.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme2/colorbox.css b/plugins/smart-youtube/themes/theme2/colorbox.css
deleted file mode 100644
index d525a1d..0000000
--- a/plugins/smart-youtube/themes/theme2/colorbox.css
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- ColorBox Core Style
- The following rules are the styles that are consistant between themes.
- Avoid changing this area to maintain compatability with future versions of ColorBox.
-*/
-#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
-#cboxOverlay{position:fixed; width:100%; height:100%;}
-#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
-#cboxContent{position:relative; overflow:visible;}
-#cboxLoadedContent{overflow:auto;}
-#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
-#cboxTitle{margin:0;}
-#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
-#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
-
-/*
- ColorBox example user style
- The following rules are ordered and tabbed in a way that represents the
- order/nesting of the generated HTML, so that the structure easier to understand.
-*/
-#cboxOverlay{background:#fff;}
-
-#colorbox{font: 12px Tahoma, Arial,sans-serif;}
- #cboxContent{margin-top:32px;}
- #cboxLoadedContent{background:#000; padding:1px;}
- #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
- #cboxLoadingOverlay{background:#000;}
- #cboxTitle{position:absolute; top:-22px; left:0; color:#000;}
- #cboxCurrent{position:absolute; top:-22px; right:205px; text-indent:-9999px;}
- #cboxSlideshow, #cboxPrevious, #cboxNext, #cboxClose{text-indent:-9999px; width:20px; height:20px; position:absolute; top:-20px; background:url(images/controls.png) 0 0 no-repeat;}
- #cboxPrevious{background-position:0 0; right:44px;}
- #cboxPrevious.hover{background-position:0 -25px;}
- #cboxNext{background-position:-25px 0; right:22px;}
- #cboxNext.hover{background-position:-25px -25px;}
- #cboxClose{background-position:-50px 0; right:0;}
- #cboxClose.hover{background-position:-50px -25px;}
- .cboxSlideshow_on #cboxPrevious, .cboxSlideshow_off #cboxPrevious{right:66px;}
- .cboxSlideshow_on #cboxSlideshow{background-position:-75px -25px; right:44px;}
- .cboxSlideshow_on #cboxSlideshow.hover{background-position:-100px -25px;}
- .cboxSlideshow_off #cboxSlideshow{background-position:-100px 0; right:44px;}
- .cboxSlideshow_off #cboxSlideshow.hover{background-position:-75px -25px;}
diff --git a/plugins/smart-youtube/themes/theme2/images/controls.png b/plugins/smart-youtube/themes/theme2/images/controls.png
deleted file mode 100644
index 8569b57..0000000
Binary files a/plugins/smart-youtube/themes/theme2/images/controls.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme2/images/loading.gif b/plugins/smart-youtube/themes/theme2/images/loading.gif
deleted file mode 100644
index 19c67bb..0000000
Binary files a/plugins/smart-youtube/themes/theme2/images/loading.gif and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme3/colorbox.css b/plugins/smart-youtube/themes/theme3/colorbox.css
deleted file mode 100644
index 6706338..0000000
--- a/plugins/smart-youtube/themes/theme3/colorbox.css
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- ColorBox Core Style
- The following rules are the styles that are consistant between themes.
- Avoid changing this area to maintain compatability with future versions of ColorBox.
-*/
-#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
-#cboxOverlay{position:fixed; width:100%; height:100%;}
-#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
-#cboxContent{position:relative;}
-#cboxLoadedContent{overflow:auto;}
-#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
-#cboxTitle{margin:0;}
-#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
-#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
-
-/*
- ColorBox example user style
- The following rules are ordered and tabbed in a way that represents the
- order/nesting of the generated HTML, so that the structure easier to understand.
-*/
-#cboxOverlay{background:#000;}
-
-#colorbox{font: 12px Tahoma, Arial,sans-serif;}
- #cboxContent{margin-top:20px;}
- #cboxLoadedContent{background:#000; padding:5px;}
- #cboxTitle{position:absolute; top:-20px; left:0; color:#ccc;}
- #cboxCurrent{position:absolute; top:-20px; right:0; color:#ccc;}
- #cboxSlideshow{position:absolute; top:-20px; right:90px; color:#fff;}
- #cboxPrevious{position:absolute; top:50%; left:5px; margin-top:-32px; background:url(images/controls.png) top left no-repeat; width:28px; height:65px; text-indent:-9999px;}
- #cboxPrevious.hover{background-position:bottom left;}
- #cboxNext{position:absolute; top:50%; right:5px; margin-top:-32px; background:url(images/controls.png) top right no-repeat; width:28px; height:65px; text-indent:-9999px;}
- #cboxNext.hover{background-position:bottom right;}
- #cboxLoadingOverlay{background:#000;}
- #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
- #cboxClose{position:absolute; top:5px; right:5px; display:block; background:url(images/controls.png) top center no-repeat; width:38px; height:19px; text-indent:-9999px;}
- #cboxClose.hover{background-position:bottom center;}
\ No newline at end of file
diff --git a/plugins/smart-youtube/themes/theme3/images/controls.png b/plugins/smart-youtube/themes/theme3/images/controls.png
deleted file mode 100644
index e1e9798..0000000
Binary files a/plugins/smart-youtube/themes/theme3/images/controls.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme3/images/loading.gif b/plugins/smart-youtube/themes/theme3/images/loading.gif
deleted file mode 100644
index 19c67bb..0000000
Binary files a/plugins/smart-youtube/themes/theme3/images/loading.gif and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme4/colorbox.css b/plugins/smart-youtube/themes/theme4/colorbox.css
deleted file mode 100644
index d9bcc49..0000000
--- a/plugins/smart-youtube/themes/theme4/colorbox.css
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- ColorBox Core Style
- The following rules are the styles that are consistant between themes.
- Avoid changing this area to maintain compatability with future versions of ColorBox.
-*/
-#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
-#cboxOverlay{position:fixed; width:100%; height:100%;}
-#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
-#cboxContent{position:relative; overflow:hidden;}
-#cboxLoadedContent{overflow:auto;}
-#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
-#cboxTitle{margin:0;}
-#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
-#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
-
-/*
- ColorBox example user style
- The following rules are ordered and tabbed in a way that represents the
- order/nesting of the generated HTML, so that the structure easier to understand.
-*/
-#cboxOverlay{background:#fff;}
-
-#colorBox{font: 12px Tahoma, Arial,sans-serif;}
- #cboxTopLeft{width:25px; height:25px; background:url(images/border1.png) 0 0 no-repeat;}
- #cboxTopCenter{height:25px; background:url(images/border1.png) 0 -50px repeat-x;}
- #cboxTopRight{width:25px; height:25px; background:url(images/border1.png) -25px 0 no-repeat;}
- #cboxBottomLeft{width:25px; height:25px; background:url(images/border1.png) 0 -25px no-repeat;}
- #cboxBottomCenter{height:25px; background:url(images/border1.png) 0 -75px repeat-x;}
- #cboxBottomRight{width:25px; height:25px; background:url(images/border1.png) -25px -25px no-repeat;}
- #cboxMiddleLeft{width:25px; background:url(images/border2.png) 0 0 repeat-y;}
- #cboxMiddleRight{width:25px; background:url(images/border2.png) -25px 0 repeat-y;}
- #cboxContent{background:#fff;}
- #cboxLoadedContent{margin-bottom:20px;}
- #cboxTitle{position:absolute; bottom:0; left:0; text-align:center; width:100%; color:#999;}
- #cboxCurrent{position:absolute; bottom:0; left:100px; color:#999;}
- #cboxSlideshow{position:absolute; bottom:0; right:70px; color:#444;}
- #cboxPrevious{position:absolute; bottom:0; left:0; color:#444;}
- #cboxNext{position:absolute; bottom:0; left:63px; color:#444;}
- #cboxLoadingOverlay{background:url(images/loading.gif) 5px 5px no-repeat #fff;}
- #cboxClose{position:absolute; bottom:0; right:0; display:block; color:#444;}
\ No newline at end of file
diff --git a/plugins/smart-youtube/themes/theme4/images/border1.png b/plugins/smart-youtube/themes/theme4/images/border1.png
deleted file mode 100644
index 2d0a04d..0000000
Binary files a/plugins/smart-youtube/themes/theme4/images/border1.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme4/images/border2.png b/plugins/smart-youtube/themes/theme4/images/border2.png
deleted file mode 100644
index be02ef4..0000000
Binary files a/plugins/smart-youtube/themes/theme4/images/border2.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderBottomCenter.png b/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderBottomCenter.png
deleted file mode 100644
index 12e0e9a..0000000
Binary files a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderBottomCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderBottomLeft.png b/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderBottomLeft.png
deleted file mode 100644
index b7a474a..0000000
Binary files a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderBottomLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderBottomRight.png b/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderBottomRight.png
deleted file mode 100644
index 6b6cb15..0000000
Binary files a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderBottomRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderMiddleLeft.png b/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderMiddleLeft.png
deleted file mode 100644
index 8f248ac..0000000
Binary files a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderMiddleLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderMiddleRight.png b/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderMiddleRight.png
deleted file mode 100644
index 336e19c..0000000
Binary files a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderMiddleRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderTopCenter.png b/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderTopCenter.png
deleted file mode 100644
index 7cb1da4..0000000
Binary files a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderTopCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderTopLeft.png b/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderTopLeft.png
deleted file mode 100644
index d733b6c..0000000
Binary files a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderTopLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderTopRight.png b/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderTopRight.png
deleted file mode 100644
index 0d88683..0000000
Binary files a/plugins/smart-youtube/themes/theme4/images/internet_explorer/borderTopRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme4/images/loading.gif b/plugins/smart-youtube/themes/theme4/images/loading.gif
deleted file mode 100644
index 602ce3c..0000000
Binary files a/plugins/smart-youtube/themes/theme4/images/loading.gif and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme5/colorbox.css b/plugins/smart-youtube/themes/theme5/colorbox.css
deleted file mode 100644
index c44a3fc..0000000
--- a/plugins/smart-youtube/themes/theme5/colorbox.css
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- ColorBox Core Style
- The following rules are the styles that are consistant between themes.
- Avoid changing this area to maintain compatability with future versions of ColorBox.
-*/
-#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
-#cboxOverlay{position:fixed; width:100%; height:100%;}
-#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
-#cboxContent{position:relative; overflow:visible;}
-#cboxLoadedContent{overflow:auto;}
-#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
-#cboxTitle{margin:0;}
-#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
-#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
-
-/*
- ColorBox example user style
- The following rules are ordered and tabbed in a way that represents the
- order/nesting of the generated HTML, so that the structure easier to understand.
-*/
-#cboxOverlay{background:#000;}
-
-#colorbox{font: 12px Tahoma, Arial,sans-serif;}
- #cboxTopLeft{width:14px; height:14px; background:url(images/controls.png) 0 0 no-repeat;}
- #cboxTopCenter{height:14px; background:url(images/border.png) top left repeat-x;}
- #cboxTopRight{width:14px; height:14px; background:url(images/controls.png) -36px 0 no-repeat;}
- #cboxBottomLeft{width:14px; height:43px; background:url(images/controls.png) 0 -32px no-repeat;}
- #cboxBottomCenter{height:43px; background:url(images/border.png) bottom left repeat-x;}
- #cboxBottomRight{width:14px; height:43px; background:url(images/controls.png) -36px -32px no-repeat;}
- #cboxMiddleLeft{width:14px; background:url(images/controls.png) -175px 0 repeat-y;}
- #cboxMiddleRight{width:14px; background:url(images/controls.png) -211px 0 repeat-y;}
- #cboxContent{background:#fff;}
- #cboxLoadedContent{margin-bottom:5px;}
- #cboxLoadingOverlay{background:url(images/loading_background.png) center center no-repeat;}
- #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
- #cboxTitle{position:absolute; bottom:-25px; left:0; text-align:center; width:100%; font-weight:bold; color:#7C7C7C;}
- #cboxCurrent{position:absolute; bottom:-25px; left:58px; font-weight:bold; color:#7C7C7C;}
-
- #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{position:absolute; bottom:-29px; background:url(images/controls.png) 0 0 no-repeat; width:23px; height:23px; text-indent:-9999px;}
- #cboxPrevious{left:0; background-position: -51px -25px;}
- #cboxPrevious.hover{background-position:-51px 0;}
- #cboxNext{left:27px; background-position:-75px -25px;}
- #cboxNext.hover{background-position:-75px 0;}
- #cboxClose{right:0; background-position:-100px -25px;}
- #cboxClose.hover{background-position:-100px 0;}
-
- .cboxSlideshow_on #cboxSlideshow{background-position:-125px 0; right:27px;}
- .cboxSlideshow_on #cboxSlideshow.hover{background-position:-150px 0;}
- .cboxSlideshow_off #cboxSlideshow{background-position:-150px -25px; right:27px;}
- .cboxSlideshow_off #cboxSlideshow.hover{background-position:-125px 0;}
\ No newline at end of file
diff --git a/plugins/smart-youtube/themes/theme5/images/border.png b/plugins/smart-youtube/themes/theme5/images/border.png
deleted file mode 100644
index df13bb6..0000000
Binary files a/plugins/smart-youtube/themes/theme5/images/border.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme5/images/controls.png b/plugins/smart-youtube/themes/theme5/images/controls.png
deleted file mode 100644
index 65cfd1d..0000000
Binary files a/plugins/smart-youtube/themes/theme5/images/controls.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme5/images/loading.gif b/plugins/smart-youtube/themes/theme5/images/loading.gif
deleted file mode 100644
index b4695d8..0000000
Binary files a/plugins/smart-youtube/themes/theme5/images/loading.gif and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme5/images/loading_background.png b/plugins/smart-youtube/themes/theme5/images/loading_background.png
deleted file mode 100644
index 9de11f4..0000000
Binary files a/plugins/smart-youtube/themes/theme5/images/loading_background.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/colorbox.css b/plugins/smart-youtube/themes/theme6/colorbox.css
deleted file mode 100644
index 5e6585b..0000000
--- a/plugins/smart-youtube/themes/theme6/colorbox.css
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- ColorBox Core Style
- The following rules are the styles that are consistant between themes.
- Avoid changing this area to maintain compatability with future versions of ColorBox.
-*/
-#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
-#cboxOverlay{position:fixed; width:100%; height:100%;}
-#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
-#cboxContent{position:relative; overflow:hidden;}
-#cboxLoadedContent{overflow:auto;}
-#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
-#cboxTitle{margin:0;}
-#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
-#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
-
-/*
- Example user style
- The following rules are ordered and tabbed in a way that represents the
- order/nesting of the generated HTML, so that the structure easier to understand.
-*/
-#cboxOverlay{background:url(images/overlay.png) 0 0 repeat;}
-#colorbox{font: 12px Tahoma, Arial,sans-serif;}
- #cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) -100px 0 no-repeat;}
- #cboxTopRight{width:21px; height:21px; background:url(images/controls.png) -129px 0 no-repeat;}
- #cboxBottomLeft{width:21px; height:21px; background:url(images/controls.png) -100px -29px no-repeat;}
- #cboxBottomRight{width:21px; height:21px; background:url(images/controls.png) -129px -29px no-repeat;}
- #cboxMiddleLeft{width:21px; background:url(images/controls.png) left top repeat-y;}
- #cboxMiddleRight{width:21px; background:url(images/controls.png) right top repeat-y;}
- #cboxTopCenter{height:21px; background:url(images/border.png) 0 0 repeat-x;}
- #cboxBottomCenter{height:21px; background:url(images/border.png) 0 -29px repeat-x;}
- #cboxContent{background:#fff;}
- #cboxLoadedContent{margin-bottom:28px;}
- #cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
- #cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
- #cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
- #cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) -75px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxPrevious.hover{background-position:-75px -25px;}
- #cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) -50px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxNext.hover{background-position:-50px -25px;}
- #cboxLoadingOverlay{background:url(images/loading_background.png) center center no-repeat;}
- #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
- #cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) -25px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxClose.hover{background-position:-25px -25px;}
\ No newline at end of file
diff --git a/plugins/smart-youtube/themes/theme6/images/border.png b/plugins/smart-youtube/themes/theme6/images/border.png
deleted file mode 100644
index c7a7448..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/border.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/images/controls.png b/plugins/smart-youtube/themes/theme6/images/controls.png
deleted file mode 100644
index 25d7696..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/controls.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderBottomCenter.png b/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderBottomCenter.png
deleted file mode 100644
index c6ddac0..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderBottomCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderBottomLeft.png b/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderBottomLeft.png
deleted file mode 100644
index 6dc8984..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderBottomLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderBottomRight.png b/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderBottomRight.png
deleted file mode 100644
index ac82ba5..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderBottomRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderMiddleLeft.png b/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderMiddleLeft.png
deleted file mode 100644
index 467eddc..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderMiddleLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderMiddleRight.png b/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderMiddleRight.png
deleted file mode 100644
index 5b9cb03..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderMiddleRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderTopCenter.png b/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderTopCenter.png
deleted file mode 100644
index 322307f..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderTopCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderTopLeft.png b/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderTopLeft.png
deleted file mode 100644
index 6909b12..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderTopLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderTopRight.png b/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderTopRight.png
deleted file mode 100644
index 21f9bc3..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/internet_explorer/borderTopRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/images/loading.gif b/plugins/smart-youtube/themes/theme6/images/loading.gif
deleted file mode 100644
index 602ce3c..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/loading.gif and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/images/loading_background.png b/plugins/smart-youtube/themes/theme6/images/loading_background.png
deleted file mode 100644
index 6ae83e6..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/loading_background.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme6/images/overlay.png b/plugins/smart-youtube/themes/theme6/images/overlay.png
deleted file mode 100644
index 6f3d321..0000000
Binary files a/plugins/smart-youtube/themes/theme6/images/overlay.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/colorbox.css b/plugins/smart-youtube/themes/theme7/colorbox.css
deleted file mode 100644
index 1252243..0000000
--- a/plugins/smart-youtube/themes/theme7/colorbox.css
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- ColorBox Core Style
- The following rules are the styles that are consistant between themes.
- Avoid changing this area to maintain compatability with future versions of ColorBox.
-*/
-#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
-#cboxOverlay{position:fixed; width:100%; height:100%;}
-#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
-#cboxContent{position:relative; overflow:hidden;}
-#cboxLoadedContent{overflow:auto;}
-#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
-#cboxTitle{margin:0;}
-#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
-#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
-
-/*
- Example user style
- The following rules are ordered and tabbed in a way that represents the
- order/nesting of the generated HTML, so that the structure easier to understand.
-*/
-#cboxOverlay{background:#000;}
-#colorbox{font: 12px Tahoma, Arial,sans-serif;}
- #cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) -100px 0 no-repeat;}
- #cboxTopRight{width:21px; height:21px; background:url(images/controls.png) -129px 0 no-repeat;}
- #cboxBottomLeft{width:21px; height:21px; background:url(images/controls.png) -100px -29px no-repeat;}
- #cboxBottomRight{width:21px; height:21px; background:url(images/controls.png) -129px -29px no-repeat;}
- #cboxMiddleLeft{width:21px; background:url(images/controls.png) left top repeat-y;}
- #cboxMiddleRight{width:21px; background:url(images/controls.png) right top repeat-y;}
- #cboxTopCenter{height:21px; background:url(images/border.png) 0 0 repeat-x;}
- #cboxBottomCenter{height:21px; background:url(images/border.png) 0 -29px repeat-x;}
- #cboxContent{background:#fff;}
- #cboxLoadedContent{margin-bottom:28px;}
- #cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
- #cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
- #cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
- #cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) -75px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxPrevious.hover{background-position:-75px -25px;}
- #cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) -50px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxNext.hover{background-position:-50px -25px;}
- #cboxLoadingOverlay{background:url(images/loading_background.png) center center no-repeat;}
- #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
- #cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) -25px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxClose.hover{background-position:-25px -25px;}
\ No newline at end of file
diff --git a/plugins/smart-youtube/themes/theme7/images/border.png b/plugins/smart-youtube/themes/theme7/images/border.png
deleted file mode 100644
index f463a10..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/border.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/images/controls.png b/plugins/smart-youtube/themes/theme7/images/controls.png
deleted file mode 100644
index 9257176..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/controls.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderBottomCenter.png b/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderBottomCenter.png
deleted file mode 100644
index 0d4475e..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderBottomCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderBottomLeft.png b/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderBottomLeft.png
deleted file mode 100644
index 2775eba..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderBottomLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderBottomRight.png b/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderBottomRight.png
deleted file mode 100644
index f7f5137..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderBottomRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderMiddleLeft.png b/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderMiddleLeft.png
deleted file mode 100644
index a2d63d1..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderMiddleLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderMiddleRight.png b/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderMiddleRight.png
deleted file mode 100644
index fd7c3e8..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderMiddleRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderTopCenter.png b/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderTopCenter.png
deleted file mode 100644
index 2937a9c..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderTopCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderTopLeft.png b/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderTopLeft.png
deleted file mode 100644
index f9d458b..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderTopLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderTopRight.png b/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderTopRight.png
deleted file mode 100644
index 74b8583..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/internet_explorer/borderTopRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/images/loading.gif b/plugins/smart-youtube/themes/theme7/images/loading.gif
deleted file mode 100644
index b4695d8..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/loading.gif and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/images/loading_background.png b/plugins/smart-youtube/themes/theme7/images/loading_background.png
deleted file mode 100644
index 6ae83e6..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/loading_background.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme7/images/overlay.png b/plugins/smart-youtube/themes/theme7/images/overlay.png
deleted file mode 100644
index 6f3d321..0000000
Binary files a/plugins/smart-youtube/themes/theme7/images/overlay.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/colorbox.css b/plugins/smart-youtube/themes/theme8/colorbox.css
deleted file mode 100644
index 1252243..0000000
--- a/plugins/smart-youtube/themes/theme8/colorbox.css
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- ColorBox Core Style
- The following rules are the styles that are consistant between themes.
- Avoid changing this area to maintain compatability with future versions of ColorBox.
-*/
-#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
-#cboxOverlay{position:fixed; width:100%; height:100%;}
-#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
-#cboxContent{position:relative; overflow:hidden;}
-#cboxLoadedContent{overflow:auto;}
-#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
-#cboxTitle{margin:0;}
-#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
-#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
-
-/*
- Example user style
- The following rules are ordered and tabbed in a way that represents the
- order/nesting of the generated HTML, so that the structure easier to understand.
-*/
-#cboxOverlay{background:#000;}
-#colorbox{font: 12px Tahoma, Arial,sans-serif;}
- #cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) -100px 0 no-repeat;}
- #cboxTopRight{width:21px; height:21px; background:url(images/controls.png) -129px 0 no-repeat;}
- #cboxBottomLeft{width:21px; height:21px; background:url(images/controls.png) -100px -29px no-repeat;}
- #cboxBottomRight{width:21px; height:21px; background:url(images/controls.png) -129px -29px no-repeat;}
- #cboxMiddleLeft{width:21px; background:url(images/controls.png) left top repeat-y;}
- #cboxMiddleRight{width:21px; background:url(images/controls.png) right top repeat-y;}
- #cboxTopCenter{height:21px; background:url(images/border.png) 0 0 repeat-x;}
- #cboxBottomCenter{height:21px; background:url(images/border.png) 0 -29px repeat-x;}
- #cboxContent{background:#fff;}
- #cboxLoadedContent{margin-bottom:28px;}
- #cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
- #cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
- #cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
- #cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) -75px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxPrevious.hover{background-position:-75px -25px;}
- #cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) -50px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxNext.hover{background-position:-50px -25px;}
- #cboxLoadingOverlay{background:url(images/loading_background.png) center center no-repeat;}
- #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
- #cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) -25px 0 no-repeat; width:25px; height:25px; text-indent:-9999px;}
- #cboxClose.hover{background-position:-25px -25px;}
\ No newline at end of file
diff --git a/plugins/smart-youtube/themes/theme8/images/border.png b/plugins/smart-youtube/themes/theme8/images/border.png
deleted file mode 100644
index c7a7448..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/border.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/images/controls.png b/plugins/smart-youtube/themes/theme8/images/controls.png
deleted file mode 100644
index 25d7696..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/controls.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderBottomCenter.png b/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderBottomCenter.png
deleted file mode 100644
index c6ddac0..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderBottomCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderBottomLeft.png b/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderBottomLeft.png
deleted file mode 100644
index 6dc8984..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderBottomLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderBottomRight.png b/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderBottomRight.png
deleted file mode 100644
index ac82ba5..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderBottomRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderMiddleLeft.png b/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderMiddleLeft.png
deleted file mode 100644
index 467eddc..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderMiddleLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderMiddleRight.png b/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderMiddleRight.png
deleted file mode 100644
index 5b9cb03..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderMiddleRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderTopCenter.png b/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderTopCenter.png
deleted file mode 100644
index 322307f..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderTopCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderTopLeft.png b/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderTopLeft.png
deleted file mode 100644
index 6909b12..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderTopLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderTopRight.png b/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderTopRight.png
deleted file mode 100644
index 21f9bc3..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/internet_explorer/borderTopRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/images/loading.gif b/plugins/smart-youtube/themes/theme8/images/loading.gif
deleted file mode 100644
index 602ce3c..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/loading.gif and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/images/loading_background.png b/plugins/smart-youtube/themes/theme8/images/loading_background.png
deleted file mode 100644
index 6ae83e6..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/loading_background.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme8/images/overlay.png b/plugins/smart-youtube/themes/theme8/images/overlay.png
deleted file mode 100644
index 6f3d321..0000000
Binary files a/plugins/smart-youtube/themes/theme8/images/overlay.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme9/colorbox.css b/plugins/smart-youtube/themes/theme9/colorbox.css
deleted file mode 100644
index 2d73b29..0000000
--- a/plugins/smart-youtube/themes/theme9/colorbox.css
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- ColorBox Core Style
- The following rules are the styles that are consistant between themes.
- Avoid changing this area to maintain compatability with future versions of ColorBox.
-*/
-#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
-#cboxOverlay{position:fixed; width:100%; height:100%;}
-#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
-#cboxContent{position:relative; overflow:hidden;}
-#cboxLoadedContent{overflow:auto;}
-#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
-#cboxTitle{margin:0;}
-#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
-#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
-
-/*
- ColorBox example user style
- The following rules are ordered and tabbed in a way that represents the
- order/nesting of the generated HTML, so that the structure easier to understand.
-*/
-#cboxOverlay{background:#fff;}
-
-#colorBox{font: 12px Tahoma, Arial,sans-serif;}
- #cboxTopLeft{width:25px; height:25px; background:url(images/border1.png) 0 0 no-repeat;}
- #cboxTopCenter{height:25px; background:url(images/border1.png) 0 -50px repeat-x;}
- #cboxTopRight{width:25px; height:25px; background:url(images/border1.png) -25px 0 no-repeat;}
- #cboxBottomLeft{width:25px; height:25px; background:url(images/border1.png) 0 -25px no-repeat;}
- #cboxBottomCenter{height:25px; background:url(images/border1.png) 0 -75px repeat-x;}
- #cboxBottomRight{width:25px; height:25px; background:url(images/border1.png) -25px -25px no-repeat;}
- #cboxMiddleLeft{width:25px; background:url(images/border2.png) 0 0 repeat-y;}
- #cboxMiddleRight{width:25px; background:url(images/border2.png) -25px 0 repeat-y;}
- #cboxContent{background:#fff;}
-/* #cboxLoadedContent{margin-bottom:20px;}
- #cboxTitle{position:absolute; bottom:0; left:0; text-align:center; width:100%; color:#999;}
- #cboxCurrent{position:absolute; bottom:0; left:100px; color:#999;}
- #cboxSlideshow{position:absolute; bottom:0; right:70px; color:#444;}
- #cboxPrevious{position:absolute; bottom:0; left:0; color:#444;}
- #cboxNext{position:absolute; bottom:0; left:63px; color:#444;}
- #cboxLoadingOverlay{background:url(images/loading.gif) 5px 5px no-repeat #fff;}
- #cboxClose{position:absolute; bottom:0; right:0; display:block; color:#444;}*/
-
- #cboxLoadedContent{margin-bottom:20px;}
- #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
- #cboxLoadingOverlay{background:#FFF;}
- #cboxTitle{position:absolute; bottom:0; left:0; text-align:left; width:100%; color:#999;}
- #cboxCurrent{position:absolute; bottom:0; right:120px; color:#999;}
- #cboxSlideshow, #cboxPrevious, #cboxNext, #cboxClose{text-indent:-9999px; width:20px; height:20px; position:absolute; bottom:0; background:url(images/controls.png) 0 0 no-repeat;}
- #cboxPrevious{background-position:0 0; right:44px;}
- #cboxPrevious.hover{background-position:0 -25px;}
- #cboxNext{background-position:-25px 0; right:22px;}
- #cboxNext.hover{background-position:-25px -25px;}
- #cboxClose{background-position:-50px 0; right:0;}
- #cboxClose.hover{background-position:-50px -25px;}
- .cboxSlideshow_on #cboxPrevious, .cboxSlideshow_off #cboxPrevious{right:66px;}
- .cboxSlideshow_on #cboxSlideshow{background-position:-75px -25px; right:44px;}
- .cboxSlideshow_on #cboxSlideshow.hover{background-position:-100px -25px;}
- .cboxSlideshow_off #cboxSlideshow{background-position:-100px 0; right:44px;}
- .cboxSlideshow_off #cboxSlideshow.hover{background-position:-75px -25px;}
\ No newline at end of file
diff --git a/plugins/smart-youtube/themes/theme9/images/border1.png b/plugins/smart-youtube/themes/theme9/images/border1.png
deleted file mode 100644
index 2d0a04d..0000000
Binary files a/plugins/smart-youtube/themes/theme9/images/border1.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme9/images/border2.png b/plugins/smart-youtube/themes/theme9/images/border2.png
deleted file mode 100644
index be02ef4..0000000
Binary files a/plugins/smart-youtube/themes/theme9/images/border2.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme9/images/controls.png b/plugins/smart-youtube/themes/theme9/images/controls.png
deleted file mode 100644
index 8569b57..0000000
Binary files a/plugins/smart-youtube/themes/theme9/images/controls.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderBottomCenter.png b/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderBottomCenter.png
deleted file mode 100644
index 12e0e9a..0000000
Binary files a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderBottomCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderBottomLeft.png b/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderBottomLeft.png
deleted file mode 100644
index b7a474a..0000000
Binary files a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderBottomLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderBottomRight.png b/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderBottomRight.png
deleted file mode 100644
index 6b6cb15..0000000
Binary files a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderBottomRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderMiddleLeft.png b/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderMiddleLeft.png
deleted file mode 100644
index 8f248ac..0000000
Binary files a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderMiddleLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderMiddleRight.png b/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderMiddleRight.png
deleted file mode 100644
index 336e19c..0000000
Binary files a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderMiddleRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderTopCenter.png b/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderTopCenter.png
deleted file mode 100644
index 7cb1da4..0000000
Binary files a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderTopCenter.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderTopLeft.png b/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderTopLeft.png
deleted file mode 100644
index d733b6c..0000000
Binary files a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderTopLeft.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderTopRight.png b/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderTopRight.png
deleted file mode 100644
index 0d88683..0000000
Binary files a/plugins/smart-youtube/themes/theme9/images/internet_explorer/borderTopRight.png and /dev/null differ
diff --git a/plugins/smart-youtube/themes/theme9/images/loading.gif b/plugins/smart-youtube/themes/theme9/images/loading.gif
deleted file mode 100644
index 602ce3c..0000000
Binary files a/plugins/smart-youtube/themes/theme9/images/loading.gif and /dev/null differ
diff --git a/plugins/smart-youtube/yt.js b/plugins/smart-youtube/yt.js
deleted file mode 100644
index ba769f5..0000000
--- a/plugins/smart-youtube/yt.js
+++ /dev/null
@@ -1,124 +0,0 @@
-function toggleClass(element, className) {
- var e = ref(element);
- if (!e) return;
- if (hasClass(e, className)) {
- removeClass(e, className);
- } else {
- addClass(e, className);
- }
-}
-function hasClass(element, _className) {
- if (!element) {
- return;
- }
- var upperClass = _className.toUpperCase();
- if (element.className) {
- var classes = element.className.split(' ');
- for (var i = 0; i < classes.length; i++) {
- if (classes[i].toUpperCase() == upperClass) {
- return true;
- }
- }
- }
- return false;
-}
-function addClass(element, _class) {
- if (!hasClass(element, _class)) {
- element.className += element.className ? (" " + _class) : _class;
- }
-}
-function getClassList(element) {
- if (element.className) {
- return element.className.split(' ');
- } else {
- return [];
- }
-}
-function removeClass(element, _class) {
- var upperClass = _class.toUpperCase();
- var remainingClasses = [];
- if (element.className) {
- var classes = element.className.split(' ');
- for (var i = 0; i < classes.length; i++) {
- if (classes[i].toUpperCase() != upperClass) {
- remainingClasses[remainingClasses.length] = classes[i];
- }
- }
- element.className = remainingClasses.join(' ');
- }
-}
-function findAncestorByClass(element, className) {
- var temp = element;
- while (temp != document) {
- if (hasClass(temp, className)) return temp;
- temp = temp.parentNode;
- }
- return null;
-}
-
-var selectedThemeColor='blank';
-function onChangeColor(color){
- var oldTheme=document.getElementById('theme_color_'+selectedThemeColor+'_img');
- var newTheme=document.getElementById('theme_color_'+color+'_img');
-
- var embedColor=document.getElementById('embedColor');
- embedColor.value=color;
-
- removeClass(oldTheme,'radio_selected');
- addClass(newTheme,'radio_selected');
- selectedThemeColor=color;
- onUpdatePreviewImage();
- return false;
-}
-
-function onUpdatePreviewImage(){
- var previewImage=document.getElementById('watch-customize-embed-theme-preview');
- var showBorderCheckBox=document.getElementById('show_border_checkbox');
- var embedColor=document.getElementById('embedColor');
- var border=(!showBorderCheckBox.checked?'_nb':'');
- var prevUrl=document.getElementById('prevUrl');
-
- selectedThemeColor=embedColor.value;
- previewImage.src=prevUrl.value+'preview_embed_'+selectedThemeColor+'_sm'+border+'.gif';
- //previewImage.src='http://www.youtube.com/img/preview_embed_'+selectedThemeColor+'_sm'+border+'.gif';
-}
-
-function loaded()
-{
- var previewImage=document.getElementById('watch-customize-embed-theme-preview');
- var showBorderCheckBox=document.getElementById('show_border_checkbox');
- var embedColor=document.getElementById('embedColor');
- var prevUrl=document.getElementById('prevUrl');
- var border=(!showBorderCheckBox.checked?'_nb':'');
-
- selectedThemeColor="blank";
-
- onChangeColor(embedColor.value);
- previewImage.src=prevUrl.value+'preview_embed_'+selectedThemeColor+'_sm'+border+'.gif';
-}
-window.onload = loaded;
-
-jQuery(function($){
- $(".size-chooser a").click(function(e){
- e.preventDefault();
- vwidth = $(this).attr('v-width');
- vheight = $(this).attr('v-height');
- $(this).addClass("chosen").siblings().removeClass("chosen");
- target = "#" + $(this).parent("div").attr("forDiv");
- $(target).find("input.width").val(vwidth);
- $(target).find("input.height").val(vheight);
- }).each(function(){
- vwidth = $(this).attr('v-width');
- vheight = $(this).attr('v-height');
- thumb_width = Math.round(vwidth/8);
- thumb_height = Math.round(vheight/8);
-
- $(this).find(".outer").css("width", thumb_width + "px").css("height", thumb_height + "px");
- $(this).find("span").text(vwidth + "x" + vheight);
- });
-
- $("#usageHeader a").click(function(e){
- e.preventDefault();
- $("#usage").slideToggle("fast");
- });
-});
next reply other threads:[~2012-08-05 19:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-05 19:54 Theo Chatzimichos [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-06-13 14:19 [gentoo-commits] proj/blogs-gentoo:master commit in: plugins/smart-youtube/themes/theme1/images/, Theo Chatzimichos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1344196377.4b32357c9c7b62df4e374018f2e41a5ab992d599.tampakrap@gentoo \
--to=tampakrap@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox