TemplatesNext ToolKit - Version 1.1.8

Version Description

  • Added shortcode animate and fancy block added
  • itrans slider new text backbround option added
Download this release

Release Info

Developer marsian
Plugin Icon 128x128 TemplatesNext ToolKit
Version 1.1.8
Comparing to
See all releases

Code changes from version 1.1.7 to 1.1.8

css/colorbox.css CHANGED
@@ -2,7 +2,7 @@
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
  #cboxWrapper {max-width:none;}
7
  #cboxOverlay{position:fixed; width:100%; height:100%;}
8
  #cboxMiddleLeft, #cboxBottomLeft{clear:left;}
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; -webkit-transform: translate3d(0,0,0);}
6
  #cboxWrapper {max-width:none;}
7
  #cboxOverlay{position:fixed; width:100%; height:100%;}
8
  #cboxMiddleLeft, #cboxBottomLeft{clear:left;}
css/tx-admin-style.css CHANGED
@@ -137,7 +137,9 @@ ul.tx-fa-icons > li.active {
137
  #tx-wooprods-form,
138
  #tx-heading-form,
139
  #tx-slider-form,
140
- #tx-image-form {
 
 
141
  padding: 12px 16px;
142
  min-width: 480px;
143
  }
137
  #tx-wooprods-form,
138
  #tx-heading-form,
139
  #tx-slider-form,
140
+ #tx-image-form,
141
+ #tx-animation-form,
142
+ #tx-fancyblock-form {
143
  padding: 12px 16px;
144
  min-width: 480px;
145
  }
css/tx-style.css CHANGED
@@ -1078,6 +1078,10 @@
1078
  .tx-slider .owl-controls {
1079
  }
1080
 
 
 
 
 
1081
  .tx-slider .owl-controls .owl-buttons {
1082
  position: absolute;
1083
  top: 45%;
@@ -1297,6 +1301,24 @@
1297
  display: none;
1298
  }
1299
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1300
  /*
1301
  * Widgets
1302
  */
@@ -1417,6 +1439,29 @@
1417
  margin-right: 32px;
1418
  }
1419
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1420
  @media (max-width: 999px) {
1421
  .folio-col-1 {
1422
  display: block;
1078
  .tx-slider .owl-controls {
1079
  }
1080
 
1081
+ .tx-slider-item {
1082
+ background-color: #E6E6E6;
1083
+ }
1084
+
1085
  .tx-slider .owl-controls .owl-buttons {
1086
  position: absolute;
1087
  top: 45%;
1301
  display: none;
1302
  }
1303
 
1304
+
1305
+ .tx-slider.shadow .tx-slide-title {
1306
+ background: transparent-color: rgba(0, 0, 0, 0.0);;
1307
+ background: transparent;
1308
+ text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.4);
1309
+ }
1310
+
1311
+ .tx-slider.shadow .tx-slide-details p {
1312
+ background: transparent-color: rgba(0, 0, 0, 0.0);;
1313
+ background: transparent;
1314
+ text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.4);
1315
+ }
1316
+
1317
+ .tx-slider.shadow .tx-slide-button a {
1318
+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.4);
1319
+ }
1320
+
1321
+
1322
  /*
1323
  * Widgets
1324
  */
1439
  margin-right: 32px;
1440
  }
1441
  */
1442
+
1443
+ .tx-fw-inner {
1444
+ }
1445
+
1446
+ .tx-fw-overlay {
1447
+ display: block;
1448
+ width: 100%;
1449
+ height: 100%;
1450
+ background-color: rgba(0,0,0,0.4);
1451
+ padding-left: 32px;
1452
+ padding-right: 32px;
1453
+ }
1454
+
1455
+ .tx-fw-content {
1456
+ max-width: 1200px;
1457
+ margin-left: auto;
1458
+ margin-right: auto;
1459
+ }
1460
+
1461
+ span.tx-animate {
1462
+ display: inline-block;
1463
+ }
1464
+
1465
  @media (max-width: 999px) {
1466
  .folio-col-1 {
1467
  display: block;
inc/tx-meta.php CHANGED
@@ -209,6 +209,91 @@ function tx_register_meta_boxes( $meta_boxes )
209
  )
210
  );
211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
  $meta_boxes[] = array(
213
  // Meta box id, UNIQUE per meta box. Optional since 4.1.5
214
  'id' => 'testimonialmeta',
209
  )
210
  );
211
 
