Merging in conflict

This commit is contained in:
sirius 2014-04-16 00:40:01 +02:00
commit b0dc9f13ed
19 changed files with 129 additions and 94 deletions

View File

@ -181,6 +181,13 @@ class Conversation extends BaseObject {
$item->set_commentable(can_comment_on_post($this->observer['xchan_hash'],$item->data)); $item->set_commentable(can_comment_on_post($this->observer['xchan_hash'],$item->data));
} }
require_once('include/identity.php');
$sys = get_sys_channel();
if($sys && $item->get_data_value('uid') == $sys['channel_id']) {
$item->set_commentable(false);
}
$item->set_conversation($this); $item->set_conversation($this);
$this->threads[] = $item; $this->threads[] = $item;
return end($this->threads); return end($this->threads);

View File

@ -583,14 +583,16 @@ function profile_load(&$a, $nickname, $profile = '') {
} }
if($can_view_profile) {
$a->profile = $p[0]; $a->profile = $p[0];
$a->profile_uid = $p[0]['profile_uid'];
$a->page['title'] = $a->profile['channel_name'] . " - " . $a->profile['channel_address'] . "@" . $a->get_hostname();
$a->profile['permission_to_view'] = $can_view_profile;
if($can_view_profile) {
$online = get_online_status($nickname); $online = get_online_status($nickname);
$a->profile['online_status'] = $online['result']; $a->profile['online_status'] = $online['result'];
$a->profile_uid = $p[0]['profile_uid'];
$a->page['title'] = $a->profile['channel_name'] . " - " . $a->profile['channel_address'] . "@" . $a->get_hostname();
} }
if(local_user()) { if(local_user()) {
@ -604,18 +606,12 @@ function profile_load(&$a, $nickname, $profile = '') {
$_SESSION['theme'] = $p[0]['channel_theme']; $_SESSION['theme'] = $p[0]['channel_theme'];
$a->set_template_engine(); // reset the template engine to the default in case the user's theme doesn't specify one // $a->set_template_engine(); // reset the template engine to the default in case the user's theme doesn't specify one
$theme_info_file = "view/theme/".current_theme()."/php/theme.php"; // $theme_info_file = "view/theme/".current_theme()."/php/theme.php";
if (file_exists($theme_info_file)){ // if (file_exists($theme_info_file)){
require_once($theme_info_file); // require_once($theme_info_file);
} // }
if(! $can_view_profile) {
// permission denied
notice( t(' Sorry, you don\'t have the permission to view this profile. ') . EOL);
return;
}
return; return;
} }
@ -739,7 +735,7 @@ logger('online: ' . $profile['online']);
$block = true; $block = true;
} }
if(($profile['hidewall'] || $block) && (! local_user()) && (! remote_user())) { if(($profile['hidewall'] && (! local_user()) && (! remote_user())) || $block ) {
$location = $pdesc = $gender = $marital = $homepage = $online = False; $location = $pdesc = $gender = $marital = $homepage = $online = False;
} }
@ -751,7 +747,7 @@ logger('online: ' . $profile['online']);
$channel_menu = false; $channel_menu = false;
$menu = get_pconfig($profile['uid'],'system','channel_menu'); $menu = get_pconfig($profile['uid'],'system','channel_menu');
if($menu) { if($menu && ! $block) {
require_once('include/menu.php'); require_once('include/menu.php');
$m = menu_fetch($menu,$profile['uid'],$observer['xchan_hash']); $m = menu_fetch($menu,$profile['uid'],$observer['xchan_hash']);
if($m) if($m)

View File

@ -616,7 +616,7 @@ function import_profile_photo($photo,$xchan,$thing = false) {
$type = 'image/jpeg'; $type = 'image/jpeg';
} }
return(array($photo,$thumb,$micro,$type)); return(array($photo,$thumb,$micro,$type,$photo_failure));
} }

View File

