Changeset 5493 for trunk/admin


Ignore:
Timestamp:
Mar 31, 2010, 1:21:52 PM (15 years ago)
Author:
plg
Message:

improvement: use the jQuery tip to open link on a new window, just use
class="externalLink" and jQuery do the job.

Location:
trunk/admin/themes/default/template
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/footer.tpl

    r5474 r5493  
    2323
    2424  {'Powered by'|@translate}
    25   <a href="{$PHPWG_URL}" title="{'Visit Piwigo project website'|@translate}">
     25  <a class="externalLink" href="{$PHPWG_URL}" title="{'Visit Piwigo project website'|@translate}">
    2626  <span class="Piwigo">Piwigo</span></a>
    2727  {$VERSION}
    28   | <a class="external" href="{$pwgmenu.WIKI}" title="{'Read Piwigo Documentation'|@translate}" onclick="window.open(this.href, ''); return false;">{'Documentation'|@translate}</a>
    29   | <a class="external" href="{$pwgmenu.FORUM}" title="{'Get Support on Piwigo Forum'|@translate}" onclick="window.open(this.href, ''); return false;">{'Support'|@translate}</a>
     28  | <a class="externalLink" href="{$pwgmenu.WIKI}" title="{'Read Piwigo Documentation'|@translate}">{'Documentation'|@translate}</a>
     29  | <a class="externalLink" href="{$pwgmenu.FORUM}" title="{'Get Support on Piwigo Forum'|@translate}">{'Support'|@translate}</a>
    3030  </div> <!-- piwigoInfos -->
    3131
  • trunk/admin/themes/default/template/intro.tpl

    r5221 r5493  
    1818      <li><a href="{$U_CHECK_UPGRADE}">{'Check for upgrade'|@translate}</a></li>
    1919{if isset($SUBSCRIBE_BASE_URL)}
    20       <li><a href="{$SUBSCRIBE_BASE_URL}{$EMAIL}" onclick="window.open(this.href); return false;" class="cluetip" title="{'Piwigo Announcements Newsletter'|@translate}|{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate|htmlspecialchars|nl2br}">{'Subscribe %s to Piwigo Announcements Newsletter'|@translate|@sprintf:$EMAIL}</a></li>
     20      <li><a href="{$SUBSCRIBE_BASE_URL}{$EMAIL}" class="externalLink cluetip" title="{'Piwigo Announcements Newsletter'|@translate}|{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate|htmlspecialchars|nl2br}">{'Subscribe %s to Piwigo Announcements Newsletter'|@translate|@sprintf:$EMAIL}</a></li>
    2121{/if}
    2222    </ul>
     
    2727    <ul>
    2828      <li>{'Operating system'|@translate}: {$OS}</li>
    29       <li>PHP: {$PHP_VERSION} (<a href="{$U_PHPINFO}" onclick="window.open(this.href, '');
    30           return false;">{'Show info'|@translate}</a>)  [{$PHP_DATATIME}]</li>
     29      <li>PHP: {$PHP_VERSION} (<a href="{$U_PHPINFO}" class="externalLink">{'Show info'|@translate}</a>)  [{$PHP_DATATIME}]</li>
    3130      <li>{$DB_ENGINE}: {$DB_VERSION} [{$DB_DATATIME}]</li>
    3231    </ul>
  • trunk/admin/themes/default/template/languages_new.tpl

    r5371 r5493  
    2828{foreach from=$languages item=language name=languages_loop}
    2929  <tr class="{if $smarty.foreach.languages_loop.index is odd}row1{else}row2{/if}">
    30     <td><a href="{$language.EXT_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$language.EXT_NAME}|{$language.EXT_DESC|htmlspecialchars|nl2br}">{$language.EXT_NAME}</a></td>
    31     <td style="text-align:center;"><a href="{$language.EXT_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$language.EXT_NAME}|{$language.VER_DESC|htmlspecialchars|nl2br}">{$language.VERSION}</a></td>
     30    <td><a href="{$language.EXT_URL}" class="externalLink cluetip" title="{$language.EXT_NAME}|{$language.EXT_DESC|htmlspecialchars|nl2br}">{$language.EXT_NAME}</a></td>
     31    <td style="text-align:center;"><a href="{$language.EXT_URL}" class="externalLink cluetip" title="{$language.EXT_NAME}|{$language.VER_DESC|htmlspecialchars|nl2br}">{$language.VERSION}</a></td>
    3232    <td>{$language.DATE}</td>
    3333    <td>{$language.AUTHOR}</td>
  • trunk/admin/themes/default/template/photos_add_direct.tpl

    r5299 r5493  
    9393  <div>
    9494  {foreach from=$thumbnails item=thumbnail}
    95     <a href="{$thumbnail.link}" onclick="window.open(this.href); return false;">
     95    <a href="{$thumbnail.link}" class="externalLink">
    9696      <img src="{$thumbnail.src}" alt="{$thumbnail.file}" title="{$thumbnail.title}" class="thumbnail">
    9797    </a>
  • trunk/admin/themes/default/template/plugins_new.tpl

    r5123 r5493  
    3535{foreach from=$plugins item=plugin name=plugins_loop}
    3636  <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">
    37     <td><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.EXT_NAME}|{$plugin.EXT_DESC|htmlspecialchars|nl2br}">{$plugin.EXT_NAME}</a></td>
    38     <td style="text-align:center;"><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.EXT_NAME}|{$plugin.VER_DESC|htmlspecialchars|nl2br}">{$plugin.VERSION}</a></td>
     37    <td><a href="{$plugin.EXT_URL}" class="externalLink cluetip" title="{$plugin.EXT_NAME}|{$plugin.EXT_DESC|htmlspecialchars|nl2br}">{$plugin.EXT_NAME}</a></td>
     38    <td style="text-align:center;"><a href="{$plugin.EXT_URL}" class="externalLink cluetip" title="{$plugin.EXT_NAME}|{$plugin.VER_DESC|htmlspecialchars|nl2br}">{$plugin.VERSION}</a></td>
    3939    <td>{$plugin.DATE}</td>
    4040    <td>{$plugin.AUTHOR}</td>
  • trunk/admin/themes/default/template/plugins_update.tpl

    r5123 r5493  
    2929{foreach from=$plugins_not_uptodate item=plugin name=plugins_loop}
    3030  <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">
    31     <td><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.EXT_NAME}|{$plugin.EXT_DESC|htmlspecialchars|nl2br}">{$plugin.EXT_NAME}</a></td>
     31    <td><a href="{$plugin.EXT_URL}" class="externalLink cluetip" title="{$plugin.EXT_NAME}|{$plugin.EXT_DESC|htmlspecialchars|nl2br}">{$plugin.EXT_NAME}</a></td>
    3232    <td style="text-align:center;">{$plugin.VERSION}</td>
    33     <td style="text-align:center;"><a href="{$plugin.EXT_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.EXT_NAME}|{$plugin.NEW_VER_DESC|htmlspecialchars|nl2br}">{$plugin.NEW_VERSION}</a></td>
     33    <td style="text-align:center;"><a href="{$plugin.EXT_URL}" class="externalLink cluetip" title="{$plugin.EXT_NAME}|{$plugin.NEW_VER_DESC|htmlspecialchars|nl2br}">{$plugin.NEW_VERSION}</a></td>
    3434    <td style="text-align:center;"><a href="{$plugin.URL_UPDATE}" onclick="return confirm('{'Are you sure to install this upgrade? You must verify if this version does not need uninstallation.'|@translate|@escape:javascript}');">{'Automatic upgrade'|@translate}</a>
    3535      / <a href="{$plugin.URL_DOWNLOAD}">{'Download file'|@translate}</a></td>
     
    5252{foreach from=$plugins_uptodate item=plugin name=plugins_loop}
    5353  <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">
    54     <td><a href="{$plugin.URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.NAME}|{$plugin.EXT_DESC|htmlspecialchars|nl2br}">{$plugin.NAME}</a></td>
    55     <td style="text-align:center;"><a href="{$plugin.URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$plugin.NAME}|{$plugin.VER_DESC|htmlspecialchars|nl2br}">{$plugin.VERSION}</a></td>
     54    <td><a href="{$plugin.URL}" class="externalLink cluetip" title="{$plugin.NAME}|{$plugin.EXT_DESC|htmlspecialchars|nl2br}">{$plugin.NAME}</a></td>
     55    <td style="text-align:center;"><a href="{$plugin.URL}" class="externalLink cluetip" title="{$plugin.NAME}|{$plugin.VER_DESC|htmlspecialchars|nl2br}">{$plugin.VERSION}</a></td>
    5656  </tr>
    5757{/foreach}
Note: See TracChangeset for help on using the changeset viewer.