gdwpm_sekrip_buat_mimin

The Google Drive WP Media gdwpm sekrip buat mimin function.

Description

gdwpm_sekrip_buat_mimin(); 

Usage

  1. if ( !function_exists( 'gdwpm_sekrip_buat_mimin' ) ) { 
  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_sekrip_buat_mimin(); 
  7.  

Defined (1)

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

/google-drive-wp-media.php  
  1. function gdwpm_sekrip_buat_mimin() { 
  2. wp_enqueue_style( 'gdwpm-jqueryui-theme' ); 
  3.  
  4. wp_enqueue_script('jquery');  
  5. wp_enqueue_script('jquery-ui-core');  
  6. wp_enqueue_script('jquery-ui-accordion');  
  7. wp_enqueue_script('jquery-ui-dialog');  
  8. wp_enqueue_script('plupload-all');  
  9. wp_enqueue_script('jquery-ui-tooltip');  
  10. wp_enqueue_script('jquery-ui-tabs');  
  11. wp_enqueue_script('jquery-ui-widget');  
  12. wp_enqueue_script('jquery-effects-core');  
  13. wp_enqueue_script('jquery-effects-explode');  
  14. wp_enqueue_script('jquery-ui-sortable');  
  15. wp_enqueue_script( 'gdwpm-ajax-script', plugins_url( '/js/sekrip.js', __FILE__ ), array('jquery'), VERSI_GDWPM, true );  
  16. wp_enqueue_script( 'gdwpm-base64-script', plugins_url( '/js/base64.js', __FILE__ ), array('jquery'), VERSI_GDWPM, true );  
  17. //backwards compatible 
  18. if ( version_compare( get_bloginfo('version'), '4.0', '>' ) ) {  
  19. wp_enqueue_script('jquery-ui-selectmenu');  
  20.  
  21. $gdwpm_opsi_kategori = get_option('gdwpm_opsi_kategori_dr_folder');  
  22. wp_localize_script( 'gdwpm-ajax-script', 'ajax_object',  
  23. array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'opsi_kategori' => $gdwpm_opsi_kategori ) );