212
+ $meta_boxes[] = array(
213
+ // Meta box id, UNIQUE per meta box. Optional since 4.1.5
214
+ 'id' => 'teammember',
215
+
216
+ // Meta box title - Will appear at the drag and drop handle bar. Required.
217
+ 'title' => __( 'Team Member Details', 'ispirit' ),
218
+
219
+ // Post types, accept custom post types as well - DEFAULT is array('post'). Optional.
220
+ 'pages' => array( 'team' ),
221
+
222
+ // Where the meta box appear: normal (default), advanced, side. Optional.
223
+ 'context' => 'normal',
224
+
225
+ // Order of meta box: high (default), low. Optional.
226
+ 'priority' => 'high',
227
+
228
+ // Auto save: true, false (default). Optional.
229
+ 'autosave' => true,
230
+
231
+ // List of meta fields
232
+ 'fields' => array(
233
+
234
+ // Designation
235
+ array(
236
+ 'name' => __( 'Position/Designation', 'nx-admin' ),
237
+ 'id' => "{$prefix}designation",
238
+ 'type' => 'text',
239
+ 'std' => __( '', 'nx-admin' ),
240
+ 'desc' => __('Enter the team member\'s position within the team.', 'nx-admin'),
241
+ ),
242
+
243
+ // Email
244
+ array(
245
+ 'name' => __( 'Email Address', 'nx-admin' ),
246
+ 'id' => "{$prefix}team_email",
247
+ 'type' => 'text',
248
+ 'std' => __( '', 'nx-admin' ),
249
+ 'desc' => __('Enter the team member\'s Email Id.', 'nx-admin'),
250
+ ),
251
+ // Phone
252
+ array(
253
+ 'name' => __( 'Phone Number', 'nx-admin' ),
254
+ 'id' => "{$prefix}team_phone",
255
+ 'type' => 'text',
256
+ 'std' => __( '', 'nx-admin' ),
257
+ 'desc' => __('Enter the team member\'s Phone Number.', 'nx-admin'),
258
+ ),
259
+ // Twitter
260
+ array(
261
+ 'name' => __( 'Twitter', 'nx-admin' ),
262
+ 'id' => "{$prefix}team_twitter",
263
+ 'type' => 'text',
264
+ 'std' => __( '', 'nx-admin' ),
265
+ 'desc' => __('Enter the team member\'s Twitter URL.', 'nx-admin'),
266
+ ),
267
+
268
+ // Facebook
269
+ array(
270
+ 'name' => __( 'Facebook', 'nx-admin' ),
271
+ 'id' => "{$prefix}team_facebook",
272
+ 'type' => 'text',
273
+ 'std' => __( '', 'nx-admin' ),
274
+ 'desc' => __('Enter the team member\'s Facebook URL.', 'nx-admin'),
275
+ ),
276
+ // Google+
277
+ array(
278
+ 'name' => __( 'Google+', 'nx-admin' ),
279
+ 'id' => "{$prefix}team_gplus",
280
+ 'type' => 'text',
281
+ 'std' => __( '', 'nx-admin' ),
282
+ 'desc' => __('Enter the team member\'s Google+ URL.', 'nx-admin'),
283
+ ),
284
+ // Skype
285
+ array(
286
+ 'name' => __( 'Skype', 'nx-admin' ),
287
+ 'id' => "{$prefix}team_skype",
288
+ 'type' => 'text',
289
+ 'std' => __( '', 'nx-admin' ),
290
+ 'desc' => __('Enter the team member\'s Skype user name.', 'nx-admin'),
291
+ ),
292
+
293
+ )
294
+ );
295
+
296
+
297
  $meta_boxes[] = array(
298
  // Meta box id, UNIQUE per meta box. Optional since 4.1.5
299
  'id' => 'testimonialmeta',
js/jquery.colorbox-min.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
- Colorbox 1.5.14
3
  license: MIT
4
  http://www.jacklmoore.com/colorbox
5
  */
6
- (function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(z+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in y[0]&&!y[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),y.focus())}function c(t){c.str!==t&&(y.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){z=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),z=W.index(_.el),-1===z&&(W=W.add(_.el),z=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!$){$=q=!0,c(_.get("className")),y.css({visibility:"hidden",display:"block",opacity:""}),L=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(L),D=T.height()+k.height()+b.outerHeight(!0)-b.height(),j=C.width()+H.width()+b.outerWidth(!0)-b.width(),A=L.outerHeight(!0),N=L.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=(l!==!1?Math.min(h,a(l,"x")):h)-N-j,_.h=(f!==!1?Math.min(s,a(f,"y")):s)-A-D,L.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),y.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("<div/>"),w()}}function p(){y||(V=!1,E=t(i),y=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),S=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),x=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),I=n(se,"Current"),P=t('<button type="button"/>').attr({id:Z+"Previous"}),K=t('<button type="button"/>').attr({id:Z+"Next"}),R=n("button","Slideshow"),S),B=t('<button type="button"/>').attr({id:Z+"Close"}),x.append(n(se).append(n(se,"TopLeft"),T=n(se,"TopCenter"),n(se,"TopRight")),n(se,!1,"clear:left").append(C=n(se,"MiddleLeft"),b,H=n(se,"MiddleRight")),n(se,!1,"clear:left").append(n(se,"BottomLeft"),k=n(se,"BottomCenter"),n(se,"BottomRight"))).find("div div").css({"float":"left"}),M=n(se,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(I).add(R)),e.body&&!y.parent().length&&t(e.body).append(v,y.append(x,M))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return y?(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),v.click(function(){_.get("overlayClose")&&J.close()}),t(e).bind("keydown."+Z,function(t){var e=t.keyCode;$&&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),$&&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+Z,"."+te,i):t("."+te).live("click."+Z,i)),!0):!1}function w(){var e,o,r,h=J.prep,d=++le;if(q=!0,U=!1,u(he),u(ie),_.get("onLoad"),_.h=_.get("height")?a(_.get("height"),"y")-A-D:_.get("innerHeight")&&a(_.get("innerHeight"),"y"),_.w=_.get("width")?a(_.get("width"),"x")-N-j:_.get("innerWidth")&&a(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=a(_.get("maxWidth"),"x")-N-j,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=a(_.get("maxHeight"),"y")-A-D,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),Q=setTimeout(function(){S.show()},100),_.get("inline")){var c=t(e);r=t("<div>").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),U=new Image,t(U).addClass(Z+"Photo").bind("error",function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;t.each(["alt","longdesc","aria-describedby"],function(e,i){var n=t(_.el).attr(i)||t(_.el).attr("data-"+i);n&&U.setAttribute(i,n)}),_.get("retinaImage")&&i.devicePixelRatio>1&&(U.height=U.height/i.devicePixelRatio,U.width=U.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){U.height-=U.height*e,U.width-=U.width*e},_.mw&&U.width>_.mw&&(e=(U.width-_.mw)/U.width,o()),_.mh&&U.height>_.mh&&(e=(U.height-_.mh)/U.height,o())),_.h&&(U.style.marginTop=Math.max(_.mh-U.height,0)/2+"px"),W[1]&&(_.get("loop")||W[z+1])&&(U.style.cursor="pointer",U.onclick=function(){J.next()}),U.style.width=U.width+"px",U.style.height=U.height+"px",h(U)},1)}),U.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,y,x,b,T,C,H,k,W,E,L,M,S,F,I,R,K,P,B,O,_,D,j,A,N,z,U,$,q,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,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|webp|jxr|svg)((#|\?).*)?$/i,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.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("<a/>"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[z+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){R.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),y.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),R.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),y.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,R.hide(),t(),ae.unbind(ne,e).unbind(ie,t),y.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),R.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;if(e=e||{},t.isFunction(o))o=t("<a/>"),e.open=!0;else if(!o[0])return o;return o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(y[0].style.width,10)-j+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(y[0].style.height,10)-D+"px"}var r,h,s,l=0,d=0,c=y.offset();if(E.unbind("resize."+Z),y.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,y.css({position:"fixed"})):(l=h,d=s,y.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-N-j-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-N-j,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-A-D-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-A-D,0)/2),y.css({top:c.top,left:c.left,visibility:"visible"}),x[0].style.width=x[0].style.height="9999px",r={width:_.w+N+j,height:_.h+A+D,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||y.css(r),y.dequeue().animate(r,{duration:e||0,complete:function(){n(),q=!1,x[0].style.width=_.w+N+j+"px",x[0].style.height=_.h+A+D+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;$&&(t=t||{},t.width&&(_.w=a(t.width,"x")-N-j),t.innerWidth&&(_.w=a(t.innerWidth,"x")),L.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-A-D),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=L.scrollTop(),L.css({height:"auto"}),_.h=L.height()),L.css({height:_.h}),e&&L.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||L.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||L.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if($){var d,g="none"===_.get("transition")?0:_.get("speed");L.remove(),L=n(se,"LoadedContent").append(i),L.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(U).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&y[0].style.removeAttribute("filter")}var n,o,a=W.length;$&&(o=function(){clearTimeout(Q),S.hide(),u(ne),_.get("onComplete")},F.html(_.get("title")).show(),L.show(),a>1?("string"==typeof _.get("current")&&I.html(_.get("current").replace("{current}",z+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>z?"show":"hide"]().html(_.get("next")),P[_.get("loop")||z?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=e.createElement("iframe"),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),name:(new Date).getTime(),"class":Z+"Iframe",allowFullScreen:!0}).one("load",o).appendTo(L),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?y.fadeTo(g,1,i):i())},"fade"===_.get("transition")?y.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!q&&W[1]&&(_.get("loop")||W[z+1])&&(z=h(1),f(W[z]))},J.prev=function(){!q&&W[1]&&(_.get("loop")||z)&&(z=h(-1),f(W[z]))},J.close=function(){$&&!G&&(G=!0,$=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),y.stop().fadeTo(_.get("fadeOut")||0,0,function(){y.hide(),v.hide(),u(he),L.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){y&&(y.stop(),t[Y].close(),y.stop(!1,!0).remove(),v.remove(),G=!1,y=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);
1
  /*!
2
+ Colorbox 1.6.3
3
  license: MIT
4
  http://www.jacklmoore.com/colorbox
5
  */
6
+ (function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(A+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in x[0]&&!x[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),x.focus())}function c(t){c.str!==t&&(x.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){A=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),A=W.index(_.el),-1===A&&(W=W.add(_.el),A=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!$){$=q=!0,c(_.get("className")),x.css({visibility:"hidden",display:"block",opacity:""}),I=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(I),j=T.height()+k.height()+b.outerHeight(!0)-b.height(),D=C.width()+H.width()+b.outerWidth(!0)-b.width(),N=I.outerHeight(!0),z=I.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=Math.max((l!==!1?Math.min(h,a(l,"x")):h)-z-D,0),_.h=Math.max((f!==!1?Math.min(s,a(f,"y")):s)-N-j,0),I.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),x.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("<div/>"),w()}}function p(){x||(V=!1,E=t(i),x=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),L=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),y=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),R=n(se,"Current"),P=t('<button type="button"/>').attr({id:Z+"Previous"}),K=t('<button type="button"/>').attr({id:Z+"Next"}),S=n("button","Slideshow"),L),B=t('<button type="button"/>').attr({id:Z+"Close"}),y.append(n(se).append(n(se,"TopLeft"),T=n(se,"TopCenter"),n(se,"TopRight")),n(se,!1,"clear:left").append(C=n(se,"MiddleLeft"),b,H=n(se,"MiddleRight")),n(se,!1,"clear:left").append(n(se,"BottomLeft"),k=n(se,"BottomCenter"),n(se,"BottomRight"))).find("div div").css({"float":"left"}),M=n(se,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(R).add(S)),e.body&&!x.parent().length&&t(e.body).append(v,x.append(y,M))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return x?(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),v.click(function(){_.get("overlayClose")&&J.close()}),t(e).bind("keydown."+Z,function(t){var e=t.keyCode;$&&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),$&&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+Z,"."+te,i):t("."+te).live("click."+Z,i)),!0):!1}function w(){var e,o,r,h=J.prep,d=++le;if(q=!0,U=!1,u(he),u(ie),_.get("onLoad"),_.h=_.get("height")?a(_.get("height"),"y")-N-j:_.get("innerHeight")&&a(_.get("innerHeight"),"y"),_.w=_.get("width")?a(_.get("width"),"x")-z-D:_.get("innerWidth")&&a(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=a(_.get("maxWidth"),"x")-z-D,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=a(_.get("maxHeight"),"y")-N-j,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),Q=setTimeout(function(){L.show()},100),_.get("inline")){var c=t(e);r=t("<div>").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),U=_.get("createImg"),t(U).addClass(Z+"Photo").bind("error."+Z,function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;_.get("retinaImage")&&i.devicePixelRatio>1&&(U.height=U.height/i.devicePixelRatio,U.width=U.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){U.height-=U.height*e,U.width-=U.width*e},_.mw&&U.width>_.mw&&(e=(U.width-_.mw)/U.width,o()),_.mh&&U.height>_.mh&&(e=(U.height-_.mh)/U.height,o())),_.h&&(U.style.marginTop=Math.max(_.mh-U.height,0)/2+"px"),W[1]&&(_.get("loop")||W[A+1])&&(U.style.cursor="pointer",t(U).bind("click."+Z,function(){J.next()})),U.style.width=U.width+"px",U.style.height=U.height+"px",h(U)},1)}),U.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,x,y,b,T,C,H,k,W,E,I,M,L,F,R,S,K,P,B,O,_,j,D,N,z,A,U,$,q,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,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|webp|jxr|svg)((#|\?).*)?$/i,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.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("<a/>"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[A+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){S.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),x.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),S.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),x.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,S.hide(),t(),ae.unbind(ne,e).unbind(ie,t),x.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),S.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;return e=e||{},t.isFunction(o)&&(o=t("<a/>"),e.open=!0),o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(x[0].style.width,10)-D+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(x[0].style.height,10)-j+"px"}var r,h,s,l=0,d=0,c=x.offset();if(E.unbind("resize."+Z),x.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,x.css({position:"fixed"})):(l=h,d=s,x.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-z-D-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-z-D,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-N-j-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-N-j,0)/2),x.css({top:c.top,left:c.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",r={width:_.w+z+D,height:_.h+N+j,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||x.css(r),x.dequeue().animate(r,{duration:e||0,complete:function(){n(),q=!1,y[0].style.width=_.w+z+D+"px",y[0].style.height=_.h+N+j+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;$&&(t=t||{},t.width&&(_.w=a(t.width,"x")-z-D),t.innerWidth&&(_.w=a(t.innerWidth,"x")),I.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-N-j),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=I.scrollTop(),I.css({height:"auto"}),_.h=I.height()),I.css({height:_.h}),e&&I.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||I.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||I.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if($){var d,g="none"===_.get("transition")?0:_.get("speed");I.remove(),I=n(se,"LoadedContent").append(i),I.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(U).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&x[0].style.removeAttribute("filter")}var n,o,a=W.length;$&&(o=function(){clearTimeout(Q),L.hide(),u(ne),_.get("onComplete")},F.html(_.get("title")).show(),I.show(),a>1?("string"==typeof _.get("current")&&R.html(_.get("current").replace("{current}",A+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>A?"show":"hide"]().html(_.get("next")),P[_.get("loop")||A?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=_.get("createIframe"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),"class":Z+"Iframe"}).one("load",o).appendTo(I),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?x.fadeTo(g,1,i):i())},"fade"===_.get("transition")?x.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!q&&W[1]&&(_.get("loop")||W[A+1])&&(A=h(1),f(W[A]))},J.prev=function(){!q&&W[1]&&(_.get("loop")||A)&&(A=h(-1),f(W[A]))},J.close=function(){$&&!G&&(G=!0,$=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),x.stop().fadeTo(_.get("fadeOut")||0,0,function(){x.hide(),v.hide(),u(he),I.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){x&&(x.stop(),t[Y].close(),x.stop(!1,!0).remove(),v.remove(),G=!1,x=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);
js/tx-script.js CHANGED
@@ -205,7 +205,7 @@ jQuery(document).ready(function ($) {
205
  if(!_this.children('div').hasClass('tx-fullwidthinner'))
206
  {
207
  _this.wrapInner( "<div style='position: relative; overflow: hidden;' class='tx-fullwidthinner'></div>" );
208
- console.log("added");
209
  }
210
 
211
  _this.css({"overflow":"visible"});
@@ -239,7 +239,7 @@ jQuery(document).ready(function ($) {
239
  {
240
  var slider_parallax = $('.other-slider').children('.tx-slider').data('parallax');
241
  var slidetop2 = parseInt($('.other-slider').offset().top);
242
- console.log('parallax : '+slider_parallax);
243
  if( $( window ).width() > 999 && slider_parallax == "yes" )
244
  {
245
  $(window).scroll(function(){
@@ -259,7 +259,28 @@ jQuery(document).ready(function ($) {
259
  //console.log('margin-top : '+newvalue+'px, ' + 'SlideTop : ' +slidetop+'px, ' + 'Scrolltop : ' +$(this).scrollTop()+'px');
260
  });
261
  }
262
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
263
 
264
 
265
  });
205
  if(!_this.children('div').hasClass('tx-fullwidthinner'))
206
  {
207
  _this.wrapInner( "<div style='position: relative; overflow: hidden;' class='tx-fullwidthinner'></div>" );
208
+ //console.log("added");
209
  }
210
 
211
  _this.css({"overflow":"visible"});
239
  {
240
  var slider_parallax = $('.other-slider').children('.tx-slider').data('parallax');
241
  var slidetop2 = parseInt($('.other-slider').offset().top);
242
+
243
  if( $( window ).width() > 999 && slider_parallax == "yes" )
244
  {
245
  $(window).scroll(function(){
259
  //console.log('margin-top : '+newvalue+'px, ' + 'SlideTop : ' +slidetop+'px, ' + 'Scrolltop : ' +$(this).scrollTop()+'px');
260
  });
261
  }
262
+ }
263
+
264
+
265
+ //blog and portfolio carousel
266
+ $('.tx-animate').each(function () {
267
+
268
+ var _this = $(this);
269
+ var animation = _this.data('animation');
270
+ var duration = _this.data('animation-duration');
271
+ var delay = _this.data('animation-delay');
272
+
273
+ duration = duration+'s';
274
+ delay = delay+'s'
275
+
276
+ _this.on('inview', function(event, isInView) {
277
+ if (isInView) {
278
+ _this.css({'visibility': 'visible', 'animation-duration': duration, 'animation-delay': delay}).addClass('animated '+animation);
279
+ } else {
280
+ // element has gone out of viewport
281
+ }
282
+ });
283
+ });
284
 
285
 
286
  });
js/tx_main.js CHANGED
@@ -587,3 +587,18 @@ function tx_slider_cat(){
587
  var tx_slider_cat_list = tx_t1;
588
  return tx_slider_cat_list;
589
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
587
  var tx_slider_cat_list = tx_t1;
588
  return tx_slider_cat_list;
589
  }
590
+
591
+ /*
592
+ //Insert tx shortcode media button
593
+ window.addEventListener("load", function(){
594
+ document.getElementById("insert-tx-button").onclick = function(){
595
+ var $form = jQuery("#txshortcodes-form");
596
+ jQuery.colorbox({inline:true, href:"#tx-shortcode-form"});
597
+ }
598
+ });
599
+ */
600
+
601
+
602
+
603
+
604
+
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: marsian
4
  Tags: shortcode, shortcodes, columns, column, section, sections, portfolio, testimonial, border, borders, button, buttons, masonry, posts, post_type, font awesome, icons, fontawesome
5
  Requires at least: 3.6
6
- Tested up to: 4.4
7
- Stable tag: 1.1.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -24,10 +24,9 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
24
 
25
 
26
  == Changelog ==
27
- = 1.1.7 =
28
- * New window option for button
29
- * Slider options for transitions, contents and height.
30
- * Plugable shortcode functions
31
 
32
  = 1.1.5 =
33
  * Added Parallax Effect for slider
3
  Contributors: marsian
4
  Tags: shortcode, shortcodes, columns, column, section, sections, portfolio, testimonial, border, borders, button, buttons, masonry, posts, post_type, font awesome, icons, fontawesome
5
  Requires at least: 3.6
6
+ Tested up to: 4.5
7
+ Stable tag: 1.1.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
24
 
25
 
26
  == Changelog ==
27
+ = 1.1.8 =
28
+ * Added shortcode animate and fancy block added
29
+ * itrans slider new text backbround option added
 
30
 
31
  = 1.1.5 =
32
  * Added Parallax Effect for slider
shortcodes.php CHANGED
@@ -602,10 +602,12 @@ function tx_slider_function($atts, $content = null) {
602
  'title' => 'show',
603
  'desc' => 'show',
604
  'link' => 'show',
605
- 'height' => 420,
 
606
  'class' => '',
607
  ), $atts);
608
 
 
609
  $return_string = '';
610
  $cat_slug = '';
611
 
@@ -613,6 +615,8 @@ function tx_slider_function($atts, $content = null) {
613
  {
614
  $cat_slug = $atts['category'];
615
  }
 
 
616
 
617
  $posts_per_page = intval( $atts['items'] );
618
  $tx_class = $atts['class'];
@@ -627,7 +631,7 @@ function tx_slider_function($atts, $content = null) {
627
  $tx_height = $atts['height'];
628
 
629
 
630
- $return_string .= '<div class="tx-slider" data-delay="'.$tx_delay.'" data-parallax="'.$tx_parallax.'" data-transition="'.$tx_transition.'">';
631
 
632
 
633
  wp_reset_query();
@@ -694,6 +698,103 @@ function tx_slider_function($atts, $content = null) {
694
 
695
  endif;
696
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
697
 
698
 
699
  function tx_register_shortcodes(){
@@ -710,7 +811,10 @@ function tx_register_shortcodes(){
710
  add_shortcode('tx_divider', 'tx_divider_function');
711
  add_shortcode('tx_prodscroll', 'tx_prodscroll_function');
712
  add_shortcode('tx_heading', 'tx_heading_function');
713
- add_shortcode('tx_slider', 'tx_slider_function');
 
 
 
714
  }
715
 
716
  add_action( 'init', 'tx_register_shortcodes');
602
  'title' => 'show',
603
  'desc' => 'show',
604
  'link' => 'show',
605
+ 'height' => 420,
606
+ 'textbg' => 'shadow',
607
  'class' => '',
608
  ), $atts);
609
 
610
+
611
  $return_string = '';
612
  $cat_slug = '';
613
 
615
  {
616
  $cat_slug = $atts['category'];
617
  }
618
+
619
+ $textbg_class = $atts['textbg'];
620
 
621
  $posts_per_page = intval( $atts['items'] );
622
  $tx_class = $atts['class'];
631
  $tx_height = $atts['height'];
632
 
633
 
634
+ $return_string .= '<div class="tx-slider '.$textbg_class.'" data-delay="'.$tx_delay.'" data-parallax="'.$tx_parallax.'" data-transition="'.$tx_transition.'">';
635
 
636
 
637
  wp_reset_query();
698
 
699
  endif;
700
 
701
+ // Animate
702
+ if ( !function_exists('tx_animate_function') ) :
703
+
704
+ function tx_animate_function($atts, $content = null) {
705
+
706
+ //[tx_heading style=”default” heading_text=”Heading Text” tag=”h1″ size=”24″ margin=”24″]
707
+
708
+ $atts = shortcode_atts(array(
709
+ 'animation' => 'bounceIn',
710
+ 'duration' => 1,
711
+ 'delay' => .4,
712
+ 'inline' => 'no',
713
+ //'content' => '',
714
+ ), $atts);
715
+
716
+ $container_tag = "div";
717
+
718
+ if ( $atts['inline'] == "yes")
719
+ {
720
+ $container_tag = "span";
721
+ }
722
+
723
+ $return_string ='';
724
+
725
+ $return_string .= '<'.$container_tag.' class="tx-animate" style="visibility:hidden;" data-animation="' . $atts['animation'] . '" data-animation-duration="' . $atts['duration'] . '" data-animation-delay="' . $atts['delay'] . '">';
726
+ $return_string .= do_shortcode($content);
727
+ $return_string .= '</'.$container_tag.'>';
728
+
729
+ return $return_string;
730
+ }
731
+
732
+ endif;
733
+
734
+
735
+ // Fancy Block
736
+ if ( !function_exists('tx_fancyblock_function') ) :
737
+
738
+ function tx_fancyblock_function($atts, $content = null) {
739
+
740
+ //[tx_heading style=”default” heading_text=”Heading Text” tag=”h1″ size=”24″ margin=”24″]
741
+
742
+ $atts = shortcode_atts(array(
743
+ 'height' => '',
744
+ 'padding' => '32',
745
+ 'bgcolor' => '',
746
+ 'overlay' => '',
747
+ 'bgurl' => '',
748
+ 'attachment' => 'fixed',
749
+ 'bgsize' => 'cover',
750
+ 'fullwidth' => 'no',
751
+ ), $atts);
752
+
753
+ $fw_style = '';
754
+ $fw_class = '';
755
+
756
+ if ( $atts['fullwidth'] == 'yes' )
757
+ {
758
+ $fw_class = 'tx-fullwidthrow';
759
+ }
760
+
761
+ if ( !empty($atts['height']) )
762
+ {
763
+ $fw_style .= 'height: '.$atts['height'].'px; ';
764
+ }
765
+
766
+ //if ( !empty($atts['bgcolor']) )
767
+ //{
768
+ //$fw_style .= 'background-color: '.$atts['bgcolor'].'; ';
769
+ //}
770
+
771
+ if ( !empty($atts['bgurl']) )
772
+ {
773
+ $fw_style .= 'background-image: url('.$atts['bgurl'].'); ';
774
+ }
775
+
776
+ $fw_style .= 'background-attachment: '.$atts['attachment'].'; ';
777
+ $fw_style .= 'background-size: '.$atts['bgsize'].'; ';
778
+
779
+
780
+
781
+ $return_string ='';
782
+
783
+ $return_string .= '<div class="tx-row '.$fw_class.' tx-fwidth" style="">';
784
+ $return_string .= '<div class="tx-fw-inner" style="background-color: '.$atts['bgcolor'].'; '.$fw_style.'">';
785
+ $return_string .= '<div class="tx-fw-overlay" style="padding-bottom:'.$atts['padding'].'px; padding-top:'.$atts['padding'].'px; background-color: rgba(0,0,0,'.$atts['overlay'].');">';
786
+ $return_string .= '<div class="tx-fw-content">';
787
+ $return_string .= do_shortcode($content);
788
+ $return_string .= '</div>';
789
+ $return_string .= '</div>';
790
+ $return_string .= '</div>';
791
+ $return_string .= '</div>';
792
+
793
+
794
+ return $return_string;
795
+ }
796
+
797
+ endif;
798
 
799
 
800
  function tx_register_shortcodes(){
811
  add_shortcode('tx_divider', 'tx_divider_function');
812
  add_shortcode('tx_prodscroll', 'tx_prodscroll_function');
813
  add_shortcode('tx_heading', 'tx_heading_function');
814
+ add_shortcode('tx_slider', 'tx_slider_function');
815
+
816
+ add_shortcode('tx_animate', 'tx_animate_function');
817
+ add_shortcode('tx_fancyblock', 'tx_fancyblock_function');
818
  }
819
 
820
  add_action( 'init', 'tx_register_shortcodes');
tx-functions.php CHANGED
@@ -405,3 +405,16 @@ function tx_load_jqvariables(){
405
  wp_localize_script( 'tx-main', 'tx_t1', tx_slider_cat_list () );
406
  }
407
  add_action( 'admin_enqueue_scripts', 'tx_load_jqvariables' );
 
 
 
 
 
 
 
 
 
 
 
 
 
405
  wp_localize_script( 'tx-main', 'tx_t1', tx_slider_cat_list () );
406
  }
407
  add_action( 'admin_enqueue_scripts', 'tx_load_jqvariables' );
408
+
409
+ /*
410
+ //Insert tx shortcode media button
411
+ function tx_shortcode_button() {
412
+ echo '<a href="#" id="insert-tx-button" class="button">Insert [tx] Shortcode</a>';
413
+ }
414
+ add_action('media_buttons', 'tx_shortcode_button');
415
+ */
416
+
417
+
418
+
419
+
420
+
tx-shortcodes.js CHANGED
@@ -44,6 +44,9 @@
44
  <!-- <tr>\
45
  <td class="shortcode-list"><span id="tximage">Image</small></span></td><td class="shortcode-list">&nbsp;</td>\
46
  </tr> -->\
 
 
 
47
  </table>\
48
  <div class="nx-sh-cancel">\
49
  <input type="button" class="modal-close button-primary" value="Cancel" name="Cancel" />\
@@ -142,6 +145,20 @@
142
  jQuery.colorbox({inline:true, href:"#tx-slider-form"});
143
  }, 500);
144
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
 
146
  //Insert Image
147
  form_tx.find('#tximage').click(function(){
@@ -1016,6 +1033,13 @@
1016
  <option value="hide">Hide</option>\
1017
  </select></td>\
1018
  </tr>\
 
 
 
 
 
 
 
1019
  <tr>\
1020
  <th><label for="slider-height">Slider Height</label></th>\
1021
  <td><input type="number" min="400" max="800" name="height" id="slider-height" value="420" /><br />\
@@ -1045,9 +1069,10 @@
1045
  var slider_desc = table.find('#slider-desc').val();
1046
  var slider_link = table.find('#slider-link').val();
1047
  var slider_align = table.find('#slider-align').val();
1048
- var slider_height = table.find('#slider-height').val();
 
1049
 
1050
- var shortcode = '[tx_slider style="'+style+'" category="'+category+'" delay="'+slider_delay+'" parallax="'+slider_parallax+'" items="'+slider_items+'" transition="'+slider_transition+'" title="'+slider_title+'" desc="'+slider_desc+'" link="'+slider_link+'" align="'+slider_align+'" height="'+slider_height+'"]<br/>';
1051
 
1052
  // inserts the shortcode into the active editor
1053
  tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
@@ -1062,7 +1087,252 @@
1062
 
1063
  });
1064
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1065
 
 
1066
  /*
1067
  * image form
1068
  */
@@ -1173,4 +1443,3 @@ function tx_resize_thickbox() {
1173
  jQuery(document).find('#TB_window').width( TB_WIDTH ).height( TB_HEIGHT ).css( 'margin-left', - TB_WIDTH / 2 );
1174
  }
1175
 
1176
-
44
  <!-- <tr>\
45
  <td class="shortcode-list"><span id="tximage">Image</small></span></td><td class="shortcode-list">&nbsp;</td>\
46
  </tr> -->\
47
+ <tr>\
48
+ <td class="shortcode-list"><span id="animation">Animate</span></td><td class="shortcode-list"><span id="fancyblock">Fancy Block</span></td>\
49
+ </tr>\
50
  </table>\
51
  <div class="nx-sh-cancel">\
52
  <input type="button" class="modal-close button-primary" value="Cancel" name="Cancel" />\
145
  jQuery.colorbox({inline:true, href:"#tx-slider-form"});
146
  }, 500);
147
  });
