Dotclear

Changeset 2631 for plugins/TaC/index.php


Ignore:
Timestamp:
09/09/10 00:58:01 (13 years ago)
Author:
JcDenis
Message:

TaC 0.1.1

  • Added small stats
File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/TaC/index.php

    r2629 r2631  
    219219<html><head><title>TaC - '.__("Twitter Authentication Client").'</title></head> 
    220220<body> 
    221 <h2>'.html::escapeHTML($core->blog->name).' &rsaquo; TaC - '.__("Twitter Authentication Client").'</h2>'; 
     221<h2>'.html::escapeHTML($core->blog->name).' &rsaquo; TaC - '.__("Twitter Authentication Client").'</h2> 
     222<div class="two-cols"><div class="col">'; 
    222223 
    223224if (!$core->error->flag() && $has_access) 
     
    229230      
    230231     echo ' 
     232     <fieldset><legend>'.__('Account information').'</legend> 
    231233     <ul> 
    232234     <li>'.sprintf(__('Your are connected as "%s"'),$user->screen_name).'</li> 
     
    243245     form::hidden(array('action'),'sendtweet').' 
    244246     </p> 
    245      </form>'; 
     247     </form> 
     248     </fieldset>'; 
    246249} 
    247250 
     
    255258} 
    256259 
     260# Reload page 
    257261if ($core->error->flag()) { 
    258262     echo '<p><a href="'.$p_url.'">'.__('Retry').'</a></p>'; 
    259263} 
    260264 
     265# TaC stats 
     266if (!$core->error->flag()) { 
     267     $stats = $TaC->stat(); 
     268     if (1 < count($stats['registry'])) { 
     269          echo ' 
     270          </div><div class="col"> 
     271          <fieldset><legend>'.__('Usage of TaC').'</legend> 
     272          <p>'.sprintf(__('TaC is used by %s different consumers.'),count($stats['registry'])).'</p>'; 
     273          if (count($stats['registry'])) { 
     274               echo '<ul>'; 
     275               foreach ($stats['registry'] as $k => $v) { 
     276                    echo '<li>'.sprintf(__('Consumer "%s" has %s registered client(s).'), 
     277                    $v['id'],$v['access']).'</li>'; 
     278               } 
     279               echo '</ul>'; 
     280          } 
     281          echo ' 
     282          </fieldset>'; 
     283     } 
     284} 
     285 
    261286echo ' 
     287</div></div> 
    262288<br class="clear"/> 
    263289<p class="right"> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map