Added some template events in article templates
authorMarcel Werk <burntime@woltlab.com>
Mon, 11 Dec 2017 09:40:53 +0000 (10:40 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 11 Dec 2017 09:40:53 +0000 (10:40 +0100)
com.woltlab.wcf/templates/article.tpl
com.woltlab.wcf/templates/articleListItems.tpl
wcfsetup/install/files/acp/templates/articleAdd.tpl

index a447b831b59155f8525ab786f90da12d166d327a..4e0fde5bfdea92410ddec43814dca92dadced738 100644 (file)
                </div>
        {/if}
        
+       {event name='beforeArticleContent'}
+       
        <div class="section articleContent"
                 data-object-id="{@$article->articleID}"
                 data-object-type="com.woltlab.wcf.likeableArticle"
                        {/if}
                
                        {@$articleContent->getFormattedContent()}
+                       
+                       {event name='htmlArticleContent'}
                </div>
                
                {if !$tags|empty}
                </div>
        </div>
        
+       {event name='afterArticleContent'}
+       
        {if ARTICLE_SHOW_ABOUT_AUTHOR && $article->getUserProfile()->aboutMe}
                <div class="section articleAboutAuthor">
                        <h2 class="sectionTitle">{lang}wcf.article.aboutAuthor{/lang}</h2>
        {/hascontent}
 </footer>
 
+{event name='afterFooter'}
+
 {if $previousArticle || $nextArticle}
        <div class="section articleNavigation">
                <nav>
        </section>
 {/if}
 
+{event name='beforeComments'}
+
 {if $article->enableComments}
        {if $commentList|count || $commentCanAdd}
                <section id="comments" class="section sectionContainerList">
index c1997da53d4254792bf6b916cf190058a99ef9bb..f5badadbb25a05b558f44d4e834bd54972ac7cdc 100644 (file)
@@ -45,6 +45,8 @@
                                                                {if ARTICLE_ENABLE_VISIT_TRACKING && $article->isNew()}<li><span class="badge label newMessageBadge">{lang}wcf.message.new{/lang}</span></li>{/if}
 
                                                                {if $article->isDeleted}<li><span class="badge label red">{lang}wcf.message.status.deleted{/lang}</span></li>{/if}
+                                                               
+                                                               {event name='articleListMetaData'}
                                                        </ul>
                                                </div>
                                                
@@ -56,6 +58,8 @@
                                {if $article->getTeaserImage() && $article->getTeaserImage()->hasThumbnail('tiny')}
                                        </div>
                                {/if}
+                               
+                               {event name='articleListEntry'}
                        </a>
                </li>
        {/foreach}
index 26a0598ede24f09c70623639348ec6ca76d32ec8..0047dea966f7d413b3db577c8575b7e86d084053 100644 (file)
                        </dd>
                </dl>
                
+               {event name='categoryFields'}
+               
                {if $labelGroups|count}
                        {foreach from=$labelGroups item=labelGroup}
                                {if $labelGroup|count}
                                </script>
                        {/if}
                        
+                       {event name='informationFields'}
+                       
                        <dl{if $errorField == 'teaser'} class="formError"{/if}>
                                <dt><label for="teaser0">{lang}wcf.acp.article.teaser{/lang}</label></dt>
                                <dd>
                                        {/if}
                                </dd>
                        </dl>
+                       
+                       {event name='messageFields'}
                </div>
        {else}
                <div class="section tabMenuContainer">
                                                        </script>
                                                {/if}
                                                
+                                               {event name='informationFieldsMultilingual'}
+                                               
                                                <dl{if $errorField == 'teaser'|concat:$availableLanguage->languageID} class="formError"{/if}>
                                                        <dt><label for="teaser{@$availableLanguage->languageID}">{lang}wcf.acp.article.teaser{/lang}</label></dt>
                                                        <dd>
                                                                {/if}
                                                        </dd>
                                                </dl>
+                                               
+                                               {event name='messageFieldsMultilingual'}
                                        </div>
                                </div>
                        {/foreach}
                </div>
        {/if}
        
+       {event name='sections'}
+       
        <div class="formSubmit">
                <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
                <input type="hidden" name="isMultilingual" value="{@$isMultilingual}">