A_Displayed_Gallery_Trigger_Resources

Class A_Displayed_Gallery_Trigger_Resources.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_gallery_display/package.module.nextgen_gallery_display.php  
  1. class A_Displayed_Gallery_Trigger_Resources extends Mixin 
  2. protected $run_once = FALSE; 
  3. function enqueue_frontend_resources($displayed_gallery) 
  4. $this->call_parent('enqueue_frontend_resources', $displayed_gallery); 
  5. return $this->enqueue_displayed_gallery_trigger_buttons_resources($displayed_gallery); 
  6. function enqueue_displayed_gallery_trigger_buttons_resources($displayed_gallery = FALSE) 
  7. $retval = FALSE; 
  8. M_Gallery_Display::enqueue_fontawesome(); 
  9. if (!$this->run_once && !empty($displayed_gallery) && !empty($displayed_gallery->display_settings['ngg_triggers_display']) && $displayed_gallery->display_settings['ngg_triggers_display'] !== 'never') { 
  10. $pro_active = FALSE; 
  11. if (defined('NGG_PRO_PLUGIN_VERSION')) { 
  12. $pro_active = 'NGG_PRO_PLUGIN_VERSION'; 
  13. if (defined('NEXTGEN_GALLERY_PRO_VERSION')) { 
  14. $pro_active = 'NEXTGEN_GALLERY_PRO_VERSION'; 
  15. if (!empty($pro_active)) { 
  16. $pro_active = constant($pro_active); 
  17. if (!is_admin() && (empty($pro_active) || version_compare($pro_active, '1.0.11') >= 0)) { 
  18. wp_enqueue_style('fontawesome'); 
  19. $retval = TRUE; 
  20. $this->run_once = TRUE; 
  21. return $retval;