]> git.mxchange.org Git - friendica.git/commitdiff
photos-albms widget: add some classes
authorrabuzarus <>
Tue, 1 Dec 2015 20:07:05 +0000 (21:07 +0100)
committerrabuzarus <>
Tue, 1 Dec 2015 20:07:05 +0000 (21:07 +0100)
mod/videos.php
view/templates/photo_albums.tpl
view/theme/smoothly/style.css
view/theme/vier/style.css

index 4f5d7cd22db33acd58fc9cdce0c2175647094ed5..04c40b236fd054fea5ec0f2078f1b24354733911 100644 (file)
@@ -53,7 +53,7 @@ function videos_init(&$a) {
                        $albums_visible = ((intval($a->data['user']['hidewall']) && (! local_user()) && (! remote_user())) ? false : true);
 
                        if($albums_visible) {
-                               $o .= '<div id="side-bar-photos-albums" class="widget">';
+                               $o .= '<div id="sidebar-photos-albums" class="widget">';
                                $o .= '<h3>' . '<a href="' . $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '">' . t('Photo Albums') . '</a></h3>';
 
                                $o .= '<ul>';
index 02b43929575fc766b9b725babb71453875b09ea8..0a086751e32ee14cb0cf8a570a2a4668c6fd125c 100644 (file)
@@ -1,17 +1,24 @@
-<div id="side-bar-photos-albums" class="widget">
+<div id="sidebar-photos-albums" class="widget">
        <h3>{{$title}}</h3>
-       <ul>
-               <li><a href="{{$baseurl}}/photos/{{$nick}}" title="{{$title}}" >{{$recent}}</a></li>
+       <ul role=menu" class="sidebar-photos-albums-ul">
+               <li role="menuitem" class="sidebar-photos-albums-li">
+                       <a href="{{$baseurl}}/photos/{{$nick}}" class="sidebar-photos-albums-element" title="{{$title}}" >{{$recent}}</a>
+               </li>
+
                {{if $albums}}
                {{foreach $albums as $al}}
                {{if $al.text}}
-               <li><a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}"><span class="badge pull-right">{{$al.total}}</span>{{$al.text}}</a></li>
+               <li role="menuitem" class="sidebar-photos-albums-li">
+                       <a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}" class="sidebar-photos-albums-element">
+                               <span class="badge pull-right">{{$al.total}}</span>{{$al.text}}
+                       </a>
+               </li>
                {{/if}}
                {{/foreach}}
                {{/if}}
        </ul>
 
-        {{if $can_post}}
-        <div class="photos-upload-link" ><a href="{{$upload.1}}">{{$upload.0}}</a></div>
-        {{/if}}
+       {{if $can_post}}
+       <div class="photos-upload-link" ><a href="{{$upload.1}}">{{$upload.0}}</a></div>
+       {{/if}}
 </div>
index 45d2629dae0a09c8a0941ee029f0d60073d9f6a0..78203978e2ed2d6177f17f6d3512e3cd5148d35c 100644 (file)
@@ -2164,20 +2164,20 @@ div[id$="wrapper"] br {
                -webkit-border-radius: 5px;
 }
 
-#side-bar-photos-albums {
+#sidebar-photos-albums {
 }
 
 #photo-albums-upload-link {
        margin: 20px;
 }
 
-#side-bar-photos-albums h3:before {
+#sidebar-photos-albums h3:before {
        content: url("images/photography.png");
        padding-right: 10px;
        vertical-align: middle;
 }
 
-#side-bar-photos-albums li {
+#sidebar-photos-albums li {
        font-size: 14px;
        font-variant: none;
        text-align: left;
index 7066c4decf2198e6d3f703b35f8f450f050f5dc8..64eab52ebf023a84ea24d4168122536ecd525341 100644 (file)
@@ -419,9 +419,10 @@ code {
   opacity: 1;
 }
 
-.sidebar-group-li:hover, #sidebar-new-group:hover, #sidebar-edit-groups:hover, #forum-widget-collapse:hover,
+.sidebar-group-li:hover, #sidebar-new-group:hover, #sidebar-edit-groups:hover,#forum-widget-collapse:hover,
 #sidebar-ungrouped:hover, .side-link:hover, .nets-ul li:hover, #forumlist-sidebar li:hover, #forumlist-sidebar-right li:hover,
-.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 {
+.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,
+#sidebar-photos-albums li:hover, .photos-upload-link:hover {
   /* background-color: #ddd; */
 /*  background-color: #e5e5e5; */
   background-color: #F5F5F5;
@@ -448,6 +449,12 @@ code {
   display: block;
 }
 
+.photos-upload-link {
+  padding-top: 3px;
+  padding-bottom: 3px;
+  display: block;
+}
+
 #forumlist-sidebar {
   padding-top: 3px;
   padding-bottom: 3px;
@@ -467,7 +474,7 @@ code {
   display: inline-block;
 }
 
-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 {
+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 {
   display: block;
   color: #737373;
 }
@@ -494,7 +501,7 @@ a.sidebar-group-element {
   color: black;
 }
 
-#forumlist-sidebar a, #forumlist-sidebar-right a, .tool a, .admin.link a {
+#forumlist-sidebar a, #forumlist-sidebar-right a, .tool a, .admin.link a, #sidebar-photos-albums a {
   color: #737373;
 }