Gallery Bank: WordPress Photo Gallery Plugin - Version 2.0.14

Version Description

  • Introducing Videos in Gallery Bank
  • Fixed Bugs with Thumbnails
  • Fixed Bugs related to Timbthumb
Download this release

Release Info

Developer Gallery-Bank
Plugin Icon 128x128 Gallery Bank: WordPress Photo Gallery Plugin
Version 2.0.14
Comparing to
See all releases

Code changes from version 2.0.13 to 2.0.14

assets/css/colorbox.css ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Colorbox Core Style:
3
+ The following CSS is consistent between example themes and should not be altered.
4
+ */
5
+ #colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
6
+ #cboxOverlay{position:fixed; width:100%; height:100%;}
7
+ #cboxMiddleLeft, #cboxBottomLeft{clear:left;}
8
+ #cboxContent{position:relative;}
9
+ #cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
10
+ #cboxTitle{margin:0;}
11
+ #cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
12
+ #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
13
+ .cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
14
+ .cboxIframe{width:100%; height:100%; display:block; border:0;}
15
+ #colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
16
+
17
+ /*
18
+ User Style:
19
+ Change the following styles to modify the appearance of Colorbox. They are
20
+ ordered & tabbed in a way that represents the nesting of the generated HTML.
21
+ */
22
+ #cboxOverlay{background:#fff;}
23
+ #colorbox{outline:0;}
24
+ #cboxTopLeft{width:25px; height:25px; background:url(../images/border1.png) no-repeat 0 0;}
25
+ #cboxTopCenter{height:25px; background:url(../images/border1.png) repeat-x 0 -50px;}
26
+ #cboxTopRight{width:25px; height:25px; background:url(../images/border1.png) no-repeat -25px 0;}
27
+ #cboxBottomLeft{width:25px; height:25px; background:url(../images/border1.png) no-repeat 0 -25px;}
28
+ #cboxBottomCenter{height:25px; background:url(../images/border1.png) repeat-x 0 -75px;}
29
+ #cboxBottomRight{width:25px; height:25px; background:url(../images/border1.png) no-repeat -25px -25px;}
30
+ #cboxMiddleLeft{width:25px; background:url(../images/border2.png) repeat-y 0 0;}
31
+ #cboxMiddleRight{width:25px; background:url(../images/border2.png) repeat-y -25px 0;}
32
+ #cboxContent{background:#fff; overflow:hidden;}
33
+ .cboxIframe{background:#fff;}
34
+ #cboxError{padding:50px; border:1px solid #ccc;}
35
+ #cboxLoadedContent{margin-bottom:20px;}
36
+ #cboxTitle{position:absolute; bottom:0px; left:0; text-align:center; width:100%; color:#999;}
37
+ #cboxCurrent{position:absolute; bottom:0px; left:100px; color:#999;}
38
+ #cboxLoadingOverlay{background:#fff url(../images/loading.gif) no-repeat 5px 5px;}
39
+
40
+ /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
41
+ #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
42
+
43
+ /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
44
+ #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
45
+
46
+ #cboxSlideshow{position:absolute; bottom:0px; right:42px; color:#444;}
47
+ #cboxPrevious{position:absolute; bottom:0px; left:0; color:#444;}
48
+ #cboxNext{position:absolute; bottom:0px; left:63px; color:#444;}
49
+ #cboxClose{
50
+ position: absolute;
51
+ bottom: 0;
52
+ right: 0;
53
+ background: url(../images/controls.png) no-repeat -25px 0;
54
+ width: 25px;
55
+ height: 25px;
56
+ text-indent: -9999px;
57
+ }
58
+
59
+ /*
60
+ The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
61
+ when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
62
+ See: http://jacklmoore.com/notes/ie-transparency-problems/
63
+ */
64
+ .cboxIE #cboxTopLeft,
65
+ .cboxIE #cboxTopCenter,
66
+ .cboxIE #cboxTopRight,
67
+ .cboxIE #cboxBottomLeft,
68
+ .cboxIE #cboxBottomCenter,
69
+ .cboxIE #cboxBottomRight,
70
+ .cboxIE #cboxMiddleLeft,
71
+ .cboxIE #cboxMiddleRight {
72
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
73
+ }
assets/css/images/border.png ADDED
Binary file
assets/css/images/border1.png ADDED
Binary file
assets/css/images/border2.png ADDED
Binary file
assets/css/images/box-title.gif ADDED
Binary file
assets/css/images/controls.png ADDED
Binary file
assets/css/images/input-back.gif ADDED
Binary file
assets/css/images/loading.gif ADDED
Binary file
assets/css/images/loading_background.png ADDED
Binary file
assets/css/images/table-filter.gif ADDED
Binary file
assets/css/images/table-select.gif ADDED
Binary file
assets/css/images/table-sort.png ADDED
Binary file
assets/images/video.jpg ADDED
Binary file
assets/js/jquery.colorbox-min.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ /*!
2
+ jQuery Colorbox v1.4.13 - 2013-04-11
3
+ (c) 2013 Jack Moore - jacklmoore.com/colorbox
4
+ license: http://www.opensource.org/licenses/mit-license.php
5
+ */
6
+ (function(t,e,i){function o(i,o,n){var r=e.createElement(i);return o&&(r.id=te+o),n&&(r.style.cssText=n),t(r)}function n(){return i.innerHeight?i.innerHeight:t(i).height()}function r(t){var e=H.length,i=(j+t)%e;return 0>i?e+i:i}function h(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():n())/100:1)*parseInt(t,10))}function l(t,e){return t.photo||t.photoRegex.test(e)}function s(t,e){return t.retinaUrl&&i.devicePixelRatio>1?e.replace(t.photoRegex,t.retinaSuffix):e}function a(t){"contains"in x[0]&&!x[0].contains(t.target)&&(t.stopPropagation(),x.focus())}function d(){var e,i=t.data(O,Z);null==i?(D=t.extend({},Y),console&&console.log&&console.log("Error: cboxElement missing settings object")):D=t.extend({},i);for(e in D)t.isFunction(D[e])&&"on"!==e.slice(0,2)&&(D[e]=D[e].call(O));D.rel=D.rel||O.rel||t(O).data("rel")||"nofollow",D.href=D.href||t(O).attr("href"),D.title=D.title||O.title,"string"==typeof D.href&&(D.href=t.trim(D.href))}function c(i,o){t(e).trigger(i),se.trigger(i),t.isFunction(o)&&o.call(O)}function u(){var t,e,i,o,n,r=te+"Slideshow_",h="click."+te;D.slideshow&&H[1]?(e=function(){clearTimeout(t)},i=function(){(D.loop||H[j+1])&&(t=setTimeout(J.next,D.slideshowSpeed))},o=function(){M.html(D.slideshowStop).unbind(h).one(h,n),se.bind(ne,i).bind(oe,e).bind(re,n),x.removeClass(r+"off").addClass(r+"on")},n=function(){e(),se.unbind(ne,i).unbind(oe,e).unbind(re,n),M.html(D.slideshowStart).unbind(h).one(h,function(){J.next(),o()}),x.removeClass(r+"on").addClass(r+"off")},D.slideshowAuto?o():n()):x.removeClass(r+"off "+r+"on")}function f(i){G||(O=i,d(),H=t(O),j=0,"nofollow"!==D.rel&&(H=t("."+ee).filter(function(){var e,i=t.data(this,Z);return i&&(e=t(this).data("rel")||i.rel||this.rel),e===D.rel}),j=H.index(O),-1===j&&(H=H.add(O),j=H.length-1)),g.css({opacity:parseFloat(D.opacity),cursor:D.overlayClose?"pointer":"auto",visibility:"visible"}).show(),V&&x.add(g).removeClass(V),D.className&&x.add(g).addClass(D.className),V=D.className,K.html(D.close).show(),$||($=q=!0,x.css({visibility:"hidden",display:"block"}),W=o(ae,"LoadedContent","width:0; height:0; overflow:hidden").appendTo(v),B=b.height()+k.height()+v.outerHeight(!0)-v.height(),N=C.width()+T.width()+v.outerWidth(!0)-v.width(),z=W.outerHeight(!0),A=W.outerWidth(!0),D.w=h(D.initialWidth,"x"),D.h=h(D.initialHeight,"y"),J.position(),u(),c(ie,D.onOpen),_.add(F).hide(),x.focus(),e.addEventListener&&(e.addEventListener("focus",a,!0),se.one(he,function(){e.removeEventListener("focus",a,!0)})),D.returnFocus&&se.one(he,function(){t(O).focus()})),w())}function p(){!x&&e.body&&(X=!1,E=t(i),x=o(ae).attr({id:Z,"class":t.support.opacity===!1?te+"IE":"",role:"dialog",tabindex:"-1"}).hide(),g=o(ae,"Overlay").hide(),S=o(ae,"LoadingOverlay").add(o(ae,"LoadingGraphic")),y=o(ae,"Wrapper"),v=o(ae,"Content").append(F=o(ae,"Title"),I=o(ae,"Current"),P=t('<button type="button"/>').attr({id:te+"Previous"}),R=t('<button type="button"/>').attr({id:te+"Next"}),M=o("button","Slideshow"),S,K=t('<button type="button"/>').attr({id:te+"Close"})),y.append(o(ae).append(o(ae,"TopLeft"),b=o(ae,"TopCenter"),o(ae,"TopRight")),o(ae,!1,"clear:left").append(C=o(ae,"MiddleLeft"),v,T=o(ae,"MiddleRight")),o(ae,!1,"clear:left").append(o(ae,"BottomLeft"),k=o(ae,"BottomCenter"),o(ae,"BottomRight"))).find("div div").css({"float":"left"}),L=o(ae,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),_=R.add(P).add(I).add(M),t(e.body).append(g,x.append(y,L)))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.control||(t.preventDefault(),f(this))}return x?(X||(X=!0,R.click(function(){J.next()}),P.click(function(){J.prev()}),K.click(function(){J.close()}),g.click(function(){D.overlayClose&&J.close()}),t(e).bind("keydown."+te,function(t){var e=t.keyCode;$&&D.escKey&&27===e&&(t.preventDefault(),J.close()),$&&D.arrowKey&&H[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),R.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+te,"."+ee,i):t("."+ee).live("click."+te,i)),!0):!1}function w(){var e,n,r,a=J.prep,u=++de;q=!0,U=!1,O=H[j],d(),c(le),c(oe,D.onLoad),D.h=D.height?h(D.height,"y")-z-B:D.innerHeight&&h(D.innerHeight,"y"),D.w=D.width?h(D.width,"x")-A-N:D.innerWidth&&h(D.innerWidth,"x"),D.mw=D.w,D.mh=D.h,D.maxWidth&&(D.mw=h(D.maxWidth,"x")-A-N,D.mw=D.w&&D.w<D.mw?D.w:D.mw),D.maxHeight&&(D.mh=h(D.maxHeight,"y")-z-B,D.mh=D.h&&D.h<D.mh?D.h:D.mh),e=D.href,Q=setTimeout(function(){S.show()},100),D.inline?(r=o(ae).hide().insertBefore(t(e)[0]),se.one(le,function(){r.replaceWith(W.children())}),a(t(e))):D.iframe?a(" "):D.html?a(D.html):l(D,e)?(e=s(D,e),t(U=new Image).addClass(te+"Photo").bind("error",function(){D.title=!1,a(o(ae,"Error").html(D.imgError))}).one("load",function(){var e;u===de&&(U.alt=t(O).attr("alt")||t(O).attr("data-alt")||"",U.longdesc=t(O).attr("longdesc"),D.retinaImage&&i.devicePixelRatio>1&&(U.height=U.height/i.devicePixelRatio,U.width=U.width/i.devicePixelRatio),D.scalePhotos&&(n=function(){U.height-=U.height*e,U.width-=U.width*e},D.mw&&U.width>D.mw&&(e=(U.width-D.mw)/U.width,n()),D.mh&&U.height>D.mh&&(e=(U.height-D.mh)/U.height,n())),D.h&&(U.style.marginTop=Math.max(D.mh-U.height,0)/2+"px"),H[1]&&(D.loop||H[j+1])&&(U.style.cursor="pointer",U.onclick=function(){J.next()}),U.style.width=U.width+"px",U.style.height=U.height+"px",setTimeout(function(){a(U)},1))}),setTimeout(function(){U.src=e},1)):e&&L.load(e,D.data,function(e,i){u===de&&a("error"===i?o(ae,"Error").html(D.xhrError):t(this).contents())})}var g,x,y,v,b,C,T,k,H,E,W,L,S,F,I,M,R,P,K,_,D,B,N,z,A,O,j,U,$,q,G,Q,J,V,X,Y={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0},Z="colorbox",te="cbox",ee=te+"Element",ie=te+"_open",oe=te+"_load",ne=te+"_complete",re=te+"_cleanup",he=te+"_closed",le=te+"_purge",se=t("<a/>"),ae="div",de=0;t.colorbox||(t(p),J=t.fn[Z]=t[Z]=function(e,i){var o=this;if(e=e||{},p(),m()){if(t.isFunction(o))o=t("<a/>"),e.open=!0;else if(!o[0])return o;i&&(e.onComplete=i),o.each(function(){t.data(this,Z,t.extend({},t.data(this,Z)||Y,e))}).addClass(ee),(t.isFunction(e.open)&&e.open.call(o)||e.open)&&f(o[0])}return o},J.position=function(t,e){function i(t){b[0].style.width=k[0].style.width=v[0].style.width=parseInt(t.style.width,10)-N+"px",v[0].style.height=C[0].style.height=T[0].style.height=parseInt(t.style.height,10)-B+"px"}var o,r,l,s=0,a=0,d=x.offset();E.unbind("resize."+te),x.css({top:-9e4,left:-9e4}),r=E.scrollTop(),l=E.scrollLeft(),D.fixed?(d.top-=r,d.left-=l,x.css({position:"fixed"})):(s=r,a=l,x.css({position:"absolute"})),a+=D.right!==!1?Math.max(E.width()-D.w-A-N-h(D.right,"x"),0):D.left!==!1?h(D.left,"x"):Math.round(Math.max(E.width()-D.w-A-N,0)/2),s+=D.bottom!==!1?Math.max(n()-D.h-z-B-h(D.bottom,"y"),0):D.top!==!1?h(D.top,"y"):Math.round(Math.max(n()-D.h-z-B,0)/2),x.css({top:d.top,left:d.left,visibility:"visible"}),t=x.width()===D.w+A&&x.height()===D.h+z?0:t||0,y[0].style.width=y[0].style.height="9999px",o={width:D.w+A+N,height:D.h+z+B,top:s,left:a},0===t&&x.css(o),x.dequeue().animate(o,{duration:t,complete:function(){i(this),q=!1,y[0].style.width=D.w+A+N+"px",y[0].style.height=D.h+z+B+"px",D.reposition&&setTimeout(function(){E.bind("resize."+te,J.position)},1),e&&e()},step:function(){i(this)}})},J.resize=function(t){$&&(t=t||{},t.width&&(D.w=h(t.width,"x")-A-N),t.innerWidth&&(D.w=h(t.innerWidth,"x")),W.css({width:D.w}),t.height&&(D.h=h(t.height,"y")-z-B),t.innerHeight&&(D.h=h(t.innerHeight,"y")),t.innerHeight||t.height||(W.css({height:"auto"}),D.h=W.height()),W.css({height:D.h}),J.position("none"===D.transition?0:D.speed))},J.prep=function(e){function i(){return D.w=D.w||W.width(),D.w=D.mw&&D.mw<D.w?D.mw:D.w,D.w}function n(){return D.h=D.h||W.height(),D.h=D.mh&&D.mh<D.h?D.mh:D.h,D.h}if($){var h,a="none"===D.transition?0:D.speed;W.empty().remove(),W=o(ae,"LoadedContent").append(e),W.hide().appendTo(L.show()).css({width:i(),overflow:D.scrolling?"auto":"hidden"}).css({height:n()}).prependTo(v),L.hide(),t(U).css({"float":"none"}),h=function(){function e(){t.support.opacity===!1&&x[0].style.removeAttribute("filter")}var i,n,h=H.length,d="frameBorder",u="allowTransparency";$&&(n=function(){clearTimeout(Q),S.hide(),c(ne,D.onComplete)},F.html(D.title).add(W).show(),h>1?("string"==typeof D.current&&I.html(D.current.replace("{current}",j+1).replace("{total}",h)).show(),R[D.loop||h-1>j?"show":"hide"]().html(D.next),P[D.loop||j?"show":"hide"]().html(D.previous),D.slideshow&&M.show(),D.preloading&&t.each([r(-1),r(1)],function(){var e,i,o=H[this],n=t.data(o,Z);n&&n.href?(e=n.href,t.isFunction(e)&&(e=e.call(o))):e=t(o).attr("href"),e&&l(n,e)&&(e=s(n,e),i=new Image,i.src=e)})):_.hide(),D.iframe?(i=o("iframe")[0],d in i&&(i[d]=0),u in i&&(i[u]="true"),D.scrolling||(i.scrolling="no"),t(i).attr({src:D.href,name:(new Date).getTime(),"class":te+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",n).appendTo(W),se.one(le,function(){i.src="//about:blank"}),D.fastIframe&&t(i).trigger("load")):n(),"fade"===D.transition?x.fadeTo(a,1,e):e())},"fade"===D.transition?x.fadeTo(a,0,function(){J.position(0,h)}):J.position(a,h)}},J.next=function(){!q&&H[1]&&(D.loop||H[j+1])&&(j=r(1),f(H[j]))},J.prev=function(){!q&&H[1]&&(D.loop||j)&&(j=r(-1),f(H[j]))},J.close=function(){$&&!G&&(G=!0,$=!1,c(re,D.onCleanup),E.unbind("."+te),g.fadeTo(200,0),x.stop().fadeTo(300,0,function(){x.add(g).css({opacity:1,cursor:"auto"}).hide(),c(le),W.empty().remove(),setTimeout(function(){G=!1,c(he,D.onClosed)},1)}))},J.remove=function(){x&&(x.stop(),t.colorbox.close(),x.stop().remove(),g.remove(),G=!1,x=null,t("."+ee).removeData(Z).removeClass(ee),t(e).unbind("click."+te))},J.element=function(){return t(O)},J.settings=Y)})(jQuery,document,window);
gallery-bank.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin URI: http://gallery-bank.com
5
  Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
6
  Author: Gallery-Bank
7
- Version: 2.0.13
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
  Plugin URI: http://gallery-bank.com
5
  Description: Gallery Bank is an interactive WordPress photo gallery plugin, best fit for creative and corporate portfolio websites.
6
  Author: Gallery-Bank
7
+ Version: 2.0.14
8
  Author URI: http://gallery-bank.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
install-script.php CHANGED
@@ -26,6 +26,7 @@ if (count($wpdb->get_var('SHOW TABLES LIKE "' . gallery_bank_pics() . '"')) == 0
26
  date DATE,
27
  url VARCHAR(250) NOT NULL,
28
  check_url INTEGER(10) NOT NULL,
 
29
  PRIMARY KEY(pic_id)
30
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
31
  dbDelta($sql);
@@ -404,5 +405,31 @@ if (count($wpdb->get_var('SHOW TABLES LIKE "' . gallery_bank_albums() . '"')) !=
404
  )
405
  );
406
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
407
  }
408
  ?>
26
  date DATE,
27
  url VARCHAR(250) NOT NULL,
28
  check_url INTEGER(10) NOT NULL,
29
+ video INTEGER(10) NOT NULL,
30
  PRIMARY KEY(pic_id)
31
  ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_general_ci';
32
  dbDelta($sql);
405
  )
406
  );
407
  }
408
+ $check13 = $wpdb->get_var
409
+ (
410
+ $wpdb->prepare
411
+ (
412
+ "SHOW COLUMNS FROM " . gallery_bank_pics() . " LIKE 'video'",""
413
+ )
414
+ );
415
+ if($check13 != "video")
416
+ {
417
+ $wpdb->query
418
+ (
419
+
420
+ $wpdb->prepare
421
+ (
422
+ "ALTER TABLE " . gallery_bank_pics() . " ADD video INTEGER(10) NOT NULL",""
423
+ )
424
+ );
425
+ $wpdb->query
426
+ (
427
+ $wpdb->prepare
428
+ (
429
+ "UPDATE ".gallery_bank_pics()." set video = %d",
430
+ "0"
431
+ )
432
+ );
433
+ }
434
  }
435
  ?>
lib/album-gallery-bank-class.php CHANGED
@@ -251,11 +251,43 @@ else
251
  {
252
  $ux_path = esc_attr($_REQUEST["path"]);
253
  $ux_albumid = intval($_REQUEST["album_id"]);
254
- $ux_title = html_entity_decode($_REQUEST["title"]);
255
- $ux_url_path = html_entity_decode($_REQUEST["url_path"]);
256
- $ux_detail = html_entity_decode($_REQUEST["detail"]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  $thumbnail_url = esc_attr($_REQUEST["thumb"]);
258
- $ux_checkbox = esc_attr($_REQUEST["checkbox_url"]);
 
 
 
 
 
 
 
 
259
  if($ux_checkbox == "true")
260
  {
261
  $url_checkbox = 1;
@@ -264,19 +296,66 @@ else
264
  {
265
  $url_checkbox = 0;
266
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  $wpdb->query
268
  (
269
  $wpdb->prepare
270
  (
271
- "INSERT INTO ".gallery_bank_pics()."(album_id,pic_path,thumbnail_url,title,description,url,check_url,date)
272
- VALUES(%d,%s,%s,%s,%s,%s,%d,CURDATE())",
273
  $ux_albumid,
274
- $ux_path,
275
- $thumbnail_url,
276
- $ux_title,
277
- $ux_detail,
278
- $ux_url_path,
279
- $url_checkbox
 
 
280
  )
281
  );
282
  $pic_id = $wpdb->insert_id;
@@ -295,10 +374,30 @@ else
295
  {
296
  $pic_id = intval($_REQUEST['picId']);
297
  $albumId = intval($_REQUEST['albumId']);
298
- $edit_title = html_entity_decode($_REQUEST['edit_title']);
299
- $edit_detail = html_entity_decode($_REQUEST['edit_detail']);
300
- $chkbox = esc_attr($_REQUEST['checkbox_url']);
301
- $ux_edit_url = html_entity_decode($_REQUEST["edit_url_path"]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
  if($chkbox == "true")
303
  {
304
  $url_chkbox = 1;
@@ -311,17 +410,49 @@ else
311
  (
312
  $wpdb->prepare
313
  (
314
- "UPDATE " .gallery_bank_pics(). " SET title = %s, description= %s,url = %s, check_url = %d WHERE pic_id = %d",
315
  $edit_title,
316
  $edit_detail,
317
  $ux_edit_url,
318
- $url_chkbox,
 
319
  $pic_id
320
  )
321
  );
322
-
323
  die();
324
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
325
  else if($_REQUEST['param'] == "delete_pic")
326
  {
327
  $picture_id = $_REQUEST['id'];
@@ -340,6 +471,24 @@ else
340
  }
341
  die();
342
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
343
  else if($_REQUEST['param'] == "delete_album")
344
  {
345
  $album_id = intval($_REQUEST['album_id']);
251
  {
252
  $ux_path = esc_attr($_REQUEST["path"]);
253
  $ux_albumid = intval($_REQUEST["album_id"]);
254
+ $ux_title1 = html_entity_decode($_REQUEST["title"]);
255
+ if($ux_title1 == "undefined")
256
+ {
257
+ $ux_title = "";
258
+ }
259
+ else
260
+ {
261
+ $ux_title = $ux_title1;
262
+ }
263
+ $ux_url_path1 = html_entity_decode($_REQUEST["url_path"]);
264
+ if($ux_url_path1 == "undefined")
265
+ {
266
+ $ux_url_path = "";
267
+ }
268
+ else
269
+ {
270
+ $ux_url_path = $ux_url_path1;
271
+ }
272
+ $ux_detail1 = html_entity_decode($_REQUEST["detail"]);
273
+ if($ux_detail1 == "undefined")
274
+ {
275
+ $ux_detail = "";
276
+ }
277
+ else
278
+ {
279
+ $ux_detail = $ux_detail1;
280
+ }
281
  $thumbnail_url = esc_attr($_REQUEST["thumb"]);
282
+ $ux_checkbox1 = esc_attr($_REQUEST["checkbox_url"]);
283
+ if($ux_checkbox1 == "undefined")
284
+ {
285
+ $ux_checkbox = "";
286
+ }
287
+ else
288
+ {
289
+ $ux_checkbox = $ux_checkbox1;
290
+ }
291
  if($ux_checkbox == "true")
292
  {
293
  $url_checkbox = 1;
296
  {
297
  $url_checkbox = 0;
298
  }
299
+
300
+ $wpdb->query
301
+ (
302
+ $wpdb->prepare
303
+ (
304
+ "INSERT INTO ".gallery_bank_pics()."(album_id,pic_path,thumbnail_url,title,description,url,check_url,video,date)
305
+ VALUES(%d,%s,%s,%s,%s,%s,%d,%d,CURDATE())",
306
+ $ux_albumid,
307
+ $ux_path,
308
+ $thumbnail_url,
309
+ $ux_title,
310
+ $ux_detail,
311
+ $ux_url_path,
312
+ $url_checkbox,
313
+ 0
314
+ )
315
+ );
316
+ $pic_id = $wpdb->insert_id;
317
+ $wpdb->query
318
+ (
319
+ $wpdb->prepare
320
+ (
321
+ "UPDATE " .gallery_bank_pics(). " SET sorting_order = %d WHERE pic_id = %d",
322
+ $pic_id,
323
+ $pic_id
324
+ )
325
+ );
326
+
327
+ die();
328
+ }
329
+ else if($_REQUEST["param"] == "add_video")
330
+ {
331
+ $ux_albumid = intval($_REQUEST["album_id"]);
332
+ $select_video_type1 = esc_attr($_REQUEST["select_video_format"]);
333
+ if($select_video_type1 == "undefined"){
334
+ $select_video_type = "";
335
+ }else{
336
+ $select_video_type = $select_video_type1;
337
+ }
338
+ $video_url1 = esc_attr($_REQUEST["video_url"]);
339
+ if($video_url1 == "undefined"){
340
+ $video_url = "";
341
+ }else{
342
+ $video_url = $video_url1;
343
+ }
344
  $wpdb->query
345
  (
346
  $wpdb->prepare
347
  (
348
+ "INSERT INTO ".gallery_bank_pics()."(album_id,pic_path,thumbnail_url,title,description,url,check_url,video,date)
349
+ VALUES(%d,%s,%s,%s,%s,%s,%d,%d,CURDATE())",
350
  $ux_albumid,
351
+ $video_url,
352
+ "",
353
+ $select_video_type,
354
+ "",
355
+ "",
356
+ "",
357
+ 1
358
+
359
  )
360
  );
361
  $pic_id = $wpdb->insert_id;
374
  {
375
  $pic_id = intval($_REQUEST['picId']);
376
  $albumId = intval($_REQUEST['albumId']);
377
+ $edit_title1 = html_entity_decode($_REQUEST['edit_title']);
378
+ if($edit_title1 == "undefined"){
379
+ $edit_title = "";
380
+ }else{
381
+ $edit_title = $edit_title1;
382
+ }
383
+ $edit_detail1 = html_entity_decode($_REQUEST['edit_detail']);
384
+ if($edit_detail1 == "undefined"){
385
+ $edit_detail = "";
386
+ }else{
387
+ $edit_detail = $edit_detail1;
388
+ }
389
+ $chkbox1 = esc_attr($_REQUEST['checkbox_url']);
390
+ if($chkbox1 == "undefined"){
391
+ $chkbox = "";
392
+ }else{
393
+ $chkbox = $chkbox1;
394
+ }
395
+ $ux_edit_url1 = html_entity_decode($_REQUEST["edit_url_path"]);
396
+ if($ux_edit_url1 == "undefined"){
397
+ $ux_edit_url = "";
398
+ }else{
399
+ $ux_edit_url = $ux_edit_url1;
400
+ }
401
  if($chkbox == "true")
402
  {
403
  $url_chkbox = 1;
410
  (
411
  $wpdb->prepare
412
  (
413
+ "UPDATE " .gallery_bank_pics(). " SET title = %s, description= %s,url = %s, check_url = %d,video = %d WHERE pic_id = %d",
414
  $edit_title,
415
  $edit_detail,
416
  $ux_edit_url,
417
+ $url_chkbox,
418
+ 0,
419
  $pic_id
420
  )
421
  );
 
422
  die();
423
  }
424
+ else if($_REQUEST["param"] == "update_video")
425
+ {
426
+ $pic_id = intval($_REQUEST['picId']);
427
+ $albumId = intval($_REQUEST['albumId']);
428
+ $ux_edit_video_type1 = esc_attr($_REQUEST['ux_edit_video_type']);
429
+ if($ux_edit_video_type1 == "undefined"){
430
+ $ux_edit_video_type = "";
431
+ }else{
432
+ $ux_edit_video_type = $ux_edit_video_type1;
433
+ }
434
+ $ux_edit_video_url1 = esc_attr($_REQUEST['ux_edit_video_url']);
435
+ if($ux_edit_video_url1 == "undefined"){
436
+ $ux_edit_video_url = "";
437
+ }else{
438
+ $ux_edit_video_url = $ux_edit_video_url1;
439
+ }
440
+ $wpdb->query
441
+ (
442
+ $wpdb->prepare
443
+ (
444
+ "UPDATE " .gallery_bank_pics(). " SET title = %s, description= %s,url = %s, check_url = %d,pic_path = %s,video = %d WHERE pic_id = %d",
445
+ $ux_edit_video_type,
446
+ "",
447
+ "",
448
+ "",
449
+ $ux_edit_video_url,
450
+ 1,
451
+ $pic_id
452
+ )
453
+ );
454
+ die();
455
+ }
456
  else if($_REQUEST['param'] == "delete_pic")
457
  {
458
  $picture_id = $_REQUEST['id'];
471
  }
472
  die();
473
  }
474
+ else if($_REQUEST['param'] == "delete_videos")
475
+ {
476
+ $picture_id = $_REQUEST['id_video'];
477
+ $count_pic = intval($_REQUEST['count_video']);
478
+ $pic_id = (explode(",",$picture_id));
479
+ for($flag = 0; $flag < $count_pic; $flag++ )
480
+ {
481
+ $wpdb->query
482
+ (
483
+ $wpdb->prepare
484
+ (
485
+ "DELETE FROM ".gallery_bank_pics()." WHERE pic_id = %d",
486
+ $pic_id[$flag]
487
+ )
488
+ );
489
+ }
490
+ die();
491
+ }
492
  else if($_REQUEST['param'] == "delete_album")
493
  {
494
  $album_id = intval($_REQUEST['album_id']);
lib/front-view-album-class.php CHANGED
@@ -246,15 +246,35 @@
246
 
247
  if(file_exists($fileName)!=false)
248
  {
 
 
249
  ?>
250
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
251
  <?php
 
 
 
 
 
 
 
 
252
  }
253
  else
254
  {
255
- ?>
 
 
 
 
 
 
 
 
256
  <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:155px;height:155px;<?php echo $css_image_thumbnail; ?>" />
257
  <?php
 
 
258
  }
259
  ?>
260
 
@@ -275,15 +295,36 @@
275
 
276
  if(file_exists($fileName)!=false)
277
  {
278
- ?>
 
 
 
 
 
 
 
 
279
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
280
  <?php
 
 
281
  }
282
  else
283
  {
284
- ?>
 
 
 
 
 
 
 
 
285
  <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
286
  <?php
 
 
 
287
  }
288
  ?>
289
 
@@ -433,17 +474,38 @@
433
  if($image_content[1] == 1)
434
  {
435
 
436
- if(file_exists($fileName)!=false)
437
  {
438
- ?>
 
 
 
 
 
 
 
 
439
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
440
  <?php
 
 
441
  }
442
  else
443
  {
 
 
 
 
 
 
 
 
444
  ?>
445
  <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:155px;height:155px;<?php echo $css_image_thumbnail; ?>" />
446
- <?php
 
 
 
447
  }
448
  ?>
449
 
@@ -465,15 +527,35 @@
465
 
466
  if(file_exists($fileName)!=false)
467
  {
 
 
 
 
 
 
 
 
468
  ?>
469
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
470
- <?php
 
 
471
  }
472
  else
473
  {
 
 
474
  ?>
475
- <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
476
  <?php
 
 
 
 
 
 
 
 
477
  }
478
  ?>
479
 
246
 
247
  if(file_exists($fileName)!=false)
248
  {
249
+ if($pic_detail[$flag]->video == 1)
250
+ {
251
  ?>
252
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
253
  <?php
254
+ }
255
+ else
256
+ {
257
+ ?>
258
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
259
+ <?php
260
+ }
261
+
262
  }
263
  else
264
  {
265
+ if($pic_detail[$flag]->video == 1)
266
+ {
267
+ ?>
268
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width:155px;height:155px;<?php echo $css_image_thumbnail; ?>" />
269
+ <?php
270
+ }
271
+ else
272
+ {
273
+ ?>
274
  <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:155px;height:155px;<?php echo $css_image_thumbnail; ?>" />
275
  <?php
276
+ }
277
+
278
  }
279
  ?>
280
 
295
 
296
  if(file_exists($fileName)!=false)
297
  {
298
+ if($pic_detail[$flag]->video == 1)
299
+ {
300
+ ?>
301
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
302
+ <?php
303
+ }
304
+ else
305
+ {
306
+ ?>
307
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
308
  <?php
309
+ }
310
+
311
  }
312
  else
313
  {
314
+ if($pic_detail[$flag]->video == 1)
315
+ {
316
+ ?>
317
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
318
+ <?php
319
+ }
320
+ else
321
+ {
322
+ ?>
323
  <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
324
  <?php
325
+ }
326
+
327
+
328
  }
329
  ?>
330
 
474
  if($image_content[1] == 1)
475
  {
476
 
477
+ if(file_exists($fileName)!=false)
478
  {
479
+ if($pic_detail[$flag]->video == 1)
480
+ {
481
+ ?>
482
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
483
+ <?php
484
+ }
485
+ else
486
+ {
487
+ ?>
488
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
489
  <?php
490
+ }
491
+
492
  }
493
  else
494
  {
495
+ if($pic_detail[$flag]->video == 1)
496
+ {
497
+ ?>
498
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width:155px;height:155px;<?php echo $css_image_thumbnail; ?>" />
499
+ <?php
500
+ }
501
+ else
502
+ {
503
  ?>
504
  <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:155px;height:155px;<?php echo $css_image_thumbnail; ?>" />
505
+ <?php
506
+ }
507
+
508
+
509
  }
510
  ?>
511
 
527
 
528
  if(file_exists($fileName)!=false)
529
  {
530
+ if($pic_detail[$flag]->video == 1)
531
+ {
532
+ ?>
533
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
534
+ <?php
535
+ }
536
+ else
537
+ {
538
  ?>
539
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
540
+ <?php
541
+ }
542
+
543
  }
544
  else
545
  {
546
+ if($pic_detail[$flag]->video == 1)
547
+ {
548
  ?>
549
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
550
  <?php
551
+ }
552
+ else
553
+ {
554
+ ?>
555
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
556
+ <?php
557
+ }
558
+
559
  }
560
  ?>
561
 
lib/gallery-bank-class.php CHANGED
@@ -158,7 +158,7 @@ function backend_scripts_calls()
158
  wp_enqueue_script('mColorPicker_small.js', GALLERY_BK_PLUGIN_URL .'/assets/js/colorpicker/js/mColorPicker_small.js');
159
  wp_enqueue_script('jquery.validate.min.js', GALLERY_BK_PLUGIN_URL .'/assets/js/plugins/forms/jquery.validate.min.js');
160
  wp_enqueue_script('jquery.titanlighbox.js', GALLERY_BK_PLUGIN_URL .'/assets/js/jquery.titanlighbox.js');
161
- //wp_enqueue_script('jquery.masonry.min.js', GALLERY_BK_PLUGIN_URL .'/assets/js/jquery.masonry.min.js');
162
  wp_enqueue_script('compare.js', GALLERY_BK_PLUGIN_URL .'/assets/js/compare.js');
163
  wp_enqueue_script('frontend.js', GALLERY_BK_PLUGIN_URL .'/assets/js/frontend.js');
164
  }
@@ -178,7 +178,8 @@ function backend_css_calls()
178
  wp_enqueue_style('main', GALLERY_BK_PLUGIN_URL . '/assets/css/main.css');
179
  wp_enqueue_style('system-message', GALLERY_BK_PLUGIN_URL . '/assets/css/system-message.css');
180
  wp_enqueue_style('jquery.titanlighbox.css', GALLERY_BK_PLUGIN_URL .'/assets/css/jquery.titanlighbox.css');
181
- wp_enqueue_style('frontend.css', GALLERY_BK_PLUGIN_URL .'/assets/css/frontend.css');
 
182
  }
183
  function frontend_plugin_css_scripts_gallery_bank()
184
  {
158
  wp_enqueue_script('mColorPicker_small.js', GALLERY_BK_PLUGIN_URL .'/assets/js/colorpicker/js/mColorPicker_small.js');
159
  wp_enqueue_script('jquery.validate.min.js', GALLERY_BK_PLUGIN_URL .'/assets/js/plugins/forms/jquery.validate.min.js');
160
  wp_enqueue_script('jquery.titanlighbox.js', GALLERY_BK_PLUGIN_URL .'/assets/js/jquery.titanlighbox.js');
161
+ wp_enqueue_script('jquery.colorbox-min.js', GALLERY_BK_PLUGIN_URL .'/assets/js/jquery.colorbox-min.js');
162
  wp_enqueue_script('compare.js', GALLERY_BK_PLUGIN_URL .'/assets/js/compare.js');
163
  wp_enqueue_script('frontend.js', GALLERY_BK_PLUGIN_URL .'/assets/js/frontend.js');
164
  }
178
  wp_enqueue_style('main', GALLERY_BK_PLUGIN_URL . '/assets/css/main.css');
179
  wp_enqueue_style('system-message', GALLERY_BK_PLUGIN_URL . '/assets/css/system-message.css');
180
  wp_enqueue_style('jquery.titanlighbox.css', GALLERY_BK_PLUGIN_URL .'/assets/css/jquery.titanlighbox.css');
181
+ wp_enqueue_style('frontend.css', GALLERY_BK_PLUGIN_URL .'/assets/css/frontend.css');
182
+ wp_enqueue_style('colorbox.css', GALLERY_BK_PLUGIN_URL .'/assets/css/colorbox.css');
183
  }
184
  function frontend_plugin_css_scripts_gallery_bank()
185
  {
lib/image_sorting_class.php CHANGED
@@ -126,15 +126,36 @@ if(isset($_REQUEST['param']))
126
  {
127
  if(file_exists($fileName)!=false)
128
  {
129
- ?>
 
 
 
 
 
 
 
 
130
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
131
  <?php
 
 
132
  }
133
  else
134
  {
135
- ?>
136
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
 
 
137
  <?php
 
 
 
 
 
 
 
 
 
138
  }
139
 
140
  }
@@ -142,15 +163,35 @@ if(isset($_REQUEST['param']))
142
  {
143
  if(file_exists($fileName)!=false)
144
  {
145
- ?>
146
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
147
- <?php
 
 
 
 
 
 
 
 
 
 
148
  }
149
  else
150
  {
151
- ?>
 
 
 
 
 
 
 
 
152
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
153
  <?php
 
 
154
  }
155
 
156
  }
@@ -164,15 +205,36 @@ if(isset($_REQUEST['param']))
164
  {
165
  if(file_exists($fileName)!=false)
166
  {
167
- ?>
168
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
169
- <?php
 
 
 
 
 
 
 
 
 
 
170
  }
171
  else
172
  {
173
- ?>
 
 
 
 
 
 
 
 
174
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
175
  <?php
 
 
 
176
  }
177
 
178
  }
@@ -180,15 +242,35 @@ if(isset($_REQUEST['param']))
180
  {
181
  if(file_exists($fileName)!=false)
182
  {
183
- ?>
184
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
185
- <?php
 
 
 
 
 
 
 
 
 
 
186
  }
187
  else
188
  {
189
- ?>
 
 
 
 
 
 
 
 
190
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
191
  <?php
 
 
192
  }
193
 
194
  }
@@ -207,15 +289,36 @@ if(isset($_REQUEST['param']))
207
  {
208
  if(file_exists($fileName)!=false)
209
  {
210
- ?>
211
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
212
- <?php
 
 
 
 
 
 
 
 
 
 
213
  }
214
  else
215
  {
216
- ?>
 
 
 
 
 
 
 
 
217
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
218
  <?php
 
 
 
219
  }
220
 
221
  }
@@ -223,15 +326,35 @@ if(isset($_REQUEST['param']))
223
  {
224
  if(file_exists($fileName)!=false)
225
  {
226
- ?>
227
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
228
- <?php
 
 
 
 
 
 
 
 
 
 
229
  }
230
  else
231
  {
232
- ?>
 
 
 
 
 
 
 
 
233
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
234
  <?php
 
 
235
  }
236
 
237
  }
@@ -247,15 +370,36 @@ if(isset($_REQUEST['param']))
247
  {
248
  if(file_exists($fileName)!=false)
249
  {
250
- ?>
251
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
252
- <?php
 
 
 
 
 
 
 
 
 
 
253
  }
254
  else
255
  {
256
- ?>
 
 
 
 
 
 
 
 
257
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
258
  <?php
 
 
 
259
  }
260
 
261
  }
@@ -263,15 +407,35 @@ if(isset($_REQUEST['param']))
263
  {
264
  if(file_exists($fileName)!=false)
265
  {
266
- ?>
267
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
268
- <?php
 
 
 
 
 
 
 
 
 
 
269
  }
270
  else
271
  {
272
- ?>
 
 
 
 
 
 
 
 
273
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
274
  <?php
 
 
275
  }
276
 
277
  }
126
  {
127
  if(file_exists($fileName)!=false)
128
  {
129
+ if($pic_detail[$flag]->video == 1)
130
+ {
131
+ ?>
132
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
133
+ <?php
134
+ }
135
+ else
136
+ {
137
+ ?>
138
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
139
  <?php
140
+ }
141
+
142
  }
143
  else
144
  {
145
+ if($pic_detail[$flag]->video == 1)
146
+ {
147
+ ?>
148
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
149
  <?php
150
+ }
151
+ else
152
+ {
153
+ ?>
154
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
155
+ <?php
156
+
157
+ }
158
+
159
  }
160
 
161
  }
163
  {
164
  if(file_exists($fileName)!=false)
165
  {
166
+ if($pic_detail[$flag]->video == 1)
167
+ {
168
+ ?>
169
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
170
+ <?php
171
+ }
172
+ else
173
+ {
174
+ ?>
175
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
176
+ <?php
177
+ }
178
+
179
  }
180
  else
181
  {
182
+ if($pic_detail[$flag]->video == 1)
183
+ {
184
+ ?>
185
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
186
+ <?php
187
+ }
188
+ else
189
+ {
190
+ ?>
191
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
192
  <?php
193
+ }
194
+
195
  }
196
 
197
  }
205
  {
206
  if(file_exists($fileName)!=false)
207
  {
208
+ if($pic_detail[$flag]->video == 1)
209
+ {
210
+ ?>
211
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
212
+ <?php
213
+ }
214
+ else
215
+ {
216
+ ?>
217
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
218
+ <?php
219
+ }
220
+
221
  }
222
  else
223
  {
224
+ if($pic_detail[$flag]->video == 1)
225
+ {
226
+ ?>
227
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
228
+ <?php
229
+ }
230
+ else
231
+ {
232
+ ?>
233
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
234
  <?php
235
+
236
+ }
237
+
238
  }
239
 
240
  }
242
  {
243
  if(file_exists($fileName)!=false)
244
  {
245
+ if($pic_detail[$flag]->video == 1)
246
+ {
247
+ ?>
248
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
249
+ <?php
250
+ }
251
+ else
252
+ {
253
+ ?>
254
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
255
+ <?php
256
+ }
257
+
258
  }
259
  else
260
  {
261
+ if($pic_detail[$flag]->video == 1)
262
+ {
263
+ ?>
264
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
265
+ <?php
266
+ }
267
+ else
268
+ {
269
+ ?>
270
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
271
  <?php
272
+ }
273
+
274
  }
275
 
276
  }
289
  {
290
  if(file_exists($fileName)!=false)
291
  {
292
+ if($pic_detail[$flag]->video == 1)
293
+ {
294
+ ?>
295
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
296
+ <?php
297
+ }
298
+ else
299
+ {
300
+ ?>
301
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
302
+ <?php
303
+ }
304
+
305
  }
306
  else
307
  {
308
+ if($pic_detail[$flag]->video == 1)
309
+ {
310
+ ?>
311
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
312
+ <?php
313
+ }
314
+ else
315
+ {
316
+ ?>
317
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
318
  <?php
319
+
320
+ }
321
+
322
  }
323
 
324
  }
326
  {
327
  if(file_exists($fileName)!=false)
328
  {
329
+ if($pic_detail[$flag]->video == 1)
330
+ {
331
+ ?>
332
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
333
+ <?php
334
+ }
335
+ else
336
+ {
337
+ ?>
338
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
339
+ <?php
340
+ }
341
+
342
  }
343
  else
344
  {
345
+ if($pic_detail[$flag]->video == 1)
346
+ {
347
+ ?>
348
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
349
+ <?php
350
+ }
351
+ else
352
+ {
353
+ ?>
354
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
355
  <?php
356
+ }
357
+
358
  }
359
 
360
  }
370
  {
371
  if(file_exists($fileName)!=false)
372
  {
373
+ if($pic_detail[$flag]->video == 1)
374
+ {
375
+ ?>
376
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
377
+ <?php
378
+ }
379
+ else
380
+ {
381
+ ?>
382
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
383
+ <?php
384
+ }
385
+
386
  }
387
  else
388
  {
389
+ if($pic_detail[$flag]->video == 1)
390
+ {
391
+ ?>
392
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
393
+ <?php
394
+ }
395
+ else
396
+ {
397
+ ?>
398
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
399
  <?php
400
+
401
+ }
402
+
403
  }
404
 
405
  }
407
  {
408
  if(file_exists($fileName)!=false)
409
  {
410
+ if($pic_detail[$flag]->video == 1)
411
+ {
412
+ ?>
413
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
414
+ <?php
415
+ }
416
+ else
417
+ {
418
+ ?>
419
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
420
+ <?php
421
+ }
422
+
423
  }
424
  else
425
  {
426
+ if($pic_detail[$flag]->video == 1)
427
+ {
428
+ ?>
429
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
430
+ <?php
431
+ }
432
+ else
433
+ {
434
+ ?>
435
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
436
  <?php
437
+ }
438
+
439
  }
440
 
441
  }
lib/timthumb.php CHANGED
@@ -209,7 +209,7 @@ class timthumb {
209
  $this->myHost = preg_replace('/^www\./i', '', $_SERVER['HTTP_HOST']);
210
  $this->src = $this->param('src');
211
  $this->url = parse_url($this->src);
212
- //$this->src = preg_replace('/https?:\/\/(?:www\.)?' . $this->myHost . '/i', '', $this->src);
213
 
214
  if(strlen($this->src) <= 3){
215
  $this->error("No image specified");
209
  $this->myHost = preg_replace('/^www\./i', '', $_SERVER['HTTP_HOST']);
210
  $this->src = $this->param('src');
211
  $this->url = parse_url($this->src);
212
+ $this->src = preg_replace('/https?:\/\/(?:www\.)?' . $this->myHost . '/i', '', $this->src);
213
 
214
  if(strlen($this->src) <= 3){
215
  $this->error("No image specified");
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gallery, gallery images, album, foto, fotoalbum, website gallery, multiple
4
 
5
  Requires at least: 3.0
6
  Tested up to: 3.6
7
- Stable tag: 2.0.13
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -24,6 +24,7 @@ Gallery Bank is designed to adapt each portfolio to any situation and can be eas
24
 
25
  = Key Features in Standard Version =
26
 
 
27
  * Creates upto 2 Albums in your Gallery Bank
28
  * 10 Images could be uploaded to each Album.
29
  * Feature to set the cover for the album.
@@ -135,6 +136,16 @@ With this bulk deletion feature, you can now delete the pictures you want in bul
135
 
136
  == Changelog ==
137
 
 
 
 
 
 
 
 
 
 
 
138
  = 2.0.12 =
139
 
140
  * Few Bugs Fixed
4
 
5
  Requires at least: 3.0
6
  Tested up to: 3.6
7
+ Stable tag: 2.0.14
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
24
 
25
  = Key Features in Standard Version =
26
 
27
+ * Now Supports Videos
28
  * Creates upto 2 Albums in your Gallery Bank
29
  * 10 Images could be uploaded to each Album.
30
  * Feature to set the cover for the album.
136
 
137
  == Changelog ==
138
 
139
+ = 2.0.14 =
140
+
141
+ * Introducing Videos in Gallery Bank
142
+ * Fixed Bugs with Thumbnails
143
+ * Fixed Bugs related to Timbthumb
144
+
145
+ = 2.0.13 =
146
+
147
+ * Few Bugs Fixed
148
+
149
  = 2.0.12 =
150
 
151
  * Few Bugs Fixed
views/add-new-album.php CHANGED
@@ -125,6 +125,7 @@
125
  <div class="body">
126
  <div class="control-group">
127
  <a class="btn btn-info" id="upload_image_button" href=""><?php _e( "Upload Images to your Album ", gallery_bank ); ?></a>
 
128
  </div>
129
  <div class="control-group">
130
  <input type="checkbox" id="delete_selected" name="delete_selected" style="cursor: pointer;"/>
@@ -576,10 +577,69 @@
576
  </form>
577
  </div>
578
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
579
  <script type="text/javascript">
 
580
  var arr =[];
581
  var ar = [];
582
  var thumb_array = [];
 
 
583
  var cover_array;
584
  jQuery(document).ready(function()
585
  {
@@ -675,7 +735,7 @@
675
  });
676
  cover_file_frame.open();
677
  });
678
- var count_images = 0;
679
  var file_frame;
680
  jQuery('#upload_image_button').live('click', function( event ){
681
  event.preventDefault();
@@ -689,13 +749,13 @@
689
  file_frame.on( 'select', function() {
690
  var selection = file_frame.state().get('selection');
691
  selection.map( function( attachment ) {
692
- if(count_images < 10)
693
- {
694
  attachment = attachment.toJSON();
695
  var dynamicId = Math.floor((Math.random() * 1000)+1);
696
  thumb_array.push(attachment.url);
697
  arr.push(attachment.url);
698
  ar.push(dynamicId);
 
699
  var tr = jQuery("<tr></tr>");
700
  var td = jQuery("<td></td>");
701
  var main_div = jQuery("<div class=\"block\" id=\""+dynamicId+"\" >");
@@ -732,13 +792,99 @@
732
  oTable = jQuery('#add-album-data-table').dataTable();
733
  oTable.fnAddData([tr.html()]);
734
  jQuery('#des_img_'+dynamicId).attr("placeholder", "<?php _e( "Enter your Image Description", gallery_bank);?>");
735
- count_images++;
736
- }
737
-
738
  });
739
  });
740
  file_frame.open();
741
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
742
  function delete_pic(dynamicId)
743
  {
744
  bootbox.confirm("<?php _e( "Are you sure you want to delete this Image?", gallery_bank ); ?>", function(confirmed)
@@ -754,7 +900,26 @@
754
  thumb_array.splice(index, 1);
755
  oTable = jQuery('#add-album-data-table').dataTable();
756
  oTable.fnDeleteRow(index);
757
- count_images--;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
758
  }
759
  }
760
  });
@@ -815,63 +980,62 @@
815
  var count = 0;
816
  if(arr.length > 0)
817
  {
818
-
819
- for(pic = 0; pic < arr.length; pic++ )
 
 
 
 
 
 
 
820
  {
821
- var path = arr[pic];
822
- var thumb = thumb_array[pic];
823
- var title = "";
824
- if(encodeURIComponent(jQuery("#title_img_" + ar[pic]).val()) != "undefined")
825
  {
826
- title = encodeURIComponent(jQuery("#title_img_" + ar[pic]).val());
827
- }
828
- var url_path = "";
829
- if(encodeURIComponent(jQuery("#url_" + ar[pic]).val()) != "undefined")
830
- {
831
- url_path = encodeURIComponent(jQuery("#url_" + ar[pic]).val());
832
- }
833
- var detail="";
834
- if(encodeURIComponent(jQuery("#des_img_" + ar[pic]).val()) != "undefined")
835
- {
836
- detail = encodeURIComponent(jQuery("#des_img_" + ar[pic]).val());
837
- }
838
- var checkbox_url = jQuery("#url_check_" +ar[pic]).prop("checked");
839
- jQuery.post(ajaxurl, "album_id="+album_id+"&title="+title+"&url_path="+url_path+"&detail="+detail+"&path="+path+"&thumb="+thumb+"&checkbox_url="+checkbox_url+"&param=add_pic&action=album_gallery_library", function(data)
840
- {
841
- jQuery('#message').css('display','block');
842
- count++;
843
- if(count == arr.length)
844
  {
845
- setTimeout(function()
846
- {
847
- jQuery('#message').css('display','none');
848
- window.location.href = "admin.php?page=gallery_bank";
849
- }, 2000);
850
- }
851
-
852
- });
853
-
854
- }
855
-
856
  }
857
- else
858
  {
859
- jQuery('#message').css('display','block');
860
- setTimeout(function()
861
  {
862
- jQuery('#message').css('display','none');
863
- window.location.href = "admin.php?page=gallery_bank";
864
- }, 2000);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
865
  }
866
  });
867
  }
868
  });
869
  jQuery(function()
870
  {
871
- jQuery('#delete_selected').click(function(){
 
872
  var oTable = jQuery("#add-album-data-table").dataTable();
873
  var checkProp = jQuery("#delete_selected").prop("checked");
874
- jQuery("input:checkbox", oTable.fnGetNodes()).each(function(){
 
875
  if(checkProp)
876
  {
877
  jQuery(this).attr('checked', 'checked');
@@ -885,7 +1049,7 @@
885
  });
886
  function delete_selected_images()
887
  {
888
- bootbox.confirm("<?php _e( "Are you sure you want to delete these Images?", gallery_bank ); ?>", function(confirmed)
889
  {
890
  console.log("Confirmed: "+confirmed);
891
  if(confirmed == true)
@@ -901,7 +1065,15 @@
901
  thumb_array.splice(index, 1);
902
  oTable.fnDeleteRow(index);
903
  jQuery('#delete_selected').removeAttr('checked');
904
- count_images--;
 
 
 
 
 
 
 
 
905
  }
906
  });
907
  }
125
  <div class="body">
126
  <div class="control-group">
127
  <a class="btn btn-info" id="upload_image_button" href=""><?php _e( "Upload Images to your Album ", gallery_bank ); ?></a>
128
+ <a class="btn btn-info inline" href="#uxDivAddVideo" ><?php _e( "Add Videos to your Album ", gallery_bank ); ?></a>
129
  </div>
130
  <div class="control-group">
131
  <input type="checkbox" id="delete_selected" name="delete_selected" style="cursor: pointer;"/>
577
  </form>
578
  </div>
579
  </div>
580
+ <div style="display: none" >
581
+ <div id="uxDivAddVideo" class="block well">
582
+ <div class="navbar">
583
+ <div class="navbar-inner">
584
+ <h5><?php _e( "Add Video", gallery_bank ); ?></h5>
585
+ </div>
586
+ </div>
587
+ <div class="body" style="margin:10px;">
588
+ <form id="ux_add_video" class="form-horizontal">
589
+ <div class="row-fluid">
590
+ <div class="span12">
591
+ <div class="block well">
592
+ <div class="body">
593
+ <div class="control-group">
594
+ <label class="control-label"><?php _e( "Video Format ", gallery_bank ); ?>:</label>
595
+ <div class = "controls">
596
+ <select name="ux_video_type" id="ux_video_type" class="span12">
597
+ <option value="Youtube"><?php _e( "Youtube", gallery_bank ); ?></option>
598
+ <option value="Vimeo"><?php _e( "Vimeo", gallery_bank ); ?></option>
599
+ <option value="DailyMotion"><?php _e( "DailyMotion", gallery_bank ); ?></option>
600
+ <option value="MetaCafe"><?php _e( "MetaCafe", gallery_bank ); ?></option>
601
+ <option value="Veoh"><?php _e( "Veoh", gallery_bank ); ?></option>
602
+ <option value="Flickr_video"><?php _e( "Flickr video", gallery_bank ); ?></option>
603
+ <option value="Google_video"><?php _e( "Google video", gallery_bank ); ?></option>
604
+ <option value="Quite_youtube"><?php _e( "Quietube + Youtube", gallery_bank ); ?></option>
605
+ <option value="Quite_vimeo"><?php _e( "Quietube + Vimeo", gallery_bank ); ?></option>
606
+ <option value="Tudou"><?php _e( "Tudou", gallery_bank ); ?></option>
607
+ <option value="YouKu"><?php _e( "YouKu", gallery_bank ); ?></option>
608
+ </select>
609
+ </div>
610
+ </div>
611
+ <div class="control-group">
612
+ <label class="control-label"><?php _e( "Video URL ", gallery_bank ); ?>:</label>
613
+ <div class = "controls">
614
+ <input type="text" id="ux_video_url" class="span12" name="ux_video_url" />
615
+ </div>
616
+ </div>
617
+ <div class="control-group" style="border-bottom:none !important">
618
+ <label></label>
619
+ <div class="controls" id="ux_div_submit">
620
+ <!-- <input type="button" class="btn btn-primary" onclick="Upload_video_gallery();" value="<?php _e( "Upload Video", gallery_bank); ?>"/> -->
621
+ <button type="submit" class="btn btn-primary">
622
+ <span>
623
+ <?php _e( "Add Video", gallery_bank); ?>
624
+ </span>
625
+ </button>
626
+ </div>
627
+ </div>
628
+ </div>
629
+ </div>
630
+ </div>
631
+ </div>
632
+ </form>
633
+ </div>
634
+ </div>
635
+ </div>
636
  <script type="text/javascript">
637
+ jQuery(".inline").colorbox({inline:true, width:"700px"});
638
  var arr =[];
639
  var ar = [];
640
  var thumb_array = [];
641
+ var array_video = [];
642
+ var array_video_dynamicId = [];
643
  var cover_array;
644
  jQuery(document).ready(function()
645
  {
735
  });
736
  cover_file_frame.open();
737
  });
738
+
739
  var file_frame;
740
  jQuery('#upload_image_button').live('click', function( event ){
741
  event.preventDefault();
749
  file_frame.on( 'select', function() {
750
  var selection = file_frame.state().get('selection');
751
  selection.map( function( attachment ) {
752
+
 
753
  attachment = attachment.toJSON();
754
  var dynamicId = Math.floor((Math.random() * 1000)+1);
755
  thumb_array.push(attachment.url);
756
  arr.push(attachment.url);
757
  ar.push(dynamicId);
758
+
759
  var tr = jQuery("<tr></tr>");
760
  var td = jQuery("<td></td>");
761
  var main_div = jQuery("<div class=\"block\" id=\""+dynamicId+"\" >");
792
  oTable = jQuery('#add-album-data-table').dataTable();
793
  oTable.fnAddData([tr.html()]);
794
  jQuery('#des_img_'+dynamicId).attr("placeholder", "<?php _e( "Enter your Image Description", gallery_bank);?>");
 
 
 
795
  });
796
  });
797
  file_frame.open();
798
  });
799
+
800
+ jQuery("#ux_add_video").validate
801
+ ({
802
+ rules:
803
+ {
804
+ ux_video_type: "required",
805
+ ux_video_url:
806
+ {
807
+ required: true
808
+
809
+ },
810
+
811
+ },
812
+ highlight: function(label)
813
+ {
814
+ if(jQuery(label).closest('.control-group').hasClass('success'))
815
+ {
816
+ jQuery.colorbox.resize();
817
+ jQuery(label).closest('.control-group').removeClass('success');
818
+ }
819
+ jQuery(label).closest('.control-group').addClass('errors');
820
+ jQuery.colorbox.resize();
821
+ },
822
+ submitHandler: function(form)
823
+ {
824
+ var ux_video_format = jQuery("#ux_video_type").val();
825
+ var ux_video_url = jQuery("#ux_video_url").val();
826
+ var ux_video_static_img = "<?php echo GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg'; ?>";
827
+ var option_string = {
828
+ 'Youtube': 'Youtube',
829
+ 'Vimeo': 'Vimeo',
830
+ 'DailyMotion': 'DailyMotion',
831
+ 'MetaCafe': 'MetaCafe',
832
+ 'Veoh': 'Veoh',
833
+ 'Flickr_video': 'Flickr video',
834
+ 'Google_video': 'Google video',
835
+ 'Quite_youtube': 'Quietube + Youtube',
836
+ 'Quite_vimeo': 'Quietube + Vimeo',
837
+ 'Tudou':'Tudou',
838
+ 'YouKu':'YouKu'
839
+ }
840
+
841
+ var dynamicId = Math.floor((Math.random() * 1000)+1);
842
+ array_video.push(ux_video_url);
843
+ array_video_dynamicId.push(dynamicId);
844
+ var tr = jQuery("<tr></tr>");
845
+ var td = jQuery("<td></td>");
846
+ var main_div = jQuery("<div class=\"block\" id=\""+dynamicId+"\" >");
847
+ var div = jQuery("<div class=\"block\" style=\"padding:6px 6px 0 0; width:2%; float:left\">");
848
+ var checkbox = jQuery("<input type=\"checkbox\" value=\""+dynamicId+"\" style=\"cursor: pointer;\"/>");
849
+ div.append(checkbox);
850
+ div.append("</div>");
851
+ td.append(div);
852
+ var block = jQuery("<div class=\"block\" style=\"width:30%;float:left\">");
853
+ var img = jQuery("<img class=\"imgHolder\" style=\"border:2px solid #e5e5e5;margin-top:10px;cursor: pointer;\" id=\"up_img\"/>");
854
+ img.attr('src',ux_video_static_img);
855
+ img.attr('width', '150px');
856
+ block.append(img);
857
+ var del = jQuery("<br/><a class=\"imgHolder orange\" style=\"margin-left: 20px;cursor: pointer;\" id=\"del_img\" onclick=\"delete_video("+dynamicId+")\"><img style=\"cursor: pointer;vertical-align:middle;\" src=\"<?php echo GALLERY_BK_PLUGIN_URL.'/assets/images/icons/color-16/cross.png'?>\">&nbsp; <span style=\"cursor: pointer;vertical-align:middle;\"><?php _e("Remove Video",gallery_bank);?></span></a>");
858
+ block.append(del);
859
+ block.append("</div>");
860
+ td.append(block);
861
+ var block1 = jQuery("<div class=\"block\" style=\"width:66%;float:left\">");
862
+ var box = jQuery("<div class=\"control-group\">");
863
+ var drop_down_list = jQuery("<select class=\"span12\" name=\"video_format_"+dynamicId+"\" id=\"video_format_"+dynamicId+"\" ></select>");
864
+ for(var val in option_string)
865
+ {
866
+ jQuery('<option />', {value: val, text: option_string[val]}).appendTo(drop_down_list);
867
+ }
868
+ box.append(drop_down_list);
869
+ box.append("</div>");
870
+ block1.append(box);
871
+ var text = jQuery("<div class=\"control-group\"><textarea id=\"video_url_"+dynamicId+"\" rows=\"5\" style=\"width=150%\" class=\"span12\">"+ux_video_url+"</textarea></div>");
872
+ block1.append(text);
873
+ block1.append("</div>");
874
+ main_div.append(div);
875
+ main_div.append(block);
876
+ main_div.append(block1);
877
+ main_div.append("</div>");
878
+ td.append(main_div);
879
+ tr.append(td);
880
+ oTable = jQuery('#add-album-data-table').dataTable();
881
+ oTable.fnAddData([tr.html()]);
882
+ jQuery("#video_format_"+dynamicId).val(ux_video_format);
883
+ jQuery.colorbox.close();
884
+ jQuery("#ux_video_type").val("");
885
+ jQuery("#ux_video_url").val("");
886
+ }
887
+ });
888
  function delete_pic(dynamicId)
889
  {
890
  bootbox.confirm("<?php _e( "Are you sure you want to delete this Image?", gallery_bank ); ?>", function(confirmed)
900
  thumb_array.splice(index, 1);
901
  oTable = jQuery('#add-album-data-table').dataTable();
902
  oTable.fnDeleteRow(index);
903
+
904
+ }
905
+ }
906
+ });
907
+ }
908
+ function delete_video(dynamicId)
909
+ {
910
+ bootbox.confirm("<?php _e( "Are you sure you want to delete this Video?", gallery_bank ); ?>", function(confirmed)
911
+ {
912
+ console.log("Confirmed: "+confirmed);
913
+ if(confirmed == true)
914
+ {
915
+ jQuery("#" + dynamicId).remove();
916
+ if(array_video_dynamicId.indexOf(dynamicId) > -1) {
917
+ var index = array_video_dynamicId.indexOf(dynamicId);
918
+ array_video.splice(index, 1);
919
+ array_video_dynamicId.splice(index, 1);
920
+ oTable = jQuery('#add-album-data-table').dataTable();
921
+ oTable.fnDeleteRow(index);
922
+
923
  }
924
  }
925
  });
980
  var count = 0;
981
  if(arr.length > 0)
982
  {
983
+ for(pic = 0; pic < arr.length; pic++ )
984
+ {
985
+ var path = arr[pic];
986
+ var thumb = thumb_array[pic];
987
+ var title = encodeURIComponent(jQuery("#title_img_" + ar[pic]).val());
988
+ var url_path = encodeURIComponent(jQuery("#url_" + ar[pic]).val());
989
+ var detail = encodeURIComponent(jQuery("#des_img_" + ar[pic]).val());
990
+ var checkbox_url = jQuery("#url_check_" +ar[pic]).prop("checked");
991
+ jQuery.post(ajaxurl, "album_id="+album_id+"&title="+title+"&url_path="+url_path+"&detail="+detail+"&path="+path+"&thumb="+thumb+"&checkbox_url="+checkbox_url+"&param=add_pic&action=album_gallery_library", function(data)
992
  {
993
+ count++;
994
+ jQuery('#message').css('display','block');
995
+ if(count == parseInt(array_video.length)+parseInt(arr.length))
 
996
  {
997
+ setTimeout(function()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
998
  {
999
+ jQuery('#message').css('display','none');
1000
+ window.location.href = "admin.php?page=gallery_bank";
1001
+ }, 2000);
1002
+ }
1003
+ });
1004
+ }
 
 
 
 
 
1005
  }
1006
+ if(array_video.length > 0)
1007
  {
1008
+ for(video = 0; video < array_video.length; video++)
 
1009
  {
1010
+ var select_video_format = jQuery("#video_format_" + array_video_dynamicId[video]).val();
1011
+ var video_url = array_video[video];
1012
+
1013
+ jQuery.post(ajaxurl, "album_id="+album_id+"&select_video_format="+select_video_format+"&video_url="+video_url+"&param=add_video&action=album_gallery_library", function(data)
1014
+ {
1015
+ count++;
1016
+ jQuery('#message').css('display','block');
1017
+ if(count == parseInt(array_video.length)+parseInt(arr.length))
1018
+ {
1019
+ setTimeout(function()
1020
+ {
1021
+ jQuery('#message').css('display','none');
1022
+ window.location.href = "admin.php?page=gallery_bank";
1023
+ }, 2000);
1024
+ }
1025
+ });
1026
+ }
1027
  }
1028
  });
1029
  }
1030
  });
1031
  jQuery(function()
1032
  {
1033
+ jQuery('#delete_selected').click(function()
1034
+ {
1035
  var oTable = jQuery("#add-album-data-table").dataTable();
1036
  var checkProp = jQuery("#delete_selected").prop("checked");
1037
+ jQuery("input:checkbox", oTable.fnGetNodes()).each(function()
1038
+ {
1039
  if(checkProp)
1040
  {
1041
  jQuery(this).attr('checked', 'checked');
1049
  });
1050
  function delete_selected_images()
1051
  {
1052
+ bootbox.confirm("<?php _e( "Are you sure you want to delete all Images and Videos?", gallery_bank ); ?>", function(confirmed)
1053
  {
1054
  console.log("Confirmed: "+confirmed);
1055
  if(confirmed == true)
1065
  thumb_array.splice(index, 1);
1066
  oTable.fnDeleteRow(index);
1067
  jQuery('#delete_selected').removeAttr('checked');
1068
+
1069
+ }
1070
+ if(array_video_dynamicId.indexOf(dynamicId) > -1){
1071
+ var index = array_video_dynamicId.indexOf(dynamicId);
1072
+ array_video.splice(index, 1);
1073
+ array_video_dynamicId.splice(index, 1);
1074
+ oTable.fnDeleteRow(index);
1075
+ jQuery('#delete_selected').removeAttr('checked');
1076
+
1077
  }
1078
  });
1079
  }
views/album_preview.php CHANGED
@@ -212,7 +212,7 @@
212
  else
213
  {
214
  ?>
215
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url );?>" style="margin-left:5px;width: 150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
216
  <?php
217
  }
218
  ?>
@@ -245,7 +245,7 @@
245
  else
246
  {
247
  ?>
248
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url );?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
249
  <?php
250
  }
251
  ?>
@@ -272,15 +272,35 @@
272
  {
273
  if(file_exists($fileName)!=false)
274
  {
275
- ?>
276
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
 
 
277
  <?php
 
 
 
 
 
 
 
 
278
  }
279
  else
280
  {
281
- ?>
282
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url );?>" style="margin-left:5px;width: 150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
 
 
 
 
 
 
 
 
283
  <?php
 
 
284
  }
285
  ?>
286
 
@@ -301,15 +321,35 @@
301
  {
302
  if(file_exists($fileName)!=false)
303
  {
304
- ?>
 
 
 
 
 
 
 
 
305
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
306
  <?php
 
 
307
  }
308
  else
309
  {
310
- ?>
311
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
 
 
312
  <?php
 
 
 
 
 
 
 
 
313
  }
314
  ?>
315
 
@@ -402,7 +442,7 @@
402
  else
403
  {
404
  ?>
405
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
406
  <?php
407
  }
408
  ?>
@@ -435,7 +475,7 @@
435
  else
436
  {
437
  ?>
438
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
439
  <?php
440
  }
441
  ?>
@@ -465,15 +505,35 @@
465
  {
466
  if(file_exists($fileName)!=false)
467
  {
468
- ?>
 
 
 
 
 
 
 
 
469
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
470
  <?php
 
 
471
  }
472
  else
473
  {
474
- ?>
475
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
 
 
 
 
 
 
 
 
476
  <?php
 
 
477
  }
478
  ?>
479
 
@@ -495,15 +555,35 @@
495
 
496
  if(file_exists($fileName)!=false)
497
  {
498
- ?>
 
 
 
 
 
 
 
 
499
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
500
  <?php
 
 
501
  }
502
  else
503
  {
504
- ?>
505
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
 
 
 
 
 
 
 
 
506
  <?php
 
 
507
  }
508
  ?>
509
 
@@ -580,7 +660,7 @@
580
  else
581
  {
582
  ?>
583
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
584
  <?php
585
  }
586
  ?>
@@ -614,7 +694,7 @@
614
  else
615
  {
616
  ?>
617
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
618
  <?php
619
  }
620
  ?>
@@ -662,7 +742,7 @@
662
  else
663
  {
664
  ?>
665
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
666
  <?php
667
  }
668
  ?>
@@ -693,7 +773,7 @@
693
  else
694
  {
695
  ?>
696
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
697
  <?php
698
  }
699
  ?>
@@ -787,7 +867,7 @@
787
  else
788
  {
789
  ?>
790
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
791
  <?php
792
  }
793
  ?>
@@ -821,7 +901,7 @@
821
  else
822
  {
823
  ?>
824
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
825
  <?php
826
  }
827
  ?>
@@ -868,7 +948,7 @@
868
  else
869
  {
870
  ?>
871
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
872
  <?php
873
  }
874
  ?>
@@ -899,7 +979,7 @@
899
  else
900
  {
901
  ?>
902
- <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->thumbnail_url ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
903
  <?php
904
  }
905
  ?>
212
  else
213
  {
214
  ?>
215
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path );?>" style="margin-left:5px;width: 150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
216
  <?php
217
  }
218
  ?>
245
  else
246
  {
247
  ?>
248
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path );?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
249
  <?php
250
  }
251
  ?>
272
  {
273
  if(file_exists($fileName)!=false)
274
  {
275
+ if($pic_detail[$flag]->video == 1)
276
+ {
277
+ ?>
278
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
279
  <?php
280
+ }
281
+ else
282
+ {
283
+ ?>
284
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
285
+ <?php
286
+ }
287
+
288
  }
289
  else
290
  {
291
+ if($pic_detail[$flag]->video == 1)
292
+ {
293
+ ?>
294
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width: 150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
295
+ <?php
296
+ }
297
+ else
298
+ {
299
+ ?>
300
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path );?>" style="margin-left:5px;width: 150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
301
  <?php
302
+ }
303
+
304
  }
305
  ?>
306
 
321
  {
322
  if(file_exists($fileName)!=false)
323
  {
324
+ if($pic_detail[$flag]->video == 1)
325
+ {
326
+ ?>
327
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
328
+ <?php
329
+ }
330
+ else
331
+ {
332
+ ?>
333
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
334
  <?php
335
+ }
336
+
337
  }
338
  else
339
  {
340
+ if($pic_detail[$flag]->video == 1)
341
+ {
342
+ ?>
343
+ <img src="<?php echo trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg'));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
344
  <?php
345
+ }
346
+ else
347
+ {
348
+ ?>
349
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
350
+ <?php
351
+ }
352
+
353
  }
354
  ?>
355
 
442
  else
443
  {
444
  ?>
445
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
446
  <?php
447
  }
448
  ?>
475
  else
476
  {
477
  ?>
478
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
479
  <?php
480
  }
481
  ?>
505
  {
506
  if(file_exists($fileName)!=false)
507
  {
508
+ if($pic_detail[$flag]->video == 1)
509
+ {
510
+ ?>
511
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
512
+ <?php
513
+ }
514
+ else
515
+ {
516
+ ?>
517
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
518
  <?php
519
+ }
520
+
521
  }
522
  else
523
  {
524
+ if($pic_detail[$flag]->video == 1)
525
+ {
526
+ ?>
527
+ <img src="<?php echo trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg'));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
528
+ <?php
529
+ }
530
+ else
531
+ {
532
+ ?>
533
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
534
  <?php
535
+ }
536
+
537
  }
538
  ?>
539
 
555
 
556
  if(file_exists($fileName)!=false)
557
  {
558
+ if($pic_detail[$flag]->video == 1)
559
+ {
560
+ ?>
561
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
562
+ <?php
563
+ }
564
+ else
565
+ {
566
+ ?>
567
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;;<?php echo $css_image_thumbnail; ?>" />
568
  <?php
569
+ }
570
+
571
  }
572
  else
573
  {
574
+ if($pic_detail[$flag]->video == 1)
575
+ {
576
+ ?>
577
+ <img src="<?php echo trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg' ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
578
+ <?php
579
+ }
580
+ else
581
+ {
582
+ ?>
583
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
584
  <?php
585
+ }
586
+
587
  }
588
  ?>
589
 
660
  else
661
  {
662
  ?>
663
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
664
  <?php
665
  }
666
  ?>
694
  else
695
  {
696
  ?>
697
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
698
  <?php
699
  }
700
  ?>
742
  else
743
  {
744
  ?>
745
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
746
  <?php
747
  }
748
  ?>
773
  else
774
  {
775
  ?>
776
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
777
  <?php
778
  }
779
  ?>
867
  else
868
  {
869
  ?>
870
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
871
  <?php
872
  }
873
  ?>
901
  else
902
  {
903
  ?>
904
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
905
  <?php
906
  }
907
  ?>
948
  else
949
  {
950
  ?>
951
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
952
  <?php
953
  }
954
  ?>
979
  else
980
  {
981
  ?>
982
+ <img src="<?php echo trim(stripcslashes($pic_detail[$flag]->pic_path ));?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
983
  <?php
984
  }
985
  ?>
views/edit-album.php CHANGED
@@ -65,6 +65,7 @@
65
  <div class="body">
66
  <div class="control-group">
67
  <a class="btn btn-info" id="upload_img_button" href=""><?php _e( "Upload Images to your Album ", gallery_bank ); ?></a>
 
68
  </div>
69
  <div class="control-group">
70
  <input type="checkbox" id="delete_selected" name="delete_selected" style=" cursor: pointer;"/>
@@ -88,51 +89,99 @@
88
  {
89
  ?>
90
  <tr>
91
- <td>
92
- <div class="block" id="<?php echo $pic_detail[$flag]->pic_id; ?>">
93
- <div class="block" style="padding:0px 6px 0px 0px; float: left; width: 2%;">
94
- <input type="checkbox" id="delete_image" name="delete_image" value="<?php echo $pic_detail[$flag]->pic_id; ?>" style="cursor: pointer;"/>
95
- </div>
96
- <div class="block" style="width:30%; float:left" >
97
- <img class="imgHolder" src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url); ?>" style="border:3px solid #e5e5e5; cursor: pointer;" width="150px"/></br>
98
- <a class="imgHolder orange" style="margin-left:20px;" id="del_img" onclick="edit_delete_pic(<?php echo $pic_detail[$flag]->pic_id; ?>);">
99
- <img style="vertical-align:middle; cursor:pointer" src="<?php echo GALLERY_BK_PLUGIN_URL.'/assets/images/icons/color-16/cross.png'?>" alt="">&nbsp;
100
- <span style="vertical-align:middle; cursor:pointer"><?php _e( "Remove Image", gallery_bank);?></span>
101
- </a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  </div>
103
- <div class="block" style="width:66%; float:left;">
104
- <div class="control-group">
105
- <input style="width: 100%" class="span12" type="text" id="ux_edit_title_<?php echo $pic_detail[$flag]->pic_id ;?>" value= "<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)) ;?>" placeholder="<?php _e( "Enter your Image Title", gallery_bank);?>" />
 
 
 
 
 
 
 
106
  </div>
107
- <div class="control-group" style="border-bottom: none !important;">
108
- <textarea style="width: 100%" class="span12" rows="5" id="ux_edit_desc_<?php echo $pic_detail[$flag]->pic_id ;?>" placeholder="<?php _e( "Enter your Image Description", gallery_bank);?>"><?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)) ;?></textarea>
 
 
 
 
109
  </div>
110
- <div class="control-group">
111
- <?php
112
- if($pic_detail[$flag]->check_url == 1)
113
- {
114
- ?>
115
- <input type="checkbox" checked="checked" name="ux_edit_url_chk_<?php echo $pic_detail[$flag]->pic_id ;?>" onclick="chk_url_required();" id="ux_edit_url_chk_<?php echo $pic_detail[$flag]->pic_id ;?>" value="<?php echo $pic_detail[$flag]->check_url; ?>"/>
116
- <label><?php _e(" Url to Redirect on click of an Image", gallery_bank);?></label>
 
117
  <?php
118
- }
119
- else
120
- {
 
 
 
 
 
 
 
 
 
 
 
 
121
  ?>
122
- <input type="checkbox" name="ux_edit_url_chk_<?php echo $pic_detail[$flag]->pic_id ;?>" onclick="chk_url_required();" id="ux_edit_url_chk_<?php echo $pic_detail[$flag]->pic_id ;?>" value="<?php echo $pic_detail[$flag]->check_url; ?>"/>
123
- <label><?php _e(" Url to Redirect on click of an Image", gallery_bank); ?></label>
124
- <?php
125
- }
126
- $domain = str_replace('http://http://', 'http://', $pic_detail[$flag]->url);
127
- ?>
128
- </div>
129
- <div class="control-group" id="check_url_req_<?php echo $pic_detail[$flag]->pic_id ;?>">
130
- <input style="width: 100%" class="span12" type="text" id="ux_edit_url_<?php echo $pic_detail[$flag]->pic_id ;?>" value= "<?php echo $domain;?>" placeholder="<?php _e( "Enter URL", gallery_bank);?>" />
131
  </div>
132
- <input type="hidden" id="hidden_pic_id_<?php echo $pic_detail[$flag]->pic_id; ?>" value="<?php echo $pic_detail[$flag]->pic_id ;?>" />
133
  </div>
134
- </div>
135
- </td>
 
 
136
  </tr>
137
  <?php
138
  }
@@ -749,7 +798,64 @@
749
  </form>
750
  </div>
751
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
752
  <script type="text/javascript">
 
753
  var arr = [];
754
  var ar = [];
755
  var array = [];
@@ -759,6 +865,10 @@
759
  var array_existing = [];
760
  var array_new = [];
761
  var exist_array = [];
 
 
 
 
762
  jQuery(document).ready(function()
763
  {
764
  check_default_settings();
@@ -1063,38 +1173,44 @@
1063
  var uxeditdescription = encodeURIComponent(jQuery('#ux_edit_description').val());
1064
  }
1065
  var count_pic = arr.length;
 
1066
  jQuery.post(ajaxurl, "id="+arr+"&count_pic="+count_pic+"&param=delete_pic&action=album_gallery_library", function(data)
1067
  {
1068
  });
 
 
 
1069
  <?php
1070
  for ($flag = 0; $flag < count($pic_detail); $flag++)
1071
  {
1072
- ?>
1073
- var picId = <?php echo $pic_detail[$flag]->pic_id; ?>;
1074
- var edit_title = "";
1075
- if(encodeURIComponent(jQuery("#ux_edit_title_" + picId).val()) != "undefined")
1076
- {
1077
- edit_title = encodeURIComponent(jQuery("#ux_edit_title_" + picId).val());
1078
- }
1079
- var edit_detail = "";
1080
- if(encodeURIComponent(jQuery("#ux_edit_desc_" + picId).val()) != "undefined")
1081
- {
1082
- edit_detail = encodeURIComponent(jQuery("#ux_edit_desc_" + picId).val());
1083
- }
1084
- var url_path = "";
1085
- if(encodeURIComponent(jQuery("#ux_edit_url_" + picId).val()) != "undefined")
1086
- {
1087
- url_path = encodeURIComponent(jQuery("#ux_edit_url_" + picId).val());
1088
- }
1089
- var id = jQuery("#<?php echo $pic_detail[$flag]->pic_id; ?>").val();
1090
- var chkbox_url = jQuery("#ux_edit_url_chk_<?php echo $pic_detail[$flag]->pic_id; ?>").prop("checked");
1091
- if(typeof id != 'undefined')
1092
  {
1093
- jQuery.post(ajaxurl,"albumId="+albumId+"&picId="+picId+"&edit_title="+edit_title+"&edit_detail="+edit_detail+"&checkbox_url="+chkbox_url+"&edit_url_path="+url_path+"&param=update_pic&action=album_gallery_library", function(data)
 
 
 
 
1094
  {
1095
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1096
  }
1097
- <?php
1098
  }
1099
  ?>
1100
  var cover_image = "";
@@ -1116,25 +1232,15 @@
1116
  {
1117
  var pic_path = array[pics];
1118
  var thumb = thumb_array[pics];
1119
- var pic_title = "";
1120
- if(encodeURIComponent(jQuery("#pic_title_" + ar[pics]).val()) != "undefined")
1121
- {
1122
- pic_title = encodeURIComponent(jQuery("#pic_title_" + ar[pics]).val());
1123
- }
1124
- var pic_detail = "";
1125
- if(encodeURIComponent(jQuery("#pic_des_" + ar[pics]).val()) != "undefined")
1126
- {
1127
- pic_detail = encodeURIComponent(jQuery("#pic_des_" + ar[pics]).val());
1128
- }
1129
- if(encodeURIComponent(jQuery("#pic_url_" + ar[pics]).val()) != "undefined")
1130
- {
1131
- var pic_url1 = encodeURIComponent(jQuery("#pic_url_" + ar[pics]).val());
1132
- }
1133
  var chkbox = jQuery("#chk_url_" +ar[pics]).prop("checked");
1134
  jQuery.post(ajaxurl, "album_id="+albumId+"&title="+pic_title+"&detail="+pic_detail+"&path="+pic_path+"&thumb="+thumb+"&checkbox_url="+chkbox+"&url_path="+pic_url1+"&param=add_pic&action=album_gallery_library", function(data)
1135
  {
1136
  count++;
1137
- if(count == array.length)
 
1138
  {
1139
  setTimeout(function()
1140
  {
@@ -1146,6 +1252,27 @@
1146
  });
1147
  }
1148
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1149
  else
1150
  {
1151
  jQuery('#edit_message').css('display','block');
@@ -1155,7 +1282,6 @@
1155
  window.location.href = "admin.php?page=gallery_bank";
1156
  }, 3000);
1157
  }
1158
-
1159
  });
1160
  }
1161
  });
@@ -1229,7 +1355,7 @@
1229
  }
1230
  }
1231
  var file_frame;
1232
- var images_count = jQuery("#pics_count").val();
1233
  jQuery('#upload_img_button').live('click', function( event ){
1234
  event.preventDefault();
1235
  file_frame = wp.media.frames.file_frame = wp.media({
@@ -1242,8 +1368,7 @@
1242
  file_frame.on( 'select', function() {
1243
  var selection = file_frame.state().get('selection');
1244
  selection.map( function( attachment ) {
1245
- if(images_count < 10)
1246
- {
1247
  attachment = attachment.toJSON();
1248
  var dynamicId = Math.floor((Math.random() * 1000)+1);
1249
  thumb_array.push(attachment.url);
@@ -1288,12 +1413,101 @@
1288
  oTable.fnAddData([tr.html()]);
1289
  array_new.push(dynamicId);
1290
  jQuery('#pic_des_'+dynamicId).attr("placeholder", "<?php _e( "Enter your Image Description", gallery_bank);?>");
1291
- images_count++;
1292
- }
1293
  });
1294
  });
1295
  file_frame.open();
1296
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1297
  function delete_pic(dynamicId)
1298
  {
1299
 
@@ -1310,10 +1524,26 @@
1310
  ar.splice(jQuery.inArray(dynamicId, array_new), 1);
1311
  thumb_array.splice(jQuery.inArray(dynamicId, array_new), 1);
1312
  array_new.splice(jQuery.inArray(dynamicId, array_new), 1);
1313
- images_count--;
1314
- jQuery("#pics_count").val(images_count);
1315
-
 
 
 
 
 
 
 
 
 
 
 
 
1316
 
 
 
 
 
1317
  }
1318
  }
1319
  });
@@ -1332,8 +1562,27 @@
1332
  oTable.fnDeleteRow(index);
1333
  array_existing.splice(index, 1);
1334
  arr.push(pic_id);
1335
- images_count--;
1336
- jQuery("#pics_count").val(images_count);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1337
  }
1338
  }
1339
  });
