From 56415329368d3c93b64ad6490d56a2f0ff82ab68 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 24 Feb 2011 02:46:06 -0800 Subject: [PATCH] yet another template --- mod/display.php | 2 +- mod/network.php | 2 +- mod/photos.php | 2 +- mod/profile.php | 2 +- view/de/wall_item_drop.tpl | 4 ---- view/en/wall_item_drop.tpl | 2 -- view/fr/wall_item_drop.tpl | 2 -- view/it/wall_item_drop.tpl | 9 --------- view/wall_item_drop.tpl | 2 ++ 9 files changed, 6 insertions(+), 21 deletions(-) delete mode 100644 view/de/wall_item_drop.tpl delete mode 100644 view/en/wall_item_drop.tpl delete mode 100644 view/fr/wall_item_drop.tpl delete mode 100644 view/it/wall_item_drop.tpl create mode 100644 view/wall_item_drop.tpl diff --git a/mod/display.php b/mod/display.php index da931335c1..7cefc42e6c 100644 --- a/mod/display.php +++ b/mod/display.php @@ -234,7 +234,7 @@ function display_content(&$a) { } if(($item['contact-id'] == remote_user()) || ($item['uid'] == local_user())) - $drop = replace_macros(load_view_file('view/wall_item_drop.tpl'), array('$id' => $item['id'])); + $drop = replace_macros(load_view_file('view/wall_item_drop.tpl'), array('$id' => $item['id'], '$delete' => t('Delete'))); else $drop = replace_macros(load_view_file('view/wall_fake_drop.tpl'), array('$id' => $item['id'])); diff --git a/mod/network.php b/mod/network.php index a9de402a83..68c9656e50 100644 --- a/mod/network.php +++ b/mod/network.php @@ -354,7 +354,7 @@ function network_content(&$a, $update = 0) { )); } - $drop = replace_macros(load_view_file('view/wall_item_drop.tpl'), array('$id' => $item['id'])); + $drop = replace_macros(load_view_file('view/wall_item_drop.tpl'), array('$id' => $item['id'], '$delete' => t('Delete'))); diff --git a/mod/photos.php b/mod/photos.php index bd48cfc9f9..c1c6a4133f 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1148,7 +1148,7 @@ function photos_content(&$a) { $drop = ''; if(($item['contact-id'] == remote_user()) || ($item['uid'] == local_user())) - $drop = replace_macros(load_view_file('view/wall_item_drop.tpl'), array('$id' => $item['id'])); + $drop = replace_macros(load_view_file('view/wall_item_drop.tpl'), array('$id' => $item['id'], '$delete' => t('Delete'))); $o .= replace_macros($template,array( diff --git a/mod/profile.php b/mod/profile.php index 5cab6662af..15a3a861f9 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -339,7 +339,7 @@ function profile_content(&$a, $update = 0) { if(($item['contact-id'] == remote_user()) || ($item['uid'] == local_user())) $dropping = true; - $drop = replace_macros((($dropping)? $droptpl : $fakedrop), array('$id' => $item['id'])); + $drop = replace_macros((($dropping)? $droptpl : $fakedrop), array('$id' => $item['id'], '$delete' => t('Delete'))); $like = ((isset($alike[$item['id']])) ? format_like($alike[$item['id']],$alike[$item['id'] . '-l'],'like',$item['id']) : ''); diff --git a/view/de/wall_item_drop.tpl b/view/de/wall_item_drop.tpl deleted file mode 100644 index 7b267f314a..0000000000 --- a/view/de/wall_item_drop.tpl +++ /dev/null @@ -1,4 +0,0 @@ -
Löschen
-
diff --git a/view/en/wall_item_drop.tpl b/view/en/wall_item_drop.tpl deleted file mode 100644 index 66777db15c..0000000000 --- a/view/en/wall_item_drop.tpl +++ /dev/null @@ -1,2 +0,0 @@ -
Delete
-
diff --git a/view/fr/wall_item_drop.tpl b/view/fr/wall_item_drop.tpl deleted file mode 100644 index 66777db15c..0000000000 --- a/view/fr/wall_item_drop.tpl +++ /dev/null @@ -1,2 +0,0 @@ -
Delete
-
diff --git a/view/it/wall_item_drop.tpl b/view/it/wall_item_drop.tpl deleted file mode 100644 index f4ef81c52c..0000000000 --- a/view/it/wall_item_drop.tpl +++ /dev/null @@ -1,9 +0,0 @@ -
- -Cancella - -
- -
-
- diff --git a/view/wall_item_drop.tpl b/view/wall_item_drop.tpl new file mode 100644 index 0000000000..9aa565f69b --- /dev/null +++ b/view/wall_item_drop.tpl @@ -0,0 +1,2 @@ +
$delete
+