WordPress.org

Plugin Directory

Changeset 218078


Ignore:
Timestamp:
03/15/10 22:06:56 (8 years ago)
Author:
JonRaasch
Message:

More CSS changes to admin interface

Location:
translate-this-button/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • translate-this-button/trunk/translate-this-button.php

    r218001 r218078  
    9797// js and css for ttb admin 
    9898function ttb_css_js() { 
     99    $tthis_dir = get_option('home') . '/wp-content/plugins/translate-this-button/'; 
     100     
    99101    ?> 
    100102<style type="text/css"> 
     103#icon-translate-this { 
     104    background: url("<?=$tthis_dir; ?>images/translate-this-icon.png") no-repeat; 
     105} 
     106 
    101107#ttb-dd-langs .lang-panel { 
    102108    width: 150px; 
     
    264270     
    265271    $out .= '<div class="wrap">'; 
     272     
     273    $out .= '<div id="icon-translate-this" class="icon32"><br /></div>'; 
     274     
    266275    $out .= '<h2>TranslateThis Button Settings</h2>'; 
    267276     
     
    277286        $out .= '<h3>General Settings</h3>'; 
    278287         
    279         $out .= '<table class="optiontable form-table"><tbody>'; 
    280          
    281         $out .= '<tr><th scope="row">Enable Google Analytics Tracking:</th><td><input type="checkbox" name="GA" ' . ( $ttb_opts['GA'] ? 'checked ' : '') . ' /></td></tr>'; 
    282          
    283         $out .= '<tr><th scope="row">Translation Scope:</th><td><select name="scope"><option value="0">Entire page</option><option value="content"' . ( $ttb_opts['scope'] == 'content' ? ' selected' : '' ) . '>Content area only (post + comments)</option></select></td></tr>'; 
    284          
    285         $out .= '<tr><th scope="row">Use cookie:</th><td><input type="checkbox" name="cookie" ' . ( $ttb_opts['cookie'] ? 'checked ' : '') . ' /></td></tr>'; 
     288        $out .= '<table class="form-table"><tbody>'; 
     289         
     290        $out .= '<tr><th scope="row"><label>Enable Google Analytics Tracking:</label></th><td><input type="checkbox" name="GA" ' . ( $ttb_opts['GA'] ? 'checked ' : '') . ' /></td></tr>'; 
     291         
     292        $out .= '<tr><th scope="row"><label>Translation Scope:</label></th><td><select name="scope"><option value="0">Entire page</option><option value="content"' . ( $ttb_opts['scope'] == 'content' ? ' selected' : '' ) . '>Content area only (post + comments)</option></select></td></tr>'; 
     293         
     294        $out .= '<tr><th scope="row"><label>Use cookie:</label></th><td><input type="checkbox" name="cookie" ' . ( $ttb_opts['cookie'] ? 'checked ' : '') . ' /></td></tr>'; 
    286295         
    287296        $out .= '</tbody></table>'; 
     
    289298        $out .= '<h3>Language Settings</h3>'; 
    290299         
    291         $out .= '<table class="optiontable form-table"><tbody>'; 
     300        $out .= '<table class="form-table"><tbody>'; 
    292301         
    293302        $out .=  
    294         '<tr><th scope="row">From Language:</th><td><select name="fromLang"> 
     303        '<tr><th scope="row"><label>From Language:</label></th><td><select name="fromLang"> 
    295304            <option value="">Unknown</option>'; 
    296305             
     
    299308        $out .= '</select></td></tr>'; 
    300309         
    301         $out .= '<tr><th scope="row">Main Panel Text:</th><td><input type="text" name="panelText" value="' . htmlentities($ttb_opts['panelText']) . '" size="50%" /></td></tr>'; 
    302          
    303         $out .= '<tr><th scope="row">More Languages Text:</th><td><input type="text" name="moreText" value="' . htmlentities($ttb_opts['moreText']) . '" size="50%" /></td></tr>'; 
    304          
    305         $out .= '<tr><th scope="row">Busy Translating Text:</th><td><input type="text" name="busyText" value="' . htmlentities($ttb_opts['busyText']) . '" size="50%" /></td></tr>'; 
    306          
    307         $out .= '<tr><th scope="row">Cancel Translation Text:</th><td><input type="text" name="cancelText" value="' . htmlentities($ttb_opts['cancelText']) . '" size="50%" /></td></tr>'; 
    308          
    309         $out .= '<tr><th scope="row">Undo Text:</th><td><input type="text" name="undoText" value="' . htmlentities($ttb_opts['undoText']) . '" size="50%" /></td></tr>'; 
     310        $out .= '<tr><th scope="row"><label>Main Panel Text:</label></th><td><input type="text" name="panelText" value="' . htmlentities($ttb_opts['panelText']) . '" size="50%" /></td></tr>'; 
     311         
     312        $out .= '<tr><th scope="row"><label>More Languages Text:</label></th><td><input type="text" name="moreText" value="' . htmlentities($ttb_opts['moreText']) . '" size="50%" /></td></tr>'; 
     313         
     314        $out .= '<tr><th scope="row"><label>Busy Translating Text:</label></th><td><input type="text" name="busyText" value="' . htmlentities($ttb_opts['busyText']) . '" size="50%" /></td></tr>'; 
     315         
     316        $out .= '<tr><th scope="row"><label>Cancel Translation Text:</label></th><td><input type="text" name="cancelText" value="' . htmlentities($ttb_opts['cancelText']) . '" size="50%" /></td></tr>'; 
     317         
     318        $out .= '<tr><th scope="row"><label>Undo Text:</label></th><td><input type="text" name="undoText" value="' . htmlentities($ttb_opts['undoText']) . '" size="50%" /></td></tr>'; 
    310319         
    311320        $out .= '</tbody></table>'; 
     
    319328        $out .= '<h3>Display Settings</h3>'; 
    320329         
    321         $out .= '<table class="optiontable form-table"><tbody>'; 
    322          
    323         $out .= '<tr><th scope="row">Disable Button Image (Use Text Only):</th><td><input type="checkbox" name="noBtn" ' . ( $ttb_opts['noBtn'] ? 'checked ' : '') . ' /></td></tr>'; 
    324          
    325         $out .= '<tr><th scope="row">Alternate Button Text (if button image disabled):</th><td><input type="text" name="altText" value="' . htmlentities($ttb_opts['altText']) . '" size="50%" /></td></tr>'; 
    326          
    327         $out .= '<tr><th scope="row">Alternate Button Image Path:</th><td><input type="text" name="btnImg" value="' . ( $ttb_opts['btnImg'] ? $ttb_opts['btnImg'] : '' ) . '" size="50%" /></td></tr>'; 
    328          
    329         $out .= '<tr><th scope="row">Button Width (only set for alternate button image):</th><td><input type="text" name="btnWidth" value="' . $ttb_opts['btnWidth'] . '" size="50%" /></td></tr>'; 
    330          
    331         $out .= '<tr><th scope="row">Button Height (only set for alternate button image):</th><td><input type="text" name="btnHeight" value="' . $ttb_opts['btnHeight'] . '" size="50%" /></td></tr>'; 
    332          
    333         $out .= '<tr><th scope="row">Disable Flag Thumbnails:</th><td><input type="checkbox" name="noImg" ' . ( $ttb_opts['noImg'] ? 'checked ' : '' ) . ' /></td></tr>'; 
     330        $out .= '<table class="form-table"><tbody>'; 
     331         
     332        $out .= '<tr><th scope="row"><label>Disable Button Image (Use Text Only):</label></th><td><input type="checkbox" name="noBtn" ' . ( $ttb_opts['noBtn'] ? 'checked ' : '') . ' /></td></tr>'; 
     333         
     334        $out .= '<tr><th scope="row"><label>Alternate Button Text (if button image disabled):</label></th><td><input type="text" name="altText" value="' . htmlentities($ttb_opts['altText']) . '" size="50%" /></td></tr>'; 
     335         
     336        $out .= '<tr><th scope="row"><label>Alternate Button Image Path:</label></th><td><input type="text" name="btnImg" value="' . ( $ttb_opts['btnImg'] ? $ttb_opts['btnImg'] : '' ) . '" size="50%" /></td></tr>'; 
     337         
     338        $out .= '<tr><th scope="row"><label>Button Width (only set for alternate button image):</label></th><td><input type="text" name="btnWidth" value="' . $ttb_opts['btnWidth'] . '" size="50%" /></td></tr>'; 
     339         
     340        $out .= '<tr><th scope="row"><label>Button Height (only set for alternate button image):</label></th><td><input type="text" name="btnHeight" value="' . $ttb_opts['btnHeight'] . '" size="50%" /></td></tr>'; 
     341         
     342        $out .= '<tr><th scope="row"><label>Disable Flag Thumbnails:</label></th><td><input type="checkbox" name="noImg" ' . ( $ttb_opts['noImg'] ? 'checked ' : '' ) . ' /></td></tr>'; 
    334343         
    335344        //$out .= '</table>'; 
     
    337346         
    338347        //$out .= '<div class="submit"><input type="submit" value="Save Settings" /> <a href="javascript:reset_form()">Reset Options to Defaults</a></div></form>'; 
    339         $out .= '<tr valign="top"><td scope="row">&nbsp;</td><td> 
     348        $out .= '<tr valign="top"><th scope="row">&nbsp;</th><td> 
    340349                    <div class="submit"><input type="submit" class="button-primary" value="Save Settings" /> <a href="#" class="button" id="tthis-opts-reset">Reset Options to Defaults</a></div> 
    341350                </td> 
Note: See TracChangeset for help on using the changeset viewer.