From 1380bee82caad1dce6ffda7c35cb4ce3e94911f2 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 28 Oct 2013 17:48:42 -0700 Subject: Comanche documentation and some cleanup of layout page (including link to doco) and a few other webpage related cleanups --- mod/blocks.php | 1 + mod/layouts.php | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/blocks.php b/mod/blocks.php index 170d37256..4604790c3 100644 --- a/mod/blocks.php +++ b/mod/blocks.php @@ -62,6 +62,7 @@ require_once ('include/conversation.php'); 'bang' => (($group || $cid) ? '!' : ''), 'visitor' => 'block', 'mimetype' => 'choose', + 'ptlabel' => t('Block Name'), 'profile_uid' => intval($owner), ); diff --git a/mod/layouts.php b/mod/layouts.php index cd6e61f88..b1f53d4d8 100644 --- a/mod/layouts.php +++ b/mod/layouts.php @@ -47,6 +47,17 @@ function layouts_content(&$a) { $a->set_widget('design',design_tools()); } + $tabs = array( + array( + 'label' => t('Layout Help'), + 'url' => 'help/Comanche', + 'sel' => '', + 'title' => t('Help with this feature'), + 'id' => 'layout-help-tab', + )); + + + $o .= replace_macros(get_markup_template('common_tabs.tpl'),array('$tabs' => $tabs)); // Create a status editor (for now - we'll need a WYSIWYG eventually) to create pages @@ -58,7 +69,9 @@ require_once ('include/conversation.php'); 'nickname' => $a->profile['channel_address'], 'lockstate' => (($group || $cid || $channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'), 'bang' => (($group || $cid) ? '!' : ''), - 'visitor' => 'block', + 'visitor' => 'none', + 'nopreview' => 1, + 'ptlabel' => t('Layout Name'), 'profile_uid' => intval($owner), ); -- cgit v1.2.3