TemplatesNext ToolKit - Version 1.1.7

Version Description

  • New window option for button
  • Slider options for transitions, contents and height.
  • Plugable shortcode functions
Download this release

Release Info

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

Code changes from version 1.1.6 to 1.1.7

css/tx-style.css CHANGED
@@ -1092,12 +1092,12 @@
1092
  .tx-slider .owl-controls .owl-buttons .owl-next,
1093
  .tx-slider .owl-controls .owl-buttons .owl-prev {
1094
  display: block;
1095
- height: 40px;
1096
  width: 32px;
1097
  line-height: 32px;
1098
  text-align: center;
1099
  color: #ffffff;
1100
- background-color: rgba(0,0,0,0.6);
1101
  position: absolute;
1102
  left: 0px;
1103
  top: 0px;
@@ -1110,8 +1110,8 @@
1110
 
1111
 
1112
  .tx-slider .owl-controls .owl-buttons .owl-next {
1113
- border-top-right-radius: 3px;
1114
- border-bottom-right-radius: 3px;
1115
  margin-left: -100px;
1116
  }
1117
 
@@ -1119,15 +1119,15 @@
1119
  left: auto;
1120
  right: 0px;
1121
  top: 0px;
1122
- border-top-left-radius: 3px;
1123
- border-bottom-left-radius: 3px;
1124
  margin-right: -100px;
1125
  }
1126
 
1127
 
1128
  .tx-slider .owl-controls .owl-buttons .owl-next span,
1129
  .tx-slider .owl-controls .owl-buttons .owl-prev span {
1130
- line-height: 40px;
1131
  }
1132
 
1133
  .tx-slider:hover .owl-controls .owl-buttons .owl-next {
@@ -1149,6 +1149,7 @@
1149
  top: 0px;
1150
  margin: 0px auto;
1151
  width: 100%;
 
1152
  z-index: 304;
1153
  text-align: left;
1154
  }
@@ -1159,9 +1160,11 @@
1159
  margin: 0px auto;
1160
  width: 100%;
1161
  max-width: 1200px;
1162
- padding: 32px 36px;
1163
-
1164
- z-index: 305;
 
 
1165
  }
1166
 
1167
  .tx-slide-title {
@@ -1170,7 +1173,7 @@
1170
  font-size: 32px;
1171
  padding: 8px 16px;
1172
  color: #FFF;
1173
- background-color: rgba(0,0,0,0.4);
1174
  margin-bottom: 12px;
1175
  visibility: hidden;
1176
  }
@@ -1225,7 +1228,7 @@
1225
  transition-property: all;
1226
  transition-duration: 0.4s;
1227
  transition-timing-function: ease-in-out;
1228
- transition-delay: .8s;
1229
  margin-top: 80px;
1230
  opacity: 0;
1231
  }
1092
  .tx-slider .owl-controls .owl-buttons .owl-next,
1093
  .tx-slider .owl-controls .owl-buttons .owl-prev {
1094
  display: block;
1095
+ height: 56px;
1096
  width: 32px;
1097
  line-height: 32px;
1098
  text-align: center;
1099
  color: #ffffff;
1100
+ background-color: rgba(0,0,0,0.36);
1101
  position: absolute;
1102
  left: 0px;
1103
  top: 0px;
1110
 
1111
 
1112
  .tx-slider .owl-controls .owl-buttons .owl-next {
1113
+ border-top-right-radius: 0px;
1114
+ border-bottom-right-radius: 0px;
1115
  margin-left: -100px;
1116
  }
1117
 
1119
  left: auto;
1120
  right: 0px;
1121
  top: 0px;
1122
+ border-top-left-radius: 0px;
1123
+ border-bottom-left-radius: 0px;
1124
  margin-right: -100px;
1125
  }
1126
 
1127
 
1128
  .tx-slider .owl-controls .owl-buttons .owl-next span,
1129
  .tx-slider .owl-controls .owl-buttons .owl-prev span {
1130
+ line-height: 56px;
1131
  }
1132
 
1133
  .tx-slider:hover .owl-controls .owl-buttons .owl-next {
1149
  top: 0px;
1150
  margin: 0px auto;
1151
  width: 100%;
1152
+ height: 100%;
1153
  z-index: 304;
1154
  text-align: left;
1155
  }
