NOTE:These are skin-specific changes to Site.BlogIt-CoreTemplate. Copy only specific sections you need to override -- do not copy the entire file, as you will not get the benefits of future releases of BlogIt.


LAYOUT TEMPLATES


These will typically be over-ridden by skins in order to change layout.

Blogs

#single-entry-view

(:if false:)[[#single-entry-view]](:if:)
(:div9990 class="blogit-post":)
(:div9999 class="blogit-meta-data-head notoc":)
!!!!! (:blogit-skin author pre_text='$[By] ' post_text=', $[on] ':){*$:entryauthor}(:blogit-skinend:)\
%blogit-date%(:blogit-skin date fmt='long':){*$:entrydate}(:blogit-skinend:)%%(:if:) \
(:blogit-skin edit pre_text='%blogit-edit-link%%item accesskey="$[ak_edit]"%' post_text='%%' page='{*$FullName}':)$[edit](:blogit-skinend:)
(:div9999end:)
(:*toc-float:)
(:div9991 class="blogit-post-body":)
{*$:entrybody}
(:div9991end:)
(:div9999 class="blogit-meta-data-footer":)
(:blogit-skin tags pre_text='`.!!!!!%block blogit-tags%$[Tags:] ' post_text='%%':){*$:entrytags}(:blogit-skinend:)
(:blogit-skin commentcount status='{*$:entrycomments}' pre_text='!!!!!%block blogit-comment-count%' post_text='%%' group='{*$Group}' name='{*$Name}':) $[comment(s)](:blogit-skinend:)
(:div9999end:)
(:div9990end:)
(:includesection "#comments-pagelist pagename={*$Name} group={*$Group} entrycomments={*$:entrycomments} divid=commentblock":)
[[#single-entry-viewend]]

#multi-entry-view

Parameters: [pagenav], [perpage]
(:if false:)[[#multi-entry-view]](:if:)
(:template defaults order=-$:entrydate:)
(:template each:)
(:div9990 class="blogit-post-summary well":)
!! [[{=$FullName} | {=$Title}]]
(:div9999 class="blogit-meta-data-head":)
!!!!! (:blogit-skin author pre_text='$[By] ' post_text=', $[on] ':){=$:entryauthor}(:blogit-skinend:)\
%blogit-date%(:blogit-skin date fmt='long':){=$:entrydate}(:blogit-skinend:)%% \
(:blogit-skin edit pre_text='%blogit-edit-link%%item accesskey="$[ak_edit]"%' post_text='%%' page='{=$FullName}':)$[edit](:blogit-skinend:)
(:div9999end:)
(:blogit-skin intro class=blogit-post-intro page={=$FullName}:)
{=$:entrybody}(:blogit-skinend:)
(:div9990end:)
(:template last:)
(:includesection "#page-navigation itemsonpage={$$PageCount} pagenav={$$pagenav} perpage={$$perpage}":)
[[#multi-entry-viewend]]

Pagelists


BLOGS

#blog-summary-pagelist

Parameters: blogid, status, pagenav (true/false -- default is true), count (0 for default all; null for default defined in config), daterange, [group and name (if included, then returns only the specific page, no other parameters are needed)].
(:if false:)[[#blog-summary-pagelist]](:if:)
(:pagelist list="blogit" wrap=none fmt=#multi-entry-view\
  order=-$:entrydate\
  $:entrytype=blog\
  {(bi_param $:blogid "{$$blogid}")}\
  {(bi_param $:entrystatus "{$$status}")}\
  {(bi_param link "{$$link}")}\
  {(bi_param perpage "{$$count}")}\
  {(bi_param group "{$$group}")}\
  {(bi_param name "{$$name}")}\
  (:if !bi_isnull {$$daterange}:)if='date {$$daterange} @{=$:entrydate}' \
  (:elseif equal {$bi_DisplayFuture} false:)if='date ..@{$Now} @{=$:entrydate}'(:if:)\
  (:if !equal '{$$count}' 0:){(bi_param pagenav "{$$pagenav}")}\
  count={(bi_ifnull '{$$count}' "{$bi_EntryStart}..{$bi_EntryEnd}")}(:if:)\
  {(bi_param cols "{$$cols}")}\
:)
[[#blog-summary-pagelistend]]

blog-tag-manquee

a list aping the style of the blog list, for non-blog pages

NOTE: used in tag-pagelist, below

TODO: the group is not listed. Is that needed?

(:if false:)[[#blog-tag-manquee]](:if:)
* %apply list class="blogit-yearly-archive"%[[{=$FullName} | {=$Title}]] 
[[#blog-tag-manqueeeend]]

#tag-pagelist

Parameters: count, tag (if not provided, uses the current page name, which would be the tag)

Included as part of $GroupFooterFmt, so when browsing a page in the Tag group, the pagelist shows up.
Listing non-blog entries is awkward, so we've got doubled-up lists, now...

NOTE: uses blog-tag-manquee definition, from above
(:if false:)[[#tag-pagelist]](:if:)
(:pagelist list="blogit" wrap=none fmt=#blog-yearly-archive\
  order=-$:entrydate\
  link={$CategoryGroup}.{(bi_ifnull "{$$tag}" "{*$Name}")} \
  $:entrystatus=-draft\
  $:entrytype=blog\
  (:if equal '{$bi_DisplayFuture}' 'false':)if='date ..@{$Now} @{=$:entrydate}'(:if:)\
  {(bi_param count "{$$count}")}\
:)
(:pagelist link={$CategoryGroup}.{*$Name} group=-Blog fmt=#blog-tag-manquee :)
[[#tag-pagelistend]]

#tag-list-pagelist

Parameters: count

Used to generate the list of categories usually seen in the sidebar.

(:if false:)[[#tag-list-pagelist]](:if:)
(:pagelist fmt=#titlespaced group={$CategoryGroup} {(bi_param count "{$$count}")} :) 
[[#tag-list-pagelistend]]