From 701ae2981df31b277e3f92b56fa47778572366fb Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 12 Sep 2014 01:59:31 -0700 Subject: [PATCH 01/36] doc updates --- doc/html/service__limits_8php.html | 137 +++++++++++++++++++++++++++++ doc/html/service__limits_8php.js | 4 + 2 files changed, 141 insertions(+) create mode 100644 doc/html/service__limits_8php.html create mode 100644 doc/html/service__limits_8php.js diff --git a/doc/html/service__limits_8php.html b/doc/html/service__limits_8php.html new file mode 100644 index 000000000..808e3ca9a --- /dev/null +++ b/doc/html/service__limits_8php.html @@ -0,0 +1,137 @@ + + + + + + +The Red Matrix: mod/service_limits.php File Reference + + + + + + + + + + + + + +
+
+ + + + + + + +
+
The Red Matrix +
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
service_limits.php File Reference
+
+
+ + + + +

+Functions

 service_limits_content (&$a)
 
+

Function Documentation

+ +
+
+ + + + + + + + +
service_limits_content ($a)
+
+ +
+
+
+
+ diff --git a/doc/html/service__limits_8php.js b/doc/html/service__limits_8php.js new file mode 100644 index 000000000..4ab8d3a33 --- /dev/null +++ b/doc/html/service__limits_8php.js @@ -0,0 +1,4 @@ +var service__limits_8php = +[ + [ "service_limits_content", "service__limits_8php.html#a653424aac63c5cd05ba70c3c77bf7f8a", null ] +]; \ No newline at end of file From e0047446964cc038e68df824755af8bc57359ecf Mon Sep 17 00:00:00 2001 From: Jeroen Date: Fri, 12 Sep 2014 14:31:02 +0000 Subject: [PATCH 02/36] Fixed. Thanks to Thomas. --- mod/settings.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mod/settings.php b/mod/settings.php index 5038a63c4..a31814bf0 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -589,10 +589,9 @@ function settings_content(&$a) { if((argc() > 1) && (argv(1) === 'featured')) { $settings_addons = ""; - $r = q("SELECT * FROM `hook` WHERE `hook` = 'plugin_settings' "); - // FIXME: This is always 0, even if there are plugin settings on this page - // if(! count($r)) - // $settings_addons = t('No feature settings configured'); + $r = q("SELECT * FROM `hook` WHERE `hook` = 'feature_settings' "); + if(! count($r)) + $settings_addons = t('No feature settings configured'); call_hooks('feature_settings', $settings_addons); From e1cb4b28331f6228dd81c1ee5c7753cb5057b77a Mon Sep 17 00:00:00 2001 From: Jeroen Date: Fri, 12 Sep 2014 18:18:46 +0000 Subject: [PATCH 03/36] expert_mode > expert --- mod/webpages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/webpages.php b/mod/webpages.php index 1b906a97f..efaf3c4bf 100644 --- a/mod/webpages.php +++ b/mod/webpages.php @@ -46,7 +46,7 @@ function webpages_content(&$a) { // } - if(feature_enabled($owner,'expert_mode')) { + if(feature_enabled($owner,'expert')) { $mimetype = (($_REQUEST['mimetype']) ? $_REQUEST['mimetype'] : get_pconfig($owner,'system','page_mimetype')); if(! $mimetype) $mimetype = 'choose'; From 59c537b06dbd905a4cc73b82d509c4cb0854fc05 Mon Sep 17 00:00:00 2001 From: Jeroen Date: Fri, 12 Sep 2014 18:41:35 +0000 Subject: [PATCH 04/36] H1-H6 simplified (less font sizes), rem --- view/theme/redbasic/css/style.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 4062c259c..196c1f8b0 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -2268,6 +2268,18 @@ blockquote { font-size: 1em; } +h1, h2 { + font-size: 1.15rem; +} + +h3, h4 { + font-size: 0.9rem; +} + +h5, h6 { + font-size: 0.75rem; +} + .dropdown-menu { font-size: $body_font_size; border-radius: $radiuspx; From 11d3ef6176b6a16353e4733657621c98656848b4 Mon Sep 17 00:00:00 2001 From: Jeroen Date: Fri, 12 Sep 2014 18:55:53 +0000 Subject: [PATCH 05/36] This is even better. Adapts better to Red user settings. --- view/theme/redbasic/css/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 196c1f8b0..df95e48b8 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -2273,11 +2273,11 @@ h1, h2 { } h3, h4 { - font-size: 0.9rem; + font-size: $font_size; } h5, h6 { - font-size: 0.75rem; + font-size: $body_font_size; } .dropdown-menu { From bd2139d16addf42b33f5f5cf90516022273bc8b6 Mon Sep 17 00:00:00 2001 From: marijus Date: Fri, 12 Sep 2014 21:04:43 +0200 Subject: [PATCH 06/36] do not load next page if justifiedGallery() is not ready yet --- mod/photos.php | 4 ++-- view/js/main.js | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mod/photos.php b/mod/photos.php index f2df894c0..c11d04192 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -635,7 +635,7 @@ function photos_content(&$a) { ); if(count($r)) { $a->set_pager_total(count($r)); - $a->set_pager_itemspage(60); + $a->set_pager_itemspage(5); } if($_GET['order'] === 'posted') @@ -1168,7 +1168,7 @@ function photos_content(&$a) { ); if(count($r)) { $a->set_pager_total(count($r)); - $a->set_pager_itemspage(60); + $a->set_pager_itemspage(5); } $r = q("SELECT `resource_id`, `id`, `filename`, type, `album`, max(`scale`) AS `scale` FROM `photo` diff --git a/view/js/main.js b/view/js/main.js index e263fd116..56c60bd6e 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -705,6 +705,7 @@ function updateConvItems(mode,data) { } function justifyPhotos(bParam_page) { + justifiedGalleryActive = true; $('#photo-album-contents-' + bParam_page).justifiedGallery({ lastRow : 'nojustify', captions: true, @@ -718,7 +719,7 @@ function updateConvItems(mode,data) { 'lt640': '', 'lt1024': '' } - }); + }).on('jg.complete', function(e){ justifiedGalleryActive = false; }); } function notify_popup_loader(notifyType) { @@ -1136,7 +1137,7 @@ $(window).scroll(function () { } if($(window).scrollTop() + $(window).height() == $(document).height()) { - if((pageHasMoreContent) && (! loadingPage)) { + if((pageHasMoreContent) && (! loadingPage) && (! justifiedGalleryActive)) { $('#more').hide(); $('#no-more').hide(); From 12900129bb8b4cd83d876ff22a2848e6a89acbc8 Mon Sep 17 00:00:00 2001 From: marijus Date: Fri, 12 Sep 2014 21:06:37 +0200 Subject: [PATCH 07/36] reset testing values back to default --- mod/photos.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/photos.php b/mod/photos.php index c11d04192..f2df894c0 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -635,7 +635,7 @@ function photos_content(&$a) { ); if(count($r)) { $a->set_pager_total(count($r)); - $a->set_pager_itemspage(5); + $a->set_pager_itemspage(60); } if($_GET['order'] === 'posted') @@ -1168,7 +1168,7 @@ function photos_content(&$a) { ); if(count($r)) { $a->set_pager_total(count($r)); - $a->set_pager_itemspage(5); + $a->set_pager_itemspage(60); } $r = q("SELECT `resource_id`, `id`, `filename`, type, `album`, max(`scale`) AS `scale` FROM `photo` From d4e7a71d1e146f0dd521a0cc060686801966cb40 Mon Sep 17 00:00:00 2001 From: jeroenpraat Date: Fri, 12 Sep 2014 21:21:16 +0200 Subject: [PATCH 08/36] Issue #590: Linked conversation titles to source. If a theme wants to have it different, it can always copy this .tpl file to ../theme/tpl/. I didn't commit this directly, because it's a little bit controversial. But I like it! --- view/tpl/conv_item.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index d7ed7d0f4..be7789e6b 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -15,7 +15,7 @@
{{if $item.title}} -

{{$item.title}}

+ {{/if}} {{if $item.lock}} {{if $item.title}} - +
+

{{if $item.title_tosource}}{{if $item.plink}}{{/if}}{{/if}}{{$item.title}}{{if $item.title_tosource}}{{if $item.plink}}{{/if}}{{/if}}

+
{{/if}} {{if $item.lock}}