148
+
149
+ //Animation
150
+ form_tx.find('#animation').click(function(){
151
+ setTimeout(function() {
152
+ jQuery.colorbox({inline:true, href:"#tx-animation-form"});
153
+ }, 500);
154
+ });
155
+
156
+ //Fancy Block
157
+ form_tx.find('#fancyblock').click(function(){
158
+ setTimeout(function() {
159
+ jQuery.colorbox({inline:true, href:"#tx-fancyblock-form"});
160
+ }, 500);
161
+ });
162
 
163
  //Insert Image
164
  form_tx.find('#tximage').click(function(){
1033
  <option value="hide">Hide</option>\
1034
  </select></td>\
1035
  </tr>\
1036
+ <tr>\
1037
+ <th><label for="slider-textbg">Text Background Style</label></th>\
1038
+ <td><select name="textbg" id="slider-textbg">\
1039
+ <option value="shadow">Shadowed Text</option>\
1040
+ <option value="transparent">Semi-transparent Background</option>\
1041
+ </select></td>\
1042
+ </tr>\
1043
  <tr>\
1044
  <th><label for="slider-height">Slider Height</label></th>\
1045
  <td><input type="number" min="400" max="800" name="height" id="slider-height" value="420" /><br />\
1069
  var slider_desc = table.find('#slider-desc').val();
1070
  var slider_link = table.find('#slider-link').val();
1071
  var slider_align = table.find('#slider-align').val();
1072
+ var slider_height = table.find('#slider-height').val();
1073
+ var slider_textbg = table.find('#slider-textbg').val();
1074
 
1075
+ var shortcode = '[tx_slider style="'+style+'" category="'+category+'" delay="'+slider_delay+'" parallax="'+slider_parallax+'" items="'+slider_items+'" transition="'+slider_transition+'" title="'+slider_title+'" desc="'+slider_desc+'" link="'+slider_link+'" align="'+slider_align+'" height="'+slider_height+'" textbg="'+slider_textbg+'"]<br/>';
1076
 
1077
  // inserts the shortcode into the active editor
1078
  tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
1087
 
1088
  });
