C_Ajax_Option_Handler

The NextGEN Gallery C Ajax Option Handler class.

Defined (1)

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

/products/photocrati_nextgen/modules/ajax/module.ajax.php  
  1. class C_Ajax_Option_Handler { 
  2. private $slug = NGG_AJAX_SLUG; 
  3.  
  4. function get_router() { 
  5. return C_Router::get_instance(); 
  6.  
  7. function get( $key, $default = null ) { 
  8. $retval = $default; 
  9.  
  10. switch ( $key ) { 
  11. case 'ajax_slug': 
  12. $retval = $this->slug; 
  13. break; 
  14. case 'ajax_url': 
  15. $retval = site_url( "/?{$this->slug}=1" ); 
  16. if ( is_ssl() && strpos( $retval, 'https' ) === false ) { 
  17. $retval = str_replace( 'http', 'https', $retval ); 
  18. break; 
  19.  
  20. return $retval;