aboutsummaryrefslogtreecommitdiff
path: root/mod/twitter_api/pages
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-08-23 20:12:58 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-08-23 20:12:58 -0700
commit9f13557c2e7422cb15ce109adbe5714d6d78fc9e (patch)
treef2c3966a0bbaae5462475089945e531d0f9138c9 /mod/twitter_api/pages
parent469f8ba89cc3b613b88228d95f9c69cb53e5b605 (diff)
downloadelgg-9f13557c2e7422cb15ce109adbe5714d6d78fc9e.tar.gz
elgg-9f13557c2e7422cb15ce109adbe5714d6d78fc9e.tar.bz2
Fixes #3117. Added an interstitial page for twitter new users.
Diffstat (limited to 'mod/twitter_api/pages')
-rw-r--r--mod/twitter_api/pages/twitter_api/interstitial.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/mod/twitter_api/pages/twitter_api/interstitial.php b/mod/twitter_api/pages/twitter_api/interstitial.php
new file mode 100644
index 000000000..d1f1ac20c
--- /dev/null
+++ b/mod/twitter_api/pages/twitter_api/interstitial.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * An interstitial page for newly created Twitter users.
+ *
+ * This prompts them to enter an email address and set a password in case Twitter goes down or they
+ * want to disassociate their account from twitter.
+ */
+
+$title = elgg_echo('twitter_api:interstitial:settings');
+
+$site = get_config('site');
+$content = elgg_echo('twitter_api:interstitial:description', array($site->name));
+$content .= elgg_view_form('twitter_api/interstitial_settings');
+
+$params = array(
+ 'content' => $content,
+ 'title' => $title,
+);
+$body = elgg_view_layout('one_sidebar', $params);
+
+echo elgg_view_page($title, $body);