aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/photo_view.tpl
blob: e7259cec2fd3cc519606501d04ecd05f306b71f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<div id="live-photos"></div>
<div class="generic-content-wrapper">

	<div class="section-title-wrapper">

		<div class="btn-group btn-group-xs pull-right">
			{{if $prevlink}}
			<a href="{{$prevlink.0}}" class="btn btn-default" title="{{$prevlink.1}}"><i class="icon-backward"></i></a>
			{{/if}}
			{{if $nextlink}}
			<a href="{{$nextlink.0}}" class="btn btn-default" title="{{$nextlink.1}}"><i class="icon-forward"></i></a>
			{{/if}}
		</div>
		<div class="btn-group btn-group-xs pull-right dropdown">
			{{if $edit}}
			<i class="icon-pencil btn btn-default" title="{{$edit.edit}}" onclick="openClose('photo-edit-edit');"></i>
			{{/if}}
			{{if $lock}}
			<i class="icon-lock btn btn-default dropdown-toggle" data-toggle="dropdown" title="{{$lock}}" onclick="lockview(event,{{$id}});" ></i><ul id="panel-{{$id}}" class="lockview-panel dropdown-menu"></ul>
			{{/if}}
			&nbsp;
		</div>

		<h2>{{if $desc}}{{$desc}}{{elseif $filename}}{{$filename}}{{else}}{{$unknown}}{{/if}}</h2>
		<div class="clear"></div>
	</div>
<div id="photo-edit-link-wrap">

<div class="clear"></div>

<div id="photo-edit-edit" style="display: none;">
<form action="photos/{{$edit.nickname}}/{{$edit.resource_id}}" method="post" id="photo_edit_form">

	<input type="hidden" name="item_id" value="{{$edit.item_id}}">

	<label id="photo-edit-albumname-label" for="photo-edit-albumname">{{$edit.newalbum}}</label>
	<input id="photo-edit-albumname" type="text" size="32" name="albname" value="{{$edit.album}}" list="dl-albums">
{{if $edit.albums}}
	<datalist id="dl-albums">
	{{foreach $edit.albums as $al}}
		{{if $al.text}}
		<option value="{{$al.text}}">
		{{/if}}
	{{/foreach}}
	</datalist>
{{/if}}
	<div id="photo-edit-albumname-end"></div>

	<label id="photo-edit-caption-label" for="photo-edit-caption">{{$edit.capt_label}}</label>
	<input id="photo-edit-caption" type="text" size="84" name="desc" value="{{$edit.caption}}">

	<div id="photo-edit-caption-end"></div>

	<label id="photo-edit-tags-label" for="photo-edit-newtag" >{{$edit.tag_label}}</label>
	<input name="newtag" id="photo-edit-newtag" size="84" title="{{$edit.help_tags}}" type="text">

	<div id="photo-edit-tags-end"></div>
	<div id="photo-edit-rotate-wrapper">
		<div id="photo-edit-rotate-label">
			{{$edit.rotatecw}}<br>
			{{$edit.rotateccw}}
		</div>
		<input type="radio" name="rotate" value="1"><br>
		<input type="radio" name="rotate" value="2">
	</div>
	<div id="photo-edit-rotate-end"></div>

	<div id="settings-default-perms" class="settings-default-perms">
		<span id="jot-perms-icon" class="{{$edit.lockstate}}"></span>
		<button class="btn btn-default btn-xs" data-toggle="modal" data-target="#aclModal" onclick="return false;">{{$edit.permissions}}</button>
		{{$edit.aclselect}}
		<div id="settings-default-perms-menu-end"></div>
	</div>                                                                                  
	<br/>
	<div id="settings-default-perms-end"></div>

	<input id="photo-edit-submit-button" type="submit" name="submit" value="{{$edit.submit}}">
	<input id="photo-edit-delete-button" type="submit" name="delete" value="{{$edit.delete}}" onclick="return confirmDelete();">

	<div id="photo-edit-end"></div>
</form>
</div>

{{if $tools}}
<div>
	<a id="photo-toprofile-link" href="{{$tools.profile.0}}">{{$tools.profile.1}}</a>
</div>
{{/if}}

<div id="photo-view-wrapper">
<div id="photo-photo"><a href="{{$photo.href}}" title="{{$photo.title}}" onclick="$.colorbox({href: '{{$photo.href}}'}); return false;"><img style="width: 100%;" src="{{$photo.src}}"></a></div>
<div id="photo-photo-end"></div>

{{if $tags}}
<div id="in-this-photo-text">{{$tag_hdr}}</div>
{{foreach $tags as $t}}
<div id="in-this-photo">{{$t.0}}</div>
{{if $edit}}<div id="tag-remove"><a href="{{$t.1}}">{{$t.2}}</a></div>{{/if}}
{{/foreach}}
{{/if}}



{{if $likebuttons}}
<div id="photo-like-div">
	{{$likebuttons}}
	{{$like}}
	{{$dislike}}	
</div>
{{/if}}

{{$comments}}

<div class="wall-item-comment-wrapper{{if $comments}} wall-item-comment-wrapper-wc{{/if}}" >
	{{$commentbox}}
</div>

</div>

<div class="clear"></div>

</div>

{{$paginate}}