1160
  margin: 0px auto;
1161
  width: 100%;
1162
  max-width: 1200px;
1163
+ padding: 0px 36px;
1164
+ z-index: 305;
1165
+
1166
+ top: 45%;
1167
+ transform: translateY(-50%);
1168
  }
1169
 
1170
  .tx-slide-title {
1173
  font-size: 32px;
1174
  padding: 8px 16px;
1175
  color: #FFF;
1176
+ background-color: rgba(0,0,0,0.36);
1177
  margin-bottom: 12px;
1178
  visibility: hidden;
1179
  }
1228
  transition-property: all;
1229
  transition-duration: 0.4s;
1230
  transition-timing-function: ease-in-out;
1231
+ transition-delay: .3s;
1232
  margin-top: 80px;
1233
  opacity: 0;
1234
  }
inc/meta-box/meta-box.php CHANGED
@@ -9,6 +9,8 @@ Author URI: http://www.deluxeblogtips.com
9
  License: GPL2+
10
  */
11
 
 
 
12
  // Prevent loading this file directly
13
  defined( 'ABSPATH' ) || exit;
14
 
@@ -47,3 +49,5 @@ if ( is_admin() )
47
  require_once TX_RWMB_INC_DIR . 'meta-box.php';
48
  require_once TX_RWMB_INC_DIR . 'init.php';
49
  }
 
 
9
  License: GPL2+
10
  */
11
 
12
+ if ( !class_exists( 'RW_Meta_Box' ) ) {
13
+
14
  // Prevent loading this file directly
15
  defined( 'ABSPATH' ) || exit;
16
 
49
  require_once TX_RWMB_INC_DIR . 'meta-box.php';
50
  require_once TX_RWMB_INC_DIR . 'init.php';
51
  }
52
+
53
+ }
js/tx-script.js CHANGED
@@ -103,21 +103,42 @@ jQuery(document).ready(function ($) {
103
 
104
  var _this = $(this);
105
  var slider_delay = _this.data('delay');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
 
107
- $(this).owlCarousel({
108
- autoPlay : slider_delay,
109
- stopOnHover : true,
110
- navigation: true,
111
- paginationSpeed : 1000,
112
- goToFirstSpeed : 2000,
113
- singleItem : true,
114
- autoHeight : true,
115
- navigationText: ['<span class="genericon genericon-leftarrow"></span>','<span class="genericon genericon-rightarrow"></span>'],
116
- addClassActive: true,
117
- theme : "tx-owl-theme",
118
- transitionStyle : "fadeUp",
119
- pagination : true
120
- });
121
  });
122
 
123
 
103
 
104
  var _this = $(this);
105
  var slider_delay = _this.data('delay');
106
+ var slider_transition = _this.data('transition');
107
+
108
+ if( slider_transition == 'slide' )
109
+ {
110
+ $(this).owlCarousel({
111
+ autoPlay : slider_delay,
112
+ stopOnHover : true,
113
+ navigation: true,
114
+ paginationSpeed : 1000,
115
+ goToFirstSpeed : 2000,
116
+ singleItem : true,
117
+ autoHeight : true,
118
+ navigationText: ['<span class="genericon genericon-rightarrow"></span>','<span class="genericon genericon-leftarrow"></span>'],
119
+ addClassActive: true,
120
+ theme : "tx-owl-theme",
121
+ pagination : true
122
+ });
123
+ } else
124
+ {
125
+ $(this).owlCarousel({
126
+ autoPlay : slider_delay,
127
+ stopOnHover : true,
128
+ navigation: true,
129
+ paginationSpeed : 1000,
130
+ goToFirstSpeed : 2000,
131
+ singleItem : true,
132
+ autoHeight : true,
133
+ navigationText: ['<span class="genericon genericon-rightarrow"></span>','<span class="genericon genericon-leftarrow"></span>'],
134
+ addClassActive: true,
135
+ theme : "tx-owl-theme",
136
+ transitionStyle : slider_transition,
137
+ pagination : true
138
+ });
139
+ }
140
 
141
+
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  });
143
 
144
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -24,6 +24,11 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
24
 
25
 
26
  == Changelog ==
 
 
 
 
 
