TemplatesNext ToolKit - Version 2.0.7

Version Description

Download this release

Release Info

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

Code changes from version 2.0.6 to 2.0.7

css/ajax-loader.gif ADDED
Binary file
css/owl.video.play.png ADDED
Binary file
css/tx-admin-style.css CHANGED
@@ -211,4 +211,8 @@ ul.tx-fa-icons > li.active {
211
  .updated > p {
212
  display: inline-block;
213
  line-height: 24px;
 
 
 
 
214
  }
211
  .updated > p {
212
  display: inline-block;
213
  line-height: 24px;
214
+ }
215
+
216
+ #colorbox, #cboxOverlay, #cboxWrapper {
217
+ z-index: 100055;
218
  }
css/tx-style.css CHANGED
@@ -1888,4 +1888,110 @@ span.tx-animate {
1888
  line-height: 32px;
1889
  padding: 0px 32px;
1890
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1891
  }
1888
  line-height: 32px;
1889
  padding: 0px 32px;
1890
  }
1891
+ }
1892
+
1893
+ /* Page builder fix */
1894
+
1895
+
1896
+ .entry-content .panel-layout .panel-grid .widget ul {
1897
+ list-style-type: square;
1898
+ padding: 0px;
1899
+ margin: 0px;
1900
+ padding-left: 24px;
1901
+ }
1902
+ .entry-content .panel-layout .panel-grid .widget ul li {
1903
+ border: none;
1904
+ color: #373737;
1905
+ padding: 0px;
1906
+ padding-left: 0px;
1907
+ margin-left: 0px;
1908
+ line-height: 30px;
1909
+ }
1910
+
1911
+ .tx-site-origin-blog .textwidget .tx-blog-item .tx-border-box {
1912
+ background-color: #FFF;
1913
+ }
1914
+
1915
+ .tx-site-origin-feature .sow-features-list .sow-features-feature .textwidget {
1916
+ padding-left: 12px;
1917
+ }
1918
+ .tx-site-origin-feature .sow-features-list .sow-features-feature .textwidget > h5 {
1919
+ margin-top: 0px;
1920
+ font-weight: 400;
1921
+ margin-bottom: .5em;
1922
+ }
1923
+
1924
+ .tx-site-origin-feature .sow-features-list .sow-features-feature > a {
1925
+ padding-top: 6px;
1926
+ }
1927
+
1928
+ .entry-content .panel-grid .so-panel.widget h3.widget-title {
1929
+ font-size: 32px;
1930
+ border: 0px solid #FFF;
1931
+ padding: 0px;
1932
+ margin: 0px;
1933
+ }
1934
+
1935
+ .tx-slider.shadow .tx-slider-box .tx-slide-content .tx-slide-details p,
1936
+ .tx-slider.softvignette .tx-slider-box .tx-slide-content .tx-slide-details p,
1937
+ .tx-slider.hardvignette .tx-slider-box .tx-slide-content .tx-slide-details p,
1938
+ .tx-slider.darkoverlay .tx-slider-box .tx-slide-content .tx-slide-details p,
1939
+ .tx-slider.pattern .tx-slider-box .tx-slide-content .tx-slide-details p,
1940
+ .tx-slider.siftvignette .tx-slider-box .tx-slide-content .tx-slide-details p {
1941
+ background: transparent;
1942
+ padding-left: 0px;
1943
+ padding-right: 0px;
1944
+ margin-top: 0px;
1945
+ }
1946
+
1947
+ .tx-slider.shadow .tx-slider-box .tx-slide-content .tx-slide-title,
1948
+ .tx-slider.softvignette .tx-slider-box .tx-slide-content .tx-slide-title,
1949
+ .tx-slider.hardvignette .tx-slider-box .tx-slide-content .tx-slide-title,
1950
+ .tx-slider.darkoverlay .tx-slider-box .tx-slide-content .tx-slide-title,
1951
+ .tx-slider.pattern .tx-slider-box .tx-slide-content .tx-slide-title {
1952
+ background: transparent;
1953
+ padding-left: 0px;
1954
+ padding-right: 0px;
1955
+ margin-bottom: 0px;
1956
+ line-height: 1em;
1957
+ }
1958
+
1959
+
1960
+ .tx-slider.softvignette .tx-slider-box .tx-slide-content {
1961
+ background-image: url(images/vig-24.png);
1962
+ background-repeat: no-repeat;
1963
+ background-position: center center;
1964
+ background-size: cover;
1965
+ }
1966
+
1967
+ .tx-slider.hardvignette .tx-slider-box .tx-slide-content {
1968
+ background-image: url(images/vig-32.png);
1969
+ background-repeat: no-repeat;
1970
+ background-position: center center;
1971
+ background-size: cover;
1972
+ }
1973
+
1974
+ .tx-slider.darkoverlay .tx-slider-box .tx-slide-content {
1975
+ background-color: rgba(0,0,0,0.4);
1976
+ }
1977
+
1978
+ .tx-slider.pattern .tx-slider-box .tx-slide-content {
1979
+ background-image: url(images/homepage-banner-bg3.png);
1980
+ background-repeat: repeat;
1981
+ background-position: 0px 0px;
1982
+ }
1983
+
1984
+
1985
+ .tx-slider .owl-pagination .owl-page > span {
1986
+ background: transparent;
1987
+ border-radius: 0px;
1988
+ border-width: 1px;
1989
+ border-style: solid;
1990
+ }
1991
+ .tx-slider .owl-pagination .owl-page.active > span {
1992
+ background-color: #FFF;
1993
+ }
1994
+
1995
+ .tx-slider .owl-buttons div {
1996
+ background-color: #F60;
1997
  }
