Browse Source

attend functionality for duepuntozero

tags/3.4.3
fabrixxm 4 years ago
parent
commit
fd8e8d005a
3 changed files with 32 additions and 11 deletions
  1. BIN
      images/icons.png
  2. 19
    11
      view/templates/wall_thread.tpl
  3. 13
    0
      view/theme/duepuntozero/style.css

BIN
images/icons.png View File


+ 19
- 11
view/templates/wall_thread.tpl View File

@@ -17,7 +17,7 @@
17 17
 			</div>
18 18
 			<div class="wall-item-arrowphoto-wrapper" ><img src="images/larrow.gif" alt="{{$item.wall}}" /></div>
19 19
 			{{/if}}
20
-			<div class="wall-item-photo-wrapper{{if $item.owner_url}} wwfrom{{/if}}" id="wall-item-photo-wrapper-{{$item.id}}" 
20
+			<div class="wall-item-photo-wrapper{{if $item.owner_url}} wwfrom{{/if}}" id="wall-item-photo-wrapper-{{$item.id}}"
21 21
 				onmouseover="if (typeof t{{$item.id}} != 'undefined') clearTimeout(t{{$item.id}}); openMenu('wall-item-photo-menu-button-{{$item.id}}')"
22 22
                 onmouseout="t{{$item.id}}=setTimeout('closeMenu(\'wall-item-photo-menu-button-{{$item.id}}\'); closeMenu(\'wall-item-photo-menu-{{$item.id}}\');',200)">
23 23
 				<a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle|escape:'html'}}" class="wall-item-photo-link" id="wall-item-photo-link-{{$item.id}}">
@@ -33,14 +33,14 @@
33 33
 			<div class="wall-item-photo-end"></div>
34 34
 			<div class="wall-item-wrapper" id="wall-item-wrapper-{{$item.id}}" >
35 35
 				{{if $item.lock}}<div class="wall-item-lock"><img src="images/lock_icon.gif" class="lockview" alt="{{$item.lock}}" onclick="lockview(event,{{$item.id}});" /></div>
36
-				{{else}}<div class="wall-item-lock"></div>{{/if}}	
36
+				{{else}}<div class="wall-item-lock"></div>{{/if}}
37 37
 				<div class="wall-item-location" id="wall-item-location-{{$item.id}}">{{$item.location}}</div>
38 38
 			</div>
39 39
 		</div>
40 40
 		<div class="wall-item-author">
41 41
 				<a href="{{$item.profile_url}}" target="redir" title="{{$item.linktitle|escape:'html'}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}" id="wall-item-name-{{$item.id}}" >{{$item.name}}</span></a>{{if $item.owner_url}} {{$item.to}} <a href="{{$item.owner_url}}" target="redir" title="{{$item.olinktitle|escape:'html'}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a> {{$item.vwall}}{{/if}}<br />
42
-				<div class="wall-item-ago"  id="wall-item-ago-{{$item.id}}" title="{{$item.localtime|escape:'html'}}">{{$item.ago}}</div>				
43
-		</div>			
42
+				<div class="wall-item-ago"  id="wall-item-ago-{{$item.id}}" title="{{$item.localtime|escape:'html'}}">{{$item.ago}}</div>
43
+		</div>
44 44
 		<div class="wall-item-content" id="wall-item-content-{{$item.id}}" >
45 45
 			<div class="wall-item-title" id="wall-item-title-{{$item.id}}">{{$item.title}}</div>
46 46
 			<div class="wall-item-title-end"></div>
@@ -76,7 +76,7 @@
76 76
 			{{if $item.edpost}}
77 77
 				<a class="editpost icon pencil" href="{{$item.edpost.0}}" title="{{$item.edpost.1|escape:'html'}}"></a>
78 78
 			{{/if}}
79
-			 
79
+
80 80
 			{{if $item.star}}
81 81
 			<a href="#" id="starred-{{$item.id}}" onclick="dostar({{$item.id}}); return false;" class="star-item icon {{$item.isstarred}}" title="{{$item.star.toggle|escape:'html'}}"></a>