1089
 
1090
+ /*
1091
+ * Animation form
1092
+ */
1093
+ jQuery(function(){
1094
+ var form_animation = jQuery('<div id="animation-form" class="tx-sh-form"><div id="tx-animation-form"><table id="animation-table" class="form-table">\
1095
+ <tr>\
1096
+ <td class="tx-heading" colspan="2"><h2>Animate</h2></td>\
1097
+ </tr>\
1098
+ <tr>\
1099
+ <th><label for="animation-style">Animation Style</label></th>\
1100
+ <td><select name="style" id="animation-style">\
1101
+ <option value="bounce">bounce</option>\
1102
+ <option value="shake">shake</option>\
1103
+ <option value="tada">tada</option>\
1104
+ <option value="swing">swing</option>\
1105
+ <option value="pulse">pulse</option>\
1106
+ <option value="flip">flip</option>\
1107
+ <option value="fadeIn">fadeIn</option>\
1108
+ <option value="fadeInUp">fadeInUp</option>\
1109
+ <option value="fadeInDown">fadeInDown</option>\
1110
+ <option value="fadeInLeft">fadeInLeft</option>\
1111
+ <option value="fadeInRight">fadeInRight</option>\
1112
+ <option value="bounceIn" selected="selected">bounceIn</option>\
1113
+ <option value="bounceInDown">bounceInDown</option>\
1114
+ <option value="bounceInUp">bounceInUp</option>\
1115
+ <option value="bounceInLeft">bounceInLeft</option>\
1116
+ <option value="bounceInRight">bounceInRight</option>\
1117
+ <option value="rollIn">rollIn</option>\
1118
+ </select><br />\
1119
+ <small>Select the animation style</small></td>\
1120
+ </tr>\
1121
+ <tr>\
1122
+ <th><label for="animation-duration">Animation Duration</label></th>\
1123
+ <td><input type="number" name="duration" id="animation-duration" min=".1" max="5" value="1" step=".1" /><br />\
1124
+ <small>Animation duration in seconds</small>\
1125
+ </tr>\
1126
+ <tr>\
1127
+ <th><label for="animation-delay">Animation Delay</label></th>\
1128
+ <td><input type="number" name="delay" id="animation-delay" min=".1" max="5" value=".4" step=".1" /><br />\
1129
+ <small>Animation delay in seconds</small>\
1130
+ </tr>\
1131
+ <tr>\
1132
+ <th><label for="animation-inline">Inline</label></th>\
1133
+ <td><select name="inline" id="animation-inline">\
1134
+ <option value="no">No</option>\
1135
+ <option value="yes">Yes</option>\
1136
+ </select><br />\
1137
+ <small>Turn this option to YES and animated element will be wrapped in SPAN instead of DIV.</small></td>\
1138
+ </tr>\
1139
+ <tr>\
1140
+ <th><label for="animation-content">Content</label></th>\
1141
+ <td><textarea name="content" id="animation-content">Content ...</textarea><br />\
1142
+ <small>Enter your contents here, supports nested shortcode.</small>\
1143
+ </tr>\
1144
+ </table>\
1145
+ <p class="submit">\
1146
+ <input type="button" id="animation-submit" class="button-primary" value="Insert animation" name="submit" />\
1147
+ <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
1148
+ </p>\
1149
+ <div class="tnext-bottom-lebel">'+tx_footer_include()+'</div>\
1150
+ </div></div>');
1151
+
1152
+ var table = form_animation.find('#animation-table');
1153
+ form_animation.appendTo('body').hide();
1154
+
1155
+ // handles the click event of the submit button
1156
+ form_animation.find('#animation-submit').click(function(){
1157
+
1158
+ var animation = table.find('#animation-style').val();
1159
+ var duration = table.find('#animation-duration').val();
1160
+ var delay = table.find('#animation-delay').val();
1161
+ var inline = table.find('#animation-inline').val();
1162
+ var content = table.find('#animation-content').val();
1163
+
1164
+ var shortcode = '[tx_animate animation="'+animation+'" duration="'+duration+'" delay="'+delay+'" inline="'+inline+'"]'+content+'[/tx_animate]<br/>';
1165
+
1166
+ // inserts the shortcode into the active editor
1167
+ tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
1168
+
1169
+ // closes Thickbox
1170
+ jQuery.colorbox.close();
1171
+ });
1172
+
1173
+ form_animation.find('#modal-close').click(function(){
1174
+ jQuery.colorbox.close();
1175
+ });
1176
+
1177
+ });
1178
+
1179
+ /*
1180
+ * Fancyblock form
1181
+ */
1182
+ jQuery(function(){
1183
+ var form_fancyblock = jQuery('<div id="fancyblock-form" class="tx-sh-form"><div id="tx-fancyblock-form"><table id="fancyblock-table" class="form-table">\
1184
+ <tr>\
1185
+ <td class="tx-heading" colspan="2"><h2>Fancy Block</h2></td>\
1186
+ </tr>\
1187
+ <tr>\
1188
+ <th><label for="fancyblock-height">Height</label></th>\
1189
+ <td><input type="number" name="height" id="fancyblock-height" min="1" max="1200" value="" /><br />\
1190
+ <small>Block height, <b>Keep it blank for auto height</b></small>\
1191
+ </tr>\
1192
+ <tr>\
1193
+ <th><label for="fancyblock-padding">Top/Bottom Padding</label></th>\
1194
+ <td><input type="number" name="padding" id="fancyblock-padding" min="1" max="600" value="32" /><br />\
1195
+ <small>Block Top?bottom padding</b></small>\
1196
+ </tr>\
1197
+ <tr>\
1198
+ <th><label for="fancyblock-bgcolor">Background Color</label></th>\
1199
+ <td><input type="text" class="color" name="bgcolor" id="fancyblock-bgcolor" value="">\<br />\
1200
+ <small>Select background color</small></td>\
1201
+ </tr>\
1202
+ <tr>\
1203
+ <th><label for="fancyblock-overlay">Overlay Layer Tranparancy</label></th>\
1204
+ <td><select name="overlay" id="fancyblock-overlay">\
1205
+ <option value="0.1">0.0</option>\
1206
+ <option value="0.1">0.1</option>\
1207
+ <option value="0.2">0.2</option>\
1208
+ <option value="0.3">0.3</option>\
1209
+ <option value="0.4" selected="selected">0.4</option>\
1210
+ <option value="0.5">0.5</option>\
1211
+ <option value="0.6">0.6</option>\
1212
+ <option value="0.7">0.7</option>\
1213
+ <option value="0.8">0.8</option>\
1214
+ <option value="0.9">0.9</option>\
1215
+ </select><br />\
1216
+ <small>Overlay Layer Tranparancy, <b>.9 least transparent and .1 heighest</b></small>\
1217
+ </tr>\
1218
+ <tr>\
1219
+ <th><label for="fancyblock-bgurl">Background Image URL</label></th>\
1220
+ <td><input type="text" name="bgurl" id="fancyblock-bgurl" /><br />\
1221
+ <input type="button" class="tx-button" name="tx-img-upload" id="tx-upload-button" value="Upload Image">\
1222
+ </tr>\
1223
+ <tr>\
1224
+ <th><label for="fancyblock-bgattachment">Background Attachment</label></th>\
1225
+ <td><select name="bgattachment" id="fancyblock-bgattachment">\
1226
+ <option value="fixed">Fixed</option>\
1227
+ <option value="scroll">Scroll</option>\
1228
+ </select><br />\
1229
+ <small>Select background movement</small></td>\
1230
+ </tr>\
1231
+ <tr>\
1232
+ <th><label for="fancyblock-bgsize">Background Size</label></th>\
1233
+ <td><select name="bgsize" id="fancyblock-bgsize">\
1234
+ <option value="cover">Cover</option>\
1235
+ <option value="auto">Auto</option>\
1236
+ </select><br />\
1237
+ <small>Select background size</small></td>\
1238
+ </tr>\
1239
+ <tr>\
1240
+ <th><label for="fancyblock-fullwidth">Force Full Width</label></th>\
1241
+ <td><select name="fullwidth" id="fancyblock-fullwidth">\
1242
+ <option value="no">No</option>\
1243
+ <option value="yes">Yes</option>\
1244
+ </select><br />\
1245
+ <small>Forces the container fullwidth, can be used as fullwidth row. Will not work with sidebars on. </small></td>\
1246
+ </tr>\
1247
+ <tr>\
1248
+ <th><label for="fancyblock-content">Content</label></th>\
1249
+ <td><textarea name="content" id="fancyblock-content">Content ...</textarea><br />\
1250
+ <small>Enter your contents here, supports nested shortcode.</small>\
1251
+ </tr>\
1252
+ </table>\
1253
+ <p class="submit">\
1254
+ <input type="button" id="fancyblock-submit" class="button-primary" value="Insert fancyblock" name="submit" />\
1255
+ <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
1256
+ </p>\
1257
+ <div class="tnext-bottom-lebel">'+tx_footer_include()+'</div>\
1258
+ </div></div>');
1259
+
1260
+ var table = form_fancyblock.find('#fancyblock-table');
1261
+
1262
+ tx_color_picker(form_fancyblock.find('.color'));
1263
+
1264
+ form_fancyblock.appendTo('body').hide();
1265
+
1266
+ // handles the click event of the submit button
1267
+ form_fancyblock.find('#fancyblock-submit').click(function(){
1268
+
1269
+ var height = table.find('#fancyblock-height').val();
1270
+ var padding = table.find('#fancyblock-padding').val();
1271
+ var bgcolor = table.find('#fancyblock-bgcolor').val();
1272
+ var overlay = table.find('#fancyblock-overlay').val();
1273
+ var bgurl = table.find('#fancyblock-bgurl').val();
1274
+ var attachment = table.find('#fancyblock-bgattachment').val();
1275
+ var bgsize = table.find('#fancyblock-bgsize').val();
1276
+ var fullwidth = table.find('#fancyblock-fullwidth').val();
1277
+ var content = table.find('#fancyblock-content').val();
1278
+
1279
+
1280
+ var shortcode = '[tx_fancyblock height="'+height+'" padding="'+padding+'" bgcolor="'+bgcolor+'" overlay="'+overlay+'" bgurl="'+bgurl+'" attachment="'+attachment+'" bgsize="'+bgsize+'" fullwidth="'+fullwidth+'" ]'+content+'[/tx_fancyblock]<br/>';
1281
+
1282
+ // inserts the shortcode into the active editor
1283
+ tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
1284
+
1285
+ //Insert tx shortcode via media button
1286
+ //wp.media.editor.insert(shortcode);
1287
+
1288
+ // closes Thickbox
1289
+ jQuery.colorbox.close();
1290
+ });
1291
+
1292
+ form_fancyblock.find('#modal-close').click(function(){
1293
+ jQuery.colorbox.close();
1294
+ });
1295
+
1296
+
1297
+ var file_frame;
1298
+ form_fancyblock.find('#tx-upload-button').click(function(event){
1299
+
1300
+ event.preventDefault();
1301
+
1302
+ // If the media frame already exists, reopen it.
1303
+ if ( file_frame ) {
1304
+ file_frame.open();
1305
+ return;
1306
+ }
1307
+
1308
+ // Create the media frame.
1309
+ file_frame = wp.media.frames.file_frame = wp.media({
1310
+ title: jQuery( this ).data( 'uploader_title' ),
1311
+ button: {
1312
+ text: jQuery( this ).data( 'uploader_button_text' ),
1313
+ },
1314
+ multiple: false // Set to true to allow multiple files to be selected
1315
+ });
1316
+
1317
+ // When an image is selected, run a callback.
1318
+ file_frame.on( 'select', function() {
1319
+ // We set multiple to false so only get one image from the uploader
1320
+ attachment = file_frame.state().get('selection').first().toJSON();
1321
+
1322
+ // Do something with attachment.id and/or attachment.url here
1323
+ table.find('#fancyblock-bgurl').val(attachment.url);
1324
+
1325
+ });
1326
+
1327
+ // Finally, open the modal
1328
+ file_frame.open();
1329
+
1330
+
1331
+ });
1332
+
1333
+ });
1334
 
1335
+
1336
  /*
1337
  * image form
1338
  */
1443
  jQuery(document).find('#TB_window').width( TB_WIDTH ).height( TB_HEIGHT ).css( 'margin-left', - TB_WIDTH / 2 );
1444
  }
1445
 
 
tx-toolkit.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: TemplatesNext ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for TemplatesNext Wordpress Themes
6
- Version: 1.1.7
7
  Author: TemplatesNext
8
  Author URI: http://templatesnext.org/
9
  License: GPLv2 or later
@@ -23,7 +23,7 @@ function tx_toolkit_admin_style() {
23
  wp_enqueue_style( 'tx-toolkit-admin-style', plugins_url('css/tx-admin-style.css', __FILE__) );
24
  wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css', false, '4.1.0', 'all' );
25
 
26
- wp_enqueue_script( 'colorbox', plugins_url( 'js/jquery.colorbox-min.js', __FILE__ ), array( 'jquery' ), '1.5.14', true );
27
  wp_enqueue_script('tx-main', plugins_url('/js/tx_main.js', __FILE__));
28
  }
29
 
@@ -33,12 +33,14 @@ function tx_scripts_styles() {
33
  wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css', false, '4.1.0', 'all' );
34
  wp_enqueue_style( 'owl-carousel', plugins_url( 'css/owl.carousel.css', __FILE__ ), false, '1.3.2', 'all' );
35
  wp_enqueue_style( 'owl-carousel-transitions', plugins_url( 'css/owl.transitions.css', __FILE__ ), false, '1.3.2', 'all' );
36
- wp_enqueue_style( 'colorbox', plugins_url( 'css/colorbox.css', __FILE__ ), false, '1.5.14', 'all' );
 
37
  wp_enqueue_style( 'tx-style', plugins_url('css/tx-style.css', __FILE__), array(), '1.01' );
38
 
39
  wp_enqueue_script( 'jquery-masonry' );
40
  wp_enqueue_script( 'owl-carousel', plugins_url( 'js/owl.carousel.min.js', __FILE__ ), array( 'jquery' ), '1.3.2', true );
41
- wp_enqueue_script( 'colorbox', plugins_url( 'js/jquery.colorbox-min.js', __FILE__ ), array( 'jquery' ), '1.5.14', true );
 
42
  wp_enqueue_script( 'tx-script', plugins_url('js/tx-script.js', __FILE__), array(), '2013-07-18', true );
43
  }
44
  add_action( 'wp_enqueue_scripts', 'tx_scripts_styles' );
3
  /*
4
  Plugin Name: TemplatesNext ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for TemplatesNext Wordpress Themes
6
+ Version: 1.1.8
7
  Author: TemplatesNext
8
  Author URI: http://templatesnext.org/
9
  License: GPLv2 or later
23
  wp_enqueue_style( 'tx-toolkit-admin-style', plugins_url('css/tx-admin-style.css', __FILE__) );
24
  wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css', false, '4.1.0', 'all' );
25
 
26
+ wp_enqueue_script( 'colorbox', plugins_url( 'js/jquery.colorbox-min.js', __FILE__ ), array( 'jquery' ), '1.6.3', true );
27
  wp_enqueue_script('tx-main', plugins_url('/js/tx_main.js', __FILE__));
28
  }
29
 
33
  wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css', false, '4.1.0', 'all' );
34
  wp_enqueue_style( 'owl-carousel', plugins_url( 'css/owl.carousel.css', __FILE__ ), false, '1.3.2', 'all' );
35
  wp_enqueue_style( 'owl-carousel-transitions', plugins_url( 'css/owl.transitions.css', __FILE__ ), false, '1.3.2', 'all' );
36
+ wp_enqueue_style( 'colorbox', plugins_url( 'css/colorbox.css', __FILE__ ), false, '1.5.14', 'all' );
37
+ wp_enqueue_style( 'animate', plugins_url( 'css/animate.css', __FILE__ ), false, '3.5.1', 'all' );
38
  wp_enqueue_style( 'tx-style', plugins_url('css/tx-style.css', __FILE__), array(), '1.01' );
39
 
40
  wp_enqueue_script( 'jquery-masonry' );
41
  wp_enqueue_script( 'owl-carousel', plugins_url( 'js/owl.carousel.min.js', __FILE__ ), array( 'jquery' ), '1.3.2', true );
42
+ wp_enqueue_script( 'colorbox', plugins_url( 'js/jquery.colorbox-min.js', __FILE__ ), array( 'jquery' ), '1.5.14', true );
43
+ wp_enqueue_script( 'inview', plugins_url( 'js/jquery.inview.min.js', __FILE__ ), array( 'jquery' ), '1.0.0', true );
44
  wp_enqueue_script( 'tx-script', plugins_url('js/tx-script.js', __FILE__), array(), '2013-07-18', true );
45
  }
46
  add_action( 'wp_enqueue_scripts', 'tx_scripts_styles' );