From f987fc3e6fcd4cda0bfe2a92d7b4b04e79159e89 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 29 Apr 2015 16:33:03 +0200 Subject: adjust placeholder naming --- mod/editlayout.php | 3 ++- mod/layouts.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mod/editlayout.php b/mod/editlayout.php index 5c9b62cbb..706720667 100644 --- a/mod/editlayout.php +++ b/mod/editlayout.php @@ -161,8 +161,9 @@ function editlayout_content(&$a) { '$public' => t('Public post'), '$jotnets' => $jotnets, '$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'), - '$placeholdertitle' => t('Title (optional)'), + '$placeholdertitle' => t('Layout Description (Optional)'), '$pagetitle' => $layout_title, + '$placeholdpagetitle' => t('Layout Name'), '$category' => '', '$placeholdercategory' => t('Categories (optional, comma-separated list)'), '$emtitle' => t('Example: bob@example.com, mary@example.com'), diff --git a/mod/layouts.php b/mod/layouts.php index b1e4cd345..1d33ba845 100644 --- a/mod/layouts.php +++ b/mod/layouts.php @@ -121,7 +121,7 @@ function layouts_content(&$a) { 'ptlabel' => t('Layout Name'), 'profile_uid' => intval($owner), 'expanded' => true, - 'placeholdertitle' => t('Layout Description') + 'placeholdertitle' => t('Layout Description (Optional)') ); if($_REQUEST['title']) -- cgit v1.2.3 From e56b8fdfaf0c7d4ad1d363639efac7863fe21f93 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 29 Apr 2015 16:45:05 +0200 Subject: fix $noloc state in mod editwebpages --- mod/editwebpage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/editwebpage.php b/mod/editwebpage.php index a1918741b..cdf5d8c20 100644 --- a/mod/editwebpage.php +++ b/mod/editwebpage.php @@ -188,7 +188,7 @@ function editwebpage_content(&$a) { '$video' => t('Insert Vorbis [.ogg] video'), '$audio' => t('Insert Vorbis [.ogg] audio'), '$setloc' => t('Set your location'), - '$noloc' => t('Clear browser location'), + '$noloc' => ((get_pconfig($uid, 'system', 'use_browser_location')) ? t('Clear browser location') : ''), '$wait' => t('Please wait'), '$permset' => t('Permission settings'), '$ptyp' => $itm[0]['type'], -- cgit v1.2.3 From 310d1229010c14487eaeaa70541f9bf96c60627a Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 29 Apr 2015 21:36:53 +0200 Subject: disable voting in blocks, layouts and webpages --- include/conversation.php | 2 ++ mod/blocks.php | 1 + mod/layouts.php | 3 ++- mod/webpages.php | 3 ++- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 8c9029a43..fb012667e 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1095,6 +1095,8 @@ function status_editor($a, $x, $popup = false) { // $plaintext = false; $voting = feature_enabled(local_channel(), 'consensus_tools'); + if(x($x, 'novoting')) + $voting = false; $mimeselect = ''; if(array_key_exists('mimetype', $x) && $x['mimetype']) { diff --git a/mod/blocks.php b/mod/blocks.php index 23a66f8d9..56da9caf7 100644 --- a/mod/blocks.php +++ b/mod/blocks.php @@ -95,6 +95,7 @@ function blocks_content(&$a) { 'ptlabel' => t('Block Name'), 'profile_uid' => intval($owner), 'expanded' => true, + 'novoting' => true ); if($_REQUEST['title']) diff --git a/mod/layouts.php b/mod/layouts.php index 1d33ba845..2e45362ba 100644 --- a/mod/layouts.php +++ b/mod/layouts.php @@ -121,7 +121,8 @@ function layouts_content(&$a) { 'ptlabel' => t('Layout Name'), 'profile_uid' => intval($owner), 'expanded' => true, - 'placeholdertitle' => t('Layout Description (Optional)') + 'placeholdertitle' => t('Layout Description (Optional)'), + 'novoting' => true ); if($_REQUEST['title']) diff --git a/mod/webpages.php b/mod/webpages.php index 24d7b88b3..859c93fde 100644 --- a/mod/webpages.php +++ b/mod/webpages.php @@ -113,7 +113,8 @@ function webpages_content(&$a) { 'profile_uid' => intval($owner), 'mimetype' => $mimetype, 'layout' => $layout, - 'expanded' => true + 'expanded' => true, + 'novoting' => true ); if($_REQUEST['title']) -- cgit v1.2.3 From 2376d2140ab6eeb8a44d7582a52978520844e229 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 29 Apr 2015 21:43:41 +0200 Subject: fix block view --- view/tpl/blocklist.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/tpl/blocklist.tpl b/view/tpl/blocklist.tpl index f653ef59d..85e4865ea 100644 --- a/view/tpl/blocklist.tpl +++ b/view/tpl/blocklist.tpl @@ -29,7 +29,7 @@ {{if $view}} - {{$item.name}} + {{$item.name}} {{else}} {{$item.name}} {{/if}} -- cgit v1.2.3 From e8d2dd7204b2ae80819905075de1a036c2be9aa6 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 30 Apr 2015 18:18:46 +0200 Subject: document [var=wrap]none[/var] for block elements --- doc/Comanche.md | 4 ++++ doc/comanche.bb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/doc/Comanche.md b/doc/Comanche.md index 56bf68457..147988938 100644 --- a/doc/Comanche.md +++ b/doc/Comanche.md @@ -88,6 +88,10 @@ This places the menu called "mymenu" at this location on the page, which must be This places a block named "contributors" in this region. + [block][var=wrap]none[/var]contributors[/block] + +The variable [var=wrap]none[/var] in a block removes the wrapping div element from the block. + **Widgets** diff --git a/doc/comanche.bb b/doc/comanche.bb index 19a74833e..3afe14489 100644 --- a/doc/comanche.bb +++ b/doc/comanche.bb @@ -108,6 +108,10 @@ This places the menu called "mymenu" at this location on the page, whi [/code] This places a block named "contributors" in this region. +[code] + [block][var=wrap]none[/var]contributors[/block] +[/code] +The variable [var=wrap]none[/var] in a block removes the wrapping div element from the block. [b]Widgets[/b] -- cgit v1.2.3