inc/widgets/widget-comments.php CHANGED
@@ -69,9 +69,10 @@
69
  $comment_date = get_comment_date('', $comment->comment_ID);
70
  $comment_date = mysql2date('U', $comment_date);
71
 
72
- printf('<span class="comment-author">%1$s</span> <span class="comment-date">%2$s</span>',
73
  $comment->comment_author,
74
- human_time_diff( $comment_date, current_time('timestamp') ) . ' ' . __("ago", "tx")
 
75
  );
76
  ?>
77
  </div>
@@ -80,11 +81,11 @@
80
  $length = 60;
81
  $comment_text = $comment->comment_content;
82
  if ( strlen($comment_text) > $length ) {
83
- $comment_text = substr($comment_text, 0, $length);
84
- $comment_text = $comment_text .' ...';
85
  }
86
  ?>
87
- <a href="<?php echo get_comments_link($comment->comment_post_ID); ?>"><?php echo apply_filters('the_content', $comment_text); ?></a>
88
  </div>
89
 
90
  </div>
69
  $comment_date = get_comment_date('', $comment->comment_ID);
70
  $comment_date = mysql2date('U', $comment_date);
71
 
72
+ printf('<span class="comment-author">%1$s</span> <span class="comment-date">%2$s</span>',
73
  $comment->comment_author,
74
+ //human_time_diff( $comment_date, current_time('timestamp') ) . ' ' . __("ago", "tx")
75
+ get_comment_date('', $comment->comment_ID)
76
  );
77
  ?>
78
  </div>
81
  $length = 60;
82
  $comment_text = $comment->comment_content;
83
  if ( strlen($comment_text) > $length ) {
84
+ $comment_text = substr($comment_text, 0, $length);
85
+ $comment_text = $comment_text .' ...';
86
  }
87
  ?>
88
+ <a href="<?php echo get_comments_link($comment->comment_post_ID); ?>"><?php echo $comment_text; ?></a>
89
  </div>
90
 
91
  </div>
inc/widgets/widget-portfolio.php CHANGED
@@ -59,12 +59,12 @@
59
  $post_permalink = get_permalink();
60
  $thumb_image = get_post_thumbnail_id();
61
  $thumb_img_url = wp_get_attachment_url( $thumb_image, 'widget-image' );
62
- $image = tx_image_resize( $thumb_img_url, 94, 75, true, false);
63
  ?>
64
  <li>
65
  <a href="<?php echo $post_permalink; ?>" class="recent-post-image">
