TemplatesNext ToolKit - Version 3.2.4

Version Description

Download this release

Release Info

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

Code changes from version 3.2.3 to 3.2.4

Files changed (5) hide show
  1. css/tx-admin-style.css +37 -1
  2. js/tx_main.js +1 -5
  3. readme.txt +2 -2
  4. tx-functions.php +17 -7
  5. tx-toolkit.php +1 -1
css/tx-admin-style.css CHANGED
@@ -338,4 +338,40 @@ ul.tx-fa-icons > li.active {
338
  .post-type-post #postbox-container-2.postbox-container .postbox h2.hndle {
339
  padding-top: 10px;
340
  padding-bottom: 10px;
341
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
338
  .post-type-post #postbox-container-2.postbox-container .postbox h2.hndle {
339
  padding-top: 10px;
340
  padding-bottom: 10px;
341
+ }
342
+
343
+
344
+
345
+ #tx_promo_widget {
346
+ background: linear-gradient( 135deg, #c42766, #be308b, #a945b1, #805bd2, #1270eb);
347
+ }
348
+
349
+ #tx_promo_widget .toggle-indicator,
350
+ #tx_promo_widget .handle-order-lower,
351
+ #tx_promo_widget .handle-order-higher {
352
+ color: #fff;
353
+ }
354
+
355
+ #tx_promo_widget .postbox-header {
356
+ border-bottom: 1px solid rgba(255,255,255,0.32);
357
+ }
358
+
359
+ #tx_promo_widget .inside,
360
+ #tx_promo_widget .inside h1,
361
+ #tx_promo_widget .inside h2,
362
+ #tx_promo_widget .inside h3,
363
+ #tx_promo_widget .inside h4,
364
+ #tx_promo_widget .inside h5,
365
+ #tx_promo_widget .inside h6,
366
+ #tx_promo_widget .postbox-header,
367
+ #tx_promo_widget .postbox-header h1,
368
+ #tx_promo_widget .postbox-header h2,
369
+ #tx_promo_widget .postbox-header h3 {
370
+ color: #fff;
371
+ }
372
+
373
+ #tx_promo_widget .inside {
374
+ color: #fff;
375
+ }
376
+
377
+
js/tx_main.js CHANGED
@@ -584,11 +584,7 @@ function tx_footer_include(){
584
 
585
 
586
  function tx_slider_cat(){
587
- var tx_slider_cat_list = tx_t1;
588
  return tx_slider_cat_list;
589
  }
590
 
591
-
592
-
593
-
594
-
584
 
585
 
586
  function tx_slider_cat(){
587
+ var tx_slider_cat_list = tx_t1['tx_slider_cat_list'];
588
  return tx_slider_cat_list;
589
  }
590
 
 
 
 
 
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: marsian
3
  Tags: shortcode, shortcodes, columns, column, section, sections, portfolio, testimonial, border, borders, button, buttons, masonry, posts, post_type, font awesome, icons, fontawesome
4
  Requires at least: 4.0
5
- Tested up to: 5.6
6
  Requires PHP: 5.6
7
- Stable tag: 3.2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
2
  Contributors: marsian
3
  Tags: shortcode, shortcodes, columns, column, section, sections, portfolio, testimonial, border, borders, button, buttons, masonry, posts, post_type, font awesome, icons, fontawesome
4
  Requires at least: 4.0
5
+ Tested up to: 5.7
6
  Requires PHP: 5.6
7
+ Stable tag: 3.2.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
tx-functions.php CHANGED
@@ -398,30 +398,40 @@ if ( ! function_exists( 'tx_custom_excerpt' ) ) {
398
 
399
 
400
  function tx_slider_cat_list () {
 
401
  $post_type = 'itrans-slider';
402
  $tax = 'itrans-slider-category';
403
- $return = '';
 
 
 
404
  $terms = array( 'all' => 'All' );
405
 
 
406
  $terms = get_terms('itrans-slider-category');
407
  if ( !empty( $terms ) && !is_wp_error( $terms ) )
408
  {
409
  foreach ( $terms as $term )
410
  {
411
- $return .= '<option value="'.$term->slug.'">' . $term->name . '</option>';
412
  }
413
  }
414
- if (!empty($return))
415
- {
 
 
416
  return $return;
417
  }
418
  }
419
 
420
 
421
  function tx_load_jqvariables(){
422
-
423
- $data = 'xyz';
424
- wp_localize_script( 'tx-main', 'tx_t1', tx_slider_cat_list () );
 
 
 
425
  }
426
  add_action( 'admin_enqueue_scripts', 'tx_load_jqvariables' );
427
 
398
 
399
 
400
  function tx_slider_cat_list () {
401
+
402
  $post_type = 'itrans-slider';
403
  $tax = 'itrans-slider-category';
404
+
405
+ $return = "";
406
+ $cat_list = "";
407
+
408
  $terms = array( 'all' => 'All' );
409
 
410
+ /**/
411
  $terms = get_terms('itrans-slider-category');
412
  if ( !empty( $terms ) && !is_wp_error( $terms ) )
413
  {
414
  foreach ( $terms as $term )
415
  {
416
+ $cat_list .= '<option value="'.$term->slug.'">' . $term->name . '</option>';
417
  }
418
  }
419
+
420
+ if (!empty($cat_list)) {
421
+ return $cat_list;
422
+ } else {
423
  return $return;
424
  }
425
  }
426
 
427
 
428
  function tx_load_jqvariables(){
429
+
430
+ $tx_slider_cat_list = tx_slider_cat_list();
431
+ $tx_slider_cat_list = array( 'tx_slider_cat_list' => $tx_slider_cat_list );
432
+
433
+ wp_localize_script( 'tx-main', 'tx_t1', $tx_slider_cat_list );
434
+
435
  }
436
  add_action( 'admin_enqueue_scripts', 'tx_load_jqvariables' );
437
 
tx-toolkit.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: TemplatesNext ToolKit
5
  Plugin URI: https://www.templatesnext.org/icreate/templatesnext-toolkit/
6
  Description: Custom Portfolio and Shortcode functionality for TemplatesNext Wordpress Themes
7
- Version: 3.2.3
8
  Author: TemplatesNext
9
  Text Domain: tx
10
  Author URI: http://templatesnext.org/
4
  Plugin Name: TemplatesNext ToolKit
5
  Plugin URI: https://www.templatesnext.org/icreate/templatesnext-toolkit/
6
  Description: Custom Portfolio and Shortcode functionality for TemplatesNext Wordpress Themes
7
+ Version: 3.2.4
8
  Author: TemplatesNext
9
  Text Domain: tx
10
  Author URI: http://templatesnext.org/