@@ -1356,7 +1605,7 @@
1356
 
1357
  function delete_selected_images()
1358
  {
1359
- bootbox.confirm("<?php _e( "Are you sure you want to delete these Images", gallery_bank ); ?>", function(confirmed)
1360
  {
1361
  console.log("Confirmed: "+confirmed);
1362
  if(confirmed == true)
@@ -1371,10 +1620,10 @@
1371
  oTable.fnDeleteRow(index);
1372
  array.splice(jQuery.inArray(dynamicId, array_new), 1);
1373
  ar.splice(jQuery.inArray(dynamicId, array_new), 1);
 
1374
  thumb_array.splice(jQuery.inArray(dynamicId, array_new), 1);
1375
  array_new.splice(jQuery.inArray(dynamicId, array_new), 1);
1376
- images_count--;
1377
- jQuery("#pics_count").val(images_count);
1378
  }
1379
  if(jQuery.inArray(dynamicId.toString(), array_existing) > -1)
1380
  {
@@ -1382,8 +1631,7 @@
1382
  oTable.fnDeleteRow(index);
1383
  array_existing.splice(index, 1);
1384
  arr.push(dynamicId);
1385
- images_count--;
1386
- jQuery("#pics_count").val(images_count);
1387
  }
1388
  jQuery('#delete_selected').removeAttr('checked');
1389
  });
