Version Description
- Team member post type added
- testimonial in full width row fix
Download this release
Release Info
Developer | marsian |
Plugin | TemplatesNext ToolKit |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.0 to 2.0.1
- css/tx-style.css +9 -0
- js/my-script.js +0 -0
- readme.txt +16 -2
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- shortcodes.php +8 -6
- tx-toolkit.php +2 -2
css/tx-style.css
CHANGED
@@ -748,6 +748,15 @@
|
|
748 |
color: #999;
|
749 |
}
|
750 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
751 |
.tx-button {
|
752 |
display: inline-block;
|
753 |
padding: 10px 16px;
|
748 |
color: #999;
|
749 |
}
|
750 |
|
751 |
+
@media (min-width: 1200px) {
|
752 |
+
.tx-fullwidthrow .tx-fw-content .tx-testi-item {
|
753 |
+
margin-left: 64px;
|
754 |
+
}
|
755 |
+
}
|
756 |
+
|
757 |
+
|
758 |
+
|
759 |
+
/* tx Button */
|
760 |
.tx-button {
|
761 |
display: inline-block;
|
762 |
padding: 10px 16px;
|
js/my-script.js
ADDED
File without changes
|
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.5
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -24,6 +24,10 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
|
|
24 |
|
25 |
|
26 |
== Changelog ==
|
|
|
|
|
|
|
|
|
27 |
= 1.1.8 =
|
28 |
* Added shortcode animate and fancy block added
|
29 |
* itrans slider new text backbround option added
|
@@ -56,4 +60,14 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
|
|
56 |
* Added itrans slider shortcode.
|
57 |
|
58 |
= 1.0.1 =
|
59 |
-
* Initial Version.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: 2.0.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
24 |
|
25 |
|
26 |
== Changelog ==
|
27 |
+
= 2.0.1 =
|
28 |
+
* Team member post type added
|
29 |
+
* testimonial in full width row fix
|
30 |
+
|
31 |
= 1.1.8 =
|
32 |
* Added shortcode animate and fancy block added
|
33 |
* itrans slider new text backbround option added
|
60 |
* Added itrans slider shortcode.
|
61 |
|
62 |
= 1.0.1 =
|
63 |
+
* Initial Version.
|
64 |
+
|
65 |
+
|
66 |
+
|
67 |
+
== Screenshots ==
|
68 |
+
|
69 |
+
|
70 |
+
1. Fill in the post type Portfolio, Testimonial, itrans slider and team.
|
71 |
+
|
72 |
+
2. Use the [tx] button to open the shortcode generator pop up.
|
73 |
+
3. Choose the short to generate.
|
screenshot-1.png
ADDED
Binary file
|
screenshot-2.png
ADDED
Binary file
|
screenshot-3.png
ADDED
Binary file
|
shortcodes.php
CHANGED
@@ -295,7 +295,7 @@ function tx_testimonial_function($atts, $content = null) {
|
|
295 |
$posts_per_page = intval( $posts_per_page );
|
296 |
|
297 |
$return_string = '';
|
298 |
-
|
299 |
$return_string .= '<div class="tx-testimonials">';
|
300 |
|
301 |
|
@@ -305,6 +305,7 @@ function tx_testimonial_function($atts, $content = null) {
|
|
305 |
$args = array(
|
306 |
'posts_per_page' => $posts_per_page,
|
307 |
'post_type' => 'testimonials',
|
|
|
308 |
'orderby' => 'date',
|
309 |
'order' => 'DESC'
|
310 |
);
|
@@ -316,18 +317,19 @@ function tx_testimonial_function($atts, $content = null) {
|
|
316 |
$testi_name = esc_attr(rwmb_meta('tx_testi_name'));
|
317 |
$testi_desig = esc_attr(rwmb_meta('tx_testi_desig'));
|
318 |
$testi_organ = esc_attr(rwmb_meta('tx_testi_company'));
|
319 |
-
|
320 |
-
|
|
|
321 |
$return_string .= '<span class="tx-testi-text">'.get_the_content().'</span>';
|
322 |
$return_string .= '<span class="tx-testi-name">'.$testi_name.'</span>';
|
323 |
$return_string .= '<span class="tx-testi-desig">'.$testi_desig.', </span>';
|
324 |
$return_string .= '<span class="tx-testi-org">'.$testi_organ.'</span>';
|
325 |
$return_string .= '</div>';
|
326 |
endwhile; else :
|
327 |
-
$return_string .= '<p>Sorry, no
|
328 |
endif;
|
329 |
|
330 |
-
$return_string .= '</div>';
|
331 |
|
332 |
wp_reset_query();
|
333 |
return $return_string;
|
@@ -782,7 +784,7 @@ function tx_team_function($atts, $content = null) {
|
|
782 |
|
783 |
|
784 |
endwhile; else :
|
785 |
-
$return_string .= '<p>Sorry, no
|
786 |
endif;
|
787 |
|
788 |
$return_string .= '</div>';
|
295 |
$posts_per_page = intval( $posts_per_page );
|
296 |
|
297 |
$return_string = '';
|
298 |
+
$return_string .= '<div class="tx-testiin">';
|
299 |
$return_string .= '<div class="tx-testimonials">';
|
300 |
|
301 |
|
305 |
$args = array(
|
306 |
'posts_per_page' => $posts_per_page,
|
307 |
'post_type' => 'testimonials',
|
308 |
+
'fullwidth' => 0,
|
309 |
'orderby' => 'date',
|
310 |
'order' => 'DESC'
|
311 |
);
|
317 |
$testi_name = esc_attr(rwmb_meta('tx_testi_name'));
|
318 |
$testi_desig = esc_attr(rwmb_meta('tx_testi_desig'));
|
319 |
$testi_organ = esc_attr(rwmb_meta('tx_testi_company'));
|
320 |
+
|
321 |
+
|
322 |
+
$return_string .= '<div class="tx-testi-item" style="">';
|
323 |
$return_string .= '<span class="tx-testi-text">'.get_the_content().'</span>';
|
324 |
$return_string .= '<span class="tx-testi-name">'.$testi_name.'</span>';
|
325 |
$return_string .= '<span class="tx-testi-desig">'.$testi_desig.', </span>';
|
326 |
$return_string .= '<span class="tx-testi-org">'.$testi_organ.'</span>';
|
327 |
$return_string .= '</div>';
|
328 |
endwhile; else :
|
329 |
+
$return_string .= '<p>Sorry, no testimonial matched your criteria.</p>';
|
330 |
endif;
|
331 |
|
332 |
+
$return_string .= '</div></div>';
|
333 |
|
334 |
wp_reset_query();
|
335 |
return $return_string;
|
784 |
|
785 |
|
786 |
endwhile; else :
|
787 |
+
$return_string .= '<p>Sorry, no team member matched your criteria.</p>';
|
788 |
endif;
|
789 |
|
790 |
$return_string .= '</div>';
|
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.
|
7 |
Author: TemplatesNext
|
8 |
Author URI: http://templatesnext.org/
|
9 |
License: GPLv2 or later
|
@@ -49,7 +49,7 @@ add_action( 'admin_enqueue_scripts', 'tx_enqueue_color_picker' );
|
|
49 |
function tx_enqueue_color_picker( $hook_suffix ) {
|
50 |
// first check that $hook_suffix is appropriate for your admin page
|
51 |
wp_enqueue_style( 'wp-color-picker' );
|
52 |
-
wp_enqueue_script( 'my-script-handle', plugins_url('my-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
|
53 |
}
|
54 |
|
55 |
|
3 |
/*
|
4 |
Plugin Name: TemplatesNext ToolKit
|
5 |
Description: Custom Portfolio and Shortcode functionality for TemplatesNext Wordpress Themes
|
6 |
+
Version: 2.0.1
|
7 |
Author: TemplatesNext
|
8 |
Author URI: http://templatesnext.org/
|
9 |
License: GPLv2 or later
|
49 |
function tx_enqueue_color_picker( $hook_suffix ) {
|
50 |
// first check that $hook_suffix is appropriate for your admin page
|
51 |
wp_enqueue_style( 'wp-color-picker' );
|
52 |
+
wp_enqueue_script( 'my-script-handle', plugins_url('js/my-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
|
53 |
}
|
54 |
|
55 |
|