provide ability to delete webpages, layouts and blocks
This commit is contained in:
parent
c3d5351515
commit
f2f3372aa9
@ -80,7 +80,7 @@ function editblock_content(&$a) {
|
|||||||
|
|
||||||
|
|
||||||
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
||||||
'$title' => t('Edit block')
|
'$title' => t('Edit Block')
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
@ -147,6 +147,12 @@ function editblock_content(&$a) {
|
|||||||
'$sourceapp' => t($a->sourcename),
|
'$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 Block') . '</a><br />';
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ function editlayout_content(&$a) {
|
|||||||
$plaintext = false;
|
$plaintext = false;
|
||||||
|
|
||||||
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
$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),
|
'$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;
|
return $o;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ function editwebpage_content(&$a) {
|
|||||||
|
|
||||||
|
|
||||||
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
|
||||||
'$title' => t('Edit post')
|
'$title' => t('Edit Webpage')
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
@ -153,6 +153,11 @@ function editwebpage_content(&$a) {
|
|||||||
'$sourceapp' => t($a->sourcename),
|
'$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 Webpage') . '</a><br />';
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user