Skip to content

Commit 2fdae5b

Browse files
committed
Perform large-scale removal of unneeded @ symbols in templates
1 parent 5a1bba4 commit 2fdae5b

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

docs/javascript/general-usage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ and thus avoid outdated caches by relying on a unique value, without invalidatin
6565
the cache more often that it needs to be.
6666

6767
```html
68-
<script data-relocate="true" src="{@$__wcf->getPath('app')}js/App.js?t={@LAST_UPDATE_TIME}"></script>
68+
<script data-relocate="true" src="{$__wcf->getPath('app')}js/App.js?t={@LAST_UPDATE_TIME}"></script>
6969
```
7070

7171
For small scripts you can simply serve the full, non-minified version to the user
@@ -80,7 +80,7 @@ the minified and optimized file to the average visitor. You should use the
8080
`ENABLE_DEBUG_MODE` constant to decide which version should be loaded.
8181

8282
```html
83-
<script data-relocate="true" src="{@$__wcf->getPath('app')}js/App{if !ENABLE_DEBUG_MODE}.min{/if}.js?t={@LAST_UPDATE_TIME}"></script>
83+
<script data-relocate="true" src="{$__wcf->getPath('app')}js/App{if !ENABLE_DEBUG_MODE}.min{/if}.js?t={@LAST_UPDATE_TIME}"></script>
8484
```
8585

8686
### The Accelerated Guest View ("Tiny Builds")
@@ -93,7 +93,7 @@ for visitors. If you are providing a separate compiled build for this mode, you'
9393
need to include yet another switch to serve the right version to the visitor.
9494

9595
```html
96-
<script data-relocate="true" src="{@$__wcf->getPath('app')}js/App{if !ENABLE_DEBUG_MODE}{if VISITOR_USE_TINY_BUILD}.tiny{/if}.min{/if}.js?t={@LAST_UPDATE_TIME}"></script>
96+
<script data-relocate="true" src="{$__wcf->getPath('app')}js/App{if !ENABLE_DEBUG_MODE}{if VISITOR_USE_TINY_BUILD}.tiny{/if}.min{/if}.js?t={@LAST_UPDATE_TIME}"></script>
9797
```
9898

9999
### The `{js}` Template Plugin

docs/migration/wsc53/javascript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Example:
8888
8989
<tbody>
9090
{foreach from=$objects item=foo}
91-
<tr class="jsObjectActionObject" data-object-id="{@$foo->getObjectID()}">
91+
<tr class="jsObjectActionObject" data-object-id="{$foo->getObjectID()}">
9292
<td class="columnIcon">
9393
{objectAction action="toggle" isDisabled=$foo->isDisabled}
9494
{objectAction action="delete" objectTitle=$foo->getTitle()}

docs/tutorial/series/part_2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ As the relevant template codes are only one line each, we will simply put them d
138138
The code for the table head is similar to the other `th` elements:
139139

140140
```smarty
141-
<th class="columnDate columnBirthday{if $sortField == 'birthday'} active {@$sortOrder}{/if}"><a href="{link controller='PersonList'}pageNo={@$pageNo}&sortField=birthday&sortOrder={if $sortField == 'birthday' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.person.birthday{/lang}</a></th>
141+
<th class="columnDate columnBirthday{if $sortField == 'birthday'} active {$sortOrder}{/if}"><a href="{link controller='PersonList'}pageNo={@$pageNo}&sortField=birthday&sortOrder={if $sortField == 'birthday' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.person.birthday{/lang}</a></th>
142142
```
143143

144144
For the table body’s column, we need to make sure that the birthday is only show if it is actually set:

docs/view/template-plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This functionality makes it easy to generate links with popover support.
3232
Instead of
3333

3434
```smarty
35-
<a href="{$entry->getLink()}" class="blogEntryLink" data-object-id="{@$entry->entryID}">{$entry->subject}</a>
35+
<a href="{$entry->getLink()}" class="blogEntryLink" data-object-id="{$entry->entryID}">{$entry->subject}</a>
3636
```
3737

3838
using

docs/view/templates.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ More information about installing templates can be found on those pages.
126126
<div class="section tabMenuContainer">
127127
<nav class="tabMenu">
128128
<ul>
129-
<li><a href="{@$__wcf->getAnchor('tab1')}">Tab 1</a></li>
130-
<li><a href="{@$__wcf->getAnchor('tab2')}">Tab 2</a></li>
129+
<li><a href="{$__wcf->getAnchor('tab1')}">Tab 1</a></li>
130+
<li><a href="{$__wcf->getAnchor('tab2')}">Tab 2</a></li>
131131
132132
{event name='tabMenuTabs'}
133133
</ul>
@@ -142,8 +142,8 @@ More information about installing templates can be found on those pages.
142142
<div id="tab2" class="tabMenuContainer tabMenuContent">
143143
<nav class="menu">
144144
<ul>
145-
<li><a href="{@$__wcf->getAnchor('tab2A')}">Tab 2A</a></li>
146-
<li><a href="{@$__wcf->getAnchor('tab2B')}">Tab 2B</a></li>
145+
<li><a href="{$__wcf->getAnchor('tab2A')}">Tab 2A</a></li>
146+
<li><a href="{$__wcf->getAnchor('tab2B')}">Tab 2B</a></li>
147147
148148
{event name='tabMenuTab2Subtabs'}
149149
</ul>

0 commit comments

Comments
 (0)