C_Attach_To_Post_Option_Handler

The NextGEN Gallery C Attach To Post Option Handler class.

Defined (1)

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

/products/photocrati_nextgen/modules/attach_to_post/module.attach_to_post.php  
  1. class C_Attach_To_Post_Option_Handler 
  2. function get_router() 
  3. return C_Router::get_instance(); 
  4.  
  5. function get($key, $default=NULL) 
  6. $retval = $default; 
  7.  
  8. switch ($key) { 
  9. case 'attach_to_post_url': 
  10. $retval = admin_url('/?'.NGG_ATTACH_TO_POST_SLUG.'=1'); 
  11. break; 
  12. case 'gallery_preview_url': 
  13. // TODO: This url will be used in 2.0.69 
  14. if (FALSE) $retval = admin_url('/?'.NGG_ATTACH_TO_POST_SLUG.'='.NGG_ATTACH_TO_POST_SLUG.'/preview'); 
  15. else $retval = $this->get_router()->get_url('/'.NGG_ATTACH_TO_POST_SLUG.'/preview', FALSE); 
  16. break; 
  17. case 'attach_to_post_display_tab_js_url': 
  18. $retval = admin_url('/?'.NGG_ATTACH_TO_POST_SLUG.'=js'); 
  19. break; 
  20.  
  21. if (is_ssl() && strpos($retval, 'https') === FALSE) $retval = str_replace('http', 'https', $retval); 
  22.  
  23. return $retval;