Fruitful Shortcodes - Version 1.6.1

Version Description

Release Date 21.07.2017

  • Fixed * Old version php (5.5) support
Download this release

Release Info

Developer fruitfulcode
Plugin Icon 128x128 Fruitful Shortcodes
Version 1.6.1
Comparing to
See all releases

Code changes from version 1.6 to 1.6.1

ff-shortcodes.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Fruitful Shortcodes
4
  Plugin URI: http://plugins.fruitfulcode.com/shortcodes/
5
  Description: Add additional content shortcodes: horizontal tabs, vertical tabs, accordion, promo text, columns, infobox, separator, alert, progress bar, button, recent post, recent news
6
- Version: 1.6
7
  Author: fruitfulcode
8
  Author URI: http://fruitfulcode.com
9
  License: GPL2
3
  Plugin Name: Fruitful Shortcodes
4
  Plugin URI: http://plugins.fruitfulcode.com/shortcodes/
5
  Description: Add additional content shortcodes: horizontal tabs, vertical tabs, accordion, promo text, columns, infobox, separator, alert, progress bar, button, recent post, recent news
6
+ Version: 1.6.1
7
  Author: fruitfulcode
8
  Author URI: http://fruitfulcode.com
9
  License: GPL2
includes/shortcodes/shortcodes.php CHANGED
@@ -13,19 +13,25 @@
13
  function fruitful_init_shortcodes_script() {
14
  wp_enqueue_script('ffs-easyResponsiveTabs', FRUITFUL_SHORTCODE_URI . 'includes/shortcodes/js/tabs/easyResponsiveTabs.js', array( 'jquery' ), '20142803', true );
15
  wp_enqueue_script('ffs-script', FRUITFUL_SHORTCODE_URI . 'includes/shortcodes/js/fss_script.js', array( 'jquery' ), '20142803', true );
16
- if ( !fruitful_is_bootstrap_js_loaded() )
17
- wp_enqueue_script('ffs-bootstrap', FRUITFUL_SHORTCODE_URI . 'includes/shortcodes/bootstrap/js/bootstrap.min.js', array( 'jquery' ), '20142803', true );
 
18
  }
19
 
20
  add_action( 'wp_enqueue_scripts', 'fruitful_init_shortcodes_style', 99 );
21
  add_action( 'wp_enqueue_scripts', 'fruitful_init_shortcodes_script', 100 );
22
 
23
- function fruitful_is_bootstrap_js_loaded() {
24
  global $wp_scripts;
25
 
26
- foreach( $wp_scripts->queue as $script ) :
27
- if ( preg_match('/\b(\w*bootstrap\w*)\b/', $script, $matches) ) return true;
28
- endforeach;
 
 
 
 
 
29
 
30
  return false;
31
  }
