Version Description
Download this release
Release Info
Developer | FoolsRun |
Plugin | Bootstrap Shortcodes for WordPress |
Version | 3.3.1 |
Comparing to | |
See all releases |
Code changes from version 3.3 to 3.3.1
- bootstrap-shortcodes.php +16 -11
- readme.txt +1 -1
bootstrap-shortcodes.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Bootstrap 3 Shortcodes
|
4 |
Plugin URI: http://wp-snippets.com/freebies/bootstrap-shortcodes or https://github.com/filipstefansson/bootstrap-shortcodes
|
5 |
Description: The plugin adds a shortcodes for all Bootstrap elements.
|
6 |
-
Version: 3.3
|
7 |
Author: Filip Stefansson, Simon Yeldon, and Michael W. Delaney
|
8 |
Author URI:
|
9 |
License: GPL2
|
@@ -37,19 +37,24 @@ class BoostrapShortcodes {
|
|
37 |
function __construct() {
|
38 |
add_action( 'init', array( $this, 'add_shortcodes' ) );
|
39 |
add_action( 'wp_enqueue_scripts', array( $this, 'bootstrap_shortcodes_scripts' ), 9999 ); // Register this fxn and allow Wordpress to call it automatcally in the header
|
|
|
|
|
40 |
}
|
41 |
|
42 |
-
function
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
|
|
46 |
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
}
|
54 |
|
55 |
/*--------------------------------------------------------------------------------------
|
3 |
Plugin Name: Bootstrap 3 Shortcodes
|
4 |
Plugin URI: http://wp-snippets.com/freebies/bootstrap-shortcodes or https://github.com/filipstefansson/bootstrap-shortcodes
|
5 |
Description: The plugin adds a shortcodes for all Bootstrap elements.
|
6 |
+
Version: 3.3.1
|
7 |
Author: Filip Stefansson, Simon Yeldon, and Michael W. Delaney
|
8 |
Author URI:
|
9 |
License: GPL2
|
37 |
function __construct() {
|
38 |
add_action( 'init', array( $this, 'add_shortcodes' ) );
|
39 |
add_action( 'wp_enqueue_scripts', array( $this, 'bootstrap_shortcodes_scripts' ), 9999 ); // Register this fxn and allow Wordpress to call it automatcally in the header
|
40 |
+
add_action( 'the_post', array( $this, 'bootstrap_shortcodes_tooltip_script' ), 9999 ); // Register this fxn and allow Wordpress to call it automatcally in the header
|
41 |
+
add_action( 'the_post', array( $this, 'bootstrap_shortcodes_popover_script' ), 9999 ); // Register this fxn and allow Wordpress to call it automatcally in the header
|
42 |
}
|
43 |
|
44 |
+
function bootstrap_shortcodes_tooltip_script() {
|
45 |
+
global $post;
|
46 |
+
if( has_shortcode( $post->post_content, 'tooltip')){
|
47 |
+
// Bootstrap tooltip js
|
48 |
+
wp_enqueue_script( 'bootstrap-shortcodes-tooltip', BS_SHORTCODES_URL . 'js/bootstrap-shortcodes-tooltip.js', array( 'jquery' ), false, true );
|
49 |
+
}
|
50 |
+
}
|
51 |
|
52 |
+
function bootstrap_shortcodes_popover_script() {
|
53 |
+
global $post;
|
54 |
+
if( has_shortcode( $post->post_content, 'popover')){
|
55 |
+
// Bootstrap popover js
|
56 |
+
wp_enqueue_script( 'bootstrap-shortcodes-popover', BS_SHORTCODES_URL . 'js/bootstrap-shortcodes-popover.js', array( 'jquery' ), false, true );
|
57 |
+
}
|
58 |
}
|
59 |
|
60 |
/*--------------------------------------------------------------------------------------
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: filipstefansson, nodley, FoolsRun
|
|
3 |
Tags: bootstrap, shortcode, shortcodes, responsive, grid
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.0
|
6 |
-
Stable tag: 3.3
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
3 |
Tags: bootstrap, shortcode, shortcodes, responsive, grid
|
4 |
Requires at least: 3.8
|
5 |
Tested up to: 4.0
|
6 |
+
Stable tag: 3.3.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|