aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editlayout.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-06 04:07:43 -0700
committerfriendica <info@friendica.com>2013-09-06 04:07:43 -0700
commitf2f3372aa9fd6ce5e121f52359bc4a05a79592d1 (patch)
treed739362738216b2a0fc5210c8244162118d03be2 /mod/editlayout.php
parentc3d535151538ad62a69f16bb8dfef50f47752341 (diff)
downloadvolse-hubzilla-f2f3372aa9fd6ce5e121f52359bc4a05a79592d1.tar.gz
volse-hubzilla-f2f3372aa9fd6ce5e121f52359bc4a05a79592d1.tar.bz2
volse-hubzilla-f2f3372aa9fd6ce5e121f52359bc4a05a79592d1.zip
provide ability to delete webpages, layouts and blocks
Diffstat (limited to 'mod/editlayout.php')
-rw-r--r--mod/editlayout.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/editlayout.php b/mod/editlayout.php
index 1cebdc845..474244653 100644
--- a/mod/editlayout.php
+++ b/mod/editlayout.php
@@ -66,7 +66,7 @@ function editlayout_content(&$a) {
$plaintext = false;
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
- '$title' => t('Edit block')
+ '$title' => t('Edit Layout')
));
@@ -132,6 +132,11 @@ function editlayout_content(&$a) {
'$sourceapp' => t($a->sourcename),
));
+ $ob = get_observer_hash();
+
+ if(($itm[0]['author_xchan'] === $ob) || ($itm[0]['owner_xchan'] === $ob))
+ $o .= '<br /><br /><a href="item/drop/' . $itm[0]['id'] . '" >' . t('Delete Layout') . '</a><br />';
+
return $o;
}