From ee01e67fa709197bdf3b0e2f990cdf1bf312856b Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 7 Jul 2015 09:41:27 +0200 Subject: use default style for default webpage --- view/tpl/page_display.tpl | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/view/tpl/page_display.tpl b/view/tpl/page_display.tpl index 5328648b9..a4870d623 100755 --- a/view/tpl/page_display.tpl +++ b/view/tpl/page_display.tpl @@ -1,9 +1,14 @@
- -
- {{if $title}}

{{$title}}

{{/if}} - -
{{$date}}
-
{{$body}}
-
+
+
+ {{if $title}} +

{{$title}}

+ {{/if}} +
+
+ +
{{$date}}
+
{{$body}}
+
+
-- cgit v1.2.3 From 807471d2a5f1b53c616376bcb5f0cdcb361f20ce Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 7 Jul 2015 09:56:30 +0200 Subject: move if clause outside of the div --- view/tpl/page_display.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/tpl/page_display.tpl b/view/tpl/page_display.tpl index a4870d623..a320920c7 100755 --- a/view/tpl/page_display.tpl +++ b/view/tpl/page_display.tpl @@ -1,10 +1,10 @@
+ {{if $title}}
- {{if $title}}

{{$title}}

- {{/if}}
+ {{/if}}
{{$date}}
-- cgit v1.2.3 From 2d0d5876ba28df6cb923965bfc9984462b9c9d44 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 7 Jul 2015 10:23:39 +0200 Subject: more word wrap fixes --- view/theme/redbasic/css/style.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index fcc089cf0..089ce20d8 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1932,12 +1932,14 @@ nav .dropdown-menu { background-color: $comment_item_colour; border-bottom-left-radius: $radiuspx; border-bottom-right-radius: $radiuspx; + word-wrap: break-word; } .section-content-wrapper-np { background-color: $comment_item_colour; border-bottom-left-radius: $radiuspx; border-bottom-right-radius: $radiuspx; + word-wrap: break-word; } [id^="cloud-index-"]:hover td, -- cgit v1.2.3 From adfb4072e80695a253a9a92da2b1ebbdbc7f18bf Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 7 Jul 2015 12:13:15 +0200 Subject: various css fixes --- view/css/conversation.css | 4 ---- view/theme/redbasic/css/style.css | 4 ++-- view/theme/redbasic/schema/focus.css | 5 ++--- view/tpl/conv_item.tpl | 3 +-- view/tpl/conv_list.tpl | 3 +-- view/tpl/photo_item.tpl | 2 +- view/tpl/search_item.tpl | 2 +- 7 files changed, 8 insertions(+), 15 deletions(-) diff --git a/view/css/conversation.css b/view/css/conversation.css index bb6887d59..7d4930aac 100644 --- a/view/css/conversation.css +++ b/view/css/conversation.css @@ -196,10 +196,6 @@ a.wall-item-name-link { filter:alpha(opacity=100); } -.wall-item-wrapper-end { - clear: both; -} - .shared_header { margin-bottom: 20px; } diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 089ce20d8..716298845 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -741,8 +741,8 @@ a.rateme, div.rateme { } .wall-item-conv { - margin-top: 5px; - margin-bottom: 25px; + padding-top: 5px; + padding-bottom: 10px; } diff --git a/view/theme/redbasic/schema/focus.css b/view/theme/redbasic/schema/focus.css index 8d945a83e..3d64b8a7d 100644 --- a/view/theme/redbasic/schema/focus.css +++ b/view/theme/redbasic/schema/focus.css @@ -21,7 +21,6 @@ } .wall-item-conv { - margin-bottom: 10px; - margin-top: 10px; - margin-left: 10px; + padding-top: 10px; + padding-left: 10px; } diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index 27632d770..30a007bd6 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -165,8 +165,7 @@
-
-
+
{{if $item.toplevel}} {{foreach $item.children as $child}} diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl index cb2fb8959..5487d5937 100755 --- a/view/tpl/conv_list.tpl +++ b/view/tpl/conv_list.tpl @@ -179,8 +179,7 @@
-
-
+
{{if $item.comment_lastcollapsed}} diff --git a/view/tpl/photo_item.tpl b/view/tpl/photo_item.tpl index 16f9a76c2..2ea7aa9f3 100755 --- a/view/tpl/photo_item.tpl +++ b/view/tpl/photo_item.tpl @@ -21,7 +21,7 @@ {{$comment}} -
+
diff --git a/view/tpl/search_item.tpl b/view/tpl/search_item.tpl index dee33f1b3..256443b84 100755 --- a/view/tpl/search_item.tpl +++ b/view/tpl/search_item.tpl @@ -57,7 +57,7 @@ {{$item.conv.title}} {{/if}} -
+
-- cgit v1.2.3 From 18798b1d12c1716b395d89bf214fdd42f41fd2d1 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 7 Jul 2015 12:23:19 +0200 Subject: schema focus: adjust width to match photo width in /photos --- view/theme/redbasic/schema/focus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/theme/redbasic/schema/focus.php b/view/theme/redbasic/schema/focus.php index d93ee003e..4186c9f64 100644 --- a/view/theme/redbasic/schema/focus.php +++ b/view/theme/redbasic/schema/focus.php @@ -46,7 +46,7 @@ if (! $radius) if (! $shadow) $shadow = "0"; if (! $converse_width) - $converse_width = "676"; + $converse_width = "656"; if(! $top_photo) $top_photo = '48px'; if(! $comment_indent) -- cgit v1.2.3 From b50151d7bf5f05b4cac8afa2674605e195d12e9a Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 7 Jul 2015 14:46:47 +0200 Subject: make directory suggest work with directory options --- include/dir_fns.php | 8 ++++++-- include/widgets.php | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/dir_fns.php b/include/dir_fns.php index 77c78558c..046f05a50 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -113,6 +113,8 @@ function dir_sort_links() { $safe_mode = get_safemode_setting($observer); $globaldir = get_globaldir_setting($observer); + $suggest = ($_REQUEST['suggest']) ? '&suggest=' . $_REQUEST['suggest'] : ''; + // Build urls without order and pubforums so it's easy to tack on the changed value // Probably there's an easier way to do this @@ -126,18 +128,20 @@ function dir_sort_links() { $url = 'directory?f='; $tmp = array_merge($_GET,$_POST); + unset($tmp['suggest']); unset($tmp['order']); unset($tmp['q']); unset($tmp['f']); - $sorturl = $url . http_build_query($tmp); + $sorturl = $url . $suggest . http_build_query($tmp); $tmp = array_merge($_GET,$_POST); + unset($tmp['suggest']); unset($tmp['pubforums']); unset($tmp['global']); unset($tmp['safe']); unset($tmp['q']); unset($tmp['f']); - $forumsurl = $url . http_build_query($tmp); + $forumsurl = $url . $suggest . http_build_query($tmp); $o = replace_macros(get_markup_template('dir_sort_links.tpl'), array( '$header' => t('Directory Options'), diff --git a/include/widgets.php b/include/widgets.php index 4a9032a21..888e56733 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -132,7 +132,7 @@ function widget_suggestions($arr) { 'profile' => $rr['xchan_url'], 'name' => $rr['xchan_name'], 'photo' => $rr['xchan_photo_m'], - 'ignlnk' => z_root() . '/suggest?ignore=' . $rr['xchan_hash'], + 'ignlnk' => z_root() . '/directory?ignore=' . $rr['xchan_hash'], 'conntxt' => t('Connect'), 'connlnk' => $connlnk, 'ignore' => t('Ignore/Hide') -- cgit v1.2.3 From cc7eaa0d050cde57024eb7baff042513479ed0c4 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 7 Jul 2015 14:52:06 +0200 Subject: code style correction --- include/dir_fns.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/dir_fns.php b/include/dir_fns.php index 046f05a50..088c0ce96 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -113,8 +113,6 @@ function dir_sort_links() { $safe_mode = get_safemode_setting($observer); $globaldir = get_globaldir_setting($observer); - $suggest = ($_REQUEST['suggest']) ? '&suggest=' . $_REQUEST['suggest'] : ''; - // Build urls without order and pubforums so it's easy to tack on the changed value // Probably there's an easier way to do this @@ -123,8 +121,9 @@ function dir_sort_links() { if(! $directory_sort_order) $directory_sort_order = 'date'; - $current_order = (($_REQUEST['order']) ? $_REQUEST['order'] : $directory_sort_order); + $suggest = (($_REQUEST['suggest']) ? '&suggest=' . $_REQUEST['suggest'] : ''); + $url = 'directory?f='; $tmp = array_merge($_GET,$_POST); -- cgit v1.2.3 From 9c577e042292bd8227b40f9500d19eecd974a8e4 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 7 Jul 2015 21:41:37 +0200 Subject: make public forums only setting sticky and simplify function to get directory settings --- include/dir_fns.php | 42 +++++++++++++++--------------------------- include/taxonomy.php | 4 ++-- mod/directory.php | 27 +++++++++++++++++---------- 3 files changed, 34 insertions(+), 39 deletions(-) diff --git a/include/dir_fns.php b/include/dir_fns.php index 088c0ce96..e13c05100 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -72,33 +72,20 @@ function check_upstream_directory() { set_config('system', 'directory_server', ''); } -function get_globaldir_setting($observer) { - - if($observer) - $globaldir = get_xconfig($observer,'directory','globaldir'); - else - $globaldir = ((array_key_exists('globaldir',$_SESSION)) ? intval($_SESSION['globaldir']) : false); - - if($globaldir === false) - $globaldir = get_config('directory','globaldir'); - - return $globaldir; -} - -function get_safemode_setting($observer) { +function get_directory_settings($observer, $setting) { if ($observer) - $safe_mode = get_xconfig($observer,'directory','safe_mode'); + $ret = get_xconfig($observer, 'directory', $setting); else - $safe_mode = ((array_key_exists('safemode',$_SESSION)) ? intval($_SESSION['safemode']) : false); + $ret = ((array_key_exists($setting,$_SESSION)) ? intval($_SESSION[$setting]) : false); - if($safe_mode === false) - $safe_mode = get_config('directory','safe_mode'); + if($ret === false) + $ret = get_config('directory', $setting); - if($safe_mode === false) - $safe_mode = 1; + if($setting == 'safe_mode' && $ret === false) + $ret = 1; - return $safe_mode; + return $ret; } /** @@ -110,8 +97,9 @@ function dir_sort_links() { $observer = get_observer_hash(); - $safe_mode = get_safemode_setting($observer); - $globaldir = get_globaldir_setting($observer); + $safe_mode = get_directory_settings($observer, 'safemode'); + $globaldir = get_directory_settings($observer, 'globaldir'); + $pubforums = get_directory_settings($observer, 'pubforums'); // Build urls without order and pubforums so it's easy to tack on the changed value // Probably there's an easier way to do this @@ -128,6 +116,7 @@ function dir_sort_links() { $tmp = array_merge($_GET,$_POST); unset($tmp['suggest']); + unset($tmp['pubforums']); unset($tmp['order']); unset($tmp['q']); unset($tmp['f']); @@ -152,10 +141,9 @@ function dir_sort_links() { '$selected_sort' => $current_order, '$sorturl' => $sorturl, '$forumsurl' => $forumsurl, - '$safemode' => array('safemode', t('Safe Mode'),$safe_mode,'','',' onchange=\'window.location.href="' . $forumsurl . '&safe="+(this.checked ? 1 : 0)\''), - - '$pubforums' => array('pubforums', t('Public Forums Only'),(x($_REQUEST,'pubforums') ? $_REQUEST['pubforums'] : ''),'','',' onchange=\'window.location.href="' . $forumsurl . '&pubforums="+(this.checked ? 1 : 0)\''), - '$globaldir' => array('globaldir', t('This Website Only'), 1-intval($globaldir),'','',' onchange=\'window.location.href="' . $forumsurl . '&global="+(this.checked ? 0 : 1)\''), + '$safemode' => array('safemode', t('Safe Mode'),$safe_mode,'',array(t('No'), t('Yes')),' onchange=\'window.location.href="' . $forumsurl . '&safe="+(this.checked ? 1 : 0)\''), + '$pubforums' => array('pubforums', t('Public Forums Only'),$pubforums,'',array(t('No'), t('Yes')),' onchange=\'window.location.href="' . $forumsurl . '&pubforums="+(this.checked ? 1 : 0)\''), + '$globaldir' => array('globaldir', t('This Website Only'), 1-intval($globaldir),'',array(t('No'), t('Yes')),' onchange=\'window.location.href="' . $forumsurl . '&global="+(this.checked ? 0 : 1)\''), )); return $o; diff --git a/include/taxonomy.php b/include/taxonomy.php index fa540ac56..135843614 100644 --- a/include/taxonomy.php +++ b/include/taxonomy.php @@ -276,7 +276,7 @@ function dir_tagblock($link,$r) { $o = ''; $observer = get_observer_hash(); - if(! get_globaldir_setting($observer)) + if(! get_directory_settings($observer, 'globaldir')) return $o; @@ -407,4 +407,4 @@ function get_things($profile_hash,$uid) { //logger('things: ' . print_r($sorted_things,true)); return $sorted_things; -} \ No newline at end of file +} diff --git a/mod/directory.php b/mod/directory.php index 6d066a21b..6dea0e992 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -19,6 +19,7 @@ function directory_init(&$a) { $observer = get_observer_hash(); $global_changed = false; $safe_changed = false; + $pubforums_changed = false; if(array_key_exists('global',$_REQUEST)) { $globaldir = intval($_REQUEST['global']); @@ -28,7 +29,7 @@ function directory_init(&$a) { $_SESSION['globaldir'] = $globaldir; if($observer) set_xconfig($observer,'directory','globaldir',$globaldir); - } + } if(array_key_exists('safe',$_REQUEST)) { $safemode = intval($_REQUEST['safe']); @@ -37,9 +38,19 @@ function directory_init(&$a) { if($safe_changed) { $_SESSION['safemode'] = $safemode; if($observer) - set_xconfig($observer,'directory','safe_mode',$safemode); - } + set_xconfig($observer,'directory','safemode',$safemode); + } + + if(array_key_exists('pubforums',$_REQUEST)) { + $pubforums = intval($_REQUEST['pubforums']); + $pubforums_changed = true; + } + if($pubforums_changed) { + $_SESSION['pubforums'] = $pubforums; + if($observer) + set_xconfig($observer,'directory','pubforums',$pubforums); + } } function directory_content(&$a) { @@ -51,18 +62,14 @@ function directory_content(&$a) { $observer = get_observer_hash(); - $globaldir = get_globaldir_setting($observer); + $globaldir = get_directory_settings($observer, 'globaldir'); // override your personal global search pref if we're doing a navbar search of the directory if(intval($_REQUEST['navsearch'])) $globaldir = 1; - $safe_mode = get_safemode_setting($observer); + $safe_mode = get_directory_settings($observer, 'safemode'); - $pubforums = null; - if(array_key_exists('pubforums',$_REQUEST)) - $pubforums = intval($_REQUEST['pubforums']); - if(! $pubforums) - $pubforums = null; + $pubforums = get_directory_settings($observer, 'pubforums'); $o = ''; nav_set_selected('directory'); -- cgit v1.2.3 From f67d9d59afea32a90ea546163da25e36cc4ad9fb Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 7 Jul 2015 22:29:27 +0200 Subject: rename function get_directory_settings => get_directory_setting and move sort options to directory title bar --- include/dir_fns.php | 24 ++++-------------------- include/taxonomy.php | 2 +- mod/directory.php | 13 +++++++++---- view/tpl/dir_sort_links.tpl | 7 ------- view/tpl/directory_header.tpl | 12 ++++++++++++ 5 files changed, 26 insertions(+), 32 deletions(-) diff --git a/include/dir_fns.php b/include/dir_fns.php index e13c05100..29f33f46e 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -72,7 +72,7 @@ function check_upstream_directory() { set_config('system', 'directory_server', ''); } -function get_directory_settings($observer, $setting) { +function get_directory_setting($observer, $setting) { if ($observer) $ret = get_xconfig($observer, 'directory', $setting); @@ -97,14 +97,13 @@ function dir_sort_links() { $observer = get_observer_hash(); - $safe_mode = get_directory_settings($observer, 'safemode'); - $globaldir = get_directory_settings($observer, 'globaldir'); - $pubforums = get_directory_settings($observer, 'pubforums'); + $safe_mode = get_directory_setting($observer, 'safemode'); + $globaldir = get_directory_setting($observer, 'globaldir'); + $pubforums = get_directory_setting($observer, 'pubforums'); // Build urls without order and pubforums so it's easy to tack on the changed value // Probably there's an easier way to do this - $directory_sort_order = get_config('system','directory_sort_order'); if(! $directory_sort_order) $directory_sort_order = 'date'; @@ -114,14 +113,6 @@ function dir_sort_links() { $url = 'directory?f='; - $tmp = array_merge($_GET,$_POST); - unset($tmp['suggest']); - unset($tmp['pubforums']); - unset($tmp['order']); - unset($tmp['q']); - unset($tmp['f']); - $sorturl = $url . $suggest . http_build_query($tmp); - $tmp = array_merge($_GET,$_POST); unset($tmp['suggest']); unset($tmp['pubforums']); @@ -133,13 +124,6 @@ function dir_sort_links() { $o = replace_macros(get_markup_template('dir_sort_links.tpl'), array( '$header' => t('Directory Options'), - '$normal' => t('Alphabetic'), - '$reverse' => t('Reverse Alphabetic'), - '$date' => t('Newest to Oldest'), - '$reversedate' => t('Oldest to Newest'), - '$sort' => t('Sort'), - '$selected_sort' => $current_order, - '$sorturl' => $sorturl, '$forumsurl' => $forumsurl, '$safemode' => array('safemode', t('Safe Mode'),$safe_mode,'',array(t('No'), t('Yes')),' onchange=\'window.location.href="' . $forumsurl . '&safe="+(this.checked ? 1 : 0)\''), '$pubforums' => array('pubforums', t('Public Forums Only'),$pubforums,'',array(t('No'), t('Yes')),' onchange=\'window.location.href="' . $forumsurl . '&pubforums="+(this.checked ? 1 : 0)\''), diff --git a/include/taxonomy.php b/include/taxonomy.php index 135843614..a5da190d4 100644 --- a/include/taxonomy.php +++ b/include/taxonomy.php @@ -276,7 +276,7 @@ function dir_tagblock($link,$r) { $o = ''; $observer = get_observer_hash(); - if(! get_directory_settings($observer, 'globaldir')) + if(! get_directory_setting($observer, 'globaldir')) return $o; diff --git a/mod/directory.php b/mod/directory.php index 6dea0e992..ff892d381 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -62,14 +62,14 @@ function directory_content(&$a) { $observer = get_observer_hash(); - $globaldir = get_directory_settings($observer, 'globaldir'); + $globaldir = get_directory_setting($observer, 'globaldir'); // override your personal global search pref if we're doing a navbar search of the directory if(intval($_REQUEST['navsearch'])) $globaldir = 1; - $safe_mode = get_directory_settings($observer, 'safemode'); + $safe_mode = get_directory_setting($observer, 'safemode'); - $pubforums = get_directory_settings($observer, 'pubforums'); + $pubforums = get_directory_setting($observer, 'pubforums'); $o = ''; nav_set_selected('directory'); @@ -382,7 +382,12 @@ function directory_content(&$a) { '$entries' => $entries, '$dirlbl' => $suggest ? t('Channel Suggestions') : $dirtitle, '$submit' => t('Find'), - '$next' => alt_pager($a,$j['records'], t('next page'), t('previous page')) + '$next' => alt_pager($a,$j['records'], t('next page'), t('previous page')), + '$sort' => t('Sort options'), + '$normal' => t('Alphabetic'), + '$reverse' => t('Reverse Alphabetic'), + '$date' => t('Newest to Oldest'), + '$reversedate' => t('Oldest to Newest'), )); diff --git a/view/tpl/dir_sort_links.tpl b/view/tpl/dir_sort_links.tpl index 5cefe2f28..9346a7455 100644 --- a/view/tpl/dir_sort_links.tpl +++ b/view/tpl/dir_sort_links.tpl @@ -5,11 +5,4 @@ {{include file="field_checkbox.tpl" field=$globaldir}} {{include file="field_checkbox.tpl" field=$pubforums}} -{{$sort}}:
- diff --git a/view/tpl/directory_header.tpl b/view/tpl/directory_header.tpl index 26739efc3..25a9b8279 100755 --- a/view/tpl/directory_header.tpl +++ b/view/tpl/directory_header.tpl @@ -1,6 +1,18 @@
+

{{$dirlbl}}{{if $search}}: {{$safetxt}}{{/if}}

+
{{foreach $entries as $entry}} {{include file="direntry.tpl"}} -- cgit v1.2.3 From f6cf992aee86e69d1ea5790c22d4af40c266d79e Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 7 Jul 2015 22:48:01 +0200 Subject: fix sorting of channel suggestions --- include/dir_fns.php | 2 +- mod/directory.php | 1 + view/tpl/directory_header.tpl | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/dir_fns.php b/include/dir_fns.php index 29f33f46e..be8175d06 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -120,7 +120,7 @@ function dir_sort_links() { unset($tmp['safe']); unset($tmp['q']); unset($tmp['f']); - $forumsurl = $url . $suggest . http_build_query($tmp); + $forumsurl = $url . http_build_query($tmp) . $suggest; $o = replace_macros(get_markup_template('dir_sort_links.tpl'), array( '$header' => t('Directory Options'), diff --git a/mod/directory.php b/mod/directory.php index ff892d381..44d80cff1 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -388,6 +388,7 @@ function directory_content(&$a) { '$reverse' => t('Reverse Alphabetic'), '$date' => t('Newest to Oldest'), '$reversedate' => t('Oldest to Newest'), + '$suggest' => $suggest ? '&suggest=1' : '' )); diff --git a/view/tpl/directory_header.tpl b/view/tpl/directory_header.tpl index 25a9b8279..79598fc9a 100755 --- a/view/tpl/directory_header.tpl +++ b/view/tpl/directory_header.tpl @@ -5,10 +5,10 @@

{{$dirlbl}}{{if $search}}: {{$safetxt}}{{/if}}

-- cgit v1.2.3 From 78f0138270347d3e9621ba7b5cdffbc7fc34a48b Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 7 Jul 2015 16:48:36 -0700 Subject: version update --- version.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.inc b/version.inc index fe5a631ad..28c637e51 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2015-07-06.1085 +2015-07-07.1086 -- cgit v1.2.3 From e12d58a75cf0fa32e935caa9e53cb2db953d8409 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 8 Jul 2015 21:28:36 +0200 Subject: fix typo to make directory safe mode default to on work again --- include/dir_fns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dir_fns.php b/include/dir_fns.php index be8175d06..83073154a 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -82,7 +82,7 @@ function get_directory_setting($observer, $setting) { if($ret === false) $ret = get_config('directory', $setting); - if($setting == 'safe_mode' && $ret === false) + if($setting == 'safemode' && $ret === false) $ret = 1; return $ret; -- cgit v1.2.3 From 43354ab385cd5c7adcc86f591159f10201420aae Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 8 Jul 2015 18:05:38 -0700 Subject: inconsistent naming of block item types --- include/widgets.php | 2 +- mod/block.php | 4 ++-- mod/blocks.php | 4 ++-- mod/editblock.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/widgets.php b/include/widgets.php index d87a8c440..bafd9c7a2 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -903,7 +903,7 @@ function widget_random_block($arr) { item_type = %d $sql_options order by $randfunc limit 1", intval($channel_id), dbesc('%' . $contains . '%'), - intval(ITEM_TYPE_BUILDBLOCK) + intval(ITEM_TYPE_BLOCK) ); if($r) { diff --git a/mod/block.php b/mod/block.php index fb5645d8a..df3909629 100644 --- a/mod/block.php +++ b/mod/block.php @@ -53,7 +53,7 @@ function block_content(&$a) { item_type = %d $sql_options $revision limit 1", intval($u[0]['channel_id']), dbesc($page_id), - intval(ITEM_TYPE_BUILDBLOCK) + intval(ITEM_TYPE_BLOCK) ); if(! $r) { @@ -65,7 +65,7 @@ function block_content(&$a) { item_type = %d $revision limit 1", intval($u[0]['channel_id']), dbesc($page_id), - intval(ITEM_TYPE_BUILDBLOCK) + intval(ITEM_TYPE_BLOCK) ); if($x) { // Yes, it's there. You just aren't allowed to see it. diff --git a/mod/blocks.php b/mod/blocks.php index 95979a304..97cc5cd53 100644 --- a/mod/blocks.php +++ b/mod/blocks.php @@ -84,7 +84,7 @@ function blocks_content(&$a) { } $x = array( - 'webpage' => ITEM_TYPE_BUILDBLOCK, + 'webpage' => ITEM_TYPE_BLOCK, 'is_owner' => true, 'nickname' => $a->profile['channel_address'], 'lockstate' => (($channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'), @@ -110,7 +110,7 @@ function blocks_content(&$a) { $r = q("select iid, sid, mid, title, body, mimetype, created, edited from item_id left join item on item_id.iid = item.id where item_id.uid = %d and service = 'BUILDBLOCK' and item_type = %d order by item.created desc", intval($owner), - intval(ITEM_TYPE_BUILDBLOCK) + intval(ITEM_TYPE_BLOCK) ); $pages = null; diff --git a/mod/editblock.php b/mod/editblock.php index 9f9770e77..21d7cc537 100644 --- a/mod/editblock.php +++ b/mod/editblock.php @@ -136,7 +136,7 @@ function editblock_content(&$a) { $o .= replace_macros($tpl,array( '$return_path' => $rp, '$action' => 'item', - '$webpage' => ITEM_TYPE_BUILDBLOCK, + '$webpage' => ITEM_TYPE_BLOCK, '$share' => t('Edit'), '$bold' => t('Bold'), '$italic' => t('Italic'), -- cgit v1.2.3 From efa55437d4d14dd81d10a98e5d3201d27bcbfafb Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 9 Jul 2015 13:59:16 +0200 Subject: increase width of the aside area and make default profile image size 300x300 --- include/text.php | 2 +- mod/profile_photo.php | 4 ++-- view/css/widgets.css | 2 +- view/theme/redbasic/css/style.css | 7 ++++--- view/theme/redbasic/js/redbasic.js | 2 +- view/theme/redbasic/php/style.php | 2 +- view/tpl/cropbody.tpl | 4 ++-- 7 files changed, 12 insertions(+), 11 deletions(-) diff --git a/include/text.php b/include/text.php index 7101d76da..02a038ef4 100644 --- a/include/text.php +++ b/include/text.php @@ -807,7 +807,7 @@ function contact_block() { $shown = get_pconfig($a->profile['uid'],'system','display_friend_count'); if($shown === false) - $shown = 24; + $shown = 25; if($shown == 0) return; diff --git a/mod/profile_photo.php b/mod/profile_photo.php index 597b5f66d..c70e8fc94 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -135,7 +135,7 @@ function profile_photo_post(&$a) { $im = photo_factory($base_image['data'], $base_image['type']); if($im->is_valid()) { - $im->cropImage(175,$srcX,$srcY,$srcW,$srcH); + $im->cropImage(300,$srcX,$srcY,$srcW,$srcH); $aid = get_account_id(); @@ -411,7 +411,7 @@ function profile_photo_crop_ui_head(&$a, $ph){ $width = $ph->getWidth(); $height = $ph->getHeight(); - if($width < 175 || $height < 175) { + if($width < 300 || $height < 300) { $ph->scaleImageUp(200); $width = $ph->getWidth(); $height = $ph->getHeight(); diff --git a/view/css/widgets.css b/view/css/widgets.css index 63c380c75..0cfe98362 100644 --- a/view/css/widgets.css +++ b/view/css/widgets.css @@ -39,7 +39,7 @@ padding: 5px; width: 100%; resize: vertical; - height: 150px; + height: 245px; } /* saved searches */ diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 716298845..c2eccc782 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -406,9 +406,10 @@ footer { #profile-photo-wrapper img { + width: 100%; + max-width: 300px; + height: auto; padding: 10px; - width: 197px; - height: 197px; } #profile-photo-wrapper { @@ -571,7 +572,7 @@ footer { } .photo { - border: 1px solid #AAAAAA; + border: 1px solid #ccc; } .photo-top-photo, .photo-album-photo { diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 68190778c..9408f5a6c 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -7,7 +7,7 @@ $(document).ready(function() { if( $('#css3-calc').width() == 10) { $(window).resize(function() { if($(window).width() < 767) { - $('main').css('width', $(window).width() + 231 ); + $('main').css('width', $(window).width() + 279 ); } else { $('main').css('width', '100%' ); } diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index 6e68d38d5..64ddcce7e 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -154,7 +154,7 @@ if(file_exists('view/theme/redbasic/css/style.css')) { $x = file_get_contents('view/theme/redbasic/css/style.css'); - $aside_width = 231; + $aside_width = 279; // left aside and right aside are is 231px + converse width if($converse_center) { diff --git a/view/tpl/cropbody.tpl b/view/tpl/cropbody.tpl index da5b1e859..4794c0b83 100755 --- a/view/tpl/cropbody.tpl +++ b/view/tpl/cropbody.tpl @@ -25,8 +25,8 @@ 'croppa', { previewWrap: 'previewWrap', - minWidth: 175, - minHeight: 175, + minWidth: 300, + minHeight: 300, maxWidth: 640, maxHeight: 640, ratioDim: { x: 100, y:100 }, -- cgit v1.2.3 From 59cddef032e3216d82694da6bab3eb3e8ae48203 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 9 Jul 2015 14:05:35 +0200 Subject: remove padding --- view/theme/redbasic/css/style.css | 1 - 1 file changed, 1 deletion(-) diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index c2eccc782..449c3a22a 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -409,7 +409,6 @@ footer { width: 100%; max-width: 300px; height: auto; - padding: 10px; } #profile-photo-wrapper { -- cgit v1.2.3 From 115c18353ec73c924be7ceadf8ba2a1fd24f05e3 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 9 Jul 2015 14:44:24 +0200 Subject: move profile image up and refine the aside width --- view/css/widgets.css | 2 +- view/theme/redbasic/css/style.css | 11 ++++++----- view/theme/redbasic/js/redbasic.js | 2 +- view/theme/redbasic/php/style.php | 2 +- view/tpl/profile_vcard.tpl | 3 +-- view/tpl/xchan_vcard.tpl | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/view/css/widgets.css b/view/css/widgets.css index 0cfe98362..5b6e8aeb9 100644 --- a/view/css/widgets.css +++ b/view/css/widgets.css @@ -39,7 +39,7 @@ padding: 5px; width: 100%; resize: vertical; - height: 245px; + height: 250px; } /* saved searches */ diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 449c3a22a..1bfd11f6c 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -412,7 +412,8 @@ footer { } #profile-photo-wrapper { - margin-top: 10px; + margin-top: -10px; + margin-bottom: 10px; } @@ -704,8 +705,8 @@ a.rateme, div.rateme { .contact-block-div { float: left; - width: 49px; - height: 49px; + width: 50px; + height: 50px; } .contact-block-textdiv { float: left; @@ -720,8 +721,8 @@ a.rateme, div.rateme { float: left; } .contact-block-img { - width:47px; - height:47px; + width:48px; + height:48px; } #tag-remove { diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index 9408f5a6c..ef3fa455c 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -7,7 +7,7 @@ $(document).ready(function() { if( $('#css3-calc').width() == 10) { $(window).resize(function() { if($(window).width() < 767) { - $('main').css('width', $(window).width() + 279 ); + $('main').css('width', $(window).width() + 284 ); } else { $('main').css('width', '100%' ); } diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php index 64ddcce7e..8dc349994 100644 --- a/view/theme/redbasic/php/style.php +++ b/view/theme/redbasic/php/style.php @@ -154,7 +154,7 @@ if(file_exists('view/theme/redbasic/css/style.css')) { $x = file_get_contents('view/theme/redbasic/css/style.css'); - $aside_width = 279; + $aside_width = 284; // left aside and right aside are is 231px + converse width if($converse_center) { diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl index 2964d9c4b..9eac48c6d 100755 --- a/view/tpl/profile_vcard.tpl +++ b/view/tpl/profile_vcard.tpl @@ -1,5 +1,5 @@
- +
{{$profile.name}}
{{if $profile.edit}}