more work on layout editors

This commit is contained in:
Mario Vavti 2016-04-30 22:21:00 +02:00
parent c96b20c559
commit d43c7603bf
2 changed files with 7 additions and 5 deletions

View File

@ -113,17 +113,17 @@ class Editlayout extends \Zotlabs\Web\Controller {
'button' => t('Edit'), 'button' => t('Edit'),
'hide_voting' => true, 'hide_voting' => true,
'hide_future' => true, 'hide_future' => true,
'hide_location' => true, 'hide_expire' => true,
'hide_preview' => true, 'hide_preview' => true,
'ptyp' => $itm[0]['obj_type'], 'ptyp' => $itm[0]['obj_type'],
'body' => undo_post_tagging($itm[0]['body']), 'body' => undo_post_tagging($itm[0]['body']),
'post_id' => $post_id, 'post_id' => $post_id,
'title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'), 'title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'),
'pagetitle' => $layout_title, 'pagetitle' => $layout_title,
'ptlabel' => t('Layout Name'),
'placeholdertitle' => t('Layout Description (Optional)'),
'showacl' => false, 'showacl' => false,
'profile_uid' => intval($owner), 'profile_uid' => intval($owner),
'catsenabled' => $catsenabled,
'hide_expire' => true,
); );
$editor = status_editor($a, $x); $editor = status_editor($a, $x);

View File

@ -118,10 +118,12 @@ class Layouts extends \Zotlabs\Web\Controller {
'webpage' => ITEM_TYPE_PDL, 'webpage' => ITEM_TYPE_PDL,
'is_owner' => true, 'is_owner' => true,
'nickname' => \App::$profile['channel_address'], 'nickname' => \App::$profile['channel_address'],
'bang' => '',
'showacl' => false, 'showacl' => false,
'visitor' => false, 'visitor' => false,
'nopreview' => 1, 'hide_voting' => true,
'hide_future' => true,
'hide_expire' => true,
'hide_preview'=> true,
'ptlabel' => t('Layout Name'), 'ptlabel' => t('Layout Name'),
'profile_uid' => intval($owner), 'profile_uid' => intval($owner),
'expanded' => true, 'expanded' => true,