Added and changed on some places div class generic-content-wrapper. And added to redbasic. Other thems can now also theme backgrounds of a lot of pages. I'm not completely done, but till now - this is it.

This commit is contained in:
Jeroen 2014-10-09 14:54:04 +00:00
parent 6b48672343
commit e06c3e5a91
21 changed files with 50 additions and 29 deletions

View file

@ -55,6 +55,8 @@ function bookmarks_content(&$a) {
$o = profile_tabs($a,true,$channel['channel_address']);
$o .= '<div class="generic-content-wrapper">';
$o .= '<h3>' . t('My Bookmarks') . '</h3>';
$x = menu_list(local_user(),'',MENU_BOOKMARK);
@ -78,7 +80,7 @@ function bookmarks_content(&$a) {
}
}
$o .= '</div>';
return $o;

View file

@ -766,6 +766,9 @@ logger('extra_fields: ' . print_r($extra_fields,true));
: '<a href="' . $a->get_baseurl(true) . '/profperm/' . $rr['id'] . '" />' . t('Edit visibility') . '</a>')
));
}
$o .= '</div>';
}
return $o;
}

View file

@ -81,6 +81,8 @@ function webpages_content(&$a) {
require_once('include/conversation.php');
$o = profile_tabs($a,true);
$o .= '<div class="generic-content-wrapper">';
$o .= '<h2>' . t('Webpages') . '</h2>';
$x = array(
@ -95,7 +97,7 @@ function webpages_content(&$a) {
'mimetype' => $mimetype,
'layout' => $layout,
);
if($_REQUEST['title'])
$x['title'] = $_REQUEST['title'];
if($_REQUEST['body'])
@ -105,7 +107,6 @@ function webpages_content(&$a) {
$o .= status_editor($a,$x);
// Get a list of webpages. We can't display all them because endless scroll makes that unusable, so just list titles and an edit link.
//TODO - this should be replaced with pagelist_widget
@ -142,5 +143,6 @@ function webpages_content(&$a) {
));
$o .= '</div>';
}

View file

@ -1861,16 +1861,19 @@ img.mail-list-sender-photo {
max-width: $converse_width;
}
.wall-item-content-wrapper {
.wall-item-content-wrapper, .generic-content-wrapper {
background-color: $item_colour;
padding: 10px;
}
.wall-item-content-wrapper {
border-top-right-radius: $radiuspx;
border-top-left-radius: $radiuspx;
}
.generic-content-wrapper {
border-bottom-right-radius: $radiuspx;
border-bottom-left-radius: $radiuspx;
}
.comment .wall-item-body {
padding-left: $comment_padding;
}

View file

@ -1,6 +1,6 @@
<div class="generic-content-wrapper">
<h3>{{$header}}</h3>
{{if $links}}
{{foreach $links as $l}}
<a class="channels-links" href="{{$l.0}}" title="{{$l.1}}">{{$l.2}}</a>
@ -30,3 +30,5 @@
</div>
<div class="channels-end all"></div>
</div>

View file

@ -20,4 +20,6 @@
</form>
</td>
</tr>
</table>
</table>
</div>

View file

@ -1,3 +1,4 @@
<div class="generic-content-wrapper">
<h1>{{$header}}</h1>
<table id="cloud-index">
<tr>
@ -40,4 +41,4 @@
{{if $quota.limit || $quota.used}}
<p><strong>{{$total}}</strong> {{$quota.desc}}</p>
{{/if}}
{{/if}}

View file

@ -1,3 +1,5 @@
<div class="generic-content-wrapper">
<h1>{{$header}}{{if $total}} ({{$total}}){{/if}}</h1>
{{if $finding}}<h4>{{$finding}}</h4>{{/if}}
@ -20,10 +22,6 @@
<div id="page-end"></div>
</div>
<div id="contact-edit-end"></div>
</div>
<script>$(document).ready(function() { loadingPage = false;});</script>
<div id="page-spinner"></div>

View file

@ -1,3 +1,4 @@
<div class="generic-content-wrapper">
<h1>{{$dirlbl}}</h1>
{{if $search}}
@ -8,9 +9,8 @@
{{include file="direntry.tpl"}}
{{/foreach}}
<div id="page-end"></div>
<div class="directory-end"></div>
</div>
<script>$(document).ready(function() { loadingPage = false;});</script>
<div id="page-spinner"></div>

View file

@ -1,5 +1,4 @@
<div class="directory-item lframe" id="directory-item-{{$entry.id}}" >
<div class="generic-content-wrapper">
<div class="contact-photo-wrapper" id="directory-photo-wrapper-{{$entry.id}}" >
<div class="contact-photo" id="directory-photo-{{$entry.id}}" >
@ -13,4 +12,3 @@
{{/if}}
<div class="contact-details">{{$entry.details}}</div>
</div>
</div>

View file

@ -1,3 +1,5 @@
<div class="generic-content-wrapper">
<h3>{{$title}}</h3>
<p>
@ -147,4 +149,4 @@
});
});
</script>
</div>

