############################################### ## Blog Information Macros ############################################### #macro(BlogName)$BLOJSOM_BLOG.getBlogName()#end #macro(EscapedBlogName)$BLOJSOM_BLOG.getEscapedBlogName()#end #macro(BlogDescription)$BLOJSOM_BLOG.getBlogDescription()#end #macro(EscapedBlogDescription)$BLOJSOM_BLOG.getEscapedBlogDescription()#end #macro(BlogURL)$BLOJSOM_BLOG.getBlogURL()#end #macro(BlogAdminURL)$BLOJSOM_BLOG.getBlogAdminURL()#end #macro(BlogBaseURL)$BLOJSOM_BLOG.getBlogBaseURL()#end #macro(BlogLanguage)$BLOJSOM_BLOG.getBlogLanguage()#end #macro(BlogCountry)$BLOJSOM_BLOG.getBlogCountry()#end #macro(BlogOwner)$BLOJSOM_BLOG.getBlogOwner()#end #macro(BlogOwnerEmail)$BLOJSOM_BLOG.getBlogOwnerEmail()#end #macro(BlogDefaultFlavor)$BLOJSOM_BLOG.getBlogDefaultFlavor()#end ############################################### ## Entry Macros ############################################### #macro(TotalCommentsPendingModeration $entry) #set($totalCommentsPendingModeration = 0) #foreach ($entryComment in $entry.getComments()) #if ($!entryComment.getMetaData().get("BLOJSOM_COMMENT_MODERATION_PLUGIN_APPROVED").equals("false")) #set($totalCommentsPendingModeration = $totalCommentsPendingModeration + 1) #end #end #end #macro(TotalCommentsApproved $entry) #set($totalCommentsApproved = 0) #foreach ($entryComment in $entry.getComments()) #if ($!entryComment.getMetaData().get("BLOJSOM_COMMENT_MODERATION_PLUGIN_APPROVED").equals("true")) #set($totalCommentsApproved = $totalCommentsApproved + 1) #end #end #end #macro(TotalTrackbacksPendingModeration $entry) #set($totalTrackbacksPendingModeration = 0) #foreach ($entryTrackback in $entry.getTrackbacks()) #if ($!$entryTrackback.getMetaData().get("BLOJSOM_TRACKBACK_MODERATION_PLUGIN_APPROVED").equals("false")) #set($totalTrackbacksPendingModeration = $totalTrackbacksPendingModeration + 1) #end #end #end #macro(TotalTrackbacksApproved $entry) #set($totalTrackbacksApproved = 0) #foreach ($entryTrackback in $entry.getTrackbacks()) #if ($!$entryTrackback.getMetaData().get("BLOJSOM_TRACKBACK_MODERATION_PLUGIN_APPROVED").equals("false")) #set($totalTrackbacksApproved = $totalTrackbacksApproved + 1) #end #end #end #macro(Author $entry)#if ($entry.getMetaData() && $entry.getMetaData().get("blog-entry-author"))$entry.getMetaData().get("blog-entry-author")#end#end #macro(CommentsAllowed $entry) #if ($BLOJSOM_COMMENTS_ENABLED.booleanValue() && $entry.supportsComments() && ($entry.getMetaData() && !$entry.getMetaData().containsKey("blog-entry-comments-disabled"))) #set($commentsAllowed = true) #end #end #macro(TrackbacksAllowed $entry) #if ($BLOJSOM_TRACKBACK_PLUGIN_ENABLED.booleanValue() && $entry.supportsTrackbacks() && ($entry.getMetaData() && !$entry.getMetaData().containsKey("blog-entry-trackbacks-disabled"))) #set($trackbacksAllowed = true) #end #end #macro(PingbacksAllowed $entry) #if ($BLOJSOM_BLOG.getBlogPingbacksEnabled.booleanValue() && $entry.supportsPingbacks()) #set($pingbacksAllowed = true) #end #end #macro(DaysSincePosted $entry)$!entry.getMetaData().get("blojsom-plugin-days-since-posted")#end #macro(FormatDate $entry $format)$entry.getDateAsFormat($format)#end #macro(EntryCategoryName $entry)#if ($entry.getBlogCategory().getName()) $entry.getBlogCategory().getName() #else $entry.getBlogCategory().getCategory()#end#end #macro(TrackbackAutoDiscovery $entry $runFriendlyPermalink) #if ($runFriendlyPermalink) #friendlyPermalink($entry) #end #set( $blogDescription = $entry.getEscapedDescription() ) #if ($blogDescription.length() > 255 ) #set( $ellipses = "..." ) #set( $blogDescription = "$blogDescription.substring(0,252)$ellipses" ) #end #end #macro(XMLRPCLink $entry $xmlrpcurl) #set ($categoryForEntry = $entry.getBlogCategory().getEncodedCategory()) #if ($categoryForEntry == "/") #set($categoryForEntry = "") #end #if ("" == $xmlrpcurl) #set($xmlrpcurl = "xmlrpc") #end #set ($xmlrpcLink = "$BLOJSOM_BLOG.getBlogBaseURL()/$xmlrpcurl/$BLOJSOM_USER/$categoryForEntry$entry.getDateAsFormat('yyyy')/$entry.getDateAsFormat('MM')/$entry.getDateAsFormat('dd')/$entry.getPermalink()") #end #macro(DatelessFriendlyPermalink $entry) #set ($categoryForEntry = $entry.getBlogCategory().getEncodedCategory()) #if ($categoryForEntry == "/") #set($categoryForEntry = "") #end #set ($entryLink = "$BLOJSOM_BLOG.getBlogURL()$categoryForEntry$entry.getPermalink()") #end #macro(FriendlyPermalink $entry) #set ($categoryForEntry = $entry.getBlogCategory().getEncodedCategory()) #if ($categoryForEntry == "/") #set($categoryForEntry = "") #end #set ($entryLink = "$BLOJSOM_BLOG.getBlogURL()$categoryForEntry$entry.getDateAsFormat('yyyy')/$entry.getDateAsFormat('MM')/$entry.getDateAsFormat('dd')/$entry.getPermalink()") #end ############################################### ## Comment/Trackback Macros ############################################### ############################################### ## Category Macros ############################################### #macro(CategoryName $blogCategory)#if ($blogCategory.getName()) $blogCategory.getName() #else $blogCategory.getCategory()#end#end #macro(SanitizedCategory $category) #set($categoryLength = $category.length()) #set($lengthMinusOne = $categoryLength - 1) #if ($categoryLength > 1) #if ($category.startsWith("/") && $category.endsWith("/")) #set($sanitizedCategory = $category.substring(1, $lengthMinusOne)) #elseif ($category.startsWith("/")) #set($sanitizedCategory = $category.substring(1)) #else #set($sanitizedCategory = $category.substring(0, $lengthMinusOne)) #end #else #set($sanitizedCategory = "") #end #end ############################################### ## Template Snippet Macros ############################################### #macro(Calendar)
#foreach( $downame in $BLOJSOM_CALENDAR.getShortDayOfWeekNames())#if($downame)#end#end #foreach( $number in [1..6] ) $BLOJSOM_CALENDAR_VTLHELPER.getCalendarRow($number,"calendarcolumn") #end
$BLOJSOM_CALENDAR.getCaption()
$downame 
$BLOJSOM_CALENDAR_VTLHELPER.getPreviousMonth() | $BLOJSOM_CALENDAR_VTLHELPER.getToday() | $BLOJSOM_CALENDAR_VTLHELPER.getNextMonth()
#end #macro(CommentFormWithPreview $entry) #if ($BLOJSOM_COMMENTS_ENABLED.booleanValue() && $entry.supportsComments())

Author (*):

E-mail:

URL:

Comment (*):

 

Remember me?

 

Live Comment Preview:

 
#end #end #macro(NavigationLinks $homeText)#if ($BLOJSOM_PERMALINK && $BLOJSOM_BLOG.getLinearNavigationEnabled()) #if ($BLOJSOM_PERMALINK_PREVIOUS_ENTRY) #friendlyPermalink($BLOJSOM_PERMALINK_PREVIOUS_ENTRY) < $!BLOJSOM_PERMALINK_PREVIOUS_ENTRY.getTitle() | #end $homeText #if ($BLOJSOM_PERMALINK_NEXT_ENTRY) | #friendlyPermalink($BLOJSOM_PERMALINK_NEXT_ENTRY) $!BLOJSOM_PERMALINK_NEXT_ENTRY.getTitle() >#end#end#end #macro(SearchBox) #end #macro(Resource $item)$BLOJSOM_BLOG.getBlogBaseURL()/blojsom_resources/$BLOJSOM_USER/$item#end #macro(MonthlyArchive $startingMonth $startingYear) #end ############################################### ## Plugin Macros ############################################### #macro(DisplayWeatherForecast $weatherInfo)

$weatherInfo.getLocation()

Temperature:  $weatherInfo.getFahrenheit() / $weatherInfo.getCelcius()

Visibility:  $weatherInfo.getVisibility()

Qind:  $weatherInfo.getWind()

Detailed Weather History

#end #macro(MathCommentQuestion)$!BLOJSOM_MATH_AUTHENTICATOR_PLUGIN_VALUE1 $!BLOJSOM_MATH_AUTHENTICATOR_PLUGIN_OPERATION $!BLOJSOM_MATH_AUTHENTICATOR_PLUGIN_VALUE2#end #macro(MathCommentFormItem)

Answer $!BLOJSOM_MATH_AUTHENTICATOR_PLUGIN_VALUE1 $!BLOJSOM_MATH_AUTHENTICATOR_PLUGIN_OPERATION $!BLOJSOM_MATH_AUTHENTICATOR_PLUGIN_VALUE2 =

#end #macro(MultiBlogFriendlyPermalink $entry) #set ($categoryForEntry = $entry.getBlogCategory().getCategory()) #if ($categoryForEntry == "/") #set($categoryForEntry = "") #end #set ($entryLink = "$entry.getMetaData().get('BLOJSOM_PLUGIN_INTERNAL_AGGREGATOR_BLOG_URL')$categoryForEntry$entry.getDateAsFormat('yyyy')/$entry.getDateAsFormat('MM')/$entry.getDateAsFormat('dd')/$entry.getPermalink()") #end #macro(Obfuscate $text)$!BLOJSOM_PLUGIN_SIMPLE_OBFUSCATION.obfuscate($text)#end #macro(RSSEnclosure $entry)$!entry.getMetaData().get("rss-enclosure")#end #macro(TechnoratiTags $entry) #if ($entry.getMetaData().get("TECHNORATI_TAG_LINKS")) #set($technoratiTags = $entry.getMetaData().get("TECHNORATI_TAG_LINKS"))

Technorati Tags: #foreach($technoratiTag in $technoratiTags) $technoratiTag #end

#end #end ############################################### ## Administrative Macros ############################################### #macro(EditEntry $entry)#if ($BLOJSOM_USER_AUTHENTICATED)Edit Entry#end#end #macro(DeleteEntry $entry)#if ($BLOJSOM_USER_AUTHENTICATED)Delete Entry#end#end #macro(DeleteComment $entry $blogComment)#if ($BLOJSOM_USER_AUTHENTICATED)Delete Comment#end#end #macro(DeleteTrackback $entry $trackback)#if ($BLOJSOM_USER_AUTHENTICATED)Delete Trackback#end#end