27
  = 1.1.5 =
28
  * Added Parallax Effect for slider
29
  * CSS changes
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
 
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
34
  * CSS changes
shortcodes.php CHANGED
@@ -26,8 +26,11 @@ function tx_register_button( $buttons ) {
26
  return $buttons;
27
  }
28
 
 
29
  // recent posts [tx_blog items="3" colums="6" showcat="show" category_id="8,9"]
30
 
 
 
31
  function tx_blog_function($atts, $content = null) {
32
 
33
  $atts = shortcode_atts(array(
@@ -137,7 +140,12 @@ function tx_blog_function($atts, $content = null) {
137
  return $return_string;
138
  }
139
 
 
 
 
 
140
  // heading
 
141
 
142
  function tx_heading_function($atts, $content = null) {
143
 
@@ -164,7 +172,11 @@ function tx_heading_function($atts, $content = null) {
164
  return $return_string;
165
  }
166
 
 
 
 
167
  // row
 
168
 
169
  function tx_row_function($atts, $content = null) {
170
 
@@ -181,7 +193,12 @@ function tx_row_function($atts, $content = null) {
181
  return $return_string;
182
  }
183
 
 
 
 
184
  // columns
 
 
185
  function tx_column_function($atts, $content = null) {
186
 
187
  $atts = shortcode_atts(array(
@@ -219,7 +236,12 @@ function tx_column_function($atts, $content = null) {
219
  return $return_string;
220
  }
221
 
 
 
 
 
222
  // spacer
 
223
 
224
  function tx_spacer_function($atts, $content = null) {
225
 
@@ -235,7 +257,13 @@ function tx_spacer_function($atts, $content = null) {
235
  return $return_string;
236
  }
237
 
 
 
 
 
238
  // devider [tx_devider size="24"]
 
 
239
  function tx_divider_function($atts, $content = null) {
240
 
241
  $atts = shortcode_atts(array(
@@ -250,8 +278,11 @@ function tx_divider_function($atts, $content = null) {
250
  return $return_string;
251
  }
252
 
 
 
253
 
254
  // recent posts
 
255
 
256
  function tx_testimonial_function($atts, $content = null) {
257
 
@@ -302,8 +333,11 @@ function tx_testimonial_function($atts, $content = null) {
302
  return $return_string;
303
  }
304
 
 
 
305
 
306
  // button
 
307
 
308
  function tx_button_function($atts, $content = null) {
309
 
@@ -312,18 +346,23 @@ function tx_button_function($atts, $content = null) {
312
  'text' => '',
313
  'url' => '',
314
  'color' => '',
315
- 'textcolor' => '',
 
316
  'class' => '',
317
  ), $atts);
318
 
319
  $return_string ='';
320
 
321
- $return_string .= '<a class="tx-button" href="'.esc_url($atts['url']).'" style="color: '.esc_attr($atts['textcolor']).'; background-color: '.esc_attr($atts['color']).'">'.esc_attr($atts['text']).'</a>';
322
 
323
  return $return_string;
324
  }
325
 
 
 
 
326
  // Call to act
 
327
 
328
  function tx_calltoact_function($atts, $content = null) {
329
 
@@ -342,9 +381,12 @@ function tx_calltoact_function($atts, $content = null) {
342
  return $return_string;
343
  }
344
 
 
 
345
 
346
 
347
  // Call to act [tx_services title="Services Title" icon="fa-heart"]Services content[/tx_services]
 
348
 
349
  function tx_services_function($atts, $content = null) {
350
 
@@ -373,7 +415,11 @@ function tx_services_function($atts, $content = null) {
373
  return $return_string;
374
  }
375
 
 
 
 
376
  // portfolio [tx_portfolio items="6" columns="3"]
 
377
 
378
  function tx_portfolio_function($atts, $content = null) {
379
 
@@ -492,7 +538,11 @@ function tx_portfolio_function($atts, $content = null) {
492
  return $return_string;
493
  }
494
 
495
- // button
 
 
 
 
496
 
497
  function tx_prodscroll_function($atts, $content = null) {
498
 
@@ -535,8 +585,10 @@ function tx_prodscroll_function($atts, $content = null) {
535
  return $return_string;
536
  }
537
 
 
538
 
539
- // recent posts [tx_blog items="3" colums="6" showcat="show" category_id="8,9"]
 
540
 
541
  function tx_slider_function($atts, $content = null) {
542
 
@@ -544,7 +596,13 @@ function tx_slider_function($atts, $content = null) {
544
  'items' => 10,
545
  'category' => '',
546
  'delay' => 8000,
547
- 'parallax' => 'yes',
 
 
 
 
 
 
548
  'class' => '',
549
  ), $atts);
550
 
@@ -561,8 +619,15 @@ function tx_slider_function($atts, $content = null) {
561
  $tx_delay = $atts['delay'];
562
  $tx_parallax = $atts['parallax'];
563
 
 
 
 
 
 
 
564
 
565
- $return_string .= '<div class="tx-slider" data-delay="'.$tx_delay.'" data-parallax="'.$tx_parallax.'">';
 
566
 
567
 
568
  wp_reset_query();
@@ -581,7 +646,7 @@ function tx_slider_function($atts, $content = null) {
581
  $large_image_url = '';
582
  $image_url = '';
583
  $width = 1200;
584
- $height = 420;
585
 
586
  query_posts( $args );
587
 
@@ -603,10 +668,17 @@ function tx_slider_function($atts, $content = null) {
603
  $return_string .= '</div>';
604
  }
605
  /**/
606
- $return_string .= '<div class="tx-slide-content"><div class="tx-slide-content-inner">';
607
- $return_string .= '<h3 class="tx-slide-title">'.get_the_title().'</h3>';
608
- $return_string .= '<div class="tx-slide-details"><p>'.tx_custom_excerpt(32).'</p></div>';
609
- $return_string .= '<div class="tx-slide-button"><a href="'.esc_url( $show_link_url ).'">'.esc_attr( $slide_link_text ).'</a></div>';
 
 
 
 
 
 
 
610
  $return_string .= '</div></div></div></div>';
611
 
612
 
@@ -620,6 +692,9 @@ function tx_slider_function($atts, $content = null) {
620
  return $return_string;
621
  }
622
 
 
 
 
623
 
624
  function tx_register_shortcodes(){
625
  add_shortcode('tx_recentposts', 'tx_recentposts_function');
@@ -640,5 +715,3 @@ function tx_register_shortcodes(){
640
 
641
  add_action( 'init', 'tx_register_shortcodes');
642
 
643
-
644
-
26
  return $buttons;
27
  }
28
 
29
+
30
  // recent posts [tx_blog items="3" colums="6" showcat="show" category_id="8,9"]
31
 
32
+ if ( !function_exists('tx_blog_function') ) :
33
+
34
  function tx_blog_function($atts, $content = null) {
35
 
36
  $atts = shortcode_atts(array(
140
  return $return_string;
141
  }
142
 
143
+ endif;
144
+
145
+
146
+
147
  // heading
148
+ if ( !function_exists('tx_heading_function') ) :
149
 
150
  function tx_heading_function($atts, $content = null) {
151
 
172
  return $return_string;
173
  }
174
 
175
+ endif;
176
+
177
+
178
  // row
179
+ if ( !function_exists('tx_row_function') ) :
180
 
181
  function tx_row_function($atts, $content = null) {
182
 
193
  return $return_string;
194
  }
195
 
196
+ endif;
197
+
198
+
199
  // columns
200
+ if ( !function_exists('tx_column_function') ) :
201
+
202
  function tx_column_function($atts, $content = null) {
203
 
204
  $atts = shortcode_atts(array(
236
  return $return_string;
237
  }
238
 
239
+ endif;
240
+
241
+
242
+
243
  // spacer
244
+ if ( !function_exists('tx_spacer_function') ) :
245
 
246
  function tx_spacer_function($atts, $content = null) {
247
 
257
  return $return_string;
258
  }
259
 
260
+ endif;
261
+
262
+
263
+
264
  // devider [tx_devider size="24"]
265
+ if ( !function_exists('tx_divider_function') ) :
266
+
267
  function tx_divider_function($atts, $content = null) {
268
 
269
  $atts = shortcode_atts(array(
278
  return $return_string;
279
  }
280
 
281
+ endif;
282
+
283
 
284
  // recent posts
285
+ if ( !function_exists('tx_testimonial_function') ) :
286
 
287
  function tx_testimonial_function($atts, $content = null) {
288
 
333
  return $return_string;
334
  }
335
 
336
+ endif;
337
+
338
 
339
  // button
340
+ if ( !function_exists('tx_button_function') ) :
341
 
342
  function tx_button_function($atts, $content = null) {
343
 
346
  'text' => '',
347
  'url' => '',
348
  'color' => '',
349
+ 'textcolor' => '',
350
+ 'target' => 'self',
351
  'class' => '',
352
  ), $atts);
353
 
354
  $return_string ='';
355
 
356
+ $return_string .= '<a class="tx-button" href="'.esc_url($atts['url']).'" target="_'.esc_attr($atts['target']).'" style="color: '.esc_attr($atts['textcolor']).'; background-color: '.esc_attr($atts['color']).'">'.esc_attr($atts['text']).'</a>';
357
 
358
  return $return_string;
359
  }
360
 
361
+ endif;
362
+
363
+
364
  // Call to act
365
+ if ( !function_exists('tx_calltoact_function') ) :
366
 
367
  function tx_calltoact_function($atts, $content = null) {
368
 
381
  return $return_string;
382
  }
383
 
384
+ endif;
385
+
386
 
387
 
388
  // Call to act [tx_services title="Services Title" icon="fa-heart"]Services content[/tx_services]
389
+ if ( !function_exists('tx_services_function') ) :
390
 
391
  function tx_services_function($atts, $content = null) {
392
 
415
  return $return_string;
416
  }
417
 
418
+ endif;
419
+
420
+
421
  // portfolio [tx_portfolio items="6" columns="3"]
422
+ if ( !function_exists('tx_portfolio_function') ) :
423
 
424
  function tx_portfolio_function($atts, $content = null) {
425
 
538
  return $return_string;
539
  }
540
 
541
+ endif;
542
+
543
+
544
+ // Products Carousels
545
+ if ( !function_exists('tx_prodscroll_function') ) :
546
 
547
  function tx_prodscroll_function($atts, $content = null) {
548
 
585
  return $return_string;
586
  }
587
 
588
+ endif;
589
 
590
+ // itrans slider
591
+ if ( !function_exists('tx_slider_function') ) :
592
 
593
  function tx_slider_function($atts, $content = null) {
594
 
596
  'items' => 10,
597
  'category' => '',
598
  'delay' => 8000,
599
+ 'parallax' => 'yes',
600
+ 'transition' => 'slide',
601
+ 'align' => 'left',
602
+ 'title' => 'show',
603
+ 'desc' => 'show',
604
+ 'link' => 'show',
605
+ 'height' => 420,
606
  'class' => '',
607
  ), $atts);
608
 
619
  $tx_delay = $atts['delay'];
620
  $tx_parallax = $atts['parallax'];
621
 
622
+ $tx_transition = $atts['transition'];
623
+ $tx_title = $atts['title'];
624
+ $tx_desc = $atts['desc'];
625
+ $tx_link = $atts['link'];
626
+ $tx_align = $atts['align'];
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();
646
  $large_image_url = '';
647
  $image_url = '';
648
  $width = 1200;
649
+ $height = (int)$tx_height;
650
 
651
  query_posts( $args );
652
 
668
  $return_string .= '</div>';
669
  }
670
  /**/
671
+ $return_string .= '<div class="tx-slide-content"><div class="tx-slide-content-inner" style="text-align:'.$tx_align.';">';
672
+ if ( $tx_title == 'show' )
673
+ {
674
+ $return_string .= '<h3 class="tx-slide-title">'.get_the_title().'</h3>';
675
+ }
676
+ if ( $tx_desc == 'show' ) {
677
+ $return_string .= '<div class="tx-slide-details"><p>'.tx_custom_excerpt(32).'</p></div>';
678
+ }
679
+ if ( $tx_link == 'show' ) {
680
+ $return_string .= '<div class="tx-slide-button"><a href="'.esc_url( $show_link_url ).'">'.esc_attr( $slide_link_text ).'</a></div>';
681
+ }
682
  $return_string .= '</div></div></div></div>';
683
 
684
 
692
  return $return_string;
693
  }
694
 
695
+ endif;
696
+
697
+
698
 
699
  function tx_register_shortcodes(){
700
  add_shortcode('tx_recentposts', 'tx_recentposts_function');
715
 
716
  add_action( 'init', 'tx_register_shortcodes');
717
 
 
 
tx-functions.php CHANGED
@@ -404,4 +404,4 @@ function tx_load_jqvariables(){
404
  $data = 'xyz';
405
  wp_localize_script( 'tx-main', 'tx_t1', tx_slider_cat_list () );
406
  }
407
- add_action( 'admin_enqueue_scripts', 'tx_load_jqvariables' );
404
  $data = 'xyz';
405
  wp_localize_script( 'tx-main', 'tx_t1', tx_slider_cat_list () );
406
  }
407
+ add_action( 'admin_enqueue_scripts', 'tx_load_jqvariables' );
tx-shortcodes.js CHANGED
@@ -638,6 +638,14 @@
638
  <td><input type="text" class="color" name="textcolor" id="button-textcolor" value="">\<br />\
639
  <small>Select button text color</small></td>\
640
  </tr>\
 
 
 
 
 
 
 
 
641
  </table>\
642
  <p class="submit">\
643
  <input type="button" id="button-submit" class="button-primary" value="Insert Button" name="submit" />\
@@ -660,9 +668,10 @@
660
  var button_url = table.find('#button-url').val();
661
  var button_color = table.find('#button-color').val();
662
  var button_textcolor = table.find('#button-textcolor').val();
 
663
 
664
 
665
- var shortcode = '[tx_button style="'+button_style+'" text="'+button_text+'" url="'+button_url+'" color="'+button_color+'" textcolor="'+button_textcolor+'"]';
666
 
667
  // inserts the shortcode into the active editor
668
  tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
@@ -949,6 +958,17 @@
949
  </select><br />\
950
  <small>Select slider category for category based multiple slider(optional)</small></td>\
951
  </tr>\
 
 
 
 
 
 
 
 
 
 
 
952
  <tr>\
953
  <th><label for="slider-items">Number Of Items (slides)</label></th>\
954
  <td><input type="number" min="1" max="16" name="items" id="slider-items" value="4" /><br />\
@@ -967,7 +987,40 @@
967
  </select><br />\
968
  <small>Turn on parallax effect (only works with header slider through page/post meta &quot;Other Slider Plugin Shortcode&quot; )</small>\
969
  </tr>\
970
- </table>\
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
971
  <div class="nx-sh-cancel">\
972
  <input type="button" id="slider-submit" class="button-primary" value="Insert Slider" name="submit" />\
973
  <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
@@ -986,8 +1039,15 @@
986
  var slider_items = table.find('#slider-items').val();
987
  var slider_delay = table.find('#slider-delay').val();
988
  var slider_parallax = table.find('#slider-parallax').val();
 
 
 
 
 
 
 
989
 
990
- var shortcode = '[tx_slider style="'+style+'" category="'+category+'" delay="'+slider_delay+'" parallax="'+slider_parallax+'" items="'+slider_items+'"]<br/>';
991
 
992
  // inserts the shortcode into the active editor
993
  tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
@@ -1113,3 +1173,4 @@ function tx_resize_thickbox() {
1113
  jQuery(document).find('#TB_window').width( TB_WIDTH ).height( TB_HEIGHT ).css( 'margin-left', - TB_WIDTH / 2 );
1114
  }
1115
 
 
638
  <td><input type="text" class="color" name="textcolor" id="button-textcolor" value="">\<br />\
639
  <small>Select button text color</small></td>\
640
  </tr>\
641
+ <tr>\
642
+ <th><label for="button-target">Target</label></th>\
643
+ <td><select name="target" id="button-target">\
644
+ <option value="self">Same Window</option>\
645
+ <option value="blank">New Window</option>\
646
+ </select><br />\
647
+ <small>Open link in same window or new window</small></td>\
648
+ </tr>\
649
  </table>\
650
  <p class="submit">\
651
  <input type="button" id="button-submit" class="button-primary" value="Insert Button" name="submit" />\
668
  var button_url = table.find('#button-url').val();
669
  var button_color = table.find('#button-color').val();
670
  var button_textcolor = table.find('#button-textcolor').val();
671
+ var button_target = table.find('#button-target').val();
672
 
673
 
674
+ var shortcode = '[tx_button style="'+button_style+'" text="'+button_text+'" url="'+button_url+'" color="'+button_color+'" textcolor="'+button_textcolor+'" target="'+button_target+'"]';
675
 
676
  // inserts the shortcode into the active editor
677
  tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
958
  </select><br />\
959
  <small>Select slider category for category based multiple slider(optional)</small></td>\
960
  </tr>\
961
+ <tr>\
962
+ <th><label for="slider-transition">Slider Transition</label></th>\
963
+ <td><select name="transition" id="slider-transition">\
964
+ <option value="slide">Slide</option>\
965
+ <option value="fade">Fade</option>\
966
+ <option value="backSlide">Back Slide</option>\
967
+ <option value="goDown">Go Down</option>\
968
+ <option value="fadeUp">Fade Up</option>\
969
+ </select><br />\
970
+ <small>Select slider transition effect</small></td>\
971
+ </tr>\
972
  <tr>\
973
  <th><label for="slider-items">Number Of Items (slides)</label></th>\
974
  <td><input type="number" min="1" max="16" name="items" id="slider-items" value="4" /><br />\
987
  </select><br />\
988
  <small>Turn on parallax effect (only works with header slider through page/post meta &quot;Other Slider Plugin Shortcode&quot; )</small>\
989
  </tr>\
990
+ <tr>\
991
+ <th><label for="slider-align">Content Alignment</label></th>\
992
+ <td><select name="align" id="slider-align">\
993
+ <option value="left">Left</option>\
994
+ <option value="center">Center</option>\
995
+ <option value="right">Right</option>\
996
+ </select></td>\
997
+ </tr>\
998
+ <tr>\
999
+ <th><label for="slider-title">Show/Hide Title</label></th>\
1000
+ <td><select name="title" id="slider-title">\
1001
+ <option value="show">Show</option>\
1002
+ <option value="hide">Hide</option>\
1003
+ </select></td>\
1004
+ </tr>\
1005
+ <tr>\
1006
+ <th><label for="slider-desc">Show/Hide Details</label></th>\
1007
+ <td><select name="desc" id="slider-desc">\
1008
+ <option value="show">Show</option>\
1009
+ <option value="hide">Hide</option>\
1010
+ </select></td>\
1011
+ </tr>\
1012
+ <tr>\
1013
+ <th><label for="slider-link">Show/Hide Link</label></th>\
1014
+ <td><select name="link" id="slider-link">\
1015
+ <option value="show">Show</option>\
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 />\
1022
+ </tr>\
1023
+ </table>\
1024
  <div class="nx-sh-cancel">\
1025
  <input type="button" id="slider-submit" class="button-primary" value="Insert Slider" name="submit" />\
1026
  <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
1039
  var slider_items = table.find('#slider-items').val();
1040
  var slider_delay = table.find('#slider-delay').val();
1041
  var slider_parallax = table.find('#slider-parallax').val();
1042
+ var slider_transition = table.find('#slider-transition').val();
1043
+
1044
+ var slider_title = table.find('#slider-title').val();
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);
1173
  jQuery(document).find('#TB_window').width( TB_WIDTH ).height( TB_HEIGHT ).css( 'margin-left', - TB_WIDTH / 2 );
1174
  }
1175
 
1176
+
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.6
7
  Author: TemplatesNext
8
  Author URI: http://templatesnext.org/
9
  License: GPLv2 or later
@@ -97,7 +97,12 @@ require_once('inc/widgets/widget-image.php');
97
  /*-----------------------------------------------------------------------------------*/
98
 
99
  require_once('inc/tx-meta.php');
100
- require_once('inc/meta-box/meta-box.php');
 
 
 
 
 
101
 
102
 
103
 
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
97
  /*-----------------------------------------------------------------------------------*/
98
 
99
  require_once('inc/tx-meta.php');
100
+
101
+ include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
102
+ if ( ! is_plugin_active( 'meta-box/meta-box.php' ) )
103
+ {
104
+ require_once('inc/meta-box/meta-box.php');
105
+ }
106
 
107
 
108