Added template events
authorMarcel Werk <burntime@woltlab.com>
Mon, 1 Apr 2013 17:32:53 +0000 (19:32 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 1 Apr 2013 17:32:53 +0000 (19:32 +0200)
templates/conversation.tpl
templates/conversationAdd.tpl
templates/conversationList.tpl
templates/conversationMessageAdd.tpl
templates/conversationMessageEdit.tpl
templates/conversationMessageList.tpl
templates/conversationMessagePreview.tpl

index 765f3ed7d522a842504bf4a8ee3ff8909a9904ea..4ad15e8629753d31a4ee5aaca6df6380185a726f 100644 (file)
@@ -59,6 +59,8 @@
                        {/content}
                </ul>
        {/hascontent}
+       
+       {event name='headlineData'}
 </header>
 
 {include file='userNotice'}
                <ul class="conversation jsConversationInlineEditorContainer" data-conversation-id="{@$conversation->conversationID}" data-label-ids="[ {implode from=$conversation->getAssignedLabels() item=label}{@$label->labelID}{/implode} ]" data-is-closed="{@$conversation->isClosed}" data-can-close-conversation="{if $conversation->userID == $__wcf->getUser()->userID}1{else}0{/if}" data-can-add-participants="{if $conversation->canAddParticipants()}1{else}0{/if}">
                        <li class="jsOnly"><a class="button jsConversationInlineEditor"><span class="icon icon16 icon-pencil"></span> <span>{lang}wcf.global.button.edit{/lang}</span></a></li>
                        {if !$conversation->isClosed}<li><a href="{link controller='ConversationMessageAdd' id=$conversationID}{/link}" title="{lang}wcf.conversation.message.add{/lang}" class="button buttonPrimary jsQuickReply"><span class="icon icon16 icon-plus"></span> <span>{lang}wcf.conversation.message.button.add{/lang}</span></a></li>{/if}
-                       {event name='largeButtonsTop'}
+                       {event name='contentNavigationButtonsTop'}
                </ul>
        </nav>
 </div>
                        <ul>
                                {content}
                                        {if !$conversation->isClosed}<li><a href="{link controller='ConversationMessageAdd' id=$conversationID}{/link}" title="{lang}wcf.conversation.message.add{/lang}" class="button buttonPrimary jsQuickReply"><span class="icon icon16 icon-plus"></span> <span>{lang}wcf.conversation.message.button.add{/lang}</span></a></li>{/if}
-                                       {event name='largeButtonsBottom'}
+                                       {event name='contentNavigationButtonsBottom'}
                                {/content}
                        </ul>
                </nav>
index 5fd0e79fcfe50eefb2a31a4ae3b06a93384c0402..0a002ddbdcb1828f3be9144df6bdfc5641900cf6 100644 (file)
@@ -54,6 +54,8 @@
                                        {/if}
                                </dd>
                        </dl>
+                       
+                       {event name='informationFields'}
                </fieldset>
                
                <fieldset>
                                        <label><input type="checkbox" name="participantCanInvite" id="participantCanInvite" value="1"{if $participantCanInvite} checked="checked"{/if} /> {lang}wcf.conversation.participantCanInvite{/lang}</label>
                                </dd>
                        </dl>
+                       
+                       {event name='participantFields'}
                </fieldset>
                        
                <fieldset>
                                        {/if}
                                </dd>
                        </dl>
+                       
+                       {event name='messageFields'}
                </fieldset>
                
                {event name='fieldsets'}
index b7b83b5ce0ad0bc27c1f78c9cbff36cfdc112bd1..3bdf343ebfb7387cae03be476129438780f8ea66 100644 (file)
                        <p><small>{lang}wcf.conversation.quota.description{/lang}</small></p>
                </div>
        </fieldset>
+       
+       {event name='boxes'}
 {/capture}
 
 {capture assign='headerNavigation'}
                        <ul>
                                {content}
                                        <li><a href="{link controller='ConversationAdd'}{/link}" title="{lang}wcf.conversation.add{/lang}" class="button"><span class="icon icon16 icon-asterisk"></span> <span>{lang}wcf.conversation.button.add{/lang}</span></a></li>
-                                       {event name='largeButtonsTop'}
+                                       {event name='contentNavigationButtonsTop'}
                                {/content}
                        </ul>
                </nav>
                                        <th class="columnDigits columnReplies{if $sortField == 'replies'} active {@$sortOrder}{/if}"><a href="{link controller='ConversationList'}{if $filter}filter={@$filter}&{/if}pageNo={@$pageNo}&sortField=replies&sortOrder={if $sortField == 'replies' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{if $labelID}&labelID={@$labelID}{/if}{/link}">{lang}wcf.conversation.replies{/lang}</a></th>
                                        <th class="columnDigits columnParticipants{if $sortField == 'participants'} active {@$sortOrder}{/if}"><a href="{link controller='ConversationList'}{if $filter}filter={@$filter}&{/if}pageNo={@$pageNo}&sortField=participants&sortOrder={if $sortField == 'participants' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{if $labelID}&labelID={@$labelID}{/if}{/link}">{lang}wcf.conversation.participants{/lang}</a></th>
                                        <th class="columnText columnLastPost{if $sortField == 'lastPostTime'} active {@$sortOrder}{/if}"><a href="{link controller='ConversationList'}{if $filter}filter={@$filter}&{/if}pageNo={@$pageNo}&sortField=lastPostTime&sortOrder={if $sortField == 'lastPostTime' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{if $labelID}&labelID={@$labelID}{/if}{/link}">{lang}wcf.conversation.lastPostTime{/lang}</a></th>
+                                       
+                                       {event name='columnHeads'}
                                </tr>
                        </thead>
                        
                                                                        {if $participantSummaryCount < $conversation->participants}{lang}wcf.conversation.participants.other{/lang}{/if}
                                                                </small>
                                                        {/if}
+                                                       
+                                                       {event name='conversationData'}
                                                </td>
                                                <td class="columnDigits columnReplies"><p>{#$conversation->replies}</p></td>
                                                <td class="columnDigits columnParticipants"><p>{#$conversation->participants}</p></td>
                                                                </div>
                                                        {/if}
                                                </td>
+                                               
+                                               {event name='columns'}
                                        </tr>
                                {/foreach}
                        </tbody>
                        <ul>
                                {content}
                                        <li><a href="{link controller='ConversationAdd'}{/link}" title="{lang}wcf.conversation.add{/lang}" class="button"><span class="icon icon16 icon-asterisk"></span> <span>{lang}wcf.conversation.button.add{/lang}</span></a></li>
-                                       {event name='largeButtonsBottom'}
+                                       {event name='contentNavigationButtonsBottom'}
                                {/content}
                        </ul>
                </nav>
index d0e3a078fa06a28527c83cf2677673d7a6b9c105..b422424bff71fac1aa77fba131c4aeaa6d8dbbd0 100644 (file)
@@ -59,6 +59,8 @@
                                        {/if}
                                </dd>
                        </dl>
+                       
+                       {event name='messageFields'}
                </fieldset>
                
                {event name='fieldsets'}
index b0889caec6dfc4d3ea8a6bf382df8050a407ee1d..60a0bf9201ad2f0c2e0eb3de43acc428566c3f0c 100644 (file)
@@ -50,6 +50,8 @@
                                                {/if}
                                        </dd>
                                </dl>
+                               
+                               {event name='informationFields'}
                        </fieldset>
                        
                        <fieldset>
                                                <label><input type="checkbox" name="participantCanInvite" id="participantCanInvite" value="1"{if $participantCanInvite} checked="checked"{/if} /> {lang}wcf.conversation.participantCanInvite{/lang}</label>
                                        </dd>
                                </dl>
+                               
+                               {event name='participantFields'}
                        </fieldset>
                {/if}
                
                                        {/if}
                                </dd>
                        </dl>
+                       
+                       {event name='messageFields'}
                </fieldset>
                
                {event name='fieldsets'}
index 40a48df29b7d67954b8323202cf4edc5db84e5f7..64262ddabb34ac0914f96244edd48d10a417b091 100644 (file)
                                                        {if $conversation->isNewMessage($message->getDecoratedObject())}
                                                                <p class="newMessageBadge">{lang}wcf.message.new{/lang}</p>
                                                        {/if}
+                                                       
+                                                       {event name='messageHeader'}
                                                </header>
                                                
                                                <div class="messageBody">
                                                        <div>
                                                                <div class="messageText">
                                                                        {@$message->getFormattedMessage()}
+                                                                       
+                                                                       {event name='messageText'}
                                                                </div>
                                                        </div>
                                                        
                                                                </div>
                                                        {/if}
                                                        
-                                                       <div class="messageFooter"></div>
+                                                       {event name='messageBody'}
+                                                       
+                                                       <div class="messageFooter">
+                                                               {event name='messageFooterNotes'}
+                                                       </div>
                                                        
                                                        <footer class="messageOptions">
                                                                <nav>
@@ -47,6 +55,7 @@
                                                                                *}<li class="jsQuoteMessage" data-object-id="{@$message->messageID}" data-is-quoted="{if $__quoteFullQuote|isset && $message->messageID|in_array:$__quoteFullQuote}1{else}0{/if}"><a href="{link controller='ConversationMessageAdd' id=$conversation->conversationID quoteMessageID=$message->messageID}{/link}" title="{lang}wcf.message.quote.quoteMessage{/lang}" class="button jsTooltip{if $__quoteFullQuote|isset && $message->messageID|in_array:$__quoteFullQuote} active{/if}"><span class="icon icon16 icon-quote-left"></span> <span class="invisible">{lang}wcf.message.quote.quoteMessage{/lang}</span></a></li>{*
                                                                                *}{if $message->userID != $__wcf->getUser()->userID}<li class="jsReportConversationMessage jsOnly" data-object-id="{@$message->messageID}"><a title="{lang}wcf.moderation.report.reportContent{/lang}" class="button jsTooltip"><span class="icon icon16 icon-warning-sign"></span></a></li>{/if}{*
                                                                                *}<li class="toTopLink"><a href="{@$__wcf->getAnchor('top')}" title="{lang}wcf.global.scrollUp{/lang}" class="button jsTooltip"><span class="icon icon16 icon-arrow-up"></span> <span class="invisible">{lang}wcf.global.scrollUp{/lang}</span></a></li>{*
+                                                                               *}{event name='messageOptions'}{*
                                                                        *}</ul>
                                                                </nav>
                                                        </footer>
index 1d38e681c971e62e7947b86306a2aeb29905f90b..a2da7dafaf763032f8c459d8f0a2eb9c049dcf59 100644 (file)
@@ -9,5 +9,7 @@
                </hgroup>
                
                <div>{@$message->getExcerpt()|nl2br}</div>
+               
+               {event name='previewData'}
        </div>
 </div>
\ No newline at end of file