Ignore:
Timestamp:
May 27, 2010, 9:57:02 AM (14 years ago)
Author:
vdigital
Message:

Cosmetic review for the clear admin theme and more

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/whois_online/include/wo_functions.inc.php

    r6214 r6386  
    155155// Add admin links
    156156function whois_add_icon($menu) {
    157         global $conf_whois, $lang;
    158         if ($conf_whois['Add icon to History'])
    159                 $lang['History'] .= '</a> <a class="external" href="' . get_admin_plugin_menu_link(WHOIS_ONLINE_PATH.'config.php') . '">
    160                         <img class="button" src="' . WHOIS_ONLINE_PATH . 'icons/Whois_tuner.gif" alt="Whois Online configuration" title="Whois Online configuration" /></a>';
     157        global $conf_whois, $template;
     158        $url = get_admin_plugin_menu_link(WHOIS_ONLINE_PATH.'config.php');
     159        $lnk = ' <a class="external" style="display:inline;" href="' . $url . '">'
     160                . '<img class="button" src="' . WHOIS_ONLINE_PATH . 'icons/Whois_tuner.png" '
     161                . ' alt="Whois Online configuration" title="Whois Online configuration" /></a>';
     162        if (isset($_GET['page']) and ($_GET['page'] == 'stats' or $_GET['page'] == 'history'))
     163                $h2 = $lnk;
     164        else $h2 = '';
     165        if ($conf_whois['Add icon to History']) {
     166                $template->append('footer_elements', '<!-- Whois Icon -->
     167<script type="text/javascript">
     168jQuery(document).ready(function() {
     169        jQuery("#menubar li a[href*=\'admin.php?page=stats\']").after(\'' . $lnk . '\').css("display","inline");
     170        jQuery(".tabsheet li a[href*=\'admin.php?page=configuration&section=history\']").next().remove();
     171        jQuery("#content .titrePage h2").append(\'' . $h2 . '\');
     172 
     173        });
     174</script>' );
     175        }
    161176        if ($conf_whois['Add to Plugins menu']) array_push($menu, array(
    162177                                'NAME' => 'Whois Online',
    163                                 'URL' => get_admin_plugin_menu_link(WHOIS_ONLINE_PATH.'config.php'),
     178                                'URL' => $url,
    164179                        ));
    165180        return $menu;
Note: See TracChangeset for help on using the changeset viewer.