@@ -646,10 +652,9 @@ function fruitful_recent_posts($atts){
646
  $title = esc_attr( sprintf( __( 'Permalink to %s', 'fruitful' ), the_title_attribute( 'echo=0' ) ) );
647
  $the_title = get_the_title();
648
  $the_post_thumbnail = get_the_post_thumbnail();
649
- if( empty(get_the_excerpt()) ) {
 
650
  $the_excerpt = get_the_content();
651
- } else {
652
- $the_excerpt = get_the_excerpt();
653
  }
654
  $the_category = get_the_category_list( ', ', 'fruitful' );
655
  $comments = get_comments_popup_link( __( 'Leave a comment', 'fruitful' ), __( '1 Comment', 'fruitful' ), __( '% Comments', 'fruitful' ) );
@@ -770,11 +775,11 @@ function fruitful_recent_posts_slider($atts){
770
  $title = esc_attr( sprintf( __( 'Permalink to %s', 'fruitful' ), the_title_attribute( 'echo=0' ) ) );
771
  $the_title = get_the_title();
772
  $the_post_thumbnail = get_the_post_thumbnail();
773
- if( empty(get_the_excerpt()) ){
 
774
  $the_excerpt = get_the_content();
775
- } else {
776
- $the_excerpt = get_the_excerpt();
777
  }
 
778
  $the_category = get_the_category_list( ', ', 'fruitful' );
779
  $comments = get_comments_popup_link( __( 'Leave a comment', 'fruitful' ), __( '1 Comment', 'fruitful' ), __( '% Comments', 'fruitful' ) );
780
 
13
  function fruitful_init_shortcodes_script() {
14
  wp_enqueue_script('ffs-easyResponsiveTabs', FRUITFUL_SHORTCODE_URI . 'includes/shortcodes/js/tabs/easyResponsiveTabs.js', array( 'jquery' ), '20142803', true );
15
  wp_enqueue_script('ffs-script', FRUITFUL_SHORTCODE_URI . 'includes/shortcodes/js/fss_script.js', array( 'jquery' ), '20142803', true );
16
+ if ( !fruitful_is_js_loaded('bootstrap.min.js') ) {
17
+ wp_enqueue_script( 'ffs-bootstrap', FRUITFUL_SHORTCODE_URI . 'includes/shortcodes/bootstrap/js/bootstrap.min.js', array( 'jquery' ), '20142803', true );
18
+ }
19
  }
20
 
21
  add_action( 'wp_enqueue_scripts', 'fruitful_init_shortcodes_style', 99 );
22
  add_action( 'wp_enqueue_scripts', 'fruitful_init_shortcodes_script', 100 );
23
 
24
+ function fruitful_is_js_loaded($script_filename) {
25
  global $wp_scripts;
26
 
27
+ $script_filename = trim($script_filename);
28
+ if( !$script_filename ) return false;
29
+
30
+ foreach ( $wp_scripts->registered as $script_dep ) {
31
+ if( stristr($script_dep->src, $script_filename) !== FALSE ) {
32
+ return true;
33
+ }
34
+ };
35
 
36
  return false;
37
  }
652
  $title = esc_attr( sprintf( __( 'Permalink to %s', 'fruitful' ), the_title_attribute( 'echo=0' ) ) );
653
  $the_title = get_the_title();
654
  $the_post_thumbnail = get_the_post_thumbnail();
655
+ $the_excerpt = get_the_excerpt();
656
+ if( empty($the_excerpt) ) {
657
  $the_excerpt = get_the_content();
 
 
658
  }
659
  $the_category = get_the_category_list( ', ', 'fruitful' );
660
  $comments = get_comments_popup_link( __( 'Leave a comment', 'fruitful' ), __( '1 Comment', 'fruitful' ), __( '% Comments', 'fruitful' ) );
775
  $title = esc_attr( sprintf( __( 'Permalink to %s', 'fruitful' ), the_title_attribute( 'echo=0' ) ) );
776
  $the_title = get_the_title();
777
  $the_post_thumbnail = get_the_post_thumbnail();
778
+ $the_excerpt = get_the_excerpt();
779
+ if( empty($the_excerpt) ) {
780
  $the_excerpt = get_the_content();
 
 
781
  }
782
+
783
  $the_category = get_the_category_list( ', ', 'fruitful' );
784
  $comments = get_comments_popup_link( __( 'Leave a comment', 'fruitful' ), __( '1 Comment', 'fruitful' ), __( '% Comments', 'fruitful' ) );
785
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Plugin Name ===
2
  Contributors: fruitfulcode
3
- Donate link: http://fruitfulcode.com
4
  Tags: admin, fruitful, shortcode, shortcodes, short code, editor, content, bootstrap, post, page, tab, tabs, horizontal tabs, vertical tabs, accordion, promo text, columns, infobox, separator, alert, progress bar, button, recent post, recent news
5
  Requires at least: 3.4.1
6
  Tested up to: 4.8
7
- Stable tag: 1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,33 +12,33 @@ Add additional content shortcodes: horizontal tabs, vertical tabs, accordion, pr
12
 
13
  == Description ==
14
  <h3>Demo Website</h3>
15
- http://plugins.fruitfulcode.com/shortcodes/
16
  <h3>Shortcodes</h3>
17
  <ol>
18
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/horizontal-tabs/">Horizontal tabs</a></li>
19
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/vertical-tabs/">Vertical tabs</a></li>
20
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/accordion/">Accordion</a></li>
21
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/12-columns/">Columns 1/2</a></li>
22
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/13-columns/">Columns 1/3</a></li>
23
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/23-columns/">Columns 2/3</a></li>
24
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/14-columns/">Columns 1/4</a></li>
25
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/34-columns/">Columns 3/4</a></li>
26
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/15-columns/">Columns 1/5</a></li>
27
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/separator/">Separator</a></li>
28
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/promo-text/">Promo text</a></li>
29
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/progress-bar/">Progress bar</a></li>
30
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/button/">Button</a></li>
31
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/alert/">Alert</a></li>
32
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/recent-posts/">Recent posts</a></li>
33
- <li><a href="http://plugins.fruitfulcode.com/shortcodes/recent-posts-slider/">Recent posts slider</a></li>
34
  </ol>
35
 
36
  <h3>Technical support</h3>
37
- If you have any questions or recommendations regarding the functionality of our plugins (existing options, new options, current issues), please feel free to <a href="http://support.fruitfulcode.com/hc/en-us/requests/new">contact us</a>
38
 
39
  <h3>How to thank a developers</h3>
40
  <ol>
41
- <li>If you like our plugin and want to say us thank you, please <a href="http://wordpress.org/support/view/plugin-reviews/fruitful-shortcodes?filter=5">leave us review</a></li>
42
  <li>Make review in your blog or journal with URL link to official plugin page</li>
43
  <li>Recommend "Fruitful shortcodes" to your friends</li>
44
  </ol>
@@ -52,7 +52,7 @@ If you have any questions or recommendations regarding the functionality of our
52
  5. Edit post, page or other content type.
53
  6. Switch from text to visual edit your content via wysiwyg editor.
54
  7. Add shortcodes from additional bar.
55
- http://plugins.fruitfulcode.com/shortcodes/
56
 
57
  == Frequently Asked Questions ==
58
 
@@ -62,7 +62,7 @@ Please send request to our support, we will check the issues.
62
 
63
  = I haven’t found an answer to my question, what should I do? =
64
 
65
- You can check <a href="http://support.fruitfulcode.com/hc/en-us/sections/200406396-Fruitful-shortcodes">support forum</a> or <a class="send-mail" target="_blank" href="mailto:mail@fruitfulcode.com?subject=Wordpress.org:%20Fruitful%20Shortcodes%20">send email to us</a>
66
 
67
  == Screenshots ==
68
 
@@ -80,6 +80,12 @@ You can check <a href="http://support.fruitfulcode.com/hc/en-us/sections/2004063
80
 
81
  == Changelog ==
82
 
 
 
 
 
 
 
83
  = 1.6 =
84
  Release Date 11.07.2017
85
 
1
  === Plugin Name ===
2
  Contributors: fruitfulcode
3
+ Donate link: https://fruitfulcode.com
4
  Tags: admin, fruitful, shortcode, shortcodes, short code, editor, content, bootstrap, post, page, tab, tabs, horizontal tabs, vertical tabs, accordion, promo text, columns, infobox, separator, alert, progress bar, button, recent post, recent news
5
  Requires at least: 3.4.1
6
  Tested up to: 4.8
7
+ Stable tag: 1.6.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
  <h3>Demo Website</h3>
15
+ https://shortcodes.fruitfulcode.com
16
  <h3>Shortcodes</h3>
17
  <ol>
18
+ <li><a href="https://shortcodes.fruitfulcode.com/horizontal-tabs"> Horizontal tabs</a></li>
19
+ <li><a href="https://shortcodes.fruitfulcode.com/vertical-tabs"> Vertical tabs</a></li>
20
+ <li><a href="https://shortcodes.fruitfulcode.com/accordion"> Accordion</a></li>
21
+ <li><a href="https://shortcodes.fruitfulcode.com/12-columns"> Columns 1/2</a></li>
22
+ <li><a href="https://shortcodes.fruitfulcode.com/13-columns"> Columns 1/3</a></li>
23
+ <li><a href="https://shortcodes.fruitfulcode.com/23-columns"> Columns 2/3</a></li>
24
+ <li><a href="https://shortcodes.fruitfulcode.com/14-columns"> Columns 1/4</a></li>
25
+ <li><a href="https://shortcodes.fruitfulcode.com/34-columns"> Columns 3/4</a></li>
26
+ <li><a href="https://shortcodes.fruitfulcode.com/15-columns"> Columns 1/5</a></li>
27
+ <li><a href="https://shortcodes.fruitfulcode.com/separator"> Separator</a></li>
28
+ <li><a href="https://shortcodes.fruitfulcode.com/promo-text"> Promo text</a></li>
29
+ <li><a href="https://shortcodes.fruitfulcode.com/progress-bar"> Progress bar</a></li>
30
+ <li><a href="https://shortcodes.fruitfulcode.com/button"> Button</a></li>
31
+ <li><a href="https://shortcodes.fruitfulcode.com/alert"> Alert</a></li>
32
+ <li><a href="https://shortcodes.fruitfulcode.com/recent-posts"> Recent posts</a></li>
33
+ <li><a href="https://shortcodes.fruitfulcode.com/recent-posts-slider"> Recent posts slider</a></li>
34
  </ol>
35
 
36
  <h3>Technical support</h3>
37
+ If you have any questions or recommendations regarding the functionality of our plugins (existing options, new options, current issues), please feel free to <a href="https://support.fruitfulcode.com/hc/en-us/requests/new"> contact us</a>
38
 
39
  <h3>How to thank a developers</h3>
40
  <ol>
41
+ <li>If you like our plugin and want to say us thank you, please <a href="http://wordpress.org/support/view/plugin-reviews/fruitful-shortcodes?filter=5"> leave us review</a></li>
42
  <li>Make review in your blog or journal with URL link to official plugin page</li>
43
  <li>Recommend "Fruitful shortcodes" to your friends</li>
44
  </ol>
52
  5. Edit post, page or other content type.
53
  6. Switch from text to visual edit your content via wysiwyg editor.
54
  7. Add shortcodes from additional bar.
55
+ https://shortcodes.fruitfulcode.com
56
 
57
  == Frequently Asked Questions ==
58
 
62
 
63
  = I haven’t found an answer to my question, what should I do? =
64
 
65
+ You can check <a href="https://support.fruitfulcode.com/hc/en-us/sections/200406396-Fruitful-shortcodes"> support forum</a> or <a class="send-mail" target="_blank" href="mailto:mail@fruitfulcode.com?subject=Wordpress.org:%20Fruitful%20Shortcodes%20"> send email to us</a>
66
 
67
  == Screenshots ==
68
 
80
 
81
  == Changelog ==
82
 
83
+ = 1.6.1 =
84
+ Release Date 21.07.2017
85
+
86
+ * Fixed
87
+ * Old version php (5.5) support
88
+
89
  = 1.6 =
90
  Release Date 11.07.2017
91
 
screenshot-1.png DELETED
Binary file
screenshot-10.png DELETED
Binary file
screenshot-11.png DELETED
Binary file
screenshot-2.png DELETED
Binary file
screenshot-3.png DELETED
Binary file
screenshot-4.png DELETED
Binary file
screenshot-5.png DELETED
Binary file
screenshot-6.png DELETED
Binary file
screenshot-7.png DELETED
Binary file
screenshot-8.png DELETED
Binary file
screenshot-9.png DELETED
Binary file