From ee23c308b4c09f449d7639e36e922d7864e91aa1 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 13 Apr 2013 17:56:31 -0400 Subject: Fixes #5301 Removes twitter widget - no longer supported by core developers --- mod/twitter/views/default/twitter/css.php | 63 ---------------------- .../views/default/widgets/twitter/content.php | 42 --------------- mod/twitter/views/default/widgets/twitter/edit.php | 24 --------- 3 files changed, 129 deletions(-) delete mode 100644 mod/twitter/views/default/twitter/css.php delete mode 100644 mod/twitter/views/default/widgets/twitter/content.php delete mode 100644 mod/twitter/views/default/widgets/twitter/edit.php (limited to 'mod/twitter/views') diff --git a/mod/twitter/views/default/twitter/css.php b/mod/twitter/views/default/twitter/css.php deleted file mode 100644 index eb0cda98a..000000000 --- a/mod/twitter/views/default/twitter/css.php +++ /dev/null @@ -1,63 +0,0 @@ - - -#twitter_widget { - margin:0 10px 0 10px; -} -#twitter_widget ul { - margin:0; - padding:0; -} -#twitter_widget li { - list-style-image:none; - list-style-position:outside; - list-style-type:none; - margin:0 0 5px 0; - padding:0; - overflow-x: hidden; - border: 2px solid #dedede; - -webkit-border-radius: 8px; - -moz-border-radius: 8px; - border-radius: 8px; -} -#twitter_widget li span { - color:#666666; - background:white; - - -webkit-border-radius: 8px; - -moz-border-radius: 8px; - border-radius: 8px; - - padding:5px; - display:block; -} -p.visit_twitter a { - background:url(mod/twitter/graphics/twitter16px.png) left no-repeat; - padding:0 0 0 20px; - margin:0; -} -p.twitter_username .input-text { - width:200px; -} -.visit_twitter { - background:white; - - -webkit-border-radius: 8px; - -moz-border-radius: 8px; - border-radius: 8px; - - padding:2px; - margin:0 0 5px 0; -} -#twitter_widget li > a { - display:block; - margin:0 0 0 4px; -} -#twitter_widget li span a { - display:inline !important; -} \ No newline at end of file diff --git a/mod/twitter/views/default/widgets/twitter/content.php b/mod/twitter/views/default/widgets/twitter/content.php deleted file mode 100644 index caefd369a..000000000 --- a/mod/twitter/views/default/widgets/twitter/content.php +++ /dev/null @@ -1,42 +0,0 @@ -twitter_username; - -if (empty($username)) { - echo "

" . elgg_echo("twitter:notset") . "

"; - return; -} - -$username_is_valid = preg_match('~^[a-zA-Z0-9_]{1,20}$~', $username); -if (!$username_is_valid) { - echo "

" . elgg_echo("twitter:invalid") . "

"; - return; -} - - -$num = $vars['entity']->twitter_num; -if (empty($num)) { - $num = 5; -} - -// @todo upgrade to 1.1 API https://dev.twitter.com/docs/api/1.1/get/statuses/home_timeline -$script_url = "https://api.twitter.com/1/statuses/user_timeline/" . urlencode($username) . ".json" - . "?callback=twitterCallback2&count=" . (int) $num; - -?> -
- -

elgg_echo("twitter:visit"), - 'href' => 'http://twitter.com/' . urlencode($username), - 'is_trusted' => true, - )) ?>

- - -
diff --git a/mod/twitter/views/default/widgets/twitter/edit.php b/mod/twitter/views/default/widgets/twitter/edit.php deleted file mode 100644 index c3fc6f0d5..000000000 --- a/mod/twitter/views/default/widgets/twitter/edit.php +++ /dev/null @@ -1,24 +0,0 @@ - -
- - 'params[twitter_username]', - 'value' => $vars['entity']->twitter_username, - )) ?> -
-
- - 'params[twitter_num]', - 'value' => $vars['entity']->twitter_num, - )) ?> - -
\ No newline at end of file -- cgit v1.2.3