source: extensions/Comments_on_Albums/template/coa_albums.tpl @ 9641

Last change on this file since 9641 was 9641, checked in by mistic100, 13 years ago

[plugins] Comments on Albums

  • stable version
File size: 1.2 KB
Line 
1{* this is inspired by theme/defaults/template/picture.tpl *}
2       
3{combine_script id="jquery"}
4{combine_css path=$COA_PATH|@cat:'template/style_albums.css'}
5
6{footer_script require="jquery"}{literal}
7        // cancel all color changements and set default color to comments
8        jQuery('.thumbnailCategory').css('color', jQuery('body').css('color'));
9{/literal}{/footer_script}
10
11<a name="comments"></a>
12<div id="comments">
13        {if $COMMENT_COUNT > 0}
14                <h3>{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</h3>
15        {/if}
16
17        {if isset($comments)}
18                {include file='comment_list.tpl'}
19        {/if}
20       
21        {if !empty($comment_navbar)}{include file=$COA_ABSOLUTE_PATH|@cat:'template/navigation_bar.tpl'}{/if}
22
23        {if isset($comment_add)}
24        <form method="post" action="{$comment_add.F_ACTION}" class="filter" id="addComment">
25                <fieldset>
26                        <legend>{'Add a comment'|@translate}</legend>
27                        {if $comment_add.SHOW_AUTHOR}
28                                <label>{'Author'|@translate}<input type="text" name="author"></label>
29                        {/if}
30                        <label>{'Comment'|@translate}<textarea name="content" id="contentid" rows="5" cols="80">{$comment_add.CONTENT}</textarea></label>
31                        <input type="hidden" name="key" value="{$comment_add.KEY}">
32                        <input type="submit" value="{'Submit'|@translate}">
33                </fieldset>
34        </form>
35        {/if}
36</div>
Note: See TracBrowser for help on using the repository browser.