65
  <div class="body">
66
  <div class="control-group">
67
  <a class="btn btn-info" id="upload_img_button" href=""><?php _e( "Upload Images to your Album ", gallery_bank ); ?></a>
68
+ <a class="btn btn-info inline" href="#uxDivEditVideo" ><?php _e( "Add Videos to your Album ", gallery_bank ); ?></a>
69
  </div>
70
  <div class="control-group">
71
  <input type="checkbox" id="delete_selected" name="delete_selected" style=" cursor: pointer;"/>
89
  {
90
  ?>
91
  <tr>
92
+ <?php
93
+ if($pic_detail[$flag]->video == 1)
94
+ {
95
+ ?>
96
+ <td>
97
+ <div class="block" id="<?php echo $pic_detail[$flag]->pic_id; ?>">
98
+ <div class="block" style="padding:0px 6px 0px 0px; float: left; width: 2%;">
99
+ <input type="checkbox" id="delete_image" name="delete_image" value="<?php echo $pic_detail[$flag]->pic_id; ?>" style="cursor: pointer;"/>
100
+ </div>
101
+ <div class="block" style="width:30%; float:left" >
102
+ <img class="imgHolder" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg'); ?>" style="border:3px solid #e5e5e5; cursor: pointer;" width="150px"/></br>
103
+ <a class="imgHolder orange" style="margin-left:20px;" id="del_img" onclick="edit_delete_video(<?php echo $pic_detail[$flag]->pic_id; ?>);">
104
+ <img style="vertical-align:middle; cursor:pointer" src="<?php echo GALLERY_BK_PLUGIN_URL.'/assets/images/icons/color-16/cross.png'?>" alt="">&nbsp;
105
+ <span style="vertical-align:middle; cursor:pointer"><?php _e( "Remove Video", gallery_bank);?></span>
106
+ </a>
107
+ </div>
108
+ <div class="block" style="width:66%; float:left;">
109
+ <div class="control-group">
110
+ <select name="ux_edit_video_type_<?php echo $pic_detail[$flag]->pic_id ;?>" id="ux_edit_video_type_<?php echo $pic_detail[$flag]->pic_id ;?>" class="span12">
111
+ <option value="Youtube"><?php _e( "Youtube", gallery_bank ); ?></option>
112
+ <option value="Vimeo"><?php _e( "Vimeo", gallery_bank ); ?></option>
113
+ <option value="DailyMotion"><?php _e( "DailyMotion", gallery_bank ); ?></option>
114
+ <option value="MetaCafe"><?php _e( "MetaCafe", gallery_bank ); ?></option>
115
+ <option value="Veoh"><?php _e( "Veoh", gallery_bank ); ?></option>
116
+ <option value="Flickr video"><?php _e( "Flickr video", gallery_bank ); ?></option>
117
+ <option value="Google_video"><?php _e( "Google video", gallery_bank ); ?></option>
118
+ <option value="Quite_youtube"><?php _e( "Quietube + Youtube", gallery_bank ); ?></option>
119
+ <option value="Quite_vimeo"><?php _e( "Quietube + Vimeo", gallery_bank ); ?></option>
120
+ <option value="Tudou"><?php _e( "Tudou", gallery_bank ); ?></option>
121
+ <option value="YouKu"><?php _e( "YouKu", gallery_bank ); ?></option>
122
+ </select>
123
+ <script> jQuery("#ux_edit_video_type_<?php echo $pic_detail[$flag]->pic_id ;?>").val("<?php echo $pic_detail[$flag]->title; ?>");</script>
124
+ </div>
125
+ <div class="control-group" style="border-bottom: none !important;">
126
+ <input type="text" id="ux_edit_video_url_<?php echo $pic_detail[$flag]->pic_id ;?>" class="span12" name="ux_edit_video_url_<?php echo $pic_detail[$flag]->pic_id ;?>" value="<?php echo $pic_detail[$flag]->pic_path; ?>" />
127
+ </div>
128
+ <input type="hidden" id="hidden_pic_id_<?php echo $pic_detail[$flag]->pic_id; ?>" value="<?php echo $pic_detail[$flag]->pic_id ;?>" />
129
+ </div>
130
  </div>
131
+ </td>
132
+ <?php
133
+ }
134
+ else
135
+ {
136
+ ?>
137
+ <td>
138
+ <div class="block" id="<?php echo $pic_detail[$flag]->pic_id; ?>">
139
+ <div class="block" style="padding:0px 6px 0px 0px; float: left; width: 2%;">
140
+ <input type="checkbox" id="delete_image" name="delete_image" value="<?php echo $pic_detail[$flag]->pic_id; ?>" style="cursor: pointer;"/>
141
  </div>
142
+ <div class="block" style="width:30%; float:left" >
143
+ <img class="imgHolder" src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url); ?>" style="border:3px solid #e5e5e5; cursor: pointer;" width="150px"/></br>
144
+ <a class="imgHolder orange" style="margin-left:20px;" id="del_img" onclick="edit_delete_pic(<?php echo $pic_detail[$flag]->pic_id; ?>);">
145
+ <img style="vertical-align:middle; cursor:pointer" src="<?php echo GALLERY_BK_PLUGIN_URL.'/assets/images/icons/color-16/cross.png'?>" alt="">&nbsp;
146
+ <span style="vertical-align:middle; cursor:pointer"><?php _e( "Remove Image", gallery_bank);?></span>
147
+ </a>
148
  </div>
149
+ <div class="block" style="width:66%; float:left;">
150
+ <div class="control-group">
151
+ <input style="width: 100%" class="span12" type="text" id="ux_edit_title_<?php echo $pic_detail[$flag]->pic_id ;?>" value= "<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)) ;?>" placeholder="<?php _e( "Enter your Image Title", gallery_bank);?>" />
152
+ </div>
153
+ <div class="control-group" style="border-bottom: none !important;">
154
+ <textarea style="width: 100%" class="span12" rows="5" id="ux_edit_desc_<?php echo $pic_detail[$flag]->pic_id ;?>" placeholder="<?php _e( "Enter your Image Description", gallery_bank);?>"><?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)) ;?></textarea>
155
+ </div>
156
+ <div class="control-group">
157
  <?php
