]> git.mxchange.org Git - friendica.git/commitdiff
yet another template
authorFriendika <info@friendika.com>
Thu, 24 Feb 2011 10:46:06 +0000 (02:46 -0800)
committerFriendika <info@friendika.com>
Thu, 24 Feb 2011 10:46:06 +0000 (02:46 -0800)
mod/display.php
mod/network.php
mod/photos.php
mod/profile.php
view/de/wall_item_drop.tpl [deleted file]
view/en/wall_item_drop.tpl [deleted file]
view/fr/wall_item_drop.tpl [deleted file]
view/it/wall_item_drop.tpl [deleted file]
view/wall_item_drop.tpl [new file with mode: 0644]

index da931335c15f3a8eca8374bf89467eb4039429b0..7cefc42e6ceaf90eca21960321b39fa98a94cae5 100644 (file)
@@ -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']));
 
index a9de402a83620482061b4cb24b914ee7a82a02e7..68c9656e50504686d82ebb32f6fff35fb85ba1b2 100644 (file)
@@ -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')));
 
 
        
index bd48cfc9f9b2e38743fa311e2916b66a95e07423..c1c6a4133f99436104552c441545a333748bb64c 100644 (file)
@@ -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(
index 5cab6662afbc21fb76cfa645398f1617d4990612..15a3a861f969d36028799d1323af508fb3b96597 100644 (file)
@@ -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 (file)
index 7b267f3..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-$id" ><a
-href="item/drop/$id" onclick="return confirmDelete();" ><img
-src="images/b_drophide.gif" alt="Löschen" title="Löschen" id="wall-item-delete-icon-$id" class="wall-item-delete-icon" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a></div>
-               <div class="wall-item-delete-end"></div>
diff --git a/view/en/wall_item_drop.tpl b/view/en/wall_item_drop.tpl
deleted file mode 100644 (file)
index 66777db..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-$id" ><a href="item/drop/$id" onclick="return confirmDelete();" ><img src="images/b_drophide.gif" alt="Delete" title="Delete" id="wall-item-delete-icon-$id" class="wall-item-delete-icon" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a></div>
-               <div class="wall-item-delete-end"></div>
diff --git a/view/fr/wall_item_drop.tpl b/view/fr/wall_item_drop.tpl
deleted file mode 100644 (file)
index 66777db..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-$id" ><a href="item/drop/$id" onclick="return confirmDelete();" ><img src="images/b_drophide.gif" alt="Delete" title="Delete" id="wall-item-delete-icon-$id" class="wall-item-delete-icon" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a></div>
-               <div class="wall-item-delete-end"></div>
diff --git a/view/it/wall_item_drop.tpl b/view/it/wall_item_drop.tpl
deleted file mode 100644 (file)
index f4ef81c..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-$id" >
-<a href="item/drop/$id" onclick="return confirmDelete();" >
-<img src="images/b_drophide.gif" alt="Cancella" title="Cancella" id="wall-item-delete-icon-$id" class="wall-item-delete-icon" onmouseover="imgbright(this);" onmouseout="imgdull(this);" >
-</a>
-</div>
-
-               <div class="wall-item-delete-end">
-</div>
-
diff --git a/view/wall_item_drop.tpl b/view/wall_item_drop.tpl
new file mode 100644 (file)
index 0000000..9aa565f
--- /dev/null
@@ -0,0 +1,2 @@
+<div class="wall-item-delete-wrapper" id="wall-item-delete-wrapper-$id" ><a href="item/drop/$id" onclick="return confirmDelete();" ><img src="images/b_drophide.gif" alt="$delete" title="$delete" id="wall-item-delete-icon-$id" class="wall-item-delete-icon" onmouseover="imgbright(this);" onmouseout="imgdull(this);" ></a></div>
+               <div class="wall-item-delete-end"></div>