aiosp_metaboxes

The All In One SEO Pack aiosp metaboxes class.

Defined (1)

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

/admin/display/general-metaboxes.php  
  1. class aiosp_metaboxes { 
  2.  
  3. /** 
  4. * aiosp_metaboxes constructor. 
  5. */ 
  6. function __construct() { 
  7. //construct 
  8.  
  9.  
  10.  
  11. /** 
  12. * @param $add 
  13. * @param $meta 
  14. */ 
  15. static function display_extra_metaboxes( $add, $meta ) { 
  16. echo "<div class='aioseop_metabox_wrapper' >"; 
  17. switch ( $meta['id'] ) { 
  18. case 'aioseop-about': 
  19. ?> 
  20. <div class="aioseop_metabox_text"> 
  21. <p><h2 
  22. style="display:inline;"><?php echo AIOSEOP_PLUGIN_NAME; ?></h2><?php sprintf( __( 'by %s of %s.', 'all-in-one-seo-pack' ), 'Michael Torbert', '<a target="_blank" title="Semper Fi Web Design" 
  23. href="http://semperfiwebdesign.com/">Semper Fi Web Design</a>' ); ?>.</p> 
  24. <?php 
  25. global $current_user; 
  26. $user_id = $current_user->ID; 
  27. $ignore = get_user_meta( $user_id, 'aioseop_ignore_notice' ); 
  28. if ( ! empty( $ignore ) ) { 
  29. $qa = Array(); 
  30. wp_parse_str( $_SERVER['QUERY_STRING'], $qa ); 
  31. $qa['aioseop_reset_notices'] = 1; 
  32. $url = '?' . build_query( $qa ); 
  33. echo '<p><a href="' . $url . '">' . __( 'Reset Dismissed Notices', 'all-in-one-seo-pack' ) . '</a></p>'; 
  34. if ( ! AIOSEOPPRO ) { 
  35. ?> 
  36. <p> 
  37. <strong><?php echo aiosp_common::get_upgrade_hyperlink( 'side', __( 'Pro Version', 'all-in-one-seo-pack' ), __( 'UPGRADE TO PRO VERSION', 'all-in-one-seo-pack' ), '_blank' ); ?></strong> 
  38. </p> 
  39. <?php } ?> 
  40. </div> 
  41. <?php 
  42. case 'aioseop-donate': 
  43. ?> 
  44. <div> 
  45.  
  46. <?php if ( ! AIOSEOPPRO ) { ?> 
  47. <div class="aioseop_metabox_text"> 
  48. <p>If you like this plugin and find it useful, help keep this plugin free and actively 
  49. developed by clicking the <a 
  50. href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8" 
  51. target="_blank"><strong>donate</strong></a> button or send me a gift from my <a 
  52. href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web" target="_blank"> 
  53. <strong>Amazon wishlist</strong></a>. Also, don't forget to follow me on <a 
  54. href="http://twitter.com/michaeltorbert/" 
  55. target="_blank"><strong>Twitter</strong></a>. 
  56. </p> 
  57. </div> 
  58. <?php } ?> 
  59.  
  60. <div class="aioseop_metabox_feature"> 
  61.  
  62. <?php if ( ! AIOSEOPPRO ) { ?> 
  63. <a target="_blank" title="<?php _e( 'Donate', 'all-in-one-seo-pack' ); ?>" 
  64. href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=mrtorbert%40gmail%2ecom&item_name=All%20In%20One%20SEO%20Pack&item_number=Support%20Open%20Source&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8"> 
  65. <img src="<?php echo AIOSEOP_PLUGIN_URL; ?>images/donate.jpg" 
  66. alt="<?php _e( 'Donate with Paypal', 'all-in-one-seo-pack' ); ?>"/> </a> 
  67. <a target="_blank" title="Amazon Wish List" 
  68. href="https://www.amazon.com/wishlist/1NFQ133FNCOOA/ref=wl_web"> 
  69. <img src="<?php echo AIOSEOP_PLUGIN_URL; ?>images/amazon.jpg" 
  70. alt="<?php _e( 'My Amazon Wish List', 'all-in-one-seo-pack' ); ?>"/> </a> 
  71. <?php } ?> 
  72.  
  73. <a target="_blank" title="<?php _e( 'Follow us on Facebook', 'all-in-one-seo-pack' ); ?>" 
  74. href="https://www.facebook.com/aioseopack/"><span 
  75. class="aioseop_follow_button aioseop_facebook_follow"></span></a> 
  76. <a target="_blank" title="<?php _e( 'Follow us on Twitter', 'all-in-one-seo-pack' ); ?>" 
  77. href="https://twitter.com/aioseopack"><span 
  78. class="aioseop_follow_button aioseop_twitter_follow"></span></a> 
  79. </div><?php 
  80.  
  81. $aiosp_trans = new AIOSEOP_Translations(); 
  82. // Eventually if nothing is returned we should just remove this section. 
  83.  
  84. if ( get_locale() != 'en_US' ) { ?> 
  85. <div><strong> 
  86. <?php 
  87.  
  88. if ( $aiosp_trans->percent_translated < 100 ) { 
  89.  
  90. /** translators: %1$s expands to the number of languages All in One SEO Pack has been translated into. $2%s to the percentage translated of the current language, $3%s to the language name, %4$s and %5$s to anchor tags with link to translation page at translate.wordpress.org */ 
  91. printf( __( 
  92. 'All in One SEO Pack has been translated into %1$s languages, but currently the %3$s translation is only %2$s percent complete. %4$s Click here %5$s to help get it to 100 percent.', 'all-in-one-seo-pack' ),  
  93. $aiosp_trans->translated_count,  
  94. $aiosp_trans->percent_translated,  
  95. $aiosp_trans->name,  
  96. "<a href=\"$aiosp_trans->translation_url\" target=\"_BLANK\">",  
  97. '</a>' ); 
  98.  
  99. ?> 
  100. </strong></div> 
  101. <?php } ?> 
  102. </div> 
  103. <?php 
  104. break; 
  105. case 'aioseop-list': 
  106. ?> 
  107. <div class="aioseop_metabox_text"> 
  108. <form 
  109. action="http://semperfiwebdesign.us1.list-manage.com/subscribe/post?u=794674d3d54fdd912f961ef14&id=af0a96d3d9" 
  110. method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" 
  111. target="_blank"> 
  112. <h2><?php _e( 'Join our mailing list for tips, tricks, and WordPress secrets.', 'all-in-one-seo-pack' ); ?></h2> 
  113. <p> 
  114. <i><?php _e( 'Sign up today and receive a free copy of the e-book 5 SEO Tips for WordPress ($39 value).', 'all-in-one-seo-pack' ); ?></i> 
  115. </p> 
  116. <p><input type="text" value="" name="EMAIL" class="required email" id="mce-EMAIL" 
  117. placeholder="Email Address"> 
  118. <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" 
  119. class="btn"></p> 
  120. </form> 
  121. </div> 
  122. <?php 
  123. break; 
  124. case 'aioseop-support': 
  125. ?> 
  126. <div class="aioseop_metabox_text"> 
  127. <p> 
  128. <div class="aioseop_icon aioseop_file_icon"></div> 
  129. <a target="_blank" 
  130. href="http://semperplugins.com/documentation/"><?php _e( 'Read the All in One SEO Pack user guide', 'all-in-one-seo-pack' ); ?></a></p> 
  131. <p> 
  132. <div class="aioseop_icon aioseop_support_icon"></div> 
  133. <a target="_blank" 
  134. title="<?php _e( 'All in One SEO Pro Plugin Support Forum', 'all-in-one-seo-pack' ); ?>" 
  135. href="http://semperplugins.com/support/"><?php _e( 'Access our Premium Support Forums', 'all-in-one-seo-pack' ); ?></a></p> 
  136. <p> 
  137. <div class="aioseop_icon aioseop_cog_icon"></div> 
  138. <a target="_blank" title="<?php _e( 'All in One SEO Pro Plugin Changelog', 'all-in-one-seo-pack' ); ?>" 
  139. href="<?php if ( AIOSEOPPRO ) { 
  140. echo 'http://semperplugins.com/documentation/all-in-one-seo-pack-pro-changelog/'; 
  141. } else { 
  142. echo 'http://semperfiwebdesign.com/blog/all-in-one-seo-pack/all-in-one-seo-pack-release-history/'; 
  143. } ?>"><?php _e( 'View the Changelog', 'all-in-one-seo-pack' ); ?></a></p> 
  144. <p> 
  145. <div class="aioseop_icon aioseop_youtube_icon"></div> 
  146. <a target="_blank" 
  147. href="http://semperplugins.com/doc-type/video/"><?php _e( 'Watch video tutorials', 'all-in-one-seo-pack' ); ?></a></p> 
  148. <p> 
  149. <div class="aioseop_icon aioseop_book_icon"></div> 
  150. <a target="_blank" 
  151. href="http://semperplugins.com/documentation/quick-start-guide/"><?php _e( 'Getting started? Read the Beginners Guide', 'all-in-one-seo-pack' ); ?></a></p> 
  152. </div> 
  153. <?php 
  154. break; 
  155. echo '</div>'; 
  156.  
  157.