158
+ if($pic_detail[$flag]->check_url == 1)
159
+ {
160
+ ?>
161
+ <input type="checkbox" checked="checked" name="ux_edit_url_chk_<?php echo $pic_detail[$flag]->pic_id ;?>" onclick="chk_url_required();" id="ux_edit_url_chk_<?php echo $pic_detail[$flag]->pic_id ;?>" value="<?php echo $pic_detail[$flag]->check_url; ?>"/>
162
+ <label><?php _e(" Url to Redirect on click of an Image", gallery_bank);?></label>
163
+ <?php
164
+ }
165
+ else
166
+ {
167
+ ?>
168
+ <input type="checkbox" name="ux_edit_url_chk_<?php echo $pic_detail[$flag]->pic_id ;?>" onclick="chk_url_required();" id="ux_edit_url_chk_<?php echo $pic_detail[$flag]->pic_id ;?>" value="<?php echo $pic_detail[$flag]->check_url; ?>"/>
169
+ <label><?php _e(" Url to Redirect on click of an Image", gallery_bank); ?></label>
170
+ <?php
171
+ }
172
+ $domain = str_replace('http://http://', 'http://', $pic_detail[$flag]->url);
173
  ?>
174
+ </div>
175
+ <div class="control-group" id="check_url_req_<?php echo $pic_detail[$flag]->pic_id ;?>">
176
+ <input style="width: 100%" class="span12" type="text" id="ux_edit_url_<?php echo $pic_detail[$flag]->pic_id ;?>" value= "<?php echo $domain;?>" placeholder="<?php _e( "Enter URL", gallery_bank);?>" />
177
+ </div>
178
+ <input type="hidden" id="hidden_pic_id_<?php echo $pic_detail[$flag]->pic_id; ?>" value="<?php echo $pic_detail[$flag]->pic_id ;?>" />
 
 
 
 
179
  </div>
 