@ -707,11 +707,10 @@ function contact_block() {
if((! is_array($a->profile)) || ($a->profile['hide_friends'])) if((! is_array($a->profile)) || ($a->profile['hide_friends']))
return $o; return $o;
$r = q("SELECT COUNT(abook_id) AS total FROM abook left join xchan on abook_xchan = xchan_hash WHERE abook_channel = %d and abook_flags = 0 and not (xchan_flags & %d) and not (xchan_flags & %d) and not (xchan_flags & %d)", $r = q("SELECT COUNT(abook_id) AS total FROM abook left join xchan on abook_xchan = xchan_hash WHERE abook_channel = %d and not ( abook_flags & %d ) and not (xchan_flags & %d)",
intval($a->profile['uid']), intval($a->profile['uid']),
intval(XCHAN_FLAGS_HIDDEN), intval(ABOOK_FLAG_HIDDEN|ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF),
intval(XCHAN_FLAGS_ORPHAN), intval(XCHAN_FLAGS_HIDDEN|XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED)
intval(XCHAN_FLAGS_DELETED)
); );
if(count($r)) { if(count($r)) {
$total = intval($r[0]['total']); $total = intval($r[0]['total']);
@ -722,11 +721,10 @@ function contact_block() {
} else { } else {
$r = q("SELECT abook.*, xchan.* FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash WHERE abook_channel = %d AND abook_flags = 0 and not (xchan_flags & %d ) and not (xchan_flags & %d ) and not (xchan_flags & %d ) ORDER BY RAND() LIMIT %d", $r = q("SELECT abook.*, xchan.* FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash WHERE abook_channel = %d AND not ( abook_flags & %d) and not (xchan_flags & %d ) ORDER BY RAND() LIMIT %d",
intval($a->profile['uid']), intval($a->profile['uid']),
intval(XCHAN_FLAGS_HIDDEN), intval(ABOOK_FLAG_HIDDEN|ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF),
intval(XCHAN_FLAGS_ORPHAN), intval(XCHAN_FLAGS_HIDDEN|XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED),
intval(XCHAN_FLAGS_DELETED),
intval($shown) intval($shown)
); );

View File

@ -304,6 +304,9 @@ function widget_archive($arr) {
if(! feature_enabled($uid,'archives')) if(! feature_enabled($uid,'archives'))
return ''; return '';
if(! perm_is_allowed($uid,get_observer_hash(),'view_stream'))
return '';
$wall = ((array_key_exists('wall', $arr)) ? intval($arr['wall']) : 0); $wall = ((array_key_exists('wall', $arr)) ? intval($arr['wall']) : 0);
$style = ((array_key_exists('style', $arr)) ? $arr['style'] : 'select'); $style = ((array_key_exists('style', $arr)) ? $arr['style'] : 'select');
@ -338,6 +341,12 @@ function widget_fullprofile($arr) {
function widget_categories($arr) { function widget_categories($arr) {
$a = get_app(); $a = get_app();
if($a->profile['profile_uid'] && (! perm_is_allowed($a->profile['profile_uid'],get_observer_hash(),'view_stream')))
return '';
$cat = ((x($_REQUEST,'cat')) ? htmlspecialchars($_REQUEST['cat'],ENT_COMPAT,'UTF-8') : ''); $cat = ((x($_REQUEST,'cat')) ? htmlspecialchars($_REQUEST['cat'],ENT_COMPAT,'UTF-8') : '');
$srchurl = $a->query_string; $srchurl = $a->query_string;
$srchurl = rtrim(preg_replace('/cat\=[^\&].*?(\&|$)/is','',$srchurl),'&'); $srchurl = rtrim(preg_replace('/cat\=[^\&].*?(\&|$)/is','',$srchurl),'&');
@ -350,6 +359,9 @@ function widget_tagcloud_wall($arr) {
$a = get_app(); $a = get_app();
if((! $a->profile['profile_uid']) || (! $a->profile['channel_hash'])) if((! $a->profile['profile_uid']) || (! $a->profile['channel_hash']))
return ''; return '';
if(! perm_is_allowed($a->profile['profile_uid'],get_observer_hash(),'view_stream'))
return '';
$limit = ((array_key_exists('limit',$arr)) ? intval($arr['limit']) : 50); $limit = ((array_key_exists('limit',$arr)) ? intval($arr['limit']) : 50);
if(feature_enabled($a->profile['profile_uid'],'tagadelic')) if(feature_enabled($a->profile['profile_uid'],'tagadelic'))
return tagblock('search',$a->profile['profile_uid'],$limit,$a->profile['channel_hash'],ITEM_WALL); return tagblock('search',$a->profile['profile_uid'],$limit,$a->profile['channel_hash'],ITEM_WALL);

View File

@ -728,7 +728,8 @@ function import_xchan($arr,$ud_flags = UPDATE_FLAGS_UPDATED) {
z_root() . '/photo/profile/l/' . $local[0]['channel_id'], z_root() . '/photo/profile/l/' . $local[0]['channel_id'],
z_root() . '/photo/profile/m/' . $local[0]['channel_id'], z_root() . '/photo/profile/m/' . $local[0]['channel_id'],
z_root() . '/photo/profile/s/' . $local[0]['channel_id'], z_root() . '/photo/profile/s/' . $local[0]['channel_id'],
$arr['photo_mimetype'] $arr['photo_mimetype'],
false
); );
} }
} }
@ -736,6 +737,19 @@ function import_xchan($arr,$ud_flags = UPDATE_FLAGS_UPDATED) {
$photos = import_profile_photo($arr['photo'],$xchan_hash); $photos = import_profile_photo($arr['photo'],$xchan_hash);
} }
if($photos) { if($photos) {
if($photos[4]) {
// importing the photo failed somehow. Leave the photo_date alone so we can try again at a later date.
// This often happens when somebody joins the matrix with a bad cert.
$r = q("update xchan set xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s'
where xchan_hash = '%s' limit 1",
dbesc($photos[0]),
dbesc($photos[1]),
dbesc($photos[2]),
dbesc($photos[3]),
dbesc($xchan_hash)
);
}
else {
$r = q("update xchan set xchan_photo_date = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s' $r = q("update xchan set xchan_photo_date = '%s', xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s'
where xchan_hash = '%s' limit 1", where xchan_hash = '%s' limit 1",
dbesc(datetime_convert('UTC','UTC',$arr['photo_updated'])), dbesc(datetime_convert('UTC','UTC',$arr['photo_updated'])),
@ -745,7 +759,7 @@ function import_xchan($arr,$ud_flags = UPDATE_FLAGS_UPDATED) {
dbesc($photos[3]), dbesc($photos[3]),
dbesc($xchan_hash) dbesc($xchan_hash)
); );
}
$what .= 'photo '; $what .= 'photo ';
$changed = true; $changed = true;
} }

View File

@ -206,7 +206,7 @@ function acl_init(&$a){
if(count($r)) { if(count($r)) {
foreach($r as $g){ foreach($r as $g){
if($g['abook_their_perms'] & PERMS_W_TAGWALL) { if(($g['abook_their_perms'] & PERMS_W_TAGWALL) && $type == 'c') {
$contacts[] = array( $contacts[] = array(
"type" => "c", "type" => "c",
"photo" => "images/twopeople.png", "photo" => "images/twopeople.png",

View File

@ -213,12 +213,10 @@ function connections_content(&$a) {
nav_set_selected('intros'); nav_set_selected('intros');
break; break;
case 'ifpending': case 'ifpending':
$r = q("SELECT COUNT(abook.abook_id) AS total FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash where abook_channel = %d and not (abook_flags & %d) and not (xchan_flags & %d ) and (abook_flags & %d) and not (abook_flags & %d)", $r = q("SELECT COUNT(abook.abook_id) AS total FROM abook left join xchan on abook.abook_xchan = xchan.xchan_hash where abook_channel = %d and not (abook_flags & %d) and not (xchan_flags & %d )",
intval(local_user()), intval(local_user()),
intval(ABOOK_FLAG_SELF), intval(ABOOK_FLAG_SELF|ABOOK_FLAG_PENDING|ABOOK_FLAG_IGNORED),
intval(XCHAN_FLAGS_DELETED), intval(XCHAN_FLAGS_DELETED|XCHAN_FLAGS_ORPHAN)
intval(ABOOK_FLAG_PENDING),
intval(ABOOK_FLAG_IGNORED)
); );
if($r && $r[0]['total']) { if($r && $r[0]['total']) {
$search_flags = ABOOK_FLAG_PENDING; $search_flags = ABOOK_FLAG_PENDING;
@ -342,7 +340,7 @@ function connections_content(&$a) {
where abook_channel = %d and not (abook_flags & %d) and not (xchan_flags & %d ) $sql_extra $sql_extra2 ", where abook_channel = %d and not (abook_flags & %d) and not (xchan_flags & %d ) $sql_extra $sql_extra2 ",
intval(local_user()), intval(local_user()),
intval(ABOOK_FLAG_SELF), intval(ABOOK_FLAG_SELF),
intval(XCHAN_FLAGS_DELETED) intval(XCHAN_FLAGS_DELETED|XCHAN_FLAGS_ORPHAN)
); );
if($r) { if($r) {
$a->set_pager_total($r[0]['total']); $a->set_pager_total($r[0]['total']);
@ -353,7 +351,7 @@ function connections_content(&$a) {
WHERE abook_channel = %d and not (abook_flags & %d) and not ( xchan_flags & %d) $sql_extra $sql_extra2 ORDER BY xchan_name LIMIT %d , %d ", WHERE abook_channel = %d and not (abook_flags & %d) and not ( xchan_flags & %d) $sql_extra $sql_extra2 ORDER BY xchan_name LIMIT %d , %d ",
intval(local_user()), intval(local_user()),
intval(ABOOK_FLAG_SELF), intval(ABOOK_FLAG_SELF),
intval(XCHAN_FLAGS_DELETED), intval(XCHAN_FLAGS_DELETED|XCHAN_FLAGS_ORPHAN),
intval($a->pager['start']), intval($a->pager['start']),
intval($a->pager['itemspage']) intval($a->pager['itemspage'])
); );

View File

@ -61,7 +61,7 @@ function profile_content(&$a, $update = 0) {
$o = ''; $o = '';
if(! (perm_is_allowed($a->profile['profile_uid'],get_observer_hash(), 'view_profile'))) { if(! (perm_is_allowed($a->profile['profile_uid'],get_observer_hash(), 'view_profile'))) {
notice( t('Access to this profile has been restricted.') . EOL); notice( t('Permission denied.') . EOL);
return; return;
} }
@ -69,11 +69,10 @@ function profile_content(&$a, $update = 0) {
$is_owner = ((local_user()) && (local_user() == $a->profile['profile_uid']) ? true : false); $is_owner = ((local_user()) && (local_user() == $a->profile['profile_uid']) ? true : false);
if($a->profile['hidewall'] && (! $is_owner) && (! remote_user())) { if($a->profile['hidewall'] && (! $is_owner) && (! remote_user())) {
notice( t('Access to this profile has been restricted.') . EOL); notice( t('Permission denied.') . EOL);
return; return;
} }
$o .= profile_tabs($a, $is_owner, $a->profile['channel_address']); $o .= profile_tabs($a, $is_owner, $a->profile['channel_address']);

View File

@ -1,20 +1,30 @@
<?php <?php
/* @file profile_photo.php
@brief Module-file with functions for handling of profile-photos
*/
require_once('include/photo/photo_driver.php'); require_once('include/photo/photo_driver.php');
/* @brief Function for sync'ing permissions of profile-photos and their profile
*
* @param $profileid The id number of the profile to sync
* @return void
*/
function profile_photo_set_profile_perms($profileid) { function profile_photo_set_profile_perms($profileid) {
$allowcid = ''; $allowcid = '';
$r = q("SELECT photo, profile_guid, id FROM profile WHERE profile.id = %d LIMIT 1", intval($profileid)); if (x($profileid)) {
$profile = $r[0];
if(x($profile['photo'])) { $r = q("SELECT photo, profile_guid, id, is_default FROM profile WHERE profile.id = %d LIMIT 1", intval($profileid));
$profile = $r[0];
if(x($profile['id']) && x($profile['photo']) && intval($profile['is_default']) != 1) { //Only set perms when query suceeded and when we are not on the default profile
preg_match("@\w*(?=-\d*$)@i", $profile['photo'], $resource_id); preg_match("@\w*(?=-\d*$)@i", $profile['photo'], $resource_id);
$resource_id = $resource_id[0]; $resource_id = $resource_id[0];
if(x($profileid)) { $r1 = q("SELECT abook.abook_xchan FROM abook WHERE abook_profile = %d ", intval($profile['id'])); //Should not be needed in future. Catches old int-profile-ids.
$r1 = q("SELECT abook.abook_xchan FROM abook WHERE abook_profile = %d ", intval($profile['id']));
$r2 = q("SELECT abook.abook_xchan FROM abook WHERE abook_profile = '%s'", dbesc($profile['profile_guid'])); $r2 = q("SELECT abook.abook_xchan FROM abook WHERE abook_profile = '%s'", dbesc($profile['profile_guid']));
foreach ($r1 as $entry) { foreach ($r1 as $entry) {
$allowcid .= "<" . $entry['abook_xchan'] . ">"; $allowcid .= "<" . $entry['abook_xchan'] . ">";
@ -23,7 +33,7 @@ function profile_photo_set_profile_perms($profileid) {
$allowcid .= "<" . $entry['abook_xchan'] . ">"; $allowcid .= "<" . $entry['abook_xchan'] . ">";
} }
if(x($allowcid)) { if(x($allowcid)) {
q("UPDATE `photo` SET allow_cid = '%s' WHERE resource_id = '%s'",dbesc($allowcid),dbesc($resource_id)); q("UPDATE `photo` SET allow_cid = '%s' WHERE resource_id = '%s' AND uid = %d",dbesc($allowcid),dbesc($resource_id),intval($profile['id']));
} }
} }
} }

View File

@ -61,9 +61,9 @@ function profperm_content(&$a) {
$profile = $r[0]; $profile = $r[0];
$r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash WHERE abook_channel = %d AND abook_profile = %d", $r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash WHERE abook_channel = %d AND abook_profile = '%s'",
intval(local_user()), intval(local_user()),
intval(argv(1)) dbesc($profile['profile_guid'])
); );
$ingroup = array(); $ingroup = array();
@ -75,27 +75,29 @@ function profperm_content(&$a) {
if($change) { if($change) {
if(in_array($change,$ingroup)) { if(in_array($change,$ingroup)) {
q("UPDATE abook SET abook_profile = 0 WHERE abook_id = %d AND abook_channel = %d LIMIT 1", q("UPDATE abook SET abook_profile = '' WHERE abook_id = %d AND abook_channel = %d LIMIT 1",
intval($change), intval($change),
intval(local_user()) intval(local_user())
); );
} }
else { else {
q("UPDATE abook SET abook_profile = %d WHERE abook_id = %d AND abook_channel = %d LIMIT 1", q("UPDATE abook SET abook_profile = '%s' WHERE abook_id = %d AND abook_channel = %d LIMIT 1",
intval(argv(1)), dbesc($profile['profile_guid']),
intval($change), intval($change),
intval(local_user()) intval(local_user())
); );
} }
//Time to update the permissions on the profile-pictures as well //Time to update the permissions on the profile-pictures as well
require_once('mod/profile_photo.php'); require_once('mod/profile_photo.php');
profile_photo_set_profile_perms($profile['id']); profile_photo_set_profile_perms($profile['id']);
$r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash WHERE abook_channel = %d AND abook_profile = %d", $r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash WHERE abook_channel = %d AND abook_profile = '%s'",
intval(local_user()), intval(local_user()),
intval(argv(1)) dbesc($profile['profile_guid'])
); );
$members = $r; $members = $r;

View File

@ -29,21 +29,19 @@ function viewconnections_content(&$a) {
} }
$r = q("SELECT count(*) as total FROM abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and abook_flags = 0 and not ( xchan_flags & %d ) and not ( xchan_flags & %d ) and not ( xchan_flags & %d ) ", $r = q("SELECT count(*) as total FROM abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and not (abook_flags & %d ) and not ( xchan_flags & %d ) ",
intval($a->profile['uid']), intval($a->profile['uid']),
intval(XCHAN_FLAGS_HIDDEN), intval(ABOOK_FLAG_HIDDEN|ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF),
intval(XCHAN_FLAGS_ORPHAN), intval(XCHAN_FLAGS_HIDDEN|XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED)
intval(XCHAN_FLAGS_DELETED)
); );
if($r) { if($r) {
$a->set_pager_total($r[0]['total']); $a->set_pager_total($r[0]['total']);
} }
$r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and abook_flags = 0 and not ( xchan_flags & %d ) and not ( xchan_flags & %d ) and not ( xchan_flags & %d ) order by xchan_name LIMIT %d , %d ", $r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d and not ( abook_flags & %d ) and not ( xchan_flags & %d ) order by xchan_name LIMIT %d , %d ",
intval($a->profile['uid']), intval($a->profile['uid']),
intval(XCHAN_FLAGS_HIDDEN), intval(ABOOK_FLAG_HIDDEN|ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF),
intval(XCHAN_FLAGS_ORPHAN), intval(XCHAN_FLAGS_HIDDEN|XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED),
intval(XCHAN_FLAGS_DELETED),
intval($a->pager['start']), intval($a->pager['start']),
intval($a->pager['itemspage']) intval($a->pager['itemspage'])
); );

View File

@ -1 +1 @@
2014-04-11.644 2014-04-14.646

View File

@ -82,7 +82,7 @@
.wall-item-info { .wall-item-info {
display: block; display: block;
float: left; float: left;
margin-right: 20px; margin-right: 10px;
} }
.wallwall .wwto { .wallwall .wwto {
@ -272,7 +272,7 @@
} }
.comment-edit-photo { .comment-edit-photo {
margin: 10px 20px 10px 10px; margin: 10px;
float: left; float: left;
} }

View File

@ -285,13 +285,16 @@ footer {
#login-extra-links { #login-extra-links {
clear: both; clear: both;
width: 300px;
} }
#register-link, #register-link {
#lost-password-link {
float: left; float: left;
margin-left: 100px; margin-left: 100px;
} }
#lost-password-link {
float: right;
}
#login-standard-end { #login-standard-end {
clear: both; clear: both;
@ -694,18 +697,18 @@ footer {
.rconnect { .rconnect {
display: block; display: block;
color: #FFFFFF; color: $nav_active_icon_colour;
margin-top: 15px; margin-top: 15px;
background-color: $nav_bg; background-color: $nav_bg;
-webkit-border-radius: $radiuspx ; -webkit-border-radius: $radiuspx ;
-moz-border-radius: $radiuspx; -moz-border-radius: $radiuspx;
border-radius: $radiuspx; border-radius: $radiuspx;
border: 1px solid $nav_bd;
padding: 5px; padding: 5px;
font-weight: bold; font-weight: bold;
clear: both; clear: both;
} }
#pause { #pause {
position: fixed; position: fixed;
bottom: 5px; bottom: 5px;
@ -828,15 +831,17 @@ footer {
.location-label, .gender-label, .marital-label, .homepage-label { .location-label, .gender-label, .marital-label, .homepage-label {
float: left; float: left;
text-align: right;
display: block; display: block;
width: 65px; width: 70px;
} }
.adr, .x-gender, .marital-text, .homepage-url { .adr, .x-gender, .marital-text, .homepage-url {
float: left; float: left;
display: block; display: block;
margin-left: 8px; width: 130px;
height: 18px;
overflow: hidden;
} }
.profile-clear { .profile-clear {
@ -1496,7 +1501,7 @@ div.jGrowl div.jGrowl-notification {
} }
a.rconnect { a.rconnect {
color: #ffffff; color: $nav_active_icon_colour;
text-decoration: none; text-decoration: none;
outline: none; outline: none;
} }
@ -2234,18 +2239,10 @@ blockquote {
margin-left: 24px; margin-left: 24px;
} }
.wall-item-info {
margin-right: 10px;
}
.hide-comments-outer { .hide-comments-outer {
margin-left: 24px; margin-left: 24px;
} }
.comment-edit-photo {
margin: 10px;
}
.wall-item-photo { .wall-item-photo {
width: 48px !important; width: 48px !important;
height: 48px !important; height: 48px !important;

View File

@ -18,3 +18,5 @@
$nav_active_icon_colour = "#555"; $nav_active_icon_colour = "#555";
if (! $radius) if (! $radius)
$radius = "4"; $radius = "4";
if (! $banner_colour)
$banner_colour = "#777";

View File

@ -9,7 +9,7 @@
<div class="contact-name" id="directory-name-{{$entry.id}}" ><span onclick="dirdetails('{{$entry.hash}}');" class="fakelink" >{{$entry.name}}</span></div> <div class="contact-name" id="directory-name-{{$entry.id}}" ><span onclick="dirdetails('{{$entry.hash}}');" class="fakelink" >{{$entry.name}}</span></div>
{{if $entry.connect}} {{if $entry.connect}}
<div class="directory-connect"><a href="{{$entry.connect}}">{{$entry.conn_label}}</a></div> <div class="directory-connect btn btn-default"><a href="{{$entry.connect}}">{{$entry.conn_label}}</a></div>
{{/if}} {{/if}}
<div class="contact-details">{{$entry.details}}</div> <div class="contact-details">{{$entry.details}}</div>
</div> </div>

View File

@ -15,7 +15,7 @@
<div class="contact-name" id="directory-name-{{$id}}" >{{$name}}{{if $online}} <i class="icon-asterisk online-now" title="{{$online}}"></i>{{/if}}</div> <div class="contact-name" id="directory-name-{{$id}}" >{{$name}}{{if $online}} <i class="icon-asterisk online-now" title="{{$online}}"></i>{{/if}}</div>
{{if $connect}} {{if $connect}}
<div class="directory-connect"><a href="{{$connect}}">{{$conn_label}}</a></div> <div class="directory-connect btn btn-default"><a href="{{$connect}}">{{$conn_label}}</a></div>
{{/if}} {{/if}}
<div class="contact-webbie">{{$address}}</div> <div class="contact-webbie">{{$address}}</div>

View File

@ -11,12 +11,14 @@
<a href="lostpass" title="{{$lostpass}}" id="lost-password-link" >{{$lostlink}}</a> <a href="lostpass" title="{{$lostpass}}" id="lost-password-link" >{{$lostlink}}</a>
</div> </div>
<div class="clear"></div>
{{include file="field_checkbox.tpl" field=$remember}} {{include file="field_checkbox.tpl" field=$remember}}
<div id="login-standard-end"></div> <div id="login-standard-end"></div>
<div id="login-submit-wrapper" > <div id="login-submit-wrapper" >
<input type="submit" name="submit" id="login-submit-button" value="{{$login}}" /> <input type="submit" name="submit" id="login-submit-button" class="btn btn-default" value="{{$login}}" />
</div> </div>
{{foreach $hiddens as $k=>$v}} {{foreach $hiddens as $k=>$v}}