Site:

BlogIt-SkinTemplate-arena


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":)
!!!!! (:blogit-skin author pre_text='$[By] ' post_text=', $[on] ':)[[Profiles/{*$:entryauthor}|{*$:entryauthor}]](:blogit-skinend:)\
%blogit-date%(:blogit-skin date fmt='long':){*$LastModifiedTime}(:blogit-skinend:)%%(:if:) \
(:blogit-skin edit pre_text='%blogit-edit-link%%item accesskey="$[ak_edit]"%' post_text='%%' page='{*$FullName}':)$[edit](:blogit-skinend:) | [[{*$FullName}?action=print | $[print]]]
(:div9999end:)
(:div9991 class="blogit-post-body":)
(:if ! equal {*$:entryicon} "":)%rfloat thumb%Attach:{*$:entryicon}(:else:)%rfloat thumb% [[Profiles/{*$:entryauthor}|Attach:Profiles./{*$:entryauthor}.png]](:ifend:)
{*$: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]]

#print-view

(:if false:)[[#print-view]](:if:)
(:div9990 class="blogit-post":)
(:div9999 class="blogit-meta-data-head":)
!!!!! (:blogit-skin author pre_text='$[By] ' post_text=', $[on] ':)[[Profiles/{*$:entryauthor}|{*$:entryauthor}]](:blogit-skinend:)\
%blogit-date%(:blogit-skin date fmt='long':){*$LastModifiedTime}(:blogit-skinend:)
(:div9999end:)
(:div9991 class="blogit-post-body":)
(:if ! equal {*$:entryicon} "":)%rfloat thumb%Attach:{*$:entryicon}(:else:)%rfloat thumb% [[Profiles/{*$:entryauthor}|Attach:Profiles./{*$:entryauthor}.png]](:ifend:)
{*$: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":)
[[#print-viewend]]

#multi-entry-view

Parameters: [pagenav], [perpage]
(:if false:)[[#multi-entry-view]](:if:)
(:template defaults order=-$:entrydate:)
(:template each:)
(:div9990 class="blogit-post-summary":)
!! [[{=$FullName} | {=$Title}]]
(:div9999 class="blogit-meta-data-head":)
!!!!! (:blogit-skin author pre_text='$[By] ' post_text=', $[on] ':)[[Profiles/{=$:entryauthor}|{=$:entryauthor}]](:blogit-skinend:)\
%blogit-date%(:blogit-skin date fmt='long':){=$LastModifiedTime}(: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}:)
(:if ! equal {=$:entryicon} "":)%rfloat thumb%Attach:{=$:entryicon}(:else:)%rfloat thumb% [[Profiles/{=$:entryauthor}|Attach:Profiles./{=$:entryauthor}.png]](:ifend:)
{=$:entrybody}(:blogit-skinend:)
(:div9990end:)
(:template last:)
(:includesection "#page-navigation itemsonpage={$$PageCount} pagenav={$$pagenav} perpage={$$perpage}":)
[[#multi-entry-viewend]]

Forms


#blog-form

(:if false:)[[#blog-form]](:if:)
(:messages:)
$[Blog Title:] (:input text $:entrytitle size=70 class="inputbox blogit-title" id="entrytitle" focus=1 tabindex=1:)\
(:blogit list "$:entrytype":)bi_PageType/$[Type:] (:blogitend:)[==]\
(:blogit list "$:blogid":)bi_BlogList/$[BlogID:] (:blogitend:)\\
$[Tags:] (:input text $:entrytags size=20 id="entrytags" tabindex=1:)\
(:blogit list "$:entrystatus":)bi_StatusType/$[Status:] (:blogitend:)\
[==](:blogit list "$:entrycomments":)bi_CommentType/$[Comments:] (:blogitend:)\\

(:div9989 class="blogit-guibuttons":)(:e_guibuttons:)
(:div9989end:)
(:input textarea $:entrybody rows=(:if9981 equal "{$bi_Mode}" ajax:){$bi_SkinSettings_AJAX_TEXTAREA_ROWS}(:else9981:)23(:if9981:) cols=80 id="text" tabindex=1:)\
$[Pagename (Group.Name):] (:input text $:entryurl size=70 id="entryurl" tabindex=1:)\\
$[Author:] (:input text $:entryauthor size=25 id="entryauthor" tabindex=1:)\
$[Date:] (:input text $:entrydate size=17 id="entrydate" value=(:if !bi_isnull {$bi_Default_ptv_entrydate}:)"{$bi_Default_ptv_entrydate}"(:else:)"{(ftime fmt='$[%d-%m-%Y %H:%M]' @(bi_ifnull {*$:entrydate} {$Now}) )}"(:if:) tabindex=1:)\\
$[Icon:] (:input text $:entryicon size=70 id="entryicon" tabindex=1:)\\
(:includesection "#blog-form-buttons":)
[[#blog-formend]]

#blog-post-control

Note: Validation is performed here to trigger PmForms error, and stop processing. However, when the use enters an invalid date, it gets converted to a valid Unix timestamp, and thus the user sees a date they didn't enter. So, additional validation is performed in blogit.php. If the user enters an invalid date we pass pack the actual string they entered.

In this case don't use the condition to hide the anchor, because the closing if gets included as the first line in the blog-entry post.

[[#blog-post-control]]
(:template defaults saveto="{$$ptv_entryurl}":)
(:template defaults successpage="{$$saveto}":)
(:template require $:entrytitle errmsg="$[Title is required.]":) 
(:template require $:entryurl errmsg="$[Pagename is required.]":) 
(:template require $:entryurl if="!bi_ispage {$$ptv_entryurl}" errmsg="$[Pagename already exists, or is invalid/blank.]":)
(:template require $:entrydate if="bi_isdate {$$ptv_entrydate}" errmsg="$[Invalid date.]":)
(:template defaults savevars=$:pmmarkup,$:blogid,$:entrytype,$:entrydate,$:entryauthor,$:entrytitle,$:entrystatus,$:entrycomments,$:entrytags,$:entryicon,$:entrybody:)
[[#blog-post-controlend]]

#page-navigation

Parameters: itemsonpage (entries on this particular page set), [pagenav] (show page nav links? Default TRUE), [perpage] (override entries-per-page)
(:if false:)[[#page-navigation]](:if:)
(:if1 !equal "{$$pagenav}" false:)(:div class="blogit-page-navigation force_contain":)\
(:if2 !bi_isnull {$bi_PagePrev}:)\
%blogit-newer-entries%[[{(bi_url {*$FullName} page {$bi_PagePrev})} | $[newer posts]]]\
(:if2:)\
(:if2 !bi_lt '{$$itemsonpage}' {(bi_ifnull "{$$perpage}" "{$bi_EntriesPerPage}")} :)\
%blogit-older-entries%[[{(bi_url {*$FullName} page {$bi_PageNext} count {$$perpage})} | $[older posts]]]\
(:if2:)
(:divend:)
(:div class="blogit-clear":)
(:divend:)
(:if1:)
[[#page-navigationend]]

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=-time\
  $:entrytype=blog\
  {(bi_param $:blogid "{$$blogid}")}\
  {(bi_param $:entrystatus "{$$status}")}\
  {(bi_param link "{$$link}")}\
  {(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:)\
  {(bi_param pagenav "{$$pagenav}")}\
  (:if equal {$bi_EntryCount} {$$count}:)count={$bi_EntryStart}..{$bi_EntryEnd}\
  (:else:)count={$$count}(:ifend:)\
  {(bi_param cols "{$$cols}")}\
  {(bi_param perpage "{$$count}")}\
:)
[[#blog-summary-pagelistend]]

CORE TEMPLATES


You probably don't want to be changing these as they determine how blogit functions, rather than having anything to do with layout.

BLOGS

#blog-form-control

(:if false:)[[#blog-form-control]](:if:)
(:div1 id="wikiedit" class="blogit-blog-form":)
(:input pmform target="blogit-entry":)\
(:input default source="{*$FullName}" request=1:)\
(:input default $:entrystatus "draft":)\
(:input default $:entryauthor "{$Author}":)\
(:input default $:entrydate "{(ftime fmt='$[%d-%m-%Y %H:%M]' @{$Now} )}":)\
(:input default $:entryurl "(:if equal '{$Action}' 'bi_ne':){$bi_DefaultGroup}.(:else:){*$FullName}(:if:)":)\
(:input default $:entryicon "Profiles./{*$Author}.png":)\
(:includesection "#blog-form":)
(:input end:)
(:div1end:)
(:include {$SiteGroup}.EditQuickReference:)
[[#blog-form-controlend]]

See: Site.BlogIt-CoreTemplate