66
  <?php if ($image) { ?>
67
- <img src="<?php echo $image['url']; ?>" width="<?php echo $image[1]; ?>" height="<?php echo $image[2]; ?>" alt=" " />
68
  <?php } ?>
69
  </a>
70
  <div class="recent-post-details">
59
  $post_permalink = get_permalink();
60
  $thumb_image = get_post_thumbnail_id();
61
  $thumb_img_url = wp_get_attachment_url( $thumb_image, 'widget-image' );
62
+ $image = aq_resize( $thumb_img_url, 94, 75, true, false);
63
  ?>
64
  <li>
65
  <a href="<?php echo $post_permalink; ?>" class="recent-post-image">
66
  <?php if ($image) { ?>
67
+ <img src="<?php echo $image['0']; ?>" width="<?php echo $image[1]; ?>" height="<?php echo $image[2]; ?>" alt=" " />
68
  <?php } ?>
69
  </a>
70
  <div class="recent-post-details">
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.6
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.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
shortcodes.php CHANGED
@@ -665,7 +665,7 @@ function tx_slider_function($atts, $content = null) {
665
 
666
  $full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
667
  $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
668
- $image_url = tx_image_resize( $full_image_url[0], $width, $height, true, true );
669
 
670
  $slide_link_text = rwmb_meta('tx_slide_link_text');
671
  $show_link_url = rwmb_meta('tx_slide_link_url');
@@ -675,7 +675,7 @@ function tx_slider_function($atts, $content = null) {
675
 
676
  if ( has_post_thumbnail() ) {
677
  $return_string .= '<div class="tx-slider-img"><a href="'.esc_url($large_image_url[0]).'" class="tx-colorbox">';
678
- $return_string .= '<img src="'.esc_url($image_url["url"]).'" alt="" class="blog-image" /></a>';
679
  $return_string .= '</div>';
680
  }
681
  /**/
@@ -749,7 +749,7 @@ function tx_team_function($atts, $content = null) {
749
  if ( have_posts() ) : while ( have_posts() ) : the_post();
750
 
751
  $full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
752
- $image_url = tx_image_resize( $full_image_url[0], $width, $height, true, true );
753
 
754
  $designation = esc_attr(rwmb_meta('tx_designation'));
755
  $team_email = esc_attr(rwmb_meta('tx_team_email'));
@@ -765,7 +765,7 @@ function tx_team_function($atts, $content = null) {
765
 
766
  if ( has_post_thumbnail() ) {
767
  $return_string .= '<div class="tx-team-img">';
768
- $return_string .= '<img src="'.esc_url($image_url["url"]).'" alt="" class="team-image" />';
769
 
770
  /*
771
  if($team_email) { $return_string .= '<span class="tx-temail">'.$team_email.'</span>'; }
665
 
666
  $full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
667
  $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
668
+ $image_url = aq_resize( $full_image_url[0], $width, $height, true, false, true );
669
 
670
  $slide_link_text = rwmb_meta('tx_slide_link_text');
671
  $show_link_url = rwmb_meta('tx_slide_link_url');
675
 
676
  if ( has_post_thumbnail() ) {
677
  $return_string .= '<div class="tx-slider-img"><a href="'.esc_url($large_image_url[0]).'" class="tx-colorbox">';
678
+ $return_string .= '<img src="'.esc_url($image_url['0']).'" alt="" class="blog-image" /></a>';
679
  $return_string .= '</div>';
680
  }
681
  /**/
749
  if ( have_posts() ) : while ( have_posts() ) : the_post();
750
 
751
  $full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
752
+ $image_url = aq_resize( $full_image_url[0], $width, $height, true, false, true );
753
 
754
  $designation = esc_attr(rwmb_meta('tx_designation'));
755
  $team_email = esc_attr(rwmb_meta('tx_team_email'));
765
 
766
  if ( has_post_thumbnail() ) {
767
  $return_string .= '<div class="tx-team-img">';
768
+ $return_string .= '<img src="'.esc_url($image_url['0']).'" alt="" class="team-image" />';
769
 
770
  /*
771
  if($team_email) { $return_string .= '<span class="tx-temail">'.$team_email.'</span>'; }
tx-functions.php CHANGED
@@ -417,4 +417,3 @@ add_action('media_buttons', 'tx_shortcode_button');
417
 
418
 
419
 
420
-
417
 
418
 
419
 
 
tx-shortcodes.js CHANGED
@@ -62,7 +62,7 @@
62
  <td class="shortcode-list"><span id="animation">Animate</span></td><td class="shortcode-list"><span id="fancyblock">Fancy Block</span></td>\
63
  </tr>\
64
  <tr>\
65
- <td class="shortcode-list"><span id="txteam">Team</span></td><td class="shortcode-list"><span id="videoslider">Video Slider</span></td>\
66
  </tr>\
67
  <tr>\
68
  <td class="shortcode-list"><span id="txyoutube">YouTube Video</span></td><td class="shortcode-list"><span id="noid">&nbsp;</span></td>\
@@ -1079,6 +1079,10 @@
1079
  <td><select name="textbg" id="slider-textbg">\
1080
  <option value="shadow">Shadowed Text</option>\
1081
  <option value="transparent">Semi-transparent Background</option>\
 
 
 
 
1082
  </select></td>\
1083
  </tr>\
1084
  <tr>\
@@ -1436,7 +1440,7 @@
1436
  jQuery(function(){
1437
  var form_vslider = jQuery('<div id="vslider-form" class="tx-sh-form"><div id="tx-vslider-form"><table id="vslider-table" class="form-table">\
1438
  <tr>\
1439
- <td class="tx-heading" colspan="2"><h2>Video/Hero Slider</h2></td>\
1440
  </tr>\
1441
  <tr>\
1442
  <th><label for="vslider-height">Slider Height in %</label></th>\
62
  <td class="shortcode-list"><span id="animation">Animate</span></td><td class="shortcode-list"><span id="fancyblock">Fancy Block</span></td>\
63
  </tr>\
64
  <tr>\
65
+ <td class="shortcode-list"><span id="txteam">Team</span></td><td class="shortcode-list"><span id="videoslider">Fullscreen Video/Image Slider</span></td>\
66
  </tr>\
67
  <tr>\
68
  <td class="shortcode-list"><span id="txyoutube">YouTube Video</span></td><td class="shortcode-list"><span id="noid">&nbsp;</span></td>\
1079
  <td><select name="textbg" id="slider-textbg">\
1080
  <option value="shadow">Shadowed Text</option>\
1081
  <option value="transparent">Semi-transparent Background</option>\
1082
+ <option value="softvignette">Soft Vignette</option>\
1083
+ <option value="hardvignette">Hard Vignette</option>\
1084
+ <option value="darkoverlay">Dark Overlay</option>\
1085
+ <option value="pattern">Pixel Pattern</option>\
1086
  </select></td>\
1087
  </tr>\
1088
  <tr>\
1440
  jQuery(function(){
1441
  var form_vslider = jQuery('<div id="vslider-form" class="tx-sh-form"><div id="tx-vslider-form"><table id="vslider-table" class="form-table">\
1442
  <tr>\
1443
+ <td class="tx-heading" colspan="2"><h2>Video/Hero Slider</h2><br /><b style="font-size: 12px; color: #911919;">Must be used with wide layout. Might not work properly in boxed layout</b></td>\
1444
  </tr>\
1445
  <tr>\
1446
  <th><label for="vslider-height">Slider Height in %</label></th>\
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.6
7
  Author: TemplatesNext
8
  Author URI: http://templatesnext.org/
9
  License: GPLv2 or later
@@ -24,15 +24,15 @@ function tx_toolkit_admin_style() {
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
 
30
 
31
  function tx_scripts_styles() {
32
 
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' );
3
  /*
4
  Plugin Name: TemplatesNext ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for TemplatesNext Wordpress Themes
6
+ Version: 2.0.7
7
  Author: TemplatesNext
8
  Author URI: http://templatesnext.org/
9
  License: GPLv2 or later
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
 
30
 
31
  function tx_scripts_styles() {
32
 
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, '2.2.1', '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' );