aiosp_seometa_admin

The admin page output.

Description

aiosp_seometa_admin(); 

Usage

  1. if ( !function_exists( 'aiosp_seometa_admin' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'all-in-one-seo-pack/admin/meta_import.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = aiosp_seometa_admin(); 
  7.  

Defined (1)

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

/admin/meta_import.php  
  1. function aiosp_seometa_admin() { 
  2. global $_aiosp_seometa_themes, $_aiosp_seometa_plugins, $_aiosp_seometa_platforms; 
  3. ?> 
  4.  
  5. <div class="wrap"> 
  6.  
  7.  
  8. <h2><?php _e( 'Import SEO Settings', 'all-in-one-seo-pack' ); ?></h2> 
  9.  
  10. <p><span 
  11. class="description"><?php printf( __( 'Use the drop down below to choose which plugin or theme you wish to import SEO data from.', 'all-in-one-seo-pack' ) ); ?></span> 
  12. </p> 
  13.  
  14. <p><span 
  15. class="description"><?php printf( __( 'Click "Analyze" for a list of SEO data that can be imported into All in One SEO Pack, along with the number of records that will be imported.', 'all-in-one-seo-pack' ) ); ?></span> 
  16. </p> 
  17.  
  18. <p><span 
  19. class="description"><strong><?php printf( __( 'Please Note: ' ) ); ?></strong><?php printf( __( 'Some plugins and themes do not share similar data, or they store data in a non-standard way. If we cannot import this data, it will remain unchanged in your database. Any compatible SEO data will be displayed for you to review. If a post or page already has SEO data in All in One SEO Pack, we will not import data from another plugin/theme.', 'all-in-one-seo-pack' ) ); ?></span> 
  20. </p> 
  21.  
  22. <p><span 
  23. class="description"><?php printf( __( 'Click "Convert" to perform the import. After the import has completed, you will be alerted to how many records were imported, and how many records had to be ignored, based on the criteria above.', 'all-in-one-seo-pack' ) ); ?></span> 
  24. </p> 
  25.  
  26. <p><span 
  27. class="row-title"><?php printf( esc_html__( 'Before performing an import, we strongly recommend that you make a backup of your site. We use and recommend %s BackupBuddy %s for backups.', 'all-in-one-seo-pack' ), sprintf( '<a target="_blank" href="%s">', esc_url( 'http://semperfiwebdesign.com/backupbuddy/' ) ), '</a>' ); ?></span> 
  28. </p> 
  29.  
  30.  
  31. <form action="<?php echo admin_url( 'tools.php?page=aiosp_import' ); ?>" method="post"> 
  32. <?php 
  33. wp_nonce_field( 'aiosp_nonce' ); 
  34.  
  35. $platform_old = ( ! isset( $_POST['platform_old'] ) ) ? '' : $_POST['platform_old']; 
  36.  
  37. _e( 'Import SEO data from:', 'all-in-one-seo-pack' ); 
  38. echo '<select name="platform_old">'; 
  39. printf( '<option value="">%s</option>', __( 'Choose platform:', 'all-in-one-seo-pack' ) ); 
  40.  
  41. printf( '<optgroup label="%s">', __( 'Plugins', 'all-in-one-seo-pack' ) ); 
  42. foreach ( $_aiosp_seometa_plugins as $platform => $data ) { 
  43. if ( 'All in One SEO Pack' !== $platform ) { 
  44. printf( '<option value="%s" %s>%s</option>', $platform, selected( $platform, $platform_old, 0 ), $platform ); 
  45. printf( '</optgroup>' ); 
  46.  
  47. printf( '<optgroup label="%s">', __( 'Themes', 'all-in-one-seo-pack' ) ); 
  48. foreach ( $_aiosp_seometa_themes as $platform => $data ) { 
  49. printf( '<option value="%s" %s>%s</option>', $platform, selected( $platform, $platform_old, 0 ), $platform ); 
  50. printf( '</optgroup>' ); 
  51.  
  52. echo '</select>' . "\n\n"; 
  53.  
  54. ?> 
  55.  
  56. <input type="submit" class="button-highlighted" name="analyze" 
  57. value="<?php _e( 'Analyze', 'genesis' ); ?>"/> 
  58. <input type="submit" class="button-primary" value="<?php _e( 'Convert', 'genesis' ) ?>"/> 
  59.  
  60. </form> 
  61.  
  62. <?php aiosp_seometa_action(); ?> 
  63.  
  64. </div> 
  65.  
  66. <?php