This is a fix to not interfere the ongoing adding of .generic-content-wrapper with the ongoing styling of redbasic theme.

adding of .generic-content-wrapper is needed and useful for derivative themes but it should not contain any styling information for redbasic theme. therefor i added .generic-content-wrapper-styled as a quickfix for spots where redbasic is not finished yet.
Sidenote: please avoid opening a div in one *.tpl and close it in another or (even worse) open a div in a *.tpl and close it in an already templatified mod/*.php. This will really make the code and templates very, very confusing.
This commit is contained in:
marijus 2014-10-10 15:52:56 +02:00
parent 053e606108
commit 4e9bd8b8f0
18 changed files with 25 additions and 19 deletions

View File

@ -55,7 +55,7 @@ function bookmarks_content(&$a) {
$o = profile_tabs($a,true,$channel['channel_address']);
$o .= '<div class="generic-content-wrapper">';
$o .= '<div class="generic-content-wrapper-styled">';
$o .= '<h3>' . t('My Bookmarks') . '</h3>';

View File

@ -767,8 +767,6 @@ logger('extra_fields: ' . print_r($extra_fields,true));
));
}
$o .= '</div>';
}
return $o;
}

View File

@ -81,7 +81,7 @@ function webpages_content(&$a) {
require_once('include/conversation.php');
$o = profile_tabs($a,true);
$o .= '<div class="generic-content-wrapper">';
$o .= '<div class="generic-content-wrapper-styled">';
$o .= '<h2>' . t('Webpages') . '</h2>';

View File

@ -1868,7 +1868,7 @@ img.mail-list-sender-photo {
border-top-left-radius: $radiuspx;
}
.generic-content-wrapper {
.generic-content-wrapper-styled {
background-color: $genericcontent_bgcolour;
padding: 10px;
border-radius: $radiuspx;

View File

@ -24,6 +24,7 @@ if(! $a->install) {
$background_image = get_pconfig($uid, "redbasic", "background_image");
$toolicon_colour = get_pconfig($uid,'redbasic','toolicon_colour');
$toolicon_activecolour = get_pconfig($uid,'redbasic','toolicon_activecolour');
$genericcontent_bgcolour = get_pconfig($uid, "redbasic", "genericcontent_bgcolour");
$item_colour = get_pconfig($uid, "redbasic", "item_colour");
$comment_item_colour = get_pconfig($uid, "redbasic", "comment_item_colour");
$comment_border_colour = get_pconfig($uid, "redbasic", "comment_border_colour");
@ -121,12 +122,12 @@ if(! $a->install) {
$bgcolour = "#fdfdfd";
if (! $background_image)
$background_image ='';
if (! $genericcontent_bgcolour)
$genericcontent_bgcolour ='rgba(254,254,254,0.8)';
if (! $item_colour)
$item_colour = "rgba(238,238,238,0.8)";
if (! $comment_item_colour)
$comment_item_colour = "rgba(254,254,254,0.4)";
if (! $genericcontent_bgcolour)
$genericcontent_bgcolour = $comment_item_colour;
if (! $comment_border_colour)
$comment_border_colour = "rgba(238,238,238,0.8)";
if (! $toolicon_colour)

View File

@ -1,4 +1,4 @@
<div class="generic-content-wrapper">
<div class="generic-content-wrapper-styled">
<h3>{{$header}}</h3>
{{if $links}}

View File

@ -1,3 +1,5 @@
<div class="generic-content-wrapper-styled">
<table>
<tr>
<td><strong>{{$folder_header}}</strong>&nbsp;&nbsp;&nbsp;</td>

View File

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

View File

@ -1,4 +1,4 @@
<div class="generic-content-wrapper">
<div class="generic-content-wrapper-styled">
<h1>{{$header}}{{if $total}} ({{$total}}){{/if}}</h1>

View File

@ -1,4 +1,4 @@
<div class="generic-content-wrapper">
<div class="generic-content-wrapper-styled">
<h1>{{$dirlbl}}</h1>
{{if $search}}

View File

@ -1,4 +1,4 @@
<div class="generic-content-wrapper">
<div class="generic-content-wrapper-styled">
<h3>{{$title}}</h3>

View File

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

View File

@ -1,4 +1,4 @@
<div class="generic-content-wrapper">
<div class="generic-content-wrapper-styled">
<h1>{{$title}}</h1>

View File

@ -1,4 +1,4 @@
<div class="generic-content-wrapper">
<div class="generic-content-wrapper-styled">
<h1>{{$notif_header}}</h1>

View File

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

View File

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

View File

@ -1,3 +1,4 @@
<div class="generic-content-wrapper-styled">
<div class="profile-listing" >
<div class="profile-listing-photo-wrapper" >
<a href="profiles/{{$id}}" class="profile-listing-edit-link"><img class="profile-listing-photo" id="profile-listing-photo-{{$id}}" src="{{$photo}}" alt="{{$alt}}" /></a>
@ -7,3 +8,4 @@
<div class="profile-listing-visible">{{$visible}}</div>
</div>
<div class="profile-listing-end"></div>
</div>

View File

@ -1,4 +1,4 @@
<div class="generic-content-wrapper">
<div class="generic-content-wrapper-styled">
<h1>{{$header}}</h1>
<p id="profile-listing-desc" class="btn btn-default" >
<a href="profile_photo" >{{$chg_photo}}</a>
@ -8,3 +8,4 @@
</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>