Merge remote branch 'upstream/master'

This commit is contained in:
habeascodice 2014-10-09 20:47:29 -07:00
commit 328ed8bb1b
36 changed files with 151 additions and 182 deletions

3
.gitignore vendored
View File

@ -14,6 +14,9 @@ compiled/
custom/ custom/
/store/ /store/
# site apps
apps/
# patch attempts # patch attempts
*.orig *.orig
*.rej *.rej

View File

@ -11,7 +11,10 @@ require_once('include/identity.php');
function get_system_apps() { function get_system_apps() {
$ret = array(); $ret = array();
$files = glob('app/*.apd'); if(is_dir('apps'))
$files = glob('apps/*.apd');
else
$files = glob('app/*.apd');
if($files) { if($files) {
foreach($files as $f) { foreach($files as $f) {
$x = parse_app_description($f); $x = parse_app_description($f);

View File

@ -263,8 +263,15 @@ function bb2dmention_callback($match) {
function bb2diaspora_itemwallwall(&$item) { function bb2diaspora_itemwallwall(&$item) {
$author_exists = true;
if(! array_key_exists('author',$item)) { if(! array_key_exists('author',$item)) {
$author_exists = false;
logger('bb2diaspora_itemwallwall: no author'); logger('bb2diaspora_itemwallwall: no author');
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
dbesc($item['author_xchan'])
);
if($r)
$item['author'] = $r[0];
} }
if(($item['mid'] == $item['parent_mid']) && ($item['author_xchan'] != $item['owner_xchan']) && (is_array($item['author']))) { if(($item['mid'] == $item['parent_mid']) && ($item['author_xchan'] != $item['owner_xchan']) && (is_array($item['author']))) {
@ -279,6 +286,11 @@ function bb2diaspora_itemwallwall(&$item) {
. '[url=' . $item['author']['xchan_url'] . ']' . $item['author']['xchan_name'] . '[/url]' . "\n\n" . '[url=' . $item['author']['xchan_url'] . ']' . $item['author']['xchan_name'] . '[/url]' . "\n\n"
. $item['body']; . $item['body'];
} }
// $item['author'] might cause a surprise further down the line if it wasn't expected to be here.
if(! $author_exists)
$unset($item['author']);
} }

View File

@ -2522,12 +2522,6 @@ function store_diaspora_comment_sig($datarray, $channel, $parent_item, $post_id)
// since Diaspora doesn't handle edits we can only do this for the original text and not update it. // since Diaspora doesn't handle edits we can only do this for the original text and not update it.
$enabled = intval(get_config('system','diaspora_enabled'));
if(! $enabled) {
logger('mod_item: diaspora support disabled, not storing comment signature', LOGGER_DEBUG);
return;
}
require_once('include/bb2diaspora.php'); require_once('include/bb2diaspora.php');
$signed_body = bb2diaspora_itembody($datarray); $signed_body = bb2diaspora_itembody($datarray);
@ -2552,12 +2546,6 @@ function store_diaspora_comment_sig($datarray, $channel, $parent_item, $post_id)
intval($post_id) intval($post_id)
); );
$r = q("insert into sign (`iid`,`signed_text`,`signature`,`signer`) values (%d,'%s','%s','%s') ",
intval($post_id),
dbesc($signed_text),
dbesc(base64_encode($authorsig)),
dbesc($diaspora_handle)
);
if(! $r) if(! $r)
logger('store_diaspora_comment_sig: DB write failed'); logger('store_diaspora_comment_sig: DB write failed');

View File

@ -130,7 +130,7 @@ EOT;
if($observer) { if($observer) {
$userinfo = array( $userinfo = array(
'icon' => $observer['xchan_photo_m'], 'icon' => $observer['xchan_photo_s'],
'name' => $observer['xchan_addr'], 'name' => $observer['xchan_addr'],
); );
} }

View File

@ -1402,6 +1402,7 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false) {
$perm = (($arr['mid'] == $arr['parent_mid']) ? 'send_stream' : 'post_comments'); $perm = (($arr['mid'] == $arr['parent_mid']) ? 'send_stream' : 'post_comments');
// This is our own post, possibly coming from a channel clone // This is our own post, possibly coming from a channel clone
if($arr['owner_xchan'] == $d['hash']) { if($arr['owner_xchan'] == $d['hash']) {
@ -1420,6 +1421,30 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false) {
continue; continue;
} }
if(($arr['mid'] != $arr['parent_mid']) && (! $relay)) {
// check source route.
// We are only going to accept comments from this sender if the comment has the same route as the top-level-post,
// this is so that permissions mismatches between senders apply to the entire conversation
// As a side effect we will also do a preliminary check that we have the top-level-post, otherwise
// processing it is pointless.
$r = q("select route from item where mid = '%s' and uid = %d limit 1",
dbesc($arr['parent_mid']),
intval($channel['channel_id'])
);
if(! $r) {
$result[] = array($d['hash'],'comment parent not found',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']);
continue;
}
$current_route = (($arr['route']) ? $arr['route'] . ',' : '') . $sender['hash'];
if($r[0]['route'] != $current_route) {
$result[] = array($d['hash'],'comment route mismatch',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']);
continue;
}
}
if($arr['item_restrict'] & ITEM_DELETED) { if($arr['item_restrict'] & ITEM_DELETED) {
// remove_community_tag is a no-op if this isn't a community tag activity // remove_community_tag is a no-op if this isn't a community tag activity
@ -1446,8 +1471,11 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false) {
$arr['id'] = $r[0]['id']; $arr['id'] = $r[0]['id'];
$arr['uid'] = $channel['channel_id']; $arr['uid'] = $channel['channel_id'];
update_imported_item($sender,$arr,$channel['channel_id']); update_imported_item($sender,$arr,$channel['channel_id']);
$result[] = array($d['hash'],'updated',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']);
}
else {
$result[] = array($d['hash'],'update ignored',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']);
} }
$result[] = array($d['hash'],'updated',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']);
$item_id = $r[0]['id']; $item_id = $r[0]['id'];
} }
else { else {
@ -1459,7 +1487,9 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false) {
$item_id = $item_result['item_id']; $item_id = $item_result['item_id'];
$parr = array('item_id' => $item_id,'item' => $arr,'sender' => $sender,'channel' => $channel); $parr = array('item_id' => $item_id,'item' => $arr,'sender' => $sender,'channel' => $channel);
call_hooks('activity_received',$parr); call_hooks('activity_received',$parr);
add_source_route($item_id,$sender['hash']); // don't add a source route if it's a relay or later recipients will get a route mismatch
if(! $relay)
add_source_route($item_id,$sender['hash']);
} }
$result[] = array($d['hash'],(($item_id) ? 'posted' : 'storage failed:' . $item_result['message']),$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']); $result[] = array($d['hash'],(($item_id) ? 'posted' : 'storage failed:' . $item_result['message']),$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']);
} }

View File

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

View File

@ -81,6 +81,8 @@ function webpages_content(&$a) {
require_once('include/conversation.php'); require_once('include/conversation.php');
$o = profile_tabs($a,true); $o = profile_tabs($a,true);
$o .= '<div class="generic-content-wrapper">';
$o .= '<h2>' . t('Webpages') . '</h2>'; $o .= '<h2>' . t('Webpages') . '</h2>';
$x = array( $x = array(
@ -105,7 +107,6 @@ function webpages_content(&$a) {
$o .= status_editor($a,$x); $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. // 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 //TODO - this should be replaced with pagelist_widget
@ -142,5 +143,6 @@ function webpages_content(&$a) {
)); ));
$o .= '</div>';
} }

View File

@ -1,3 +1,11 @@
/* common */
code {
font-family: Courier, monospace;
display: block;
overflow: auto;
}
/* jot */ /* jot */
#jot-title, #jot-title,

View File

@ -23,9 +23,20 @@
margin-top: 15px; margin-top: 15px;
} }
/* search */
#search-text {
border: 1px solid #ccc;
padding: 5px;
line-height: 1.5;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
/* notes */ /* notes */
#note-text { #note-text {
padding: 5px;
width: 100%; width: 100%;
resize: vertical; resize: vertical;
height: 150px; height: 150px;
@ -62,6 +73,10 @@
margin: 2px 0px 0px 10px; margin: 2px 0px 0px 10px;
} }
#posted-date-selector li:not(:first-child) {
margin-top: 2px;
}
/* categories */ /* categories */

