diff options
author | friendica <info@friendica.com> | 2013-09-02 20:25:33 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-09-02 20:25:33 -0700 |
commit | 615bf237330519f0d21fccfe6a8f69b5bb4c0f69 (patch) | |
tree | 7ade1a37899df8db4afb308f9f563cd8e21ce19f /include/conversation.php | |
parent | 1a7bb1fb75084fbcd4d81c8c24820631e3df4d64 (diff) | |
download | volse-hubzilla-615bf237330519f0d21fccfe6a8f69b5bb4c0f69.tar.gz volse-hubzilla-615bf237330519f0d21fccfe6a8f69b5bb4c0f69.tar.bz2 volse-hubzilla-615bf237330519f0d21fccfe6a8f69b5bb4c0f69.zip |
add a layout selector
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php index 43de9fc8d..45a744dd8 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1023,7 +1023,18 @@ function status_editor($a,$x,$popup=false) { else $mimeselect = '<input type="hidden" name="mimetype" value="' . $x['mimetype'] . '" />'; } + + $layoutselect = ''; + if(array_key_exists('layout',$x) && $x['layout']) { + if($x['layout'] === 'choose') { + $layoutselect = layout_select($x['profile_uid']); + } + else + $layoutselect = '<input type="hidden" name="layout_mid" value="' . $x['layout'] . '" />'; + } + + $webpage = ((x($x,'webpage')) ? $x['webpage'] : ''); $tpl = get_markup_template('jot-header.tpl'); @@ -1094,6 +1105,7 @@ function status_editor($a,$x,$popup=false) { '$lockstate' => $x['lockstate'], '$acl' => $x['acl'], '$mimeselect' => $mimeselect, + '$layoutselect' => $layoutselect, '$showacl' => ((array_key_exists('showacl',$x)) ? $x['showacl'] : 'yes'), '$bang' => $x['bang'], '$profile_uid' => $x['profile_uid'], |