aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editlayout.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-07-10 13:16:45 +0200
committerMario Vavti <mario@mariovavti.com>2015-07-10 13:16:45 +0200
commitfee607db56f9e87320ce2644ba61ca49266ea7ab (patch)
treeabef5f2fce4f7d4b57146374e5953d10f26ccb44 /mod/editlayout.php
parent1554b5a2eea889284ed2e13111d72029dfc96963 (diff)
downloadvolse-hubzilla-fee607db56f9e87320ce2644ba61ca49266ea7ab.tar.gz
volse-hubzilla-fee607db56f9e87320ce2644ba61ca49266ea7ab.tar.bz2
volse-hubzilla-fee607db56f9e87320ce2644ba61ca49266ea7ab.zip
more webpages - generic-content-wrapper fixes
Diffstat (limited to 'mod/editlayout.php')
-rw-r--r--mod/editlayout.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/mod/editlayout.php b/mod/editlayout.php
index 8ab5aab22..a39611a58 100644
--- a/mod/editlayout.php
+++ b/mod/editlayout.php
@@ -101,12 +101,6 @@ function editlayout_content(&$a) {
$layout_title = $item_id[0]['sid'];
$plaintext = true;
-
- $o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
- '$title' => t('Edit Layout'),
- '$delete' => ((($itm[0]['author_xchan'] === $ob_hash) || ($itm[0]['owner_xchan'] === $ob_hash)) ? t('Delete') : false),
- '$id' => $itm[0]['id']
- ));
$a->page['htmlhead'] .= replace_macros(get_markup_template('jot-header.tpl'), array(
'$baseurl' => $a->get_baseurl(),
@@ -132,7 +126,7 @@ function editlayout_content(&$a) {
$rp = 'layouts/' . $which;
- $o .= replace_macros($tpl,array(
+ $editor = replace_macros($tpl,array(
'$return_path' => $rp,
'$action' => 'item',
'$webpage' => ITEM_PDL,
@@ -178,6 +172,14 @@ function editlayout_content(&$a) {
'$expires' => t('Set expiration date'),
));
+
+ $o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
+ '$title' => t('Edit Layout'),
+ '$delete' => ((($itm[0]['author_xchan'] === $ob_hash) || ($itm[0]['owner_xchan'] === $ob_hash)) ? t('Delete') : false),
+ '$id' => $itm[0]['id'],
+ '$editor' => $editor
+ ));
+
return $o;
}