#adminwidget {background:#fff;font-size:10px;bottom:10px;right:5px;position:fixed;padding:10px;border:1px dashed #ccc;margin:5px;height:1em;overflow:hidden;width:80px;filter:alpha(opacity=30);-moz-opacity:0.3;-khtml-opacity: 0.3;opacity: 0.3;border-radius:10px;text-align:left;} #adminwidget:hover {height:auto;width:auto;filter:alpha(opacity=100);-moz-opacity:1;-khtml-opacity:1;opacity:1;} #adminwidget p {margin:0;line-height:1.2em;} #adminwidget p:first-child {color:#c00;margin:0 0 .6em 0;text-align:center;} #adminwidget a {color:#0085d5;} '; }else{ echo ' '; } } function adminhelper_currenturl() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } function ahelp_footer() { if (is_user_logged_in()) { global $post; $output = ""; $output .= '
Admin Helper
ID: '.$post->ID.'
Type: ';
if (is_single()) { $output .= "Post"; }
if (is_page()) { $output .= "Page"; }
if (is_category()) { $output .= "Category"; }
if (is_tag()) { $output .= "Tag"; }
if (is_tax()) { $output .= "Tax"; }
if (is_author()) { $output .= "Author"; }
if (is_archive()) { $output .= "Archive"; }
if (is_date()) { $output .= " - Date"; }
if (is_year()) { $output .= " (year)"; }
if (is_month()) { $output .= " (monthly)"; }
if (is_day()) { $output .= " (daily)"; }
if (is_time()) { $output .= " (time)"; }
if (is_search()) { $output .= "Search"; }
if (is_404()) { $output .= "404"; }
if (is_paged()) { $output .= " (Paged)"; }
if (isset($post->ID)) {
$output .= '
Template: '.get_post_meta($post->ID,'_wp_page_template',true).'
Order: '.$post->menu_order.'