View file

@ -1,6 +1,8 @@
{{$tabs}}
<div class="generic-content-wrapper">
<h2>{{$title}}</h2>
<div id="new-event-link"><a href="{{$new_event.0}}" >{{$new_event.1}}</a></div>
<div id="events-calendar"></div>
</div>

View file

@ -1,3 +1,5 @@
<div class="generic-content-wrapper">
<h1>{{$title}}</h1>
<a href="menu/new" title="{{$hintnew}}">{{$hintnew}}</a>
@ -12,5 +14,4 @@
</ul>
{{/if}}
</div>

View file

@ -1,7 +1,11 @@
<div class="generic-content-wrapper">
<h1>{{$notif_header}}</h1>
{{if $notifications_available}}
<a href="#" onclick="markRead('notify'); setTimeout(function() { window.location.href=window.location.href; },1500); return false;">{{$notif_link_mark_seen}}</a>
{{/if}}
<div class="notif-network-wrapper">
{{$notif_content}}
</div>
</div>

View file

@ -12,7 +12,7 @@
<div class="clear"></div>
</div>
<div id="photo-album-contents">
<div id="photo-album-contents" class="generic-content-wrapper">
{{foreach $photos as $photo}}
{{include file="photo_top.tpl"}}
{{/foreach}}

View file

@ -1,4 +1,5 @@
<div id="live-photos"></div>
<div class="generic-content-wrapper">
<h3><a href="{{$album.0}}">{{$album.1}}</a></h3>
<div id="photo-edit-link-wrap">
@ -97,5 +98,7 @@
<div class="clear"></div>
</div>
{{$paginate}}

View file

@ -5,7 +5,7 @@
<h2>{{$title}}</h2>
<div class="clear"></div>
</div>
<div id="photo-album-contents">
<div id="photo-album-contents" class="generic-content-wrapper">
{{foreach $photos as $photo}}
{{include file="photo_top.tpl"}}
{{/foreach}}

View file

@ -4,7 +4,7 @@
<div class="clear"></div>
</div>
<form action="photos/{{$nickname}}" enctype="multipart/form-data" method="post" name="photos-upload-form" id="photos-upload-form" >
<form action="photos/{{$nickname}}" enctype="multipart/form-data" method="post" name="photos-upload-form" id="photos-upload-form" class="generic-content-wrapper">
<input type="hidden" id="photos-upload-source" name="source" value="photos" />
<div id="photos-upload-new-wrapper" >
<div id="photos-upload-newalbum-div">

View file

@ -7,4 +7,3 @@
<div class="profile-listing-visible">{{$visible}}</div>
</div>
<div class="profile-listing-end"></div>

View file

@ -1,3 +1,4 @@
<div class="generic-content-wrapper">
<h1>{{$header}}</h1>
<p id="profile-listing-desc" class="btn btn-default" >
<a href="profile_photo" >{{$chg_photo}}</a>
@ -7,5 +8,3 @@
</p>
<p id="profile-listing-new-link-wrapper" class="btn btn-default" >
<a href="{{$cr_new_link}}" id="profile-listing-new-link" title="{{$cr_new}}" >{{$cr_new}}</a>
</div>

View file

@ -1,6 +1,6 @@
{{if $pages}}
<div id="pagelist-content-wrapper" class="generic-content-wrapper">
<div id="pagelist-content-wrapper">
<table class="webpage-list-table">
<tr><td>{{$actions_txt}}</td><td>{{$pagelink_txt}}</td><td>{{$title_txt}}</td><td>{{$created_txt}}</td><td>{{$edited_txt}}</td></tr>
{{foreach $pages as $key => $items}}