Browse Source

css work

pull/1622/head
rabuzarus 6 years ago
parent
commit
5cbb5b140c
  1. 17
      mod/photos.php
  2. 2
      view/templates/photo_albums.tpl
  3. 6
      view/theme/duepuntozero/style.css
  4. 6
      view/theme/frost/style.css
  5. 3
      view/theme/quattro/dark/style.css
  6. 3
      view/theme/quattro/green/style.css
  7. 3
      view/theme/quattro/lilac/style.css
  8. 2
      view/theme/quattro/quattro.less
  9. 2
      view/theme/smoothly/style.css

17
mod/photos.php

@ -58,11 +58,11 @@ function photos_init(&$a) {
$ret['albums'] = array();
foreach($albums as $k => $album) {
$entry = array(
'text' => $album['album'],
'total' => $album['total'],
'url' => z_root() . '/photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album['album']),
'text' => $album['album'],
'total' => $album['total'],
'url' => z_root() . '/photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album['album']),
'urlencode' => urlencode($album['album']),
'bin2hex' => bin2hex($album['album'])
'bin2hex' => bin2hex($album['album'])
);
$ret['albums'][] = $entry;
}
@ -75,10 +75,11 @@ function photos_init(&$a) {
if($albums['success']) {
$photo_albums_widget = replace_macros(get_markup_template('photo_albums.tpl'),array(
'$nick' => $a->data['user']['nickname'],
'$title' => t('Photo Albums'),
'$albums' => $albums['albums'],
'$baseurl' => z_root(),
'$nick' => $a->data['user']['nickname'],
'$title' => t('Photo Albums'),
'recent' => t('Recent Photos'),
'$albums' => $albums['albums'],
'$baseurl' => z_root(),
'$upload' => array( t('Upload New Photos'), $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/upload/' . bin2hex($album)),
'$can_post' => $can_post
));

2
view/templates/photo_albums.tpl

@ -1,7 +1,7 @@
<div id="side-bar-photos-albums" class="widget">
<h3>{{$title}}</h3>
<ul>
<li><a href="{{$baseurl}}/photos/{{$nick}}" title="{{$title}}" >Recent Photos</a></li>
<li><a href="{{$baseurl}}/photos/{{$nick}}" title="{{$title}}" >{{$recent}}</a></li>
{{if $albums}}
{{foreach $albums as $al}}
{{if $al.text}}

6
view/theme/duepuntozero/style.css

@ -83,6 +83,8 @@ blockquote {
margin-right: 5px;
}
.pull-right { float: right }
/* nav */
@ -3367,7 +3369,7 @@ ul.menu-popup {
#recip {
}
.autocomplete-w1 { background: #ffffff; no-repeat bottom right; position:absolute; top:0px; left:0px; margin:6px 0 0 6px; /* IE6 fix: */ _background:none; _margin:1px 0 0 0; }
.autocomplete-w1 { background: #ffffff no-repeat bottom right; position:absolute; top:0px; left:0px; margin:6px 0 0 6px; /* IE6 fix: */ _background:none; _margin:1px 0 0 0; }
.autocomplete { color:#000; border:1px solid #999; background:#FFF; cursor:default; text-align:left; max-height:350px; overflow:auto; margin:-6px 6px 6px -6px; /* IE6 specific: */ _height:350px; _margin:0; _overflow-x:hidden; }
.autocomplete .selected { background:#F0F0F0; }
.autocomplete div { padding:2px 5px; white-space:nowrap; overflow:hidden; }
@ -3443,6 +3445,6 @@ ul.menu-popup {
.nav-ajax-left {margin-left: -1em; margin-top: 0px; }
nav #site-location,
nav #banner { position: relative; clear:both; }
ul.menu-popup { left: 0px; top 20px; }
ul.menu-popup { left: 0px; top: 20px; }
}

6
view/theme/frost/style.css

@ -21,7 +21,7 @@ body {
div.container {
display: block;
width: 785 px;
width: 785px;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
@ -111,6 +111,8 @@ blockquote {
margin-right: 5px;
}
.pull-right { float: right }
/* nav */
@ -4094,7 +4096,7 @@ ul.notifications-menu-popup {
#recip {
}
.autocomplete-w1 { background: #ffffff; no-repeat bottom right; position:absolute; top:0px; left:0px; margin:6px 0 0 6px; /* IE6 fix: */ _background:none; _margin:1px 0 0 0; }
.autocomplete-w1 { background: #ffffff no-repeat bottom right; position:absolute; top:0px; left:0px; margin:6px 0 0 6px; /* IE6 fix: */ _background:none; _margin:1px 0 0 0; }
.autocomplete { color:#000; border:1px solid #999; background:#FFF; cursor:default; text-align:left; max-height:350px; overflow:auto; margin:-6px 6px 6px -6px; /* IE6 specific: */ _height:350px; _margin:0; _overflow-x:hidden; }
.autocomplete .selected { background:#F0F0F0; }
.autocomplete div { padding:2px 5px; white-space:nowrap; overflow:hidden; }

3
view/theme/quattro/dark/style.css

@ -414,7 +414,8 @@ a:hover {
.left {
float: left;
}
.right {
.right,
.pull-right {
float: right;
}
.hidden {

3
view/theme/quattro/green/style.css

@ -414,7 +414,8 @@ a:hover {
.left {
float: left;
}
.right {
.right,
.pull-right {
float: right;
}
.hidden {

3
view/theme/quattro/lilac/style.css

@ -414,7 +414,8 @@ a:hover {
.left {
float: left;
}
.right {
.right,
.pull-right {
float: right;
}
.hidden {

2
view/theme/quattro/quattro.less

@ -44,7 +44,7 @@ a:visited { color: @LinkVisited; text-decoration: none; }
a:hover {color: @LinkHover; text-decoration: underline; }
.left { float: left; }
.right { float: right; }
.right, .pull-right { float: right; }
.hidden { display: none; }
.clear { clear: both; }

2
view/theme/smoothly/style.css

@ -104,6 +104,8 @@ input[type=submit]:active {
top: 1px;
}
.pull-right { float: right }
#search-text,
#search-submit,
#search-save {

Loading…
Cancel
Save