6262
6363{ block " title" } { $data -> Title } &mdash ; { $dwoo .parent} { /block }
6464
65- { block " content-wrapper-open" } <div class =" container-fluid" >{ /block }
66-
67- { block " content" }
68- { $Post = $data }
69-
70- <article class =" blog-post" >
71- <header class =" article-header" >
72- { if Emergence\CMS\BlogRequestHandler::checkWriteAccess($Post )}
73- <div class =" btn-group pull-right" >
74- <a href =" { $Post -> getURL ()} /edit" class =" btn btn-default" >{ *glyph "pencil"*} { _ Edit} </a >
75- <a href =" { $Post -> getURL ()} /delete"
76- class =" btn btn-danger confirm"
77- data-confirm-yes =" Delete Post"
78- data-confirm-no =" Don&rsquo ; t Delete"
79- data-confirm-title =" Deleting Post"
80- data-confirm-body =" Are you sure you want to delete the post &ldquo ; { $Post -> Title |escape } ?&rdquo ; "
81- data-confirm-destructive =" true"
82- data-confirm-success-target =" .blog-post"
83- data-confirm-success-message =" Blog post deleted" >{ *glyph "trash"*} { _ Delete} </a >
65+ { block " content-wrapper" }
66+ <div class =" container-fluid" >
67+ { block " content" }
68+
69+ { $Post = $data }
70+
71+ <article class =" blog-post" >
72+ <header class =" article-header" >
73+ { if Emergence\CMS\BlogRequestHandler::checkWriteAccess($Post )}
74+ <div class =" btn-toolbar pull-right" >
75+ <div class =" btn-group" >
76+ <a href =" { $Post -> getURL ()} /edit" class =" btn btn-default" >{ *glyph "pencil"*} { _ Edit} </a >
77+ <a href =" { $Post -> getURL ()} /delete"
78+ class =" btn btn-danger confirm"
79+ data-confirm-yes =" Delete Post"
80+ data-confirm-no =" Don&rsquo ; t Delete"
81+ data-confirm-title =" Deleting Post"
82+ data-confirm-body =" Are you sure you want to delete the post &ldquo ; { $Post -> Title |escape } ?&rdquo ; "
83+ data-confirm-destructive =" true"
84+ data-confirm-success-target =" .blog-post"
85+ data-confirm-success-message =" Blog post deleted" >{ *glyph "trash"*} { _ Delete} </a >
86+ </div >
87+ </div >
88+ { /if }
89+
90+ <h1 class =" header-title" ><a href =" { $Post -> getURL ()} " >{ $Post -> Title |escape } </a ></h1 >
91+
92+ <div class =" article-meta" >
93+ by { personLink $Post -> Author photo= yes photoSize= 36 pixelRatio= 2}
94+ on <a href =" { $Post -> getURL ()} " >{ timestamp $Post -> Published } </a >
8495 </div >
85- { /if }
8696
87- < h1 class = " header-title " >< a href = " { $Post -> getURL () } " > { $ Post -> Title |escape } </ a ></ h1 >
88-
89- < div class = " article-meta " >
90- by { personLink $ Post -> Author photo= yes photoSize= 36 pixelRatio= 2 }
91- on < a href = " { $ Post -> getURL () } " > { timestamp $ Post -> Published } </ a >
92- </div >
97+ { if $Post -> Summary }
98+ < div class = " article-summary " >
99+ { $ Post -> Summary |escape }
100+ </ div >
101+ { / if }
102+ </header >
93103
94- { if $Post -> Summary }
95- <div class =" article-summary" >
96- { $Post -> Summary |escape }
104+ <div class =" article-body" >
105+ { $Post -> RenderBody ()}
97106 </div >
98- { /if }
99- </header >
100107
101- <div class =" article-body" >
102- { $Post -> RenderBody ()}
103- </div >
108+ <section class =" blog-comments" >
109+ { commentSection $Post }
110+ </section >
111+ </article >
104112
105- <section class =" blog-comments" >
106- { commentSection $Post }
107- </section >
108- </article >
113+ { /block }
114+ </div >
109115{ /block }
0 commit comments