Advertisement
hmbashar

Untitled

Nov 25th, 2022
640
0
357 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1.  
  2.  
  3.     public function get_script_depends() {
  4.         //$settings = $this->get_settings_for_display();
  5.  
  6.        
  7.  
  8.  
  9.        
  10.         wp_register_script( 'aefe-testimonial-one', AEFE_URL . "assets/js/aefe-testimonial-one.js", [
  11.             'jquery',
  12.             'owlcarousel',
  13.             'elementor-frontend'
  14.         ],'2.2.1', true);
  15.  
  16.  
  17.         $testimonial_count = $settings['aefe_testimonial_slider_item_count'] ? $settings['aefe_testimonial_slider_item_count'] : 3;
  18.         wp_localize_script( 'aefe-testimonial-one', 'aefe_testimonial_one_object',
  19.             array(
  20.                 'ajaxurl' => admin_url( 'admin-ajax.php' ),
  21.                 'aefe_test_one_count' => $testimonial_count,
  22.             )
  23.         );
  24.  
  25.  
  26.         return [
  27.             'aefe-testimonial-one',
  28.         ];
  29.  
  30.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement