TemplatesNext ToolKit - Version 2.0.4

Version Description

Download this release

Release Info

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

Code changes from version 2.0.3 to 2.0.4

inc/widgets/widget-portfolio-grid.php CHANGED
@@ -32,6 +32,7 @@
32
  function widget( $args, $instance ) {
33
  global $post;
34
  extract($args);
 
35
 
36
  // Widget Options
37
  $title = apply_filters('widget_title', $instance['title'] ); // Title
@@ -63,7 +64,10 @@
63
 
64
  $thumb_image = get_post_thumbnail_id();
65
  $thumb_img_url = wp_get_attachment_url( $thumb_image, 'small' );
66
- $image = aq_resize( $thumb_img_url, 96, 96, true, false);
 
 
 
67
  ?>
68
  <?php if ($image) { ?>
69
  <li class="grid-item-<?php echo $count; ?>">
32
  function widget( $args, $instance ) {
33
  global $post;
34
  extract($args);
35
+ $image = "";
36
 
37
  // Widget Options
38
  $title = apply_filters('widget_title', $instance['title'] ); // Title
64
 
65
  $thumb_image = get_post_thumbnail_id();
66
  $thumb_img_url = wp_get_attachment_url( $thumb_image, 'small' );
67
+ if($thumb_img_url)
68
+ {
69
+ $image = aq_resize( $thumb_img_url, 96, 96, true, false);
70
+ }
71
  ?>
72
  <?php if ($image) { ?>
73
  <li class="grid-item-<?php echo $count; ?>">
inc/widgets/widget-posts.php CHANGED
@@ -36,6 +36,7 @@
36
  // Widget Options
37
  $title = apply_filters('widget_title', $instance['title'] ); // Title
38
  $number = $instance['number']; // Number of posts to show
 
39
 
40
  echo $before_widget;
41
 
@@ -76,7 +77,11 @@
76
 
77
  $thumb_image = get_post_thumbnail_id();
78
  $thumb_img_url = wp_get_attachment_url( $thumb_image, 'small' );
79
- $image = aq_resize( $thumb_img_url, 96, 96, true, false);
 
 
 
 
80
 
81
  if ($image) {
82
  $thumb_stat = "thumbyes";
36
  // Widget Options
37
  $title = apply_filters('widget_title', $instance['title'] ); // Title
38
  $number = $instance['number']; // Number of posts to show
39
+ $image = "";
40
 
41
  echo $before_widget;
42
 
77
 
78
  $thumb_image = get_post_thumbnail_id();
79
  $thumb_img_url = wp_get_attachment_url( $thumb_image, 'small' );
80
+
81
+ if($thumb_img_url)
82
+ {
83
+ $image = aq_resize( $thumb_img_url, 96, 96, true, false);
84
+ }
85
 
86
  if ($image) {
87
  $thumb_stat = "thumbyes";
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.7
7
- Stable tag: 2.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
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.7
7
+ Stable tag: 2.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
shortcodes.php CHANGED
@@ -93,7 +93,10 @@ function tx_blog_function($atts, $content = null) {
93
  $full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
94
 
95
  $thumb_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
96
- $thumb_image_url = aq_resize( $thumb_image_url[0], $width, $height, true, true, true );
 
 
 
97
 
98
  $return_string .= '<div class="tx-blog-item tx-post-col-'.$total_column.'"><div class="tx-border-box">';
99
 
@@ -493,8 +496,10 @@ function tx_portfolio_function($atts, $content = null) {
493
  $full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
494
 
495
  $thumb_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
496
- $thumb_image_url = aq_resize( $thumb_image_url[0], $width, $height, true, true, true );
497
-
 
 
498
 
499
  $return_string .= '<div class="tx-portfolio-item tx-post-col-'.$total_column.'"><div class="tx-border-box">';
500
 
93
  $full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
94
 
95
  $thumb_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
96
+ if($thumb_image_url)
97
+ {
98
+ $thumb_image_url = aq_resize( $thumb_image_url[0], $width, $height, true, true, true );
99
+ }
100
 
101
  $return_string .= '<div class="tx-blog-item tx-post-col-'.$total_column.'"><div class="tx-border-box">';
102
 
496
  $full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
497
 
498
  $thumb_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
499
+ if($thumb_image_url)
500
+ {
501
+ $thumb_image_url = aq_resize( $thumb_image_url[0], $width, $height, true, true, true );
502
+ }
503
 
504
  $return_string .= '<div class="tx-portfolio-item tx-post-col-'.$total_column.'"><div class="tx-border-box">';
505
 
tx-shortcodes.js CHANGED
@@ -1390,7 +1390,7 @@
1390
  jQuery.colorbox.close();
1391
  });
1392
 
1393
- form_image.find('#modal-close').click(function(){
1394
  jQuery.colorbox.close();
1395
  });
1396
 
1390
  jQuery.colorbox.close();
1391
  });
1392
 
1393
+ form_team.find('#modal-close').click(function(){
1394
  jQuery.colorbox.close();
1395
  });
1396
 
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: 2.0.3
7
  Author: TemplatesNext
8
  Author URI: http://templatesnext.org/
9
  License: GPLv2 or later
@@ -115,3 +115,8 @@ if(!defined('TX_TOOLKIT_PATH')){
115
  if(!defined('TX_TOOLKIT_URL')){
116
  define('TX_TOOLKIT_URL', plugin_dir_url(__FILE__) );
117
  }
 
 
 
 
 
3
  /*
4
  Plugin Name: TemplatesNext ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for TemplatesNext Wordpress Themes
6
+ Version: 2.0.4
7
  Author: TemplatesNext
8
  Author URI: http://templatesnext.org/
9
  License: GPLv2 or later
115
  if(!defined('TX_TOOLKIT_URL')){
116
  define('TX_TOOLKIT_URL', plugin_dir_url(__FILE__) );
117
  }
118
+
119
+ require( 'inc/class-remote-notification-client.php' );
120
+ if ( function_exists( 'tx_add_notification' ) ) {
121
+ tx_add_notification( 57, '4c037aa922a5d96c', 'http://www.templatesnext.org/icreate/' );
122
+ }