public function init_hooks() { if ($this->settings->must_display_notices()) { add_action('upgrader_process_complete', array($this, 'upgrader_process_complete'), 10, 2); add_action('updated_option', array($this, 'updated_option'), 10, 3); $this->settings->init_hooks(); } }
if ($sitepress_settings['theme_localization_type'] == 1) { ?> checked="checked"<?php } ?> /> <?php _e("Translate the theme and plugins using WPML's String Translation", 'sitepress'); ?> </label> <?php if (isset($icl_st_note)) { echo '<br><small><i>' . $icl_st_note . '</i></small>'; } if ($sitepress_settings['theme_localization_type'] == 1) { $themes_and_plugins_settings = new WPML_ST_Themes_And_Plugins_Settings(); $display_strings_scan_notices_checked = checked(true, $themes_and_plugins_settings->must_display_notices(), false); ?> <blockquote> <input type="checkbox" id="wpml_st_display_strings_scan_notices" name="wpml_st_display_strings_scan_notices" value="1" <?php echo $display_strings_scan_notices_checked; ?> > <label for="wpml_st_display_strings_scan_notices"><?php _e('Show an alert when activating plugins and themes, to scan for new strings', 'wpml-string-translation'); ?> </label> </blockquote> <?php } ?> </li>