aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-02 20:25:33 -0700
committerfriendica <info@friendica.com>2013-09-02 20:25:33 -0700
commit615bf237330519f0d21fccfe6a8f69b5bb4c0f69 (patch)
tree7ade1a37899df8db4afb308f9f563cd8e21ce19f /mod
parent1a7bb1fb75084fbcd4d81c8c24820631e3df4d64 (diff)
downloadvolse-hubzilla-615bf237330519f0d21fccfe6a8f69b5bb4c0f69.tar.gz
volse-hubzilla-615bf237330519f0d21fccfe6a8f69b5bb4c0f69.tar.bz2
volse-hubzilla-615bf237330519f0d21fccfe6a8f69b5bb4c0f69.zip
add a layout selector
Diffstat (limited to 'mod')
-rw-r--r--mod/webpages.php6
1 files changed, 6 insertions, 0 deletions
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);