180
  </div>
181
+ </td>
182
+ <?php
183
+ }
184
+ ?>
185
  </tr>
186
  <?php
187
  }
798
  </form>
799
  </div>
800
  </div>
801
+ <div style="display: none" >
802
+ <div id="uxDivEditVideo" class="block well">
803
+ <div class="navbar">
804
+ <div class="navbar-inner">
805
+ <h5><?php _e( "Add Video", gallery_bank ); ?></h5>
806
+ </div>
807
+ </div>
808
+ <div class="body" style="margin:10px;">
809
+ <form id="ux_edit_video" class="form-horizontal">
810
+ <div class="row-fluid">
811
+ <div class="span12">
812
+ <div class="block well">
813
+ <div class="body">
814
+ <div class="control-group">
815
+ <label class="control-label"><?php _e( "Video Format ", gallery_bank ); ?>:</label>
816
+ <div class = "controls">
817
+ <select name="ux_video_type" id="ux_video_type" class="span12">
818
+ <option value="Youtube"><?php _e( "Youtube", gallery_bank ); ?></option>
819
+ <option value="Vimeo"><?php _e( "Vimeo", gallery_bank ); ?></option>
820
+ <option value="DailyMotion"><?php _e( "DailyMotion", gallery_bank ); ?></option>
821
+ <option value="MetaCafe"><?php _e( "MetaCafe", gallery_bank ); ?></option>
822
+ <option value="Veoh"><?php _e( "Veoh", gallery_bank ); ?></option>
823
+ <option value="Flickr_video"><?php _e( "Flickr video", gallery_bank ); ?></option>
824
+ <option value="Google_video"><?php _e( "Google video", gallery_bank ); ?></option>
825
+ <option value="Quite_youtube"><?php _e( "Quietube + Youtube", gallery_bank ); ?></option>
826
+ <option value="Quite_vimeo"><?php _e( "Quietube + Vimeo", gallery_bank ); ?></option>
827
+ <option value="Tudou"><?php _e( "Tudou", gallery_bank ); ?></option>
828
+ <option value="YouKu"><?php _e( "YouKu", gallery_bank ); ?></option>
829
+ </select>
830
+ </div>
831
+ </div>
832
+ <div class="control-group">
833
+ <label class="control-label"><?php _e( "Video URL ", gallery_bank ); ?>:</label>
834
+ <div class = "controls">
835
+ <input type="text" id="ux_video_url" class="span12" name="ux_video_url" />
836
+ </div>
837
+ </div>
838
+ <div class="control-group" style="border-bottom:none !important">
839
+ <label></label>
840
+ <div class="controls" id="ux_div_submit">
841
+ <!-- <input type="button" class="btn btn-primary" onclick="Upload_video_gallery();" value="<?php _e( "Upload Video", gallery_bank); ?>"/> -->
842
+ <button type="submit" class="btn btn-primary">
843
+ <span>
844
+ <?php _e( "Add Video", gallery_bank); ?>
845
+ </span>
846
+ </button>
847
+ </div>
848
+ </div>
849
+ </div>
850
+ </div>
851
+ </div>
852
+ </div>
853
+ </form>
854
+ </div>
855
+ </div>
856
+ </div>
857
  <script type="text/javascript">
