From b5fbee67b14e32c85f1548ac1ce7a8cf7f32df2d Mon Sep 17 00:00:00 2001 From: Christian Vogeley Date: Sun, 12 Jan 2014 02:06:59 +0100 Subject: Do the same thang for webpage blocks --- mod/editblock.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mod/editblock.php') diff --git a/mod/editblock.php b/mod/editblock.php index e8f3e90f8..32ad3de2c 100644 --- a/mod/editblock.php +++ b/mod/editblock.php @@ -56,7 +56,11 @@ function editblock_content(&$a) { intval($post_id), intval($owner) ); - + $item_id = q("select * from item_id where service = 'BUILDBLOCK' and iid = %d limit 1", + $itm[0]['id'] + ); + if($item_id) + $block_title = $item_id[0]['sid']; $plaintext = true; @@ -135,6 +139,7 @@ function editblock_content(&$a) { '$jotnets' => $jotnets, '$title' => htmlspecialchars($itm[0]['title'],ENT_COMPAT,'UTF-8'), '$placeholdertitle' => t('Set title'), + '$pagetitle' => $block_title, '$category' => '', '$placeholdercategory' => t('Categories (comma-separated list)'), '$emtitle' => t('Example: bob@example.com, mary@example.com'), -- cgit v1.2.3 From 325c5e4e7650329a42f61e9180fe986ef63671b5 Mon Sep 17 00:00:00 2001 From: Christian Vogeley Date: Sun, 12 Jan 2014 02:29:03 +0100 Subject: delete confirmation popup for blocks and layouts --- mod/editblock.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mod/editblock.php') diff --git a/mod/editblock.php b/mod/editblock.php index 32ad3de2c..dcb4b42a7 100644 --- a/mod/editblock.php +++ b/mod/editblock.php @@ -92,7 +92,8 @@ function editblock_content(&$a) { '$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'), '$ispublic' => ' ', // t('Visible to everybody'), '$geotag' => $geotag, - '$nickname' => $a->user['nickname'] + '$nickname' => $a->user['nickname'], + '$confirmdelete' => t('Delete block?') )); @@ -159,7 +160,7 @@ function editblock_content(&$a) { $ob = get_observer_hash(); if(($itm[0]['author_xchan'] === $ob) || ($itm[0]['owner_xchan'] === $ob)) - $o .= '

' . t('Delete Block') . '
'; + $o .= '

' . t('Delete Block') . '
'; return $o; -- cgit v1.2.3