aioseop_admin_head

The All In One SEO Pack aioseop admin head function.

Description

aioseop_admin_head(); 

Usage

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

Defined (1)

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

/inc/aioseop_functions.php  
  1. function aioseop_admin_head() { 
  2. echo '<script type="text/javascript" src="' . AIOSEOP_PLUGIN_URL . 'js/quickedit_functions.js" ></script>'; 
  3. ?> 
  4. <style> 
  5. .aioseop_edit_button { 
  6. margin: 0 0 0 5px; 
  7. opacity: 0.6; 
  8. width: 12px; 
  9.  
  10. .aioseop_edit_link { 
  11. display: inline-block; 
  12. position: absolute; 
  13.  
  14. .aioseop_mpc_SEO_admin_options_edit img { 
  15. margin: 3px 2px; 
  16. opacity: 0.7; 
  17.  
  18. .aioseop_mpc_admin_meta_options { 
  19. float: left; 
  20. display: block; 
  21. opacity: 1; 
  22. max-height: 75px; 
  23. overflow: hidden; 
  24. width: 100%; 
  25.  
  26. .aioseop_mpc_admin_meta_options.editing { 
  27. max-height: initial; 
  28. overflow: visible; 
  29.  
  30. .aioseop_mpc_admin_meta_content { 
  31. float: left; 
  32. width: 100%; 
  33. margin: 0 0 10px 0; 
  34.  
  35. td.seotitle.column-seotitle,  
  36. td.seodesc.column-seodesc,  
  37. td.seokeywords.column-seokeywords { 
  38. overflow: visible; 
  39.  
  40. @media screen and (max-width: 782px) { 
  41. body.wp-admin th.column-seotitle, th.column-seodesc, th.column-seokeywords, td.seotitle.column-seotitle, td.seodesc.column-seodesc, td.seokeywords.column-seokeywords { 
  42. display: none; 
  43. </style> 
  44. <?php wp_print_scripts( Array( 'sack' ) ); 
  45. ?> 
  46. <script type="text/javascript"> 
  47. //<![CDATA[ 
  48. var aioseopadmin = { 
  49. blogUrl: "<?php print get_bloginfo( 'url' ); ?>",  
  50. pluginUrl: "<?php print AIOSEOP_PLUGIN_URL; ?>",  
  51. requestUrl: "<?php print WP_ADMIN_URL . '/admin-ajax.php' ?>",  
  52. imgUrl: "<?php print AIOSEOP_PLUGIN_IMAGES_URL; ?>",  
  53. Edit: "<?php _e( 'Edit', 'all-in-one-seo-pack' ); ?>",  
  54. Post: "<?php _e( 'Post', 'all-in-one-seo-pack' ); ?>",  
  55. Save: "<?php _e( 'Save', 'all-in-one-seo-pack' ); ?>",  
  56. Cancel: "<?php _e( 'Cancel', 'all-in-one-seo-pack' ); ?>",  
  57. postType: "post",  
  58. pleaseWait: "<?php _e( 'Please wait...', 'all-in-one-seo-pack' ); ?>",  
  59. slugEmpty: "<?php _e( 'Slug may not be empty!', 'all-in-one-seo-pack' ); ?>",  
  60. Revisions: "<?php _e( 'Revisions', 'all-in-one-seo-pack' ); ?>",  
  61. Time: "<?php _e( 'Insert time', 'all-in-one-seo-pack' ); ?>" 
  62. //]]> 
  63. </script> 
  64. <?php