public function bootstrap() { // This plugin for Pojo Themes.. if (!class_exists('Pojo_Core')) { add_action('admin_notices', array(&$this, 'admin_notices')); return; } if (version_compare('1.5.4', Pojo_Core::instance()->get_version(), '>')) { add_action('admin_notices', array(&$this, 'print_update_error')); return; } add_action('pojo_framework_base_settings_included', array(&$this, 'include_settings')); }
public function print_update_error() { echo '<div class="error"><p>' . sprintf(__('The Pojo Forms is not supported by this version of %s. Please <a href="%s">upgrade the theme to its latest version</a>.', 'pojo-forms'), Pojo_Core::instance()->licenses->updater->theme_name, admin_url('update-core.php')) . '</p></div>'; }
public function bootstrap() { // This plugin for Pojo Themes.. if (!class_exists('Pojo_Core')) { add_action('admin_notices', array(&$this, 'admin_notices')); return; } if (version_compare('1.5.4', Pojo_Core::instance()->get_version(), '>')) { add_action('admin_notices', array(&$this, 'print_update_error')); return; } include 'includes/pojo-a11y-frontend.php'; include 'includes/pojo-a11y-customizer.php'; $this->frontend = new Pojo_A11y_Frontend(); $this->customizer = new Pojo_A11y_Customizer(); add_action('pojo_framework_base_settings_included', array(&$this, 'include_settings')); }