Changes for page BlogPostLayoutIDoc

Last modified by Administrator on 03.08.2023 14:17

From version 10.2
edited by Administrator
on 18.09.2017 07:38
Change comment: There is no comment for this version
To version 10.6
edited by Administrator
on 18.09.2017 07:44
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -52,8 +52,6 @@
52 52  #end
53 53  #if ($displayCalendar)(% class="blogDay" %)(((#end
54 54  #if ($displayCalendar && $displayCalendarImage)#displayBlogDate($postDate)#end
55 -
56 -
57 57  ## #displayEntry($postDoc $postObj $useSummary $displayTitle $displayActions)
58 58  ## #macro(displayEntry $entryDoc $entryObj $onlyExtract $shouldDisplayTitle $shouldDisplayActions)
59 59   #isPublished($postObj $isPublished)
... ... @@ -77,11 +77,22 @@
77 77   #end
78 78   #end
79 79   #displayEntryContent($postDoc $postObj $useSummary)
80 - #displayEntryFooter($postDoc $postObj)
78 +## #displayEntryFooter($postDoc $postObj)
79 +
80 +## #macro(displayEntryFooter $entryDoc $entryObj)
81 + (% class="entry-footer" %)(((
82 + #getEntryDate($postDoc $postObj $entryDate)
83 + #listCategories($postObj) #*
84 + ## Since the publish date and update date are not set at the exact same time, there could be a small difference that
85 + ## we assume cannot be more than 3 seconds.
86 + *#(% class="separator" %)·(%%) [[{{translation key='blog.code.permalink'/}}>>$postDoc||rel="bookmark"]] ##
87 + (% class="separator" %)·(%%) [[{{translation key='blog.code.comments'/}}>>$postDoc||anchor="Comments"]] (% class="itemCount" %)($postDoc.comments.size())(%%) ##
88 + )))## entry-footer
89 +## #end
90 +
91 +
81 81   )))## hentry
82 82  ## #end
83 -
84 -
85 85  #if ($displayCalendar))))#end
86 86  #else
87 87  {{error}}$services.localization.render('blog.blogpostlayout.notpost', [$xcontext.macro.params.reference]){{/error}}