Ignore:
Timestamp:
2010/12/29 13:10:01 (16 years ago)
Author:
Seasoft
Message:

#862(テンプレート上のエスケープを簡単に)
#628(未使用処理・定義などの削除)

  • Smarty 変数 tpl_start

#879(jQuery の ready イベントと競合する body の onload イベントを使用している)

Location:
branches/version-2_5-dev/data/Smarty/templates/admin/plugin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/admin/plugin/index.tpl

    r19738 r19785  
    3737            <!--{/if}--> 
    3838            <tr> 
    39                 <td><!--{$plugin.info.name|escape}--></td> 
    40                 <td><!--{$plugin.path|escape}--></td> 
    41                 <td><!--{$plugin.info.version|escape}--></td> 
    42                 <td><!--{$plugin.info.auther|escape}--></td> 
    43                 <td><a href="<!--{$smarty.const.URL_DIR}--><!--{$smarty.const.ADMIN_DIR}-->plugin/uninstall.php?path=<!--{$plugin.path|escape}-->">アンインストール</a></td> 
     39                <td><!--{$plugin.info.name|h}--></td> 
     40                <td><!--{$plugin.path|h}--></td> 
     41                <td><!--{$plugin.info.version|h}--></td> 
     42                <td><!--{$plugin.info.auther|h}--></td> 
     43                <td><a href="<!--{$smarty.const.URL_DIR}--><!--{$smarty.const.ADMIN_DIR}-->plugin/uninstall.php?path=<!--{$plugin.path|h}-->">アンインストール</a></td> 
    4444            </tr> 
    4545            <!--{if $smarty.foreach.installedPlugin.last}--> 
    … …  
    6363            <!--{/if}--> 
    6464            <tr> 
    65                 <td><!--{$plugin.info.name|escape}--></td> 
    66                 <td><!--{$plugin.path|escape}--></td> 
    67                 <td><!--{$plugin.info.version|escape}--></td> 
    68                 <td><!--{$plugin.info.auther|escape}--></td> 
    69                 <td><a href="<!--{$smarty.const.URL_DIR}--><!--{$smarty.const.ADMIN_DIR}-->plugin/install.php?path=<!--{$plugin.path|escape}-->">インストール</a></td> 
     65                <td><!--{$plugin.info.name|h}--></td> 
     66                <td><!--{$plugin.path|h}--></td> 
     67                <td><!--{$plugin.info.version|h}--></td> 
     68                <td><!--{$plugin.info.auther|h}--></td> 
     69                <td><a href="<!--{$smarty.const.URL_DIR}--><!--{$smarty.const.ADMIN_DIR}-->plugin/install.php?path=<!--{$plugin.path|h}-->">インストール</a></td> 
    7070            </tr> 
    7171            <!--{if $smarty.foreach.installablePlugin.last}--> 
  • branches/version-2_5-dev/data/Smarty/templates/admin/plugin/install.tpl

    r19738 r19785  
    2525    <div class="contents-main"> 
    2626        <h2>結果</h2> 
    27         <div><!--{$tpl_result|escape|nl2br}--></div> 
     27        <div><!--{$tpl_result|h|nl2br}--></div> 
    2828        <div><a href="<!--{$smarty.const.URL_DIR}--><!--{$smarty.const.ADMIN_DIR}-->plugin/<!--{$smarty.const.DIR_INDEX_URL}-->">→ プラグイン管理へ</a><div> 
    2929    </div> 
  • branches/version-2_5-dev/data/Smarty/templates/admin/plugin/subnavi.tpl

    r19738 r19785  
    2525    <li<!--{if $tpl_subno == 'index'}--> class="on"<!--{/if}--> id="navi-plugin-index"><a href="<!--{$smarty.const.URL_DIR}--><!--{$smarty.const.ADMIN_DIR}-->plugin/<!--{$smarty.const.DIR_INDEX_URL}-->"><span>プラグイン管理</span></a></li> 
    2626    <!--{foreach from=$smarty.env.pluginsXml->plugin item="plugin"}--> 
    27         <li<!--{if $tpl_subno == $plugin->path}--> class="on"<!--{/if}--> id="navi-plugin-<!--{$plugin->path|escape}-->"><a href="<!--{$smarty.const.PLUGIN_URL}--><!--{$plugin->path|escape}-->/<!--{$smarty.const.ADMIN_DIR}--><!--{$smarty.const.DIR_INDEX_URL}-->"><span><!--{$plugin->name|escape}--></span></a></li> 
     27        <li<!--{if $tpl_subno == $plugin->path}--> class="on"<!--{/if}--> id="navi-plugin-<!--{$plugin->path|h}-->"><a href="<!--{$smarty.const.PLUGIN_URL}--><!--{$plugin->path|h}-->/<!--{$smarty.const.ADMIN_DIR}--><!--{$smarty.const.DIR_INDEX_URL}-->"><span><!--{$plugin->name|h}--></span></a></li> 
    2828    <!--{/foreach}--> 
    2929</ul> 
  • branches/version-2_5-dev/data/Smarty/templates/admin/plugin/uninstall.tpl

    r19738 r19785  
    2525    <div class="contents-main"> 
    2626        <h2>結果</h2> 
    27         <div><!--{$tpl_result|escape|nl2br}--></div> 
     27        <div><!--{$tpl_result|h|nl2br}--></div> 
    2828        <div><a href="<!--{$smarty.const.URL_DIR}--><!--{$smarty.const.ADMIN_DIR}-->plugin/<!--{$smarty.const.DIR_INDEX_URL}-->">→ プラグイン管理へ</a><div> 
    2929    </div> 
Note: See TracChangeset for help on using the changeset viewer.