Changeset 1433626
- Timestamp:
- 06/09/2016 08:27:54 AM (10 years ago)
- Location:
- wg-bootstrap-carousel/tags/1.2/includes
- Files:
-
- 2 edited
-
wgbc-functions.php (modified) (2 diffs)
-
wgbc-shortcodes.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wg-bootstrap-carousel/tags/1.2/includes/wgbc-functions.php
r1428990 r1433626 7 7 8 8 function wg_bootstrap_enqueue(){ 9 wp_enqueue_script("jquery");10 wp_enqueue_style('wg_bootstrap_enqueue-bootstrap-css', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css' , array());11 wp_enqueue_style('wg_bootstrap_enqueue-bootstrap-csstheme', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css' , array());12 wp_enqueue_script('wg_bootstrap_enqueue-bootstrap-js', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js', array());9 wp_enqueue_script( 'wgbc-jquery' , "//code.jquery.com/jquery-1.10.2.js" ); 10 wp_enqueue_style('wg_bootstrap_enqueue-bootstrap-css', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'); 11 wp_enqueue_style('wg_bootstrap_enqueue-bootstrap-csstheme', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css'); 12 wp_enqueue_script('wg_bootstrap_enqueue-bootstrap-js', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js', array( 'jquery' )); 13 13 } 14 14 add_action('wp_enqueue_scripts','wg_bootstrap_enqueue'); … … 32 32 return $dirs; 33 33 } 34 35 function WGBC_admin_notice__error() { 36 $class = 'notice notice-error'; 37 $message = __( 'Make sure All files are less than the upload max size', 'WGBC' ); 38 printf( '<div class="%1$s"><p>%2$s</p></div>', $class, $message ); 39 } 40 34 41 35 42 function wg_bootstrap_table_head( $defaults ) { -
wg-bootstrap-carousel/tags/1.2/includes/wgbc-shortcodes.php
r1428851 r1433626 3 3 add_shortcode('show-wgbc' , 'wgbc_carousel'); 4 4 function wgbc_carousel($params = array()){ 5 if( $params['name'] == '' || $params['id'] == ''){5 if( $params['name'] == '' ){ 6 6 return; 7 } 8 if(!isset($params['id'])){ 9 $params['id'] = 'unset_'.rand(0, 100); 7 10 } 8 11 $wgbc_query = new WP_Query(array(
Note: See TracChangeset
for help on using the changeset viewer.