82 82
 			{{/if}}
@@ -85,19 +85,27 @@
85 85
 			{{/if}}
86 86
 			{{if $item.filer}}
87 87
 			<a href="#" id="filer-{{$item.id}}" onclick="itemFiler({{$item.id}}); return false;" class="filer-item filer-icon" title="{{$item.filer|escape:'html'}}"></a>
88
-			{{/if}}			
89
-			
88
+			{{/if}}
89
+			{{if $item.isevent }}
90
+			<div class="wall-item-attend-wrapper">
91
+				<a href="#" id="attendyes-{{$item.id}}" class="icon attendyes" onclick="dolike({{$item.id}},'attendyes'); return false;" title="{{$item.attend.0|escape:'html'}}"></a>
92
+				<a href="#" id="attendno-{{$item.id}}" class="icon attendno"  onclick="dolike({{$item.id}},'attendno'); return false;" title="{{$item.attend.1|escape:'html'}}"></a>
93
+				<a href="#" id="attendmaybe-{{$item.id}}"  class="icon attendmaybe" onclick="dolike({{$item.id}},'attendmaybe'); return false;" title="{{$item.attend.2|escape:'html'}}"></a>
94
+			</div>
95
+			{{/if}}
90 96
 			<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-{{$item.id}}" >
91 97
 				{{if $item.drop.dropping}}<a href="item/drop/{{$item.id}}" onclick="return confirmDelete();" class="icon drophide" title="{{$item.drop.delete|escape:'html'}}" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a>{{/if}}
92 98
 			</div>
93 99
 				{{if $item.drop.pagedrop}}<input type="checkbox" onclick="checkboxhighlight(this);" title="{{$item.drop.select|escape:'html'}}" class="item-select" name="itemselected[]" value="{{$item.id}}" />{{/if}}
94 100
 			<div class="wall-item-delete-end"></div>
95 101
 		</div>
96
-	</div>	
102
+	</div>
97 103
 	<div class="wall-item-wrapper-end"></div>
98
-	<div class="wall-item-like {{$item.indent}}" id="wall-item-like-{{$item.id}}">{{$item.like}}</div>
99
-	<div class="wall-item-dislike {{$item.indent}}" id="wall-item-dislike-{{$item.id}}">{{$item.dislike}}</div>
100
-
104
+	{{if $item.responses}}
105
+		{{foreach $item.responses as $verb=>$response}}
106
+			<div class="wall-item-{{$verb}} {{$item.indent}}" id="wall-item-{{$verb}}-{{$item.id}}">{{$response.output}}</div>
107
+		{{/foreach}}
108
+	{{/if}}
101 109
 			{{if $item.threaded}}
102 110
 			{{if $item.comment}}
103 111
 			<div class="wall-item-comment-wrapper {{$item.indent}}" >

+ 13
- 0
view/theme/duepuntozero/style.css View File

@@ -1128,6 +1128,16 @@ input#dfrn-url {
1128 1128
 	border: none;
1129 1129
 }
1130 1130
 
1131
+.wall-item-attend-wrapper {
1132
+    float:left;
1133
+    padding-left: 10px;
1134
+}
1135
+
1136
+.wall-item-attend-wrapper > a {
1137
+    display: inline-block;
1138
+    margin-right: 10px;
1139
+}
1140
+
1131 1141
 
1132 1142
 .wall-item-wrapper-end {
1133 1143
 	clear: both;
@@ -3128,6 +3138,9 @@ aside input[type='text'] {
3128 3138
 .tagged { background-position: -48px -48px; }
3129 3139
 .yellow { background-position: -64px -48px; }
3130 3140
 
3141
+.attendyes { background-position: -80px -48px; }
3142
+.attendno { background-position: -96px -48px; }
3143
+.attendmaybe { background-position: -112px -48px; }
3131 3144
 
3132 3145
 .filer-icon {
3133 3146
 	display: block; width: 16px; height: 16px;

Loading…
Cancel
Save