Plugin Directory

Changeset 1433626


Ignore:
Timestamp:
06/09/2016 08:27:54 AM (10 years ago)
Author:
iyas0s
Message:

if id not set

Location:
wg-bootstrap-carousel/tags/1.2/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wg-bootstrap-carousel/tags/1.2/includes/wgbc-functions.php

    r1428990 r1433626  
    77
    88function 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' ));
    1313}
    1414add_action('wp_enqueue_scripts','wg_bootstrap_enqueue');
     
    3232    return $dirs;
    3333}
     34
     35function 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
    3441
    3542function wg_bootstrap_table_head( $defaults ) {
  • wg-bootstrap-carousel/tags/1.2/includes/wgbc-shortcodes.php

    r1428851 r1433626  
    33add_shortcode('show-wgbc' , 'wgbc_carousel');
    44function wgbc_carousel($params = array()){
    5     if( $params['name'] == '' || $params['id'] == ''){
     5    if(  $params['name'] == '' ){
    66        return;
     7    }
     8    if(!isset($params['id'])){
     9        $params['id'] = 'unset_'.rand(0, 100);
    710    }
    811     $wgbc_query = new WP_Query(array(
Note: See TracChangeset for help on using the changeset viewer.