View File

@ -118,15 +118,11 @@ pre code {
} }
code { code {
font-family: Courier, monospace;
font-size: 1em; font-size: 1em;
display: block; padding: 5px;
overflow: auto;
border: 1px solid $code_borderc; border: 1px solid $code_borderc;
background: $code_bgcolour; background: $code_bgcolour;
color: $code_txtcolour; color: $code_txtcolour;
padding: 10px;
margin-top: 20px;
} }
pre { pre {
@ -894,18 +890,6 @@ footer {
font-family: FontAwesome; font-family: FontAwesome;
} }
#search-text {
border: 1px solid #ccc;
font-size: 1em;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
#netsearch-box .btn-sm {
padding: 2.78px 10px;
}
.profile-clear { .profile-clear {
clear: both; clear: both;
} }
@ -1243,21 +1227,6 @@ footer {
text-decoration: underline; text-decoration: underline;
} }
#lang-select-icon {
cursor: pointer;
position: absolute;
left: 4px;
/*because of the shape, if this is lined up properly it looks like it's lined up wrong...
lining it up too high is the only way to make it look correctly aligned. The human
brain is weird like that */
top: 2px;
}
#lang-select-icon:hover {
opacity: 1;
filter:alpha(opacity=100);
}
.notif-image { .notif-image {
height: 80px; height: 80px;
width: 80px; width: 80px;
@ -1347,38 +1316,6 @@ brain is weird like that */
.field.radio .field_help { margin-left: 0px; } .field.radio .field_help { margin-left: 0px; }
/*
* UPDATE
*/
.popup {
width: 100%; height: 100%;
top:0px; left:0px;
position: absolute;
display: none;
}
.popup .background {
background-color: rgba(0,0,0,128);
opacity: 0.5;
width: 100%; height: 100%;
position: absolute;
top:0px; left:0px;
}
.popup .panel {
top:25%;left:25%;width:50%;height:50%;
padding: 1em;
position: absolute;
border: 4px solid #000000;
background-color: #FFFFFF;
}
.popup .panel .panel_text { display: block; overflow: auto; height: 80%; }
.popup .panel .panel_in { width: 100%; height: 100%; position: relative; }
.popup .panel .panel_actions { width: 100%; bottom: 4px; left: 0px; position: absolute; }
.panel_text .progress { width: 50%; overflow: hidden; height: auto; border: 1px solid #cccccc; margin-bottom: 5px}
.panel_text .progress span {float: right; display: block; width: 25%; background-color: #eeeeee; text-align: right;}
/** /**
* OAuth * OAuth
*/ */
@ -1406,63 +1343,6 @@ brain is weird like that */
float: left; float: left;
} }
/**
* ICONS
*/
.iconspacer {
display: block; width: 16px; height: 16px;
/* visibility: hidden; */
}
.iconspacer:hover {
/* visibility: visible; */
}
.icon {
display: block; width: 16px; height: 16px;
background-image: url('../../../../images/icons.png');
}
.article { background-position: 0px 0px;}
.audio { background-position: -16px 0px;}
.block { background-position: -32px 0px;}
.drop { background-position: -48px 0px;}
.drophide { background-position: -64px 0px;}
.delete { background-position: -64px 0px;}
.edit { background-position: -80px 0px;}
.camera { background-position: -96px 0px;}
.dislike { background-position: -112px 0px;}
.like { background-position: -128px 0px;}
.link { background-position: -144px 0px;}
.globe { background-position: 0px -16px;}
.noglobe { background-position: -16px -16px;}
.no { background-position: -32px -16px;}
.pause { background-position: -48px -16px;}
.play { background-position: -64px -16px;}
.pencil { background-position: -80px -16px;}
.small-pencil { background-position: -96px -16px;}
.recycle { background-position: -112px -16px;}
.remote-link { background-position: -128px -16px;}
.share { background-position: -144px -16px;}
.tools { background-position: 0px -32px;}
.lock { background-position: -16px -32px;}
.unlock { background-position: -32px -32px; }
.video { background-position: -48px -32px;}
.youtube { background-position: -64px -32px;}
.attach { background-position: -80px -32px; }
.language { background-position: -96px -32px; }
.prev { background-position: -112px -32px; }
.next { background-position: -128px -32px; }
.on { background-position: -144px -32px; }
.off { background-position: 0px -48px; }
.tagged { background-position: -48px -48px; }
.yellow { background-position: -64px -48px; }
.icon.dim { opacity: 0.3;filter:alpha(opacity=30); }
.body-attach { .body-attach {
margin-top: 10px; margin-top: 10px;
@ -1538,6 +1418,7 @@ div.jGrowl div.jGrowl-notification {
margin-left: $radiuspx; margin-left: $radiuspx;
border: 1px solid #ccc; border: 1px solid #ccc;
border-top: none; border-top: none;
width: calc(197px - $radiuspx * 2) !important;
} }
#recip-ac .autocomplete, #recip-ac .autocomplete,
@ -1597,14 +1478,6 @@ a.rconnect:hover {
color: #0080FF; color: #0080FF;
} }
#profiles-menu li a {
color: #ffffff;
}
#profiles-menu li a:hover {
color: #000000;
}
/* header */ /* header */
header { header {
@ -1991,13 +1864,16 @@ img.mail-list-sender-photo {
.wall-item-content-wrapper { .wall-item-content-wrapper {
background-color: $item_colour; background-color: $item_colour;
padding: 10px; padding: 10px;
}
.wall-item-content-wrapper {
border-top-right-radius: $radiuspx; border-top-right-radius: $radiuspx;
border-top-left-radius: $radiuspx; border-top-left-radius: $radiuspx;
} }
.generic-content-wrapper {
background-color: $genericcontent_bgcolour;
padding: 10px;
border-radius: $radiuspx;
}
.comment .wall-item-body { .comment .wall-item-body {
padding-left: $comment_padding; padding-left: $comment_padding;
} }
@ -2288,12 +2164,12 @@ blockquote {
} }
aside .nav > li > a:hover, aside .nav > li > a:focus { aside .nav > li > a:hover, aside .nav > li > a:focus {
text-decoration: $navtabs_decohover; text-decoration: $navtabs_decohover;
background-color: $navaside_bghover; background-color: $navaside_bghover;
} }
aside .nav-pills > li > a { aside .nav-pills > li > a {
padding: 6px 10px; padding: 6px 10px;
} }
.dropdown-menu img { .dropdown-menu img {

View File

@ -25,6 +25,7 @@ function theme_content(&$a) {
$arr['comment_indent'] = get_pconfig(local_user(),'redbasic', 'comment_indent' ); $arr['comment_indent'] = get_pconfig(local_user(),'redbasic', 'comment_indent' );
$arr['toolicon_colour'] = get_pconfig(local_user(),'redbasic','toolicon_colour'); $arr['toolicon_colour'] = get_pconfig(local_user(),'redbasic','toolicon_colour');
$arr['toolicon_activecolour'] = get_pconfig(local_user(),'redbasic','toolicon_activecolour'); $arr['toolicon_activecolour'] = get_pconfig(local_user(),'redbasic','toolicon_activecolour');
$arr['genericcontent_bgcolour'] = get_pconfig(local_user(),'redbasic', 'genericcontent_bgcolour' );
$arr['font_size'] = get_pconfig(local_user(),'redbasic', 'font_size' ); $arr['font_size'] = get_pconfig(local_user(),'redbasic', 'font_size' );
$arr['body_font_size'] = get_pconfig(local_user(),'redbasic', 'body_font_size' ); $arr['body_font_size'] = get_pconfig(local_user(),'redbasic', 'body_font_size' );
$arr['font_colour'] = get_pconfig(local_user(),'redbasic', 'font_colour' ); $arr['font_colour'] = get_pconfig(local_user(),'redbasic', 'font_colour' );
@ -63,6 +64,7 @@ function theme_post(&$a) {
set_pconfig(local_user(), 'redbasic', 'comment_indent', $_POST['redbasic_comment_indent']); set_pconfig(local_user(), 'redbasic', 'comment_indent', $_POST['redbasic_comment_indent']);
set_pconfig(local_user(), 'redbasic', 'toolicon_colour', $_POST['redbasic_toolicon_colour']); set_pconfig(local_user(), 'redbasic', 'toolicon_colour', $_POST['redbasic_toolicon_colour']);
set_pconfig(local_user(), 'redbasic', 'toolicon_activecolour', $_POST['redbasic_toolicon_activecolour']); set_pconfig(local_user(), 'redbasic', 'toolicon_activecolour', $_POST['redbasic_toolicon_activecolour']);
set_pconfig(local_user(), 'redbasic', 'genericcontent_bgcolour', $_POST['redbasic_genericcontent_bgcolour']);
set_pconfig(local_user(), 'redbasic', 'font_size', $_POST['redbasic_font_size']); set_pconfig(local_user(), 'redbasic', 'font_size', $_POST['redbasic_font_size']);
set_pconfig(local_user(), 'redbasic', 'body_font_size', $_POST['redbasic_body_font_size']); set_pconfig(local_user(), 'redbasic', 'body_font_size', $_POST['redbasic_body_font_size']);
set_pconfig(local_user(), 'redbasic', 'font_colour', $_POST['redbasic_font_colour']); set_pconfig(local_user(), 'redbasic', 'font_colour', $_POST['redbasic_font_colour']);
@ -120,6 +122,7 @@ if(feature_enabled(local_user(),'expert'))
'$comment_indent' => array('redbasic_comment_indent', t('Set the indent for comments'), $arr['comment_indent']), '$comment_indent' => array('redbasic_comment_indent', t('Set the indent for comments'), $arr['comment_indent']),
'$toolicon_colour' => array('redbasic_toolicon_colour',t('Set the basic color for item icons'),$arr['toolicon_colour']), '$toolicon_colour' => array('redbasic_toolicon_colour',t('Set the basic color for item icons'),$arr['toolicon_colour']),
'$toolicon_activecolour' => array('redbasic_toolicon_activecolour',t('Set the hover color for item icons'),$arr['toolicon_activecolour']), '$toolicon_activecolour' => array('redbasic_toolicon_activecolour',t('Set the hover color for item icons'),$arr['toolicon_activecolour']),
'$genericcontent_bgcolour' => array('redbasic_genericcontent_bgcolour',t('Set the background color of other content'),$arr['genericcontent_bgcolour']),
'$body_font_size' => array('redbasic_body_font_size', t('Set font-size for the entire application'), $arr['body_font_size']), '$body_font_size' => array('redbasic_body_font_size', t('Set font-size for the entire application'), $arr['body_font_size']),
'$font_size' => array('redbasic_font_size', t('Set font-size for posts and comments'), $arr['font_size']), '$font_size' => array('redbasic_font_size', t('Set font-size for posts and comments'), $arr['font_size']),
'$font_colour' => array('redbasic_font_colour', t('Set font-color for posts and comments'), $arr['font_colour']), '$font_colour' => array('redbasic_font_colour', t('Set font-color for posts and comments'), $arr['font_colour']),

View File

@ -24,6 +24,7 @@ if(! $a->install) {
$background_image = get_pconfig($uid, "redbasic", "background_image"); $background_image = get_pconfig($uid, "redbasic", "background_image");
$toolicon_colour = get_pconfig($uid,'redbasic','toolicon_colour'); $toolicon_colour = get_pconfig($uid,'redbasic','toolicon_colour');
$toolicon_activecolour = get_pconfig($uid,'redbasic','toolicon_activecolour'); $toolicon_activecolour = get_pconfig($uid,'redbasic','toolicon_activecolour');
$genericcontent_bgcolour = get_pconfig($uid, "redbasic", "genericcontent_bgcolour");
$item_colour = get_pconfig($uid, "redbasic", "item_colour"); $item_colour = get_pconfig($uid, "redbasic", "item_colour");
$comment_item_colour = get_pconfig($uid, "redbasic", "comment_item_colour"); $comment_item_colour = get_pconfig($uid, "redbasic", "comment_item_colour");
$comment_border_colour = get_pconfig($uid, "redbasic", "comment_border_colour"); $comment_border_colour = get_pconfig($uid, "redbasic", "comment_border_colour");
@ -121,6 +122,8 @@ if(! $a->install) {
$bgcolour = "#fdfdfd"; $bgcolour = "#fdfdfd";
if (! $background_image) if (! $background_image)
$background_image =''; $background_image ='';
if (! $genericcontent_bgcolour)
$genericcontent_bgcolour ='rgba(247,247,247,0.8)';
if (! $item_colour) if (! $item_colour)
$item_colour = "rgba(238,238,238,0.8)"; $item_colour = "rgba(238,238,238,0.8)";
if (! $comment_item_colour) if (! $comment_item_colour)
@ -152,11 +155,11 @@ if(! $a->install) {
if (! $blockquote_bordercolour) if (! $blockquote_bordercolour)
$blockquote_bordercolour = "#ccc"; $blockquote_bordercolour = "#ccc";
if (! $code_borderc) if (! $code_borderc)
$code_borderc = "#444"; $code_borderc = "#ccc";
if (! $code_bgcolour) if (! $code_bgcolour)
$code_bgcolour = "#EEE"; $code_bgcolour = "#ccc";
if (! $code_txtcolour) if (! $code_txtcolour)
$code_txtcolour = "#444"; $code_txtcolour = "#000";
if (! $pre_borderc) if (! $pre_borderc)
$pre_borderc = "#ccc"; $pre_borderc = "#ccc";
if (! $pre_bgcolour) if (! $pre_bgcolour)
@ -331,6 +334,7 @@ $options = array (
'$search_background' => $search_background, '$search_background' => $search_background,
'$bgcolour' => $bgcolour, '$bgcolour' => $bgcolour,
'$background_image' => $background_image, '$background_image' => $background_image,
'$genericcontent_bgcolour' => $genericcontent_bgcolour,
'$item_colour' => $item_colour, '$item_colour' => $item_colour,
'$comment_item_colour' => $comment_item_colour, '$comment_item_colour' => $comment_item_colour,
'$comment_border_colour' => $comment_border_colour, '$comment_border_colour' => $comment_border_colour,

View File

@ -50,6 +50,8 @@
$search_background = "#999"; $search_background = "#999";
if (! $bgcolour) if (! $bgcolour)
$bgcolour = "#111"; $bgcolour = "#111";
if (! $genericcontent_bgcolour)
$genericcontent_bgcolour ='rgba(28,28,28,0.8)';
if (! $item_colour) if (! $item_colour)
$item_colour = "rgba(28,28,28,0.8)"; $item_colour = "rgba(28,28,28,0.8)";
if (! $comment_item_colour) if (! $comment_item_colour)

View File

@ -34,7 +34,7 @@
$navtabs_bgchover = "#fff"; $navtabs_bgchover = "#fff";
if (! $navtabs_decohover) if (! $navtabs_decohover)
$navtabs_decohover = "underline"; $navtabs_decohover = "underline";
if (! $navaside_bghover) if (! $navaside_bghover)
$navaside_bghover = "#F5F5F5"; $navaside_bghover = "#F5F5F5";
if (! $link_colour) if (! $link_colour)
$link_colour = "#000"; $link_colour = "#000";
@ -50,6 +50,8 @@ if (! $navaside_bghover)
$search_background = "#F5F5F5"; $search_background = "#F5F5F5";
if (! $bgcolour) if (! $bgcolour)
$bgcolour = "#fff"; $bgcolour = "#fff";
if (! $genericcontent_bgcolour)
$genericcontent_bgcolour = 'rgba(255,255,255,0.8)';
if (! $item_colour) if (! $item_colour)
$item_colour = "rgba(255,255,255,0.8)"; $item_colour = "rgba(255,255,255,0.8)";
if (! $comment_item_colour) if (! $comment_item_colour)

View File

@ -50,6 +50,8 @@ if (! $navaside_bghover)
$search_background = "#000"; $search_background = "#000";
if (! $bgcolour) if (! $bgcolour)
$bgcolour = "#000"; $bgcolour = "#000";
if (! $genericcontent_bgcolour)
$genericcontent_bgcolour = 'rgba(0,0,0,0.8)';
if (! $item_colour) if (! $item_colour)
$item_colour = "rgba(0,0,0,0.8)"; $item_colour = "rgba(0,0,0,0.8)";
if (! $comment_item_colour) if (! $comment_item_colour)

View File

@ -50,6 +50,8 @@
$search_background = "#000"; $search_background = "#000";
if (! $bgcolour) if (! $bgcolour)
$bgcolour = "#000"; $bgcolour = "#000";
if (! $genericcontent_bgcolour)
$genericcontent_bgcolour ='rgba(0,0,0,0.8)';
if (! $item_colour) if (! $item_colour)
$item_colour = "rgba(0,0,0,0.8)"; $item_colour = "rgba(0,0,0,0.8)";
if (! $comment_item_colour) if (! $comment_item_colour)

View File

@ -24,6 +24,7 @@
{{include file="field_input.tpl" field=$comment_indent}} {{include file="field_input.tpl" field=$comment_indent}}
{{include file="field_colorinput.tpl" field=$toolicon_colour}} {{include file="field_colorinput.tpl" field=$toolicon_colour}}
{{include file="field_colorinput.tpl" field=$toolicon_activecolour}} {{include file="field_colorinput.tpl" field=$toolicon_activecolour}}
{{include file="field_colorinput.tpl" field=$genericcontent_bgcolour}}
{{include file="field_input.tpl" field=$body_font_size}} {{include file="field_input.tpl" field=$body_font_size}}
{{include file="field_input.tpl" field=$font_size}} {{include file="field_input.tpl" field=$font_size}}
{{include file="field_colorinput.tpl" field=$font_colour}} {{include file="field_colorinput.tpl" field=$font_colour}}
@ -40,7 +41,7 @@
$('#id_redbasic_nav_bg,#id_redbasic_nav_gradient_top,#id_redbasic_nav_gradient_bottom,#id_redbasic_nav_active_gradient_top,#id_redbasic_nav_active_gradient_bottom').colorpicker(); $('#id_redbasic_nav_bg,#id_redbasic_nav_gradient_top,#id_redbasic_nav_gradient_bottom,#id_redbasic_nav_active_gradient_top,#id_redbasic_nav_active_gradient_bottom').colorpicker();
$('#id_redbasic_nav_bd,#id_redbasic_nav_icon_colour ,#id_redbasic_nav_active_icon_colour,#id_redbasic_banner_colour,#id_redbasic_link_colour,#id_redbasic_background_colour').colorpicker(); $('#id_redbasic_nav_bd,#id_redbasic_nav_icon_colour ,#id_redbasic_nav_active_icon_colour,#id_redbasic_banner_colour,#id_redbasic_link_colour,#id_redbasic_background_colour').colorpicker();
$('#id_redbasic_toolicon_colour,#id_redbasic_toolicon_activecolour,#id_redbasic_font_colour').colorpicker(); $('#id_redbasic_toolicon_colour,#id_redbasic_toolicon_activecolour,#id_redbasic_font_colour').colorpicker();
$('#id_redbasic_item_colour,#id_redbasic_comment_item_colour,#id_redbasic_comment_border_colour').colorpicker({format: 'rgba'}); $('#id_redbasic_item_colour,#id_redbasic_comment_item_colour,#id_redbasic_comment_border_colour,#id_redbasic_genericcontent_bgcolour').colorpicker({format: 'rgba'});
}); });
</script> </script>

View File

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

View File

@ -21,3 +21,5 @@
</td> </td>
</tr> </tr>
</table> </table>
</div>

View File

@ -1,3 +1,4 @@
<div class="generic-content-wrapper">
<h1>{{$header}}</h1> <h1>{{$header}}</h1>
<table id="cloud-index"> <table id="cloud-index">
<tr> <tr>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
<div class="clear"></div> <div class="clear"></div>
</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" /> <input type="hidden" id="photos-upload-source" name="source" value="photos" />
<div id="photos-upload-new-wrapper" > <div id="photos-upload-new-wrapper" >
<div id="photos-upload-newalbum-div"> <div id="photos-upload-newalbum-div">

View File

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

View File

@ -1,3 +1,4 @@
<div class="generic-content-wrapper">
<h1>{{$header}}</h1> <h1>{{$header}}</h1>
<p id="profile-listing-desc" class="btn btn-default" > <p id="profile-listing-desc" class="btn btn-default" >
<a href="profile_photo" >{{$chg_photo}}</a> <a href="profile_photo" >{{$chg_photo}}</a>
@ -7,5 +8,3 @@
</p> </p>
<p id="profile-listing-new-link-wrapper" class="btn btn-default" > <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> <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}} {{if $pages}}
<div id="pagelist-content-wrapper" class="generic-content-wrapper"> <div id="pagelist-content-wrapper">
<table class="webpage-list-table"> <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> <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}} {{foreach $pages as $key => $items}}