source: extensions/Comments_on_Albums/trunk/template/albums.tpl @ 26243

Last change on this file since 26243 was 26089, checked in by mistic100, 11 years ago

update for 2.6 + clean

File size: 3.8 KB
Line 
1{*<!-- this is inspired by theme/defaults/template/picture.tpl -->*}
2
3{combine_script id='coa.script' load='footer' require='jquery' path=$COA_PATH|cat:'template/script.js'}
4
5{html_style}{strip}
6#comments { margin:10px 0 0 0; padding: 2px 5px !important; position:relative; }
7#comments .commentElement { width:98%; }
8
9{if $COMMENTS_ON_TOP}
10#comments { margin:0 0 10px 0; }
11{/if}
12
13{if $themeconf.name == 'elegant'}
14#content { padding-bottom:0; }
15#comments { background-color:#333333; }
16#comments h3 { margin: 10px 0px; }
17{/if}
18
19{if $themeconf.name == 'Sylvia'}
20#comments .description { padding: 15px 2px 6px 12px; }
21#comments .commentElement { border: 1px solid #666; }
22{/if}
23
24{if $themeconf.name|strstr:"stripped"}
25#comments { text-align: left; }
26#comments .description { height:auto; }
27#thumbnails_block2 { min-height:0; }
28{/if}
29
30{if $themeconf.name != 'elegant'}
31#comments { background:rgba(127,127,127,0.1); }
32#comments.commentshidden #pictureComments { display:none; }
33#comments .comments_toggle { cursor:pointer; }
34#commentsSwitcher { float:left; margin:2px 0; cursor:pointer; }
35#comments .switchArrow { width:16px; height:16px; margin:8px 5px 8px 4px; }
36#comments .switchArrow:before { content:"\BB"; display:inline-block; font-size:22px; }
37#comments.commentshidden .switchArrow:before { -webkit-transform:rotate(90deg); transform:rotate(90deg); }
38#comments.commentsshown .switchArrow:before { -webkit-transform:rotate(-90deg); transform:rotate(-90deg); }
39{/if}
40{/strip}{/html_style}
41
42{footer_script}
43var coa_on_top = {intval(isset($COMMENTS_ON_TOP))}, coa_force_open = {intval(isset($DISPLAY_COMMENTS_BLOCK))};
44{/footer_script}
45
46
47{if isset($COMMENT_COUNT)}
48<div id="comments" {if (!isset($comment_add) && ($COMMENT_COUNT == 0))}class="noCommentContent"{else}class="commentContent"{/if}><div id="commentsSwitcher"></div>
49  <h3>{$COMMENT_COUNT|translate_dec:'%d comment':'%d comments'}</h3>
50
51  <div id="pictureComments">
52    {if isset($comment_add)}
53    <div id="commentAdd">
54      <h4>{'Add a comment'|translate}</h4>
55      <form method="post" action="{$comment_add.F_ACTION}" id="addComment">
56        {if $comment_add.SHOW_AUTHOR}
57          <p><label for="author">{'Author'|translate}{if $comment_add.AUTHOR_MANDATORY} ({'mandatory'|translate}){/if} :</label></p>
58          <p><input type="text" name="author" id="author" value="{$comment_add.AUTHOR}"></p>
59        {/if}
60        {if $comment_add.SHOW_EMAIL}
61          <p><label for="email">{'Email address'|translate}{if $comment_add.EMAIL_MANDATORY} ({'mandatory'|translate}){/if} :</label></p>
62          <p><input type="text" name="email" id="email" value="{$comment_add.EMAIL}"></p>
63        {/if}
64        <p><label for="website_url">{'Website'|translate} :</label></p>
65        <p><input type="text" name="website_url" id="website_url" value="{$comment_add.WEBSITE_URL}"></p>
66        <p><label for="contentid">{'Comment'|translate} ({'mandatory'|translate}) :</label></p>
67        <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>
68        <p><input type="hidden" name="key" value="{$comment_add.KEY}">
69          <input type="submit" value="{'Submit'|translate}"></p>
70      </form>
71    </div>
72    {/if}
73    {if isset($comments)}
74    <div id="pictureCommentList">
75      {if (($COMMENT_COUNT > 2) || !empty($comment_navbar))}
76        <div id="pictureCommentNavBar">
77          {if $COMMENT_COUNT > 2}
78            <a href="{$COMMENTS_ORDER_URL}#comments" rel="nofollow" class="commentsOrder">{$COMMENTS_ORDER_TITLE}</a>
79          {/if}
80          {if !empty($comment_navbar)}
81            {include file='navigation_bar.tpl'|get_extent:'navbar' navbar=$comment_navbar}
82          {/if}
83        </div>
84      {/if}
85      {include file='comment_list.tpl'}
86    </div>
87    {/if}
88    <div style="clear:both"></div>
89  </div>
90
91</div>
92{/if}{*comments*}
Note: See TracBrowser for help on using the repository browser.