'; Util::admin_header(); $plugins = Util::importable_plugins(); echo '
'.esc_html__('TOOLS - SiteSEO','siteseo').'

'.esc_html__('Import Settings From Other Plugins','siteseo').'

'.esc_html__('Import posts and terms metadata from the specified source', 'siteseo').'

' . esc_html__('You don\'t need to enable the selected SEO plugin to run the import.', 'siteseo').'

'; foreach($plugins as $plugin =>$name){ self::display_plugins($plugin, $name); } echo '

'.esc_html__('Export plugin settings','siteseo').'

'.esc_html__('Export the plugin settings for this site as a .json file, making it easy to import the configuration into another site.', 'siteseo').'

'.esc_html__('Import plugin settings', 'siteseo').'

'.esc_html__('Import the plugin settings from a .json file. You can obtain this file by exporting the settings from another site using the form above.','siteseo').'

'.esc_html__('Reset All Settings', 'siteseo').'

 

'.wp_kses_post('WARNING: Delete all options related to this plugin in your database.','siteseo').'

'; } static function display_plugins($plugin,$name){ $seo_title = 'SiteSEO'; $plugin_slug = explode('/', $plugin); $plugin = $plugin_slug[0]; echo '

'.sprintf(esc_html__('Import posts and terms (if available) metadata from %s', 'siteseo'), esc_html($name)).'

'. esc_html__('By clicking Migrate, we\'ll import:', 'siteseo').'

 

'.sprintf(__('WARNING: Migration will delete / update all %1$s posts and terms metadata. Some dynamic variables will not be interpreted. We do NOT delete any %2$s data.', 'siteseo'), esc_html($seo_title), esc_html($name)) . '

'; } }