From 615bf237330519f0d21fccfe6a8f69b5bb4c0f69 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 2 Sep 2013 20:25:33 -0700 Subject: add a layout selector --- mod/webpages.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/webpages.php') diff --git a/mod/webpages.php b/mod/webpages.php index 559b176fc..d87bd4a86 100644 --- a/mod/webpages.php +++ b/mod/webpages.php @@ -45,6 +45,11 @@ function webpages_content(&$a) { if(! $mimetype) $mimetype = 'choose'; + $layout = get_config('system','page_layout'); + if(! $layout) + $layout = 'choose'; + + // Create a status editor (for now - we'll need a WYSIWYG eventually) to create pages // 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'); @@ -57,6 +62,7 @@ require_once ('include/conversation.php'); 'visitor' => 'block', 'profile_uid' => intval($owner), 'mimetype' => $mimetype, + 'layout' => $layout, ); $o .= status_editor($a,$x); -- cgit v1.2.3