Changeset 1036838
- Timestamp:
- 12/02/2014 04:37:07 PM (11 years ago)
- Location:
- bootstrap-3-shortcodes/trunk
- Files:
-
- 2 edited
-
bootstrap-shortcodes.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bootstrap-3-shortcodes/trunk/bootstrap-shortcodes.php
r1035086 r1036838 4 4 Plugin URI: http://wp-snippets.com/freebies/bootstrap-shortcodes or https://github.com/filipstefansson/bootstrap-shortcodes 5 5 Description: The plugin adds a shortcodes for all Bootstrap elements. 6 Version: 3.3 6 Version: 3.3.1 7 7 Author: Filip Stefansson, Simon Yeldon, and Michael W. Delaney 8 8 Author URI: … … 38 38 add_action( 'init', array( $this, 'add_shortcodes' ) ); 39 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 bootstrap_shortcodes_scripts() { 43 44 // Bootstrap tooltip js 45 wp_enqueue_script( 'bootstrap-shortcodes-tooltip', BS_SHORTCODES_URL . 'js/bootstrap-shortcodes-tooltip.js', array( 'jquery' ), false, true ); 46 47 // Bootstrap popover js 48 wp_enqueue_script( 'bootstrap-shortcodes-popover', BS_SHORTCODES_URL . 'js/bootstrap-shortcodes-popover.js', array( 'jquery' ), false, true ); 49 50 // Bootstrap scrollspy js 51 //wp_enqueue_script( 'bootstrap-shortcodes-scrollspy', BS_SHORTCODES_URL . 'js/bootstrap-shortcodes-scrollspy.js', array( 'jquery' ), false, true ); 52 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 } 53 58 } 54 59 -
bootstrap-3-shortcodes/trunk/readme.txt
r1035086 r1036838 4 4 Requires at least: 3.8 5 5 Tested up to: 4.0 6 Stable tag: 3.3 6 Stable tag: 3.3.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.