diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-04-22 10:31:36 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-04-22 10:31:36 +0200 |
commit | b4dff3a9ff16811ea0310f5dbf4d7559c97835b0 (patch) | |
tree | 420f90afab7724b60128e2e8df5233b17e3a4a05 /mod/layouts.php | |
parent | e807231e9192ff43ff2ee4ec96260dbb44a25cd2 (diff) | |
download | volse-hubzilla-b4dff3a9ff16811ea0310f5dbf4d7559c97835b0.tar.gz volse-hubzilla-b4dff3a9ff16811ea0310f5dbf4d7559c97835b0.tar.bz2 volse-hubzilla-b4dff3a9ff16811ea0310f5dbf4d7559c97835b0.zip |
provide headings for blocks and layouts
Diffstat (limited to 'mod/layouts.php')
-rw-r--r-- | mod/layouts.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/mod/layouts.php b/mod/layouts.php index 4640c6690..04d81f91e 100644 --- a/mod/layouts.php +++ b/mod/layouts.php @@ -112,7 +112,7 @@ function layouts_content(&$a) { 'id' => 'layout-help-tab', )); - $o .= replace_macros(get_markup_template('common_tabs.tpl'),array('$tabs' => $tabs)); + //$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 @@ -123,13 +123,15 @@ function layouts_content(&$a) { 'webpage' => ITEM_PDL, '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'), + //do we need that at this place? + //'lockstate' => (($channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'), 'bang' => '', 'showacl' => false, 'visitor' => false, 'nopreview' => 1, 'ptlabel' => t('Layout Name'), 'profile_uid' => intval($owner), + 'expanded' => true ); if($_REQUEST['title']) @@ -140,7 +142,7 @@ function layouts_content(&$a) { $x['pagetitle'] = $_REQUEST['pagetitle']; - $o .= status_editor($a,$x); + $editor = status_editor($a,$x); $r = q("select iid, sid, mid from item_id left join item on item.id = item_id.iid where item_id.uid = %d and service = 'PDL' order by sid asc", @@ -164,14 +166,16 @@ function layouts_content(&$a) { $url = z_root() . '/editlayout/' . $which; $o .= replace_macros(get_markup_template('layoutlist.tpl'), array( + '$title' => t('Layouts'), + '$create' => t('Create'), + '$help' => array('text' => t('Help'), 'url' => 'help/Comanche', 'title' => t('Comanche page description language help')), + '$editor' => $editor, '$baseurl' => $url, '$edit' => t('Edit'), '$share' => t('Share'), '$pages' => $pages, '$channel' => $which, '$view' => t('View'), - '$preview' => '1', - )); return $o; |