858
+ jQuery(".inline").colorbox({inline:true, width:"700px"});
859
  var arr = [];
860
  var ar = [];
861
  var array = [];
865
  var array_existing = [];
866
  var array_new = [];
867
  var exist_array = [];
868
+ var array_video = [];
869
+ var array_video_dynamicId = [];
870
+ var array_new_video = [];
871
+ var arr_del_video = [];
872
  jQuery(document).ready(function()
873
  {
874
  check_default_settings();
1173
  var uxeditdescription = encodeURIComponent(jQuery('#ux_edit_description').val());
1174
  }
1175
  var count_pic = arr.length;
1176
+ var count_video = arr_del_video.length;
1177
  jQuery.post(ajaxurl, "id="+arr+"&count_pic="+count_pic+"&param=delete_pic&action=album_gallery_library", function(data)
1178
  {
1179
  });
1180
+ jQuery.post(ajaxurl, "id_video="+arr_del_video+"&count_video="+count_video+"&param=delete_videos&action=album_gallery_library", function(data)
1181
+ {
1182
+ });
1183
  <?php
1184
  for ($flag = 0; $flag < count($pic_detail); $flag++)
1185
  {
1186
+ if($pic_detail[$flag]->video == 1)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1187
  {
1188
+ ?>
1189
+ var picId = <?php echo $pic_detail[$flag]->pic_id; ?>;
1190
+ var ux_edit_video_type = jQuery("#ux_edit_video_type_" + picId).val();
1191
+ var ux_edit_video_url = jQuery("#ux_edit_video_url_" + picId).val();
1192
+ jQuery.post(ajaxurl,"albumId="+albumId+"&picId="+picId+"&ux_edit_video_type="+ux_edit_video_type+"&ux_edit_video_url="+ux_edit_video_url+"&param=update_video&action=album_gallery_library", function(data)
1193
  {
1194
  });
1195
+ <?php
1196
+ }
1197
+ else
1198
+ {
1199
+ ?>
1200
+ var picId = <?php echo $pic_detail[$flag]->pic_id; ?>;
1201
+ var edit_title = encodeURIComponent(jQuery("#ux_edit_title_" + picId).val());
1202
+ var edit_detail = encodeURIComponent(jQuery("#ux_edit_desc_" + picId).val());
1203
+ var url_path = encodeURIComponent(jQuery("#ux_edit_url_" + picId).val());
1204
+ var id = jQuery("#<?php echo $pic_detail[$flag]->pic_id; ?>").val();
1205
+ var chkbox_url = jQuery("#ux_edit_url_chk_<?php echo $pic_detail[$flag]->pic_id; ?>").prop("checked");
1206
+ if(typeof id != 'undefined')
1207
+ {
1208
+ jQuery.post(ajaxurl,"albumId="+albumId+"&picId="+picId+"&edit_title="+edit_title+"&edit_detail="+edit_detail+"&checkbox_url="+chkbox_url+"&edit_url_path="+url_path+"&param=update_pic&action=album_gallery_library", function(data)
1209
+ {
1210
+ });
1211
+ }
1212
+ <?php
1213
  }
 
1214
  }
1215
  ?>
1216
  var cover_image = "";
1232
  {
1233
  var pic_path = array[pics];
1234
  var thumb = thumb_array[pics];
1235
+ var pic_title = encodeURIComponent(jQuery("#pic_title_" + ar[pics]).val());
1236
+ var pic_detail = encodeURIComponent(jQuery("#pic_des_" + ar[pics]).val());
1237
+ var pic_url1 = encodeURIComponent(jQuery("#pic_url_" + ar[pics]).val());
 
 
 
 
 
 
 
 
 
 
 
1238
  var chkbox = jQuery("#chk_url_" +ar[pics]).prop("checked");
1239
  jQuery.post(ajaxurl, "album_id="+albumId+"&title="+pic_title+"&detail="+pic_detail+"&path="+pic_path+"&thumb="+thumb+"&checkbox_url="+chkbox+"&url_path="+pic_url1+"&param=add_pic&action=album_gallery_library", function(data)
1240
  {
1241
  count++;
1242
+ jQuery('#edit_message').css('display','block');
1243
+ if(count == parseInt(array_video.length)+parseInt(array.length))
1244
  {
1245
  setTimeout(function()
1246
  {
1252
  });
1253
  }
1254
  }
1255
+ if(array_video.length > 0)
1256
+ {
1257
+ for(video = 0; video < array_video.length; video++)
1258
+ {
1259
+ var select_video_format = jQuery("#video_format_type_" + array_video_dynamicId[video]).val();
1260
+ var video_url = array_video[video];
1261
+ jQuery.post(ajaxurl, "album_id="+albumId+"&select_video_format="+select_video_format+"&video_url="+video_url+"&param=add_video&action=album_gallery_library", function(data)
1262
+ {
1263
+ count++;
1264
+ jQuery('#message').css('display','block');
1265
+ if(count == parseInt(array_video.length) + parseInt(array.length))
1266
+ {
1267
+ setTimeout(function()
1268
+ {
1269
+ jQuery('#message').css('display','none');
1270
+ window.location.href = "admin.php?page=gallery_bank";
1271
+ }, 2000);
1272
+ }
1273
+ });
1274
+ }
1275
+ }
1276
  else
1277
  {
1278
  jQuery('#edit_message').css('display','block');
1282
  window.location.href = "admin.php?page=gallery_bank";
1283
  }, 3000);
1284
  }
 
1285
  });
