aioseop_admin_head
The All In One SEO Pack aioseop admin head function.
Description
aioseop_admin_head();
Usage
if ( !function_exists( 'aioseop_admin_head' ) ) { require_once ABSPATH . PLUGINDIR . 'all-in-one-seo-pack/inc/aioseop_functions.php'; } // NOTICE! Understand what this does before running. $result = aioseop_admin_head();
Defined (1)
The function is defined in the following location(s).
- /inc/aioseop_functions.php
- function aioseop_admin_head() {
- echo '<script type="text/javascript" src="' . AIOSEOP_PLUGIN_URL . 'js/quickedit_functions.js" ></script>';
- ?>
- <style>
- .aioseop_edit_button {
- margin: 0 0 0 5px;
- opacity: 0.6;
- width: 12px;
- }
- .aioseop_edit_link {
- display: inline-block;
- position: absolute;
- }
- .aioseop_mpc_SEO_admin_options_edit img {
- margin: 3px 2px;
- opacity: 0.7;
- }
- .aioseop_mpc_admin_meta_options {
- float: left;
- display: block;
- opacity: 1;
- max-height: 75px;
- overflow: hidden;
- width: 100%;
- }
- .aioseop_mpc_admin_meta_options.editing {
- max-height: initial;
- overflow: visible;
- }
- .aioseop_mpc_admin_meta_content {
- float: left;
- width: 100%;
- margin: 0 0 10px 0;
- }
- td.seotitle.column-seotitle,
- td.seodesc.column-seodesc,
- td.seokeywords.column-seokeywords {
- overflow: visible;
- }
- @media screen and (max-width: 782px) {
- body.wp-admin th.column-seotitle, th.column-seodesc, th.column-seokeywords, td.seotitle.column-seotitle, td.seodesc.column-seodesc, td.seokeywords.column-seokeywords {
- display: none;
- }
- }
- </style>
- <?php wp_print_scripts( Array( 'sack' ) );
- ?>
- <script type="text/javascript">
- //<![CDATA[
- var aioseopadmin = {
- blogUrl: "<?php print get_bloginfo( 'url' ); ?>",
- pluginUrl: "<?php print AIOSEOP_PLUGIN_URL; ?>",
- requestUrl: "<?php print WP_ADMIN_URL . '/admin-ajax.php' ?>",
- imgUrl: "<?php print AIOSEOP_PLUGIN_IMAGES_URL; ?>",
- Edit: "<?php _e( 'Edit', 'all-in-one-seo-pack' ); ?>",
- Post: "<?php _e( 'Post', 'all-in-one-seo-pack' ); ?>",
- Save: "<?php _e( 'Save', 'all-in-one-seo-pack' ); ?>",
- Cancel: "<?php _e( 'Cancel', 'all-in-one-seo-pack' ); ?>",
- postType: "post",
- pleaseWait: "<?php _e( 'Please wait...', 'all-in-one-seo-pack' ); ?>",
- slugEmpty: "<?php _e( 'Slug may not be empty!', 'all-in-one-seo-pack' ); ?>",
- Revisions: "<?php _e( 'Revisions', 'all-in-one-seo-pack' ); ?>",
- Time: "<?php _e( 'Insert time', 'all-in-one-seo-pack' ); ?>"
- }
- //]]>
- </script>
- <?php
- }