gdwpm_register_scripts

The Google Drive WP Media gdwpm register scripts function.

Description

gdwpm_register_scripts(); 

Usage

  1. if ( !function_exists( 'gdwpm_register_scripts' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-drive-wp-media/google-drive-wp-media.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gdwpm_register_scripts(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/google-drive-wp-media.php  
  1. function gdwpm_register_scripts() { 
  2. if (!is_admin()) { 
  3. wp_register_script('gdwpm_lightbox-script', plugins_url('js/lightbox.js', __FILE__), array( 'jquery' ), VERSI_GDWPM, true ); 
  4. // fotorama.Js 
  5. //wp_register_script('gdwpm_fotorama-script', "http://cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.3/fotorama.js", array( 'jquery' ), VERSI_GDWPM, true ); 
  6. wp_register_script('gdwpm_justified-script', plugins_url('js/justifiedGallery.js', __FILE__), array( 'jquery' ), VERSI_GDWPM, true ); 
  7. wp_register_script('gdwpm_script-script', plugins_url('js/script.js', __FILE__), array( 'jquery' ), VERSI_GDWPM, true ); 
  8. //wp_register_script('gdwpm_swipebox-script', plugins_url('libs/swipebox/jquery.swipebox.min.js', __FILE__), array( 'jquery' ), VERSI_GDWPM, true ); 
  9.  
  10. wp_enqueue_script('jquery');  
  11. wp_enqueue_script('gdwpm_lightbox-script'); 
  12. //wp_enqueue_script('gdwpm_fotorama-script');  
  13. wp_enqueue_script('gdwpm_justified-script');  
  14. wp_enqueue_script('gdwpm_script-script');  
  15. //wp_enqueue_script('gdwpm_swipebox-script');