1286
  }
1287
  });
1355
  }
1356
  }
1357
  var file_frame;
1358
+
1359
  jQuery('#upload_img_button').live('click', function( event ){
1360
  event.preventDefault();
1361
  file_frame = wp.media.frames.file_frame = wp.media({
1368
  file_frame.on( 'select', function() {
1369
  var selection = file_frame.state().get('selection');
1370
  selection.map( function( attachment ) {
1371
+
 
1372
  attachment = attachment.toJSON();
1373
  var dynamicId = Math.floor((Math.random() * 1000)+1);
1374
  thumb_array.push(attachment.url);
1413
  oTable.fnAddData([tr.html()]);
1414
  array_new.push(dynamicId);
1415
  jQuery('#pic_des_'+dynamicId).attr("placeholder", "<?php _e( "Enter your Image Description", gallery_bank);?>");
1416
+
1417
+
1418
  });
1419
  });
1420
  file_frame.open();
1421
  });
1422
+ jQuery("#ux_edit_video").validate
1423
+ ({
1424
+ rules:
1425
+ {
1426
+ ux_video_type: "required",
1427
+ ux_video_url:
1428
+ {
1429
+ required: true
1430
+
1431
+ },
1432
+
1433
+ },
1434
+ highlight: function(label)
1435
+ {
1436
+ if(jQuery(label).closest('.control-group').hasClass('success'))
1437
+ {
1438
+ jQuery.colorbox.resize();
1439
+ jQuery(label).closest('.control-group').removeClass('success');
1440
+ }
1441
+ jQuery(label).closest('.control-group').addClass('errors');
1442
+ jQuery.colorbox.resize();
1443
+ },
1444
+ submitHandler: function(form)
1445
+ {
1446
+ var ux_video_format = jQuery("#ux_video_type").val();
1447
+ var ux_video_url = jQuery("#ux_video_url").val();
1448
+ var ux_video_static_img = "<?php echo GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg'; ?>";
1449
+ var option_string =
1450
+ {
1451
+ 'Youtube': 'Youtube',
1452
+ 'Vimeo': 'Vimeo',
1453
+ 'DailyMotion': 'DailyMotion',
1454
+ 'MetaCafe': 'MetaCafe',
1455
+ 'Veoh': 'Veoh',
1456
+ 'Flickr_video': 'Flickr video',
1457
+ 'Google_video': 'Google video',
1458
+ 'Quite_youtube': 'Quietube + Youtube',
1459
+ 'Quite_vimeo': 'Quietube + Vimeo',
1460
+ 'Tudou':'Tudou',
1461
+ 'YouKu':'YouKu'
1462
+ }
1463
+ var dynamicId = Math.floor((Math.random() * 1000)+1);
1464
+ array_video.push(ux_video_url);
1465
+ array_video_dynamicId.push(dynamicId);
1466
+ var tr = jQuery("<tr></tr>");
1467
+ var td = jQuery("<td></td>");
1468
+ var main_div = jQuery("<div class=\"block\" id=\""+dynamicId+"\" >");
1469
+ var div = jQuery("<div class=\"block\" style=\"padding:6px 6px 0 0; width:2%; float:left\">");
1470
+ var checkbox = jQuery("<input type=\"checkbox\" value=\""+dynamicId+"\" style=\"cursor: pointer;\"/>");
1471
+ div.append(checkbox);
1472
+ div.append("</div>");
1473
+ td.append(div);
1474
+ var block = jQuery("<div class=\"block\" style=\"width:30%;float:left\">");
1475
+ var img = jQuery("<img class=\"imgHolder\" style=\"border:2px solid #e5e5e5;margin-top:10px;cursor: pointer;\" id=\"up_img\"/>");
1476
+ img.attr('src',ux_video_static_img);
1477
+ img.attr('width', '150px');
1478
+ block.append(img);
1479
+ var del = jQuery("<br/><a class=\"imgHolder orange\" style=\"margin-left: 20px;cursor: pointer;\" id=\"del_img\" onclick=\"delete_video("+dynamicId+")\"><img style=\"cursor: pointer;vertical-align:middle;\" src=\"<?php echo GALLERY_BK_PLUGIN_URL.'/assets/images/icons/color-16/cross.png'?>\">&nbsp; <span style=\"cursor: pointer;vertical-align:middle;\"><?php _e("Remove Video",gallery_bank);?></span></a>");
1480
+ block.append(del);
1481
+ block.append("</div>");
1482
+ td.append(block);
1483
+ var block1 = jQuery("<div class=\"block\" style=\"width:66%;float:left\">");
1484
+ var box = jQuery("<div class=\"control-group\">");
1485
+ var drop_down_list = jQuery("<select class=\"span12\" name=\"video_format_type_"+dynamicId+"\" id=\"video_format_type_"+dynamicId+"\" ></select>");
1486
+ for(var val in option_string)
1487
+ {
1488
+ jQuery('<option />', {value: val, text: option_string[val]}).appendTo(drop_down_list);
1489
+ }
1490
+ box.append(drop_down_list);
1491
+ box.append("</div>");
1492
+ block1.append(box);
1493
+ var text = jQuery("<div class=\"control-group\"><textarea id=\"video_url_link_"+dynamicId+"\" rows=\"5\" style=\"width=150%\" class=\"span12\">"+ux_video_url+"</textarea></div>");
1494
+ block1.append(text);
1495
+ block1.append("</div>");
1496
+ main_div.append(div);
1497
+ main_div.append(block);
1498
+ main_div.append(block1);
1499
+ main_div.append("</div>");
1500
+ td.append(main_div);
1501
+ tr.append(td);
1502
+ oTable = jQuery('#edit-album-data-table').dataTable();
1503
+ oTable.fnAddData([tr.html()]);
1504
+ array_new_video.push(dynamicId);
1505
+ jQuery("#video_format_type_"+dynamicId).val(ux_video_format);
1506
+ jQuery.colorbox.close();
1507
+ jQuery("#ux_video_type").val("");
1508
+ jQuery("#ux_video_url").val("");
1509
+ }
1510
+ });
1511
  function delete_pic(dynamicId)
1512
  {
1513
 
1524
  ar.splice(jQuery.inArray(dynamicId, array_new), 1);
1525
  thumb_array.splice(jQuery.inArray(dynamicId, array_new), 1);
1526
  array_new.splice(jQuery.inArray(dynamicId, array_new), 1);
1527
+ }
1528
+ }
1529
+ });
1530
+ }
1531
+ function delete_video(dynamicId)
1532
+ {
1533
+
1534
+ bootbox.confirm("<?php _e( "Are you sure you want to delete this Video?", gallery_bank ); ?>", function(confirmed)
1535
+ {
1536
+ console.log("Confirmed: "+confirmed);
1537
+ if(confirmed == true)
1538
+ {
1539
+ if(jQuery.inArray(dynamicId, array_new_video) > -1)
1540
+ {
1541
+ var index = parseInt(jQuery.inArray(dynamicId, array_new_video)) + parseInt(array_existing.length);
1542
 
1543
+ oTable = jQuery('#edit-album-data-table').dataTable();
1544
+ oTable.fnDeleteRow(index);
1545
+ array_video_dynamicId.splice(jQuery.inArray(dynamicId, array_new_video), 1);
1546
+ array_new_video.splice(jQuery.inArray(dynamicId, array_new_video), 1);
1547
  }
1548
  }
1549
  });
1562
  oTable.fnDeleteRow(index);
1563
  array_existing.splice(index, 1);
1564
  arr.push(pic_id);
1565
+
1566
+ }
1567
+ }
1568
+ });
1569
+ }
1570
+ function edit_delete_video(pic_id)
1571
+ {
1572
+ bootbox.confirm("<?php _e("Are you sure you want to delete this Video?", gallery_bank); ?>", function(confirmed)
1573
+ {
1574
+ console.log("Confirmed: "+confirmed);
1575
+ if(confirmed == true)
1576
+ {
1577
+ if(jQuery.inArray(pic_id.toString(), array_existing) > -1)
1578
+ {
1579
+ var index = jQuery.inArray(pic_id.toString(), array_existing);
1580
+
1581
+ oTable = jQuery('#edit-album-data-table').dataTable();
1582
+ oTable.fnDeleteRow(index);
1583
+ array_existing.splice(index, 1);
1584
+ arr_del_video.push(pic_id);
1585
+
1586
  }
1587
  }
1588
  });
1605
 
1606
  function delete_selected_images()
1607
  {
1608
+ bootbox.confirm("<?php _e( "Are you sure you want to delete all Images and Videos", gallery_bank ); ?>", function(confirmed)
1609
  {
1610
  console.log("Confirmed: "+confirmed);
1611
  if(confirmed == true)
1620
  oTable.fnDeleteRow(index);
1621
  array.splice(jQuery.inArray(dynamicId, array_new), 1);
1622
  ar.splice(jQuery.inArray(dynamicId, array_new), 1);
1623
+ array_video_dynamicId.splice(jQuery.inArray(dynamicId, array_new), 1);
1624
  thumb_array.splice(jQuery.inArray(dynamicId, array_new), 1);
1625
  array_new.splice(jQuery.inArray(dynamicId, array_new), 1);
1626
+
 
1627
  }
1628
  if(jQuery.inArray(dynamicId.toString(), array_existing) > -1)
1629
  {
1631
  oTable.fnDeleteRow(index);
1632
  array_existing.splice(index, 1);
1633
  arr.push(dynamicId);
1634
+ arr_del_video.push(dynamicId);
 
1635
  }
1636
  jQuery('#delete_selected').removeAttr('checked');
1637
  });
views/front_view.php CHANGED
@@ -122,7 +122,7 @@
122
  $radius_for_shutter = "border-radius:" . $image_radius_value[1]. ";-moz-border-radius:" . $image_radius_value[1]. ";-webkit-border-radius:" . $image_radius_value[1]. ";-khtml-border-radius:" . $image_radius_value[1]. ";-o-border-radius:" . $image_radius_value[1];
123
  }
124
  else
125
- {
126
  $default_height = 151 + (0) . "px;" . "border-radius:" . $image_radius_value[1]. ";-moz-border-radius:" . $image_radius_value[1]. ";-webkit-border-radius:" . $image_radius_value[1]. ";-khtml-border-radius:" . $image_radius_value[1]. ";-o-border-radius:" . $image_radius_value[1] . ";";
127
  $default_width = 155 + (0) . "px;" ."border-radius:" . $image_radius_value[1]. ";-moz-border-radius:" . $image_radius_value[1]. ";-webkit-border-radius:" . $image_radius_value[1]. ";-khtml-border-radius:" . $image_radius_value[1]. ";-o-border-radius:" . $image_radius_value[1] . ";";
128
  $custom_height = $image_height[1] + 1 + (0) . "px;" . "border-radius:" . $image_radius_value[1]. ";-moz-border-radius:" . $image_radius_value[1]. ";-webkit-border-radius:" . $image_radius_value[1]. ";-khtml-border-radius:" . $image_radius_value[1]. ";-o-border-radius:" . $image_radius_value[1] . ";";
@@ -145,8 +145,10 @@
145
  $css_image_thumbnail = "border:" . $image_border_size_value[1]. " solid " . $border_color[1] . ";border-radius:" . $image_radius_value[1]. ";-moz-border-radius:" . $image_radius_value[1]. ";-webkit-border-radius:" . $image_radius_value[1]. ";-khtml-border-radius:" . $image_radius_value[1]. ";-o-border-radius:" . $image_radius_value[1].";opacity:".$image_opacity[1].";filter:alpha(opacity=".$image_opacity[1] * 100 . ");-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=".$image_opacity[1] * 100 . ")';-moz-opacity:" . $image_opacity[1] . ";-khtml-opacity:".$image_opacity[1]. ";";
146
  if($pic_detail[$flag]->description == "")
147
  {
 
148
  if(($flag % $images_in_row[1] == 0) && $flag != 0)
149
  {
 
150
  ?>
151
  </br>
152
  <?php
@@ -197,7 +199,7 @@
197
  else
198
  {
199
  ?>
200
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
201
  <?php
202
  }
203
  ?>
@@ -229,7 +231,7 @@
229
  else
230
  {
231
  ?>
232
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
233
  <?php
234
  }
235
  ?>
@@ -254,17 +256,38 @@
254
  <?php
255
  if($image_content[1] == 1)
256
  {
 
257
  if(file_exists($fileName)!=false)
258
  {
259
- ?>
260
- <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;<?php echo $css_image_thumbnail; ?>" />
261
- <?php
 
 
 
 
 
 
 
 
 
 
262
  }
263
  else
264
  {
265
- ?>
266
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
 
 
 
 
 
 
 
 
267
  <?php
 
 
268
  }
269
  ?>
270
 
@@ -286,15 +309,35 @@
286
 
287
  if(file_exists($fileName)!=false)
288
  {
289
- ?>
 
 
 
 
 
 
 
 
290
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;<?php echo $css_image_thumbnail; ?>" />
291
  <?php
 
 
292
  }
293
  else
294
  {
295
- ?>
296
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
 
 
 
 
 
 
 
 
297
  <?php
 
 
298
  }
299
  ?>
300
 
@@ -385,7 +428,7 @@
385
  else
386
  {
387
  ?>
388
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
389
  <?php
390
  }
391
  ?>
@@ -417,7 +460,7 @@
417
  else
418
  {
419
  ?>
420
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
421
  <?php
422
  }
423
  ?>
@@ -447,15 +490,35 @@
447
 
448
  if(file_exists($fileName)!=false)
449
  {
450
- ?>
 
 
 
 
 
 
 
 
451
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;<?php echo $css_image_thumbnail; ?>" />
452
  <?php
 
 
453
  }
454
  else
455
  {
456
- ?>
457
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
 
 
 
 
 
 
 
 
458
  <?php
 
 
459
  }
460
  ?>
461
 
@@ -475,17 +538,37 @@
475
  else
476
  {
477
 
478
- if(file_exists($fileName)!=false)
479
  {
480
- ?>
 
 
 
 
 
 
 
 
481
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;<?php echo $css_image_thumbnail; ?>" />
482
  <?php
 
 
483
  }
484
  else
485
  {
486
- ?>
487
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
 
 
 
 
 
 
 
 
488
  <?php
 
 
489
  }
490
  ?>
491
 
@@ -509,6 +592,7 @@
509
  }
510
  else
511
  {
 
512
  if(($flag % $images_in_row[1] == 0) && $flag != 0)
513
  {
514
  ?>
@@ -560,7 +644,7 @@
560
  else
561
  {
562
  ?>
563
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
564
  <?php
565
  }
566
  ?>
@@ -592,7 +676,7 @@
592
  else
593
  {
594
  ?>
595
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
596
  <?php
597
  }
598
  ?>
@@ -624,7 +708,7 @@
624
  ?>
625
  <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?> (<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)); ?>)">
626
  <?php
627
- }
628
 
629
  if($image_content[1] == 1)
630
  {
@@ -639,7 +723,7 @@
639
  else
640
  {
641
  ?>
642
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
643
  <?php
644
  }
645
  ?>
@@ -670,7 +754,7 @@
670
  else
671
  {
672
  ?>
673
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
674
  <?php
675
  }
676
  ?>
@@ -762,7 +846,7 @@
762
  else
763
  {
764
  ?>
765
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
766
  <?php
767
  }
768
  ?>
@@ -794,7 +878,7 @@
794
  else
795
  {
796
  ?>
797
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
798
  <?php
799
  }
800
  ?>
@@ -826,7 +910,7 @@
826
  ?>
827
  <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?> (<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)); ?>)">
828
  <?php
829
- }
830
 
831
  if($image_content[1] == 1)
832
  {
@@ -840,7 +924,7 @@
840
  else
841
  {
842
  ?>
843
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
844
  <?php
845
  }
846
  ?>
@@ -871,7 +955,7 @@
871
  else
872
  {
873
  ?>
874
- <img src="<?php echo stripcslashes($pic_detail[$flag]->thumbnail_url);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
875
  <?php
876
  }
877
  ?>
@@ -925,8 +1009,8 @@
925
  $interval = 10000 * 1000 ;
926
  }
927
  else
928
- {
929
- $interval = $slide_interval[1] * 1000;
930
  }
931
  ?>
932
 
@@ -935,18 +1019,18 @@
935
  //interval : "<php echo $interval; ?>",
936
  //autoPlay: "<php echo $autoplay; ?>",
937
  beforeShow: function(){
938
- jQuery(".lightbox-skin").css("background","<?php echo $lightbox_inline_bg_color[1]; ?>");
939
  jQuery(".lightbox-overlay").css("background","<?php echo $litebox_bg_color_with_opacity; ?>");
940
  jQuery(".lightbox-wrap").css("border-radius","<?php echo $overlay_border_radius[1]; ?>");
941
  jQuery(".lightbox-wrap").css("-moz-border-radius","<?php echo $overlay_border_radius[1]; ?>");
942
  jQuery(".lightbox-wrap").css("-webkit-border-radius","<?php echo $overlay_border_radius[1]; ?>");
943
  jQuery(".lightbox-wrap").css("-khtml-border-radius","<?php echo $overlay_border_radius[1]; ?>");
944
- jQuery(".lightbox-wrap").css("-o-border-radius","<?php echo $overlay_border_radius[1]; ?>");
945
  jQuery(".lightbox-wrap").css("border","<?php echo $lightbox_bg_color_value;?>");
946
  },
947
  afterShow : function()
948
  {
949
- jQuery(".lightbox-title").css("color","<?php echo $lightbox_text_color[1]; ?>");
950
  }
951
  });
952
 
