A_NextGen_Pro_Upgrade_Controller

Class A_NextGen_Pro_Upgrade_Controller.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_pro_upgrade/package.module.nextgen_pro_upgrade.php  
  1. class A_NextGen_Pro_Upgrade_Controller extends Mixin 
  2. function enqueue_backend_resources() 
  3. $this->call_parent('enqueue_backend_resources'); 
  4. wp_enqueue_style('nextgen_pro_upgrade_page', $this->get_static_url('photocrati-nextgen_pro_upgrade#style.css'), FALSE, NGG_SCRIPT_VERSION); 
  5. function get_page_title() 
  6. return __('Upgrade to Pro', 'nggallery'); 
  7. function get_required_permission() 
  8. return 'NextGEN Change options'; 
  9. function get_i18n_strings() 
  10. $i18n = new stdClass(); 
  11. $i18n->plus_title = __('Upgrade to NextGEN Plus or Pro!', 'nggallery'); 
  12. $i18n->pro_title = __('Upgrade to NextGEN Pro!', 'nggallery'); 
  13. $i18n->plus_desc_first = __('Introducing the most powerful gallery system ever made for WordPress.', 'nggallery'); 
  14. $i18n->plus_desc_second = __('Take your galleries to the next level with the Plus and Pro extensions for NextGEN Gallery. ', 'nggallery'); 
  15. $i18n->pro_desc = __('NextGEN Pro now offers proofing and ecommerce! Extend NextGEN Gallery and NextGEN Plus with a complete solution for providing client galleries and for selling prints and digital downloads. Includes unlimited pricelists, PayPal and Stripe integration, and more.', 'nggallery'); 
  16. $i18n->plus_button = __('Learn More About NextGEN Plus', 'nggallery'); 
  17. $i18n->pro_button = __('Learn More About NextGEN Pro', 'nggallery'); 
  18. $i18n->click = __('CLICK TO LEARN MORE:', 'nggallery'); 
  19. return $i18n; 
  20. function index_action() 
  21. $this->object->enqueue_backend_resources(); 
  22. $key = C_Photocrati_Transient_Manager::create_key('nextgen_pro_upgrade_page', 'html'); 
  23. if ($html = C_Photocrati_Transient_Manager::fetch($key, FALSE)) { 
  24. echo $html; 
  25. } else { 
  26. // Get template and page content 
  27. $template = 'photocrati-nextgen_pro_upgrade#plus'; 
  28. if (defined('NGG_PLUS_PLUGIN_BASENAME')) { 
  29. $template = 'photocrati-nextgen_pro_upgrade#pro'; 
  30. $html = $this->render_view($template, array('i18n' => $this->get_i18n_strings()), TRUE); 
  31. // Cache it 
  32. C_Photocrati_Transient_Manager::update($key, $html); 
  33. // Render it 
  34. echo $html;