Changeset 6386


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

Cosmetic review for the clear admin theme and more

Location:
extensions/whois_online
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • extensions/whois_online/Changelog.txt.php

    r6221 r6386  
    33Plugin Name: Whois online
    44** History **
     5  2010-05-27 2.1.c
     6                                                 Cosmetic review for the clear admin theme and more
     7
    58  2010-05-16 2.1.b
    69                                                 Fix: Menu was forced to Tools or Plugins on other admin functions
  • extensions/whois_online/config.tpl

    r6193 r6386  
    33</div>
    44
    5 <form method="post" action="{$F_ACTION}" class="Whois_Online properties">
     5<form method="post" action="{$F_ACTION}" class="Whois_Online properties {$themeconf.name}">
    66
    77{if $page == 'config'}
  • 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;
  • extensions/whois_online/main.inc.php

    r6221 r6386  
    2323/*
    2424Plugin Name: Whois online
    25 Version: 2.1.b
     25Version: 2.1.c
    2626Description: Who is online?
    2727Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=279
     
    2929Author URI: http://www.vdigital.org
    3030*/
    31 define('WHOIS_ONLINE_VER', '2.1.b');
     31define('WHOIS_ONLINE_VER', '2.1.c');
    3232global $prefixeTable, $conf;
    3333// $conf['debug_l10n'] = true;
  • extensions/whois_online/online.css

    r6201 r6386  
    1515.table2 thead tr .ns { background-image: none !important; }
    1616a.ws2 { display: inline-block; text-align: center; padding: 0px 1px; min-width: 21px; overflow: hidden; margin-left: 0px; margin-right: 1px; color: #666; background-color: #111; }
     17.clear a.ws2 { background-color: #ccc;}
    1718a.ws2:hover { color: #f33; background-color: #f33; border-bottom: 1px solid #ff3363;}
    1819a.ws1 { display: inline-block; text-align: center; padding: 0px 1px; min-width: 21px; overflow: hidden; margin-left: 0px; margin-right: 1px; color: #666; background-color: #222; }
     20.clear a.ws1 { background-color: #eee;}
    1921a.ws1:hover { color: #f33; background-color: #f33; border-bottom: 1px solid #ff3363;}
    2022a.ws { color: #111; background-color: #f33 !important; }
     
    2224.cluetip-default #cluetip-outer { border-radius: 16px; -moz-border-radius: 16px; -khtml-border-radius: 16px; -webkit-border-radius: 16px; }
    2325.cluetip-default h3#cluetip-title { border-radius: 16px 16px 0 0; -moz-border-radius: 16px 16px 0 0; -khtml-border-radius: 16px 16px 0 0; -webkit-border-radius: 16px 16px 0 0; }
     26
     27.content .errors, .content .infos { position:relative;}
     28#theAdminPage  #pwgMain .Whois_Online { text-align:center; }
     29#theAdminPage  #pwgMain .Whois_Online *,
     30#theAdminPage  #pwgMain .Whois_Online *:hover,
     31#theAdminPage  #pwgMain .Whois_Online *:focus,
     32#theAdminPage  #pwgMain .Whois_Online *:active { outline: 0; }
     33#theAdminPage  #pwgMain .Whois_Online  input { border-radius: 8px; -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; }
     34#theAdminPage .Whois_Online fieldset { border-radius: 16px; -moz-border-radius: 16px; -khtml-border-radius: 16px; -webkit-border-radius: 16px; }
     35#theAdminPage  #pwgMain .Whois_Online  input { padding-left:5px; }
     36#theAdminPage   #pwgMain .Whois_Online input[type="submit"] { padding:0 45px; }
  • extensions/whois_online/reload.php

    r3695 r6386  
    9494}
    9595foreach ($online as $k => $v) {
    96   // The stupid History search will be reused instead of created... (even if History search will recreate it)
    97         if ($conf['log']) $online[$k]['url_user'] =
    98                 PHPWG_ROOT_PATH .'admin.php?page=history&amp;user_id='.$online[$k]['user_id'].'&amp;search_id='.$conf_whois['Search id'];
    99        
     96  // The stupid History search will be reused instead of created... (even if History search will recreate it)   
     97    if ($conf['log']) {
     98                if ( $conf['history_guest'] or $online[$k]['user_id'] != $conf['guest_id'])
     99                        $online[$k]['url_user'] =
     100                        PHPWG_ROOT_PATH .'admin.php?page=history&amp;user_id='.$online[$k]['user_id'].'&amp;search_id='.$conf_whois['Search id'];
     101        }
     102
    100103        $online[$k]['Language'] = (isset($lang_code[$v['lang']])) ? $lang_code[$v['lang']]:l10n('Deleted language');
    101104        $online[$k]['Country'] = whois_country($v, $bypass);
  • extensions/whois_online/report.tpl

    r6201 r6386  
    1414{foreach from=$search_results item=detail name=res_loop}
    1515<tr class="{if $smarty.foreach.res_loop.index is odd}row1{else}row2{/if}">
    16   <td><a href={if isset($detail.url_user)}"{$detail.url_user}" onclick="window.open(this.href); return false;"{else}"#"{/if} class="cluetip{if ($detail.guest)} other{/if}"
     16  <td><a {if isset($detail.url_user)}href="{$detail.url_user}"{else}href="href="{'http:geoiptool'|@translate}{$detail.IP}"{/if}
     17        onclick="window.open(this.href); return false;" class="cluetip{if ($detail.guest)} other{/if}"
    1718                title="{'User:'|@translate} {$detail.username}|
    1819                        <table>
     
    3536        </td>
    3637        <td>
    37                 {if ($detail.user_id == '1')}<a class="external" href="{'http:hostip'|@translate}" title="{':hostip:title'|@translate}">
     38                {if ($detail.user_id == '1')}<a class="external" onclick="window.open(this.href); return false;" href="{'http:hostip'|@translate}" title="{':hostip:title'|@translate}">
    3839                        <img src="{$detail.Flag}" alt="{$detail.IP} - {'language'|@translate}: {$detail.Language}" width="24" height="16">
    3940                </a>
    40                 {else}<a class="external" href="{'http:geoiptool'|@translate}{$detail.IP}" title="{':geoiptool:title'|@translate}">
     41                {else}<a class="external" onclick="window.open(this.href); return false;" href="{'http:geoiptool'|@translate}{$detail.IP}" title="{':geoiptool:title'|@translate}">
    4142                        <img src="{$detail.Flag}" alt="{$detail.IP} - {'language'|@translate}: {$detail.Language}" width="24" height="16">
    4243                </a>
     
    5657                        {if (isset($image.path))}
    5758                                <a class="cluetip {if $smarty.foreach.res_loop.index is odd}ws1{else}ws2{/if} {$image.ws_level}"
     59                                  onclick="window.open(this.href); return false;"
    5860                                  href="{$image.url_modify}" title="<div style=&#34;text-align:center;&#34;>
    5961                                <img src=&#34;{$image.tn_url}&#34;></div>|
     
    7476                                        Hits on: {$image.hit}<br />">{$id}</a>
    7577                                {else}<a class="{if $smarty.foreach.res_loop.index is odd}ws1{else}ws2{/if}"
     78                                  onclick="window.open(this.href); return false;"
    7679                                  href="{$image.url_modify}" title="{$id}{' - Over the radar limit => No level control'|@translate}">{$id}</a>
    7780                        {/if}
Note: See TracChangeset for help on using the changeset viewer.