122
  $radius_for_shutter = "border-radius:" . $image_radius_value[1]. ";-moz-border-radius:" . $image_radius_value[1]. ";-webkit-border-radius:" . $image_radius_value[1]. ";-khtml-border-radius:" . $image_radius_value[1]. ";-o-border-radius:" . $image_radius_value[1];
123
  }
124
  else
125
+ {
126
  $default_height = 151 + (0) . "px;" . "border-radius:" . $image_radius_value[1]. ";-moz-border-radius:" . $image_radius_value[1]. ";-webkit-border-radius:" . $image_radius_value[1]. ";-khtml-border-radius:" . $image_radius_value[1]. ";-o-border-radius:" . $image_radius_value[1] . ";";
127
  $default_width = 155 + (0) . "px;" ."border-radius:" . $image_radius_value[1]. ";-moz-border-radius:" . $image_radius_value[1]. ";-webkit-border-radius:" . $image_radius_value[1]. ";-khtml-border-radius:" . $image_radius_value[1]. ";-o-border-radius:" . $image_radius_value[1] . ";";
128
  $custom_height = $image_height[1] + 1 + (0) . "px;" . "border-radius:" . $image_radius_value[1]. ";-moz-border-radius:" . $image_radius_value[1]. ";-webkit-border-radius:" . $image_radius_value[1]. ";-khtml-border-radius:" . $image_radius_value[1]. ";-o-border-radius:" . $image_radius_value[1] . ";";
145
  $css_image_thumbnail = "border:" . $image_border_size_value[1]. " solid " . $border_color[1] . ";border-radius:" . $image_radius_value[1]. ";-moz-border-radius:" . $image_radius_value[1]. ";-webkit-border-radius:" . $image_radius_value[1]. ";-khtml-border-radius:" . $image_radius_value[1]. ";-o-border-radius:" . $image_radius_value[1].";opacity:".$image_opacity[1].";filter:alpha(opacity=".$image_opacity[1] * 100 . ");-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=".$image_opacity[1] * 100 . ")';-moz-opacity:" . $image_opacity[1] . ";-khtml-opacity:".$image_opacity[1]. ";";
146
  if($pic_detail[$flag]->description == "")
147
  {
148
+
149
  if(($flag % $images_in_row[1] == 0) && $flag != 0)
150
  {
151
+
152
  ?>
153
  </br>
154
  <?php
199
  else
200
  {
201
  ?>
202
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
203
  <?php
204
  }
205
  ?>
231
  else
232
  {
233
  ?>
234
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
235
  <?php
236
  }
237
  ?>
256
  <?php
257
  if($image_content[1] == 1)
258
  {
259
+
260
  if(file_exists($fileName)!=false)
261
  {
262
+ if($pic_detail[$flag]->video == 1)
263
+ {
264
+ ?>
265
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;<?php echo $css_image_thumbnail; ?>" />
266
+ <?php
267
+ }
268
+ else
269
+ {
270
+ ?>
271
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;<?php echo $css_image_thumbnail; ?>" />
272
+ <?php
273
+ }
274
+
275
  }
276
  else
277
  {
278
+ if($pic_detail[$flag]->video == 1)
279
+ {
280
+ ?>
281
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
282
+ <?php
283
+ }
284
+ else
285
+ {
286
+ ?>
287
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
288
  <?php
289
+ }
290
+
291
  }
292
  ?>
293
 
309
 
310
  if(file_exists($fileName)!=false)
311
  {
312
+ if($pic_detail[$flag]->video == 1)
313
+ {
314
+ ?>
315
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;<?php echo $css_image_thumbnail; ?>" />
316
+ <?php
317
+ }
318
+ else
319
+ {
320
+ ?>
321
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;<?php echo $css_image_thumbnail; ?>" />
322
  <?php
323
+ }
324
+
325
  }
326
  else
327
  {
328
+ if($pic_detail[$flag]->video == 1)
329
+ {
330
+ ?>
331
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
332
+ <?php
333
+ }
334
+ else
335
+ {
336
+ ?>
337
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
338
  <?php
339
+ }
340
+
341
  }
342
  ?>
343
 
428
  else
429
  {
430
  ?>
431
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
432
  <?php
433
  }
434
  ?>
460
  else
461
  {
462
  ?>
463
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
464
  <?php
465
  }
466
  ?>
490
 
491
  if(file_exists($fileName)!=false)
492
  {
493
+ if($pic_detail[$flag]->video == 1)
494
+ {
495
+ ?>
496
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;<?php echo $css_image_thumbnail; ?>" />
497
+ <?php
498
+ }
499
+ else
500
+ {
501
+ ?>
502
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin-left:5px;<?php echo $css_image_thumbnail; ?>" />
503
  <?php
504
+ }
505
+
506
  }
507
  else
508
  {
509
+ if($pic_detail[$flag]->video == 1)
510
+ {
511
+ ?>
512
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
513
+ <?php
514
+ }
515
+ else
516
+ {
517
+ ?>
518
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
519
  <?php
520
+ }
521
+
522
  }
523
  ?>
524
 
538
  else
539
  {
540
 
541
+ if(file_exists($fileName)!=false)
542
  {
543
+ if($pic_detail[$flag]->video == 1)
544
+ {
545
+ ?>
546
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;<?php echo $css_image_thumbnail; ?>" />
547
+ <?php
548
+ }
549
+ else
550
+ {
551
+ ?>
552
  <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin-left:5px;<?php echo $css_image_thumbnail; ?>" />
553
  <?php
554
+ }
555
+
556
  }
557
  else
558
  {
559
+ if($pic_detail[$flag]->video == 1)
560
+ {
561
+ ?>
562
+ <img src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
563
+ <?php
564
+ }
565
+ else
566
+ {
567
+ ?>
568
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
569
  <?php
570
+ }
571
+
572
  }
573
  ?>
574
 
592
  }
593
  else
594
  {
595
+
596
  if(($flag % $images_in_row[1] == 0) && $flag != 0)
597
  {
598
  ?>
644
  else
645
  {
646
  ?>
647
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
648
  <?php
649
  }
650
  ?>
676
  else
677
  {
678
  ?>
679
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
680
  <?php
681
  }
682
  ?>
708
  ?>
709
  <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?> (<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)); ?>)">
710
  <?php
711
+ }
712
 
713
  if($image_content[1] == 1)
714
  {
723
  else
724
  {
725
  ?>
726
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
727
  <?php
728
  }
729
  ?>
754
  else
755
  {
756
  ?>
757
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
758
  <?php
759
  }
760
  ?>
846
  else
847
  {
848
  ?>
849
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
850
  <?php
851
  }
852
  ?>
878
  else
879
  {
880
  ?>
881
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
882
  <?php
883
  }
884
  ?>
910
  ?>
911
  <a class="titan-lb_<?php echo $unique_id;?>" data-titan-lightbox="on" data-titan-group="gallery" href="<?php echo stripcslashes($pic_detail[$flag]->pic_path); ?>" title="<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->title)); ?> (<?php echo stripcslashes(htmlspecialchars($pic_detail[$flag]->description)); ?>)">
912
  <?php
913
+ }
914
 
915
  if($image_content[1] == 1)
916
  {
924
  else
925
  {
926
  ?>
927
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:150;height:155px;<?php echo $css_image_thumbnail; ?>" />
928
  <?php
929
  }
930
  ?>
955
  else
956
  {
957
  ?>
958
+ <img src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin-left:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
959
  <?php
960
  }
961
  ?>
1009
  $interval = 10000 * 1000 ;
1010
  }
1011
  else
1012
+ {
1013
+ $interval = $slide_interval[1] * 1000;
1014
  }
1015
  ?>
1016
 
1019
  //interval : "<php echo $interval; ?>",
1020
  //autoPlay: "<php echo $autoplay; ?>",
1021
  beforeShow: function(){
1022
+ jQuery(".lightbox-skin").css("background","<?php echo $lightbox_inline_bg_color[1]; ?>");
1023
  jQuery(".lightbox-overlay").css("background","<?php echo $litebox_bg_color_with_opacity; ?>");
1024
  jQuery(".lightbox-wrap").css("border-radius","<?php echo $overlay_border_radius[1]; ?>");
1025
  jQuery(".lightbox-wrap").css("-moz-border-radius","<?php echo $overlay_border_radius[1]; ?>");
1026
  jQuery(".lightbox-wrap").css("-webkit-border-radius","<?php echo $overlay_border_radius[1]; ?>");
1027
  jQuery(".lightbox-wrap").css("-khtml-border-radius","<?php echo $overlay_border_radius[1]; ?>");
1028
+ jQuery(".lightbox-wrap").css("-o-border-radius","<?php echo $overlay_border_radius[1]; ?>");
1029
  jQuery(".lightbox-wrap").css("border","<?php echo $lightbox_bg_color_value;?>");
1030
  },
1031
  afterShow : function()
1032
  {
1033
+ jQuery(".lightbox-title").css("color","<?php echo $lightbox_text_color[1]; ?>");
1034
  }
1035
  });
1036
 
views/images_sorting.php CHANGED
@@ -130,15 +130,35 @@
130
  {
131
  if(file_exists($fileName)!=false)
132
  {
 
 
133
  ?>
134
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
135
  <?php
 
 
 
 
 
 
 
 
136
  }
137
  else
138
  {
139
- ?>
140
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
 
 
141
  <?php
 
 
 
 
 
 
 
 
142
  }
143
 
144
  }
@@ -146,15 +166,35 @@
146
  {
147
  if(file_exists($fileName)!=false)
148
  {
149
- ?>
150
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
 
 
151
  <?php
 
 
 
 
 
 
 
 
152
  }
153
  else
154
  {
155
- ?>
156
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
 
 
157
  <?php
 
 
 
 
 
 
 
 
158
  }
159
 
160
  }
@@ -168,15 +208,37 @@
168
  {
169
  if(file_exists($fileName)!=false)
170
  {
 
 
 
171
  ?>
 
 
 
 
 
 
172
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
173
  <?php
 
 
 
174
  }
175
  else
176
  {
177
- ?>
178
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
 
 
179
  <?php
 
 
 
 
 
 
 
 
180
  }
181
 
182
  }
@@ -184,15 +246,36 @@
184
  {
185
  if(file_exists($fileName)!=false)
186
  {
187
- ?>
 
 
 
 
 
 
 
 
188
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
189
  <?php
 
 
 
190
  }
191
  else
192
  {
193
- ?>
194
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
 
 
195
  <?php
 
 
 
 
 
 
 
 
196
  }
197
 
198
  }
@@ -210,15 +293,35 @@
210
  {
211
  if(file_exists($fileName)!=false)
212
  {
213
- ?>
214
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
 
 
215
  <?php
 
 
 
 
 
 
 
 
216
  }
217
  else
218
  {
219
- ?>
 
 
 
 
 
 
 
 
220
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
221
  <?php
 
 
222
  }
223
 
224
  }
@@ -226,15 +329,35 @@
226
  {
227
  if(file_exists($fileName)!=false)
228
  {
229
- ?>
230
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
 
 
231
  <?php
 
 
 
 
 
 
 
 
232
  }
233
  else
234
  {
235
- ?>
236
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
 
 
237
  <?php
 
 
 
 
 
 
 
 
238
  }
239
 
240
  }
@@ -250,15 +373,35 @@
250
  {
251
  if(file_exists($fileName)!=false)
252
  {
253
- ?>
254
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
 
 
255
  <?php
 
 
 
 
 
 
 
 
256
  }
257
  else
258
  {
259
- ?>
260
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
 
 
261
  <?php
 
 
 
 
 
 
 
 
262
  }
263
 
264
  }
@@ -266,15 +409,35 @@
266
  {
267
  if(file_exists($fileName)!=false)
268
  {
269
- ?>
 
 
 
 
 
 
 
 
270
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
271
  <?php
 
 
272
  }
273
  else
274
  {
275
- ?>
276
- <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
 
 
277
  <?php
 
 
 
 
 
 
 
 
278
  }
279
 
280
  }
130
  {
131
  if(file_exists($fileName)!=false)
132
  {
133
+ if($pic_detail[$flag]->video == 1)
134
+ {
135
  ?>
136
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
137
  <?php
138
+ }
139
+ else
140
+ {
141
+ ?>
142
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
143
+ <?php
144
+ }
145
+
146
  }
147
  else
148
  {
149
+ if($pic_detail[$flag]->video == 1)
150
+ {
151
+ ?>
152
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
153
  <?php
154
+ }
155
+ else
156
+ {
157
+ ?>
158
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
159
+ <?php
160
+ }
161
+
162
  }
163
 
164
  }
166
  {
167
  if(file_exists($fileName)!=false)
168
  {
169
+ if($pic_detail[$flag]->video == 1)
170
+ {
171
+ ?>
172
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
173
  <?php
174
+ }
175
+ else
176
+ {
177
+ ?>
178
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
179
+ <?php
180
+ }
181
+
182
  }
183
  else
184
  {
185
+ if($pic_detail[$flag]->video == 1)
186
+ {
187
+ ?>
188
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
189
  <?php
190
+ }
191
+ else
192
+ {
193
+ ?>
194
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
195
+ <?php
196
+ }
197
+
198
  }
199
 
200
  }
208
  {
209
  if(file_exists($fileName)!=false)
210
  {
211
+ if($pic_detail[$flag]->video == 1)
212
+ {
213
+
214
  ?>
215
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
216
+ <?php
217
+ }
218
+ else
219
+ {
220
+ ?>
221
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
222
  <?php
223
+ }
224
+
225
+
226
  }
227
  else
228
  {
229
+ if($pic_detail[$flag]->video == 1)
230
+ {
231
+ ?>
232
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
233
  <?php
234
+ }
235
+ else
236
+ {
237
+ ?>
238
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
239
+ <?php
240
+ }
241
+
242
  }
243
 
244
  }
246
  {
247
  if(file_exists($fileName)!=false)
248
  {
249
+ if($pic_detail[$flag]->video == 1)
250
+ {
251
+ ?>
252
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
253
+ <?php
254
+ }
255
+ else
256
+ {
257
+ ?>
258
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
259
  <?php
260
+ }
261
+
262
+
263
  }
264
  else
265
  {
266
+ if($pic_detail[$flag]->video == 1)
267
+ {
268
+ ?>
269
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
270
  <?php
271
+ }
272
+ else
273
+ {
274
+ ?>
275
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
276
+ <?php
277
+ }
278
+
279
  }
280
 
281
  }
293
  {
294
  if(file_exists($fileName)!=false)
295
  {
296
+ if($pic_detail[$flag]->video == 1)
297
+ {
298
+ ?>
299
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
300
  <?php
301
+ }
302
+ else
303
+ {
304
+ ?>
305
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
306
+ <?php
307
+ }
308
+
309
  }
310
  else
311
  {
312
+ if($pic_detail[$flag]->video == 1)
313
+ {
314
+ ?>
315
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
316
+ <?php
317
+ }
318
+ else
319
+ {
320
+ ?>
321
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
322
  <?php
323
+ }
324
+
325
  }
326
 
327
  }
329
  {
330
  if(file_exists($fileName)!=false)
331
  {
332
+ if($pic_detail[$flag]->video == 1)
333
+ {
334
+ ?>
335
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
336
  <?php
337
+ }
338
+ else
339
+ {
340
+ ?>
341
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
342
+ <?php
343
+ }
344
+
345
  }
346
  else
347
  {
348
+ if($pic_detail[$flag]->video == 1)
349
+ {
350
+ ?>
351
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
352
  <?php
353
+ }
354
+ else
355
+ {
356
+ ?>
357
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
358
+ <?php
359
+ }
360
+
361
  }
362
 
363
  }
373
  {
374
  if(file_exists($fileName)!=false)
375
  {
376
+ if($pic_detail[$flag]->video == 1)
377
+ {
378
+ ?>
379
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
380
  <?php
381
+ }
382
+ else
383
+ {
384
+ ?>
385
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h=150&w=150&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
386
+ <?php
387
+ }
388
+
389
  }
390
  else
391
  {
392
+ if($pic_detail[$flag]->video == 1)
393
+ {
394
+ ?>
395
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
396
  <?php
397
+ }
398
+ else
399
+ {
400
+ ?>
401
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:150px;height:155px;<?php echo $css_image_thumbnail; ?>" />
402
+ <?php
403
+ }
404
+
405
  }
406
 
407
  }
409
  {
410
  if(file_exists($fileName)!=false)
411
  {
412
+ if($pic_detail[$flag]->video == 1)
413
+ {
414
+ ?>
415
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg')).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
416
+ <?php
417
+ }
418
+ else
419
+ {
420
+ ?>
421
  <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL).'/lib/timthumb.php?src='.trim(stripcslashes($pic_detail[$flag]->pic_path)).'&h='.$image_height[1].'&w='.$image_width[1].'&zc=1&q=100';?>" style="margin:5px;<?php echo $css_image_thumbnail; ?>" />
422
  <?php
423
+ }
424
+
425
  }
426
  else
427
  {
428
+ if($pic_detail[$flag]->video == 1)
429
+ {
430
+ ?>
431
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes(GALLERY_BK_PLUGIN_URL . '/assets/images/video.jpg');?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
432
  <?php
433
+ }
434
+ else
435
+ {
436
+ ?>
437
+ <img id="recordsArray_<?php echo $pic_detail[$flag]->pic_id; ?>" src="<?php echo stripcslashes($pic_detail[$flag]->pic_path);?>" style="margin:5px;width:<?php echo $image_width[1];?>;height:<?php echo $image_height[1];?>;<?php echo $css_image_thumbnail; ?>" />
438
+ <?php
439
+ }
440
+
441
  }
442
 
443
  }