add layouts and editlayout and rework the page logic in mod/item

This commit is contained in:
friendica
2013-09-01 18:22:31 -07:00
parent de3345f5f3
commit cbab62c95e
5 changed files with 227 additions and 15 deletions

View File

@@ -45,7 +45,7 @@ function webpages_content(&$a) {
// Nickname is set to the observers xchan, and profile_uid to the owners. This lets you post pages at other people's channels.
require_once ('include/conversation.php');
$x = array(
'webpage' => 1,
'webpage' => ITEM_WEBPAGE,
'is_owner' => true,
'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'),