diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-15 15:16:07 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-15 15:16:07 +0000 |
commit | 71d39f1c4ca21bd25b9bda01451ae651cbbabb64 (patch) | |
tree | 93d67f848ed0bf60a26c57ca3c809985a8c55603 /views/default/output/confirmlink.php | |
parent | 5a6d2bf8e397792fdc557b658e5ab5caea5d9f29 (diff) | |
download | elgg-71d39f1c4ca21bd25b9bda01451ae651cbbabb64.tar.gz elgg-71d39f1c4ca21bd25b9bda01451ae651cbbabb64.tar.bz2 |
Tidied up output views
git-svn-id: https://code.elgg.org/elgg/trunk@463 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/output/confirmlink.php')
-rw-r--r-- | views/default/output/confirmlink.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/views/default/output/confirmlink.php b/views/default/output/confirmlink.php new file mode 100644 index 000000000..db52a4f3e --- /dev/null +++ b/views/default/output/confirmlink.php @@ -0,0 +1,21 @@ +<?php
+
+ /**
+ * Elgg confirmation link
+ * A link that displays a confirmation dialog before it executes
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['text'] The text of the link
+ * @uses $vars['href'] The address
+ * @uses $vars['confirm'] The dialog text
+ *
+ */
+
+?>
+<a href="<?php echo $vars['href']; ?>" onclick="return confirm('<?php echo addslashes($vars['confirm']); ?>');"><?php echo $vars['text']; ?></a>
\ No newline at end of file |