Browse Source

photos-albms widget: add some classes

tags/3.4.3
rabuzarus 3 years ago
parent
commit
1d6d9d3d24
4 changed files with 29 additions and 15 deletions
  1. 1
    1
      mod/videos.php
  2. 14
    7
      view/templates/photo_albums.tpl
  3. 3
    3
      view/theme/smoothly/style.css
  4. 11
    4
      view/theme/vier/style.css

+ 1
- 1
mod/videos.php View File

@@ -53,7 +53,7 @@ function videos_init(&$a) {
53 53
 			$albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true);
54 54
 
55 55
 			if($albums_visible) {
56
-				$o .= '<div id="side-bar-photos-albums" class="widget">';
56
+				$o .= '<div id="sidebar-photos-albums" class="widget">';
57 57
 				$o .= '<h3>' . '<a href="' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '">' . t('Photo Albums') . '</a></h3>';
58 58
 
59 59
 				$o .= '<ul>';

+ 14
- 7
view/templates/photo_albums.tpl View File

@@ -1,17 +1,24 @@
1
-<div id="side-bar-photos-albums" class="widget">
1
+<div id="sidebar-photos-albums" class="widget">
2 2
 	<h3>{{$title}}</h3>
3
-	<ul>
4
-		<li><a href="{{$baseurl}}/photos/{{$nick}}" title="{{$title}}" >{{$recent}}</a></li>
3
+	<ul role=menu" class="sidebar-photos-albums-ul">
4
+		<li role="menuitem" class="sidebar-photos-albums-li">
5
+			<a href="{{$baseurl}}/photos/{{$nick}}" class="sidebar-photos-albums-element" title="{{$title}}" >{{$recent}}</a>
6
+		</li>
7
+
5 8
 		{{if $albums}}
6 9
 		{{foreach $albums as $al}}
7 10
 		{{if $al.text}}
8
-		<li><a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}"><span class="badge pull-right">{{$al.total}}</span>{{$al.text}}</a></li>
11
+		<li role="menuitem" class="sidebar-photos-albums-li">
12
+			<a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}" class="sidebar-photos-albums-element">
13
+				<span class="badge pull-right">{{$al.total}}</span>{{$al.text}}
14
+			</a>
15
+		</li>
9 16
 		{{/if}}
10 17
 		{{/foreach}}
11 18
 		{{/if}}
12 19
 	</ul>
13 20
 
14
-        {{if $can_post}}
15
-        <div class="photos-upload-link" ><a href="{{$upload.1}}">{{$upload.0}}</a></div>
16
-        {{/if}}
21
+	{{if $can_post}}
22
+	<div class="photos-upload-link" ><a href="{{$upload.1}}">{{$upload.0}}</a></div>
23
+	{{/if}}
17 24
 </div>

+ 3
- 3
view/theme/smoothly/style.css View File

@@ -2164,20 +2164,20 @@ div[id$="wrapper"] br {
2164 2164
 		-webkit-border-radius: 5px;
2165 2165
 }
2166 2166
 
2167
-#side-bar-photos-albums {
2167
+#sidebar-photos-albums {
2168 2168
 }
2169 2169
 
2170 2170
 #photo-albums-upload-link {
2171 2171
 	margin: 20px;
2172 2172
 }
2173 2173
 
2174
-#side-bar-photos-albums h3:before {
2174
+#sidebar-photos-albums h3:before {
2175 2175
 	content: url("images/photography.png");
2176 2176
 	padding-right: 10px;
2177 2177
 	vertical-align: middle;
2178 2178
 }
2179 2179
 
2180
-#side-bar-photos-albums li {
2180
+#sidebar-photos-albums li {
2181 2181
 	font-size: 14px;
2182 2182
 	font-variant: none;
2183 2183
 	text-align: left;

+ 11
- 4
view/theme/vier/style.css View File

@@ -419,9 +419,10 @@ code {
419 419
   opacity: 1;
420 420
 }
421 421
 
422
-.sidebar-group-li:hover, #sidebar-new-group:hover, #sidebar-edit-groups:hover, #forum-widget-collapse:hover,
422
+.sidebar-group-li:hover, #sidebar-new-group:hover, #sidebar-edit-groups:hover,#forum-widget-collapse:hover,
423 423
 #sidebar-ungrouped:hover, .side-link:hover, .nets-ul li:hover, #forumlist-sidebar li:hover, #forumlist-sidebar-right li:hover,
424
-.nets-all:hover, .saved-search-li:hover, li.tool:hover, .admin.link:hover, aside h4 a:hover, right_aside h4 a:hover, #message-new:hover {
424
+.nets-all:hover, .saved-search-li:hover, li.tool:hover, .admin.link:hover, aside h4 a:hover, right_aside h4 a:hover, #message-new:hover,
425
+#sidebar-photos-albums li:hover, .photos-upload-link:hover {
425 426
   /* background-color: #ddd; */
426 427
 /*  background-color: #e5e5e5; */
427 428
   background-color: #F5F5F5;
@@ -448,6 +449,12 @@ code {
448 449
   display: block;
449 450
 }
450 451
 
452
+.photos-upload-link {
453
+  padding-top: 3px;
454
+  padding-bottom: 3px;
455
+  display: block;
456
+}
457
+
451 458
 #forumlist-sidebar {
452 459
   padding-top: 3px;
453 460
   padding-bottom: 3px;
@@ -467,7 +474,7 @@ code {
467 474
   display: inline-block;
468 475
 }
469 476
 
470
-a.nets-link, .side-link a, #sidebar-new-group a, #sidebar-edit-groups a, a.savedsearchterm, a.fileas-link, aside h4 a, right_aside h4 a {
477
+a.nets-link, .side-link a, #sidebar-new-group a, #sidebar-edit-groups a, a.savedsearchterm,a.fileas-link, aside h4 a, right_aside h4 a {
471 478
   display: block;
472 479
   color: #737373;
473 480
 }
@@ -494,7 +501,7 @@ a.sidebar-group-element {
494 501
   color: black;
495 502
 }
496 503
 
497
-#forumlist-sidebar a, #forumlist-sidebar-right a, .tool a, .admin.link a {
504
+#forumlist-sidebar a, #forumlist-sidebar-right a, .tool a, .admin.link a, #sidebar-photos-albums a {
498 505
   color: #737373;
499 506
 }
500 507
 

Loading…
Cancel
Save