diff options
| author | wjames5 <will@tekimaki.com> | 2007-11-05 23:34:15 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2007-11-05 23:34:15 +0000 |
| commit | e87df1408d82780df834ad6cfdcd4c83c9ecaec9 (patch) | |
| tree | 0ee3e18030f9cc913ae8ca8909e05d78ff2bfb6f /templates | |
| parent | 74847ad3e8e6871efa9dacd6e4f327ae4329bf71 (diff) | |
| download | blogs-e87df1408d82780df834ad6cfdcd4c83c9ecaec9.tar.gz blogs-e87df1408d82780df834ad6cfdcd4c83c9ecaec9.tar.bz2 blogs-e87df1408d82780df834ad6cfdcd4c83c9ecaec9.zip | |
new feature - auto display primary attachment at top of blog post
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/blog_list_post.tpl | 8 | ||||
| -rw-r--r-- | templates/view_blog_post.tpl | 9 |
2 files changed, 16 insertions, 1 deletions
diff --git a/templates/blog_list_post.tpl b/templates/blog_list_post.tpl index dc79565..d60e17f 100644 --- a/templates/blog_list_post.tpl +++ b/templates/blog_list_post.tpl @@ -50,6 +50,14 @@ <div class="content"> {if $aPost.avatar}<img src="{$aPost.avatar}" class="avatar" />{/if} {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$aPost} + + {* deal with the blog post image if there is one *} + {if $aPost.thumbnail_url} + <div class="image"> + {jspopup notra=1 href=$aPost.thumbnail_url.original alt=$aPost.title|escape title=$aPost.title|escape" img=$aPost.thumbnail_url.medium} + </div> + {/if} + {if $showDescriptionsOnly} {$aPost.summary|default:$aPost.parsed_description} {if $gBitSystem->isFeatureActive( 'blog_ajax_more' )}<div id="post_more_{$aPost.post_id}"></div>{/if} diff --git a/templates/view_blog_post.tpl b/templates/view_blog_post.tpl index a2d6a83..3f415d6 100644 --- a/templates/view_blog_post.tpl +++ b/templates/view_blog_post.tpl @@ -90,8 +90,15 @@ ondblclick="location.href='{$smarty.const.BLOGS_PKG_URL}post.php?blog_id={$post_info.blog_id}&post_id={$post_info.post_id}';" {/if} > - <div class="content"> + <div class="content"> {include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$post_info} + + {* deal with the blog post image if there is one *} + {if $post_info.thumbnail_url} + <div class="image"> + {jspopup notra=1 href=$post_info.thumbnail_url.original alt=$post_info.title|escape title=$post_info.title|escape" img=$post_info.thumbnail_url.medium} + </div> + {/if} {$parsed_data} </div> <!-- end .content --> |
