aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2014-01-13 00:08:00 +0100
committerSem <sembrestels@riseup.net>2014-01-13 00:08:00 +0100
commitca9d45d86bdba004877c4e386423f8347908280b (patch)
tree7b01edd69834fc47b67fc7542a4c2a62f6cb888f
parent86ddb910c0da573436f3f80e4718cdd37f9f3acc (diff)
downloadelgg-ca9d45d86bdba004877c4e386423f8347908280b.tar.gz
elgg-ca9d45d86bdba004877c4e386423f8347908280b.tar.bz2
Delete gedit automatically generated files
-rw-r--r--languages/en.php~14
-rw-r--r--languages/es.php~22
-rw-r--r--views/default/simplepie/group_module.php~107
3 files changed, 0 insertions, 143 deletions
diff --git a/languages/en.php~ b/languages/en.php~
deleted file mode 100644
index a223168..0000000
--- a/languages/en.php~
+++ /dev/null
@@ -1,14 +0,0 @@
-<?php
-$english = array(
- 'simplepie:widget' => 'RSS Feed',
- 'simplepie:description' => 'Add an external blog to your profile',
- 'simplepie:notset' => 'Feed url is not set',
- 'simplepie:notfound' => 'Cannot find feed. Check the feed url.',
- 'simplepie:feed_url' => 'Feed URL',
- 'simplepie:num_items' => 'Number of items',
- 'simplepie:excerpt' => 'Include excerpt',
- 'simplepie:post_date' => 'Include post date',
- 'simplepie:postedon' => 'Posted on',
- 'simplepie:invalid_url' => 'Invalid url, copy it from the navigation bar please',
-);
-add_translation("en", $english);
diff --git a/languages/es.php~ b/languages/es.php~
deleted file mode 100644
index 85f24e4..0000000
--- a/languages/es.php~
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-$spanish = array(
- 'simplepie:widget' => 'Enlace RSS',
- 'simplepie:description' => 'Agregar un blog externo',
- 'simplepie:notset' => 'Enlace RSS no configurado',
- 'simplepie:notfound' => 'no se encontro el feed. Revisa el feed url.',
- 'simplepie:feed_url' => 'Feed URL',
- 'simplepie:num_items' => 'Numero de items',
- 'simplepie:excerpt' => 'Incluir contenido',
- 'simplepie:post_date' => 'Incluir fecha del post',
- 'simplepie:postedon' => 'Posted on',
- 'simplepie:invalid_url' => 'Url invalida, copiela desde la barra del navegador por favor',
-);
-
-add_translation("en", $english);
-
-
-
-
-
-
diff --git a/views/default/simplepie/group_module.php~ b/views/default/simplepie/group_module.php~
deleted file mode 100644
index d9860d6..0000000
--- a/views/default/simplepie/group_module.php~
+++ /dev/null
@@ -1,107 +0,0 @@
-<?php
-/**
- * Group simplepie:rss module
- */
-elgg_load_library('simplepie');
-
-$group = elgg_get_page_owner_entity();
-
-if ($group->rss_enable != "yes") {
- return true;
-}
-
-elgg_push_context('widgets');
-
-$allowed_tags = '<a><p><br><b><i><em><del><pre><strong><ul><ol><li><img>';
-$feed_url = $group->feed_url;
-$content = '';
-
-if ($group->canEdit()) {
- $content .= elgg_view_form("simplepie/save_group_feed", array(
- 'id' => 'simplepie-form',
- 'class' => $feed_url ? 'hidden' : '',
- ), $vars);
-}
-
-if ($feed_url) {
-
-// get widget settings
- $excerpt = true;
- $post_date = true;
- $num_items = 7;
- $cache_location = elgg_get_data_path() . '/simplepie_cache/';
- if (!file_exists($cache_location)) {
- mkdir($cache_location, 0777);
- }
- $feed = new SimplePie($feed_url, $cache_location);
-
- // doubles timeout if going through a proxy
- //$feed->set_timeout(20);
- // only display errors to profile owner
-
- $num_posts_in_feed = $feed->get_item_quantity();
- if (!$num_posts_in_feed) {
- if (elgg_get_logged_in_user_guid() == elgg_get_page_owner_guid()) {
- $content .= '<p>' . elgg_echo('simplepie:notfound') . '</p>';
- }
- }
-
- // don't display more feed items than user requested
- if ($num_items > $num_posts_in_feed) {
- $num_items = $num_posts_in_feed;
-}
-
- $feed_link = elgg_view('output/url', array(
- 'href' => $feed->get_permalink(),
- 'text' => $feed->get_title(),
- ));
-
- // need to center
- $content .= "<h2 class=\"simplepie-heading\">$feed_link</h2>";
- $content .= '<ul class="simplepie-list">';
- foreach ($feed->get_items(0, $num_items) as $item) {
- $item_link = elgg_view('output/url', array(
- 'href' => $item->get_permalink(),
- 'text' => $item->get_title(),
- ));
-
- if ($excerpt) {
- $text = strip_tags($item->get_description(true), $allowed_tags);
- $excerpt = elgg_get_excerpt($text);
- }
-
- if ($post_date) {
- $item_date_label = elgg_echo('simplepie:postedon');
- $item_date = $item->get_date('j F Y | g:i a');
- $post_date = "$item_date_label $item_date";
- }
-
- $content .= <<<HTML
-<li class="mbm elgg-item">
- <h4 class="mbs">$item_link</h4>
- <p class="elgg-subtext">$post_date</p>
- <div class="elgg-content">$excerpt</div>
-</li>
-HTML;
- }
- $content .= "</ul>";
-}
-
-elgg_pop_context();
-
-if (!$content) {
- $content = '<p>' . elgg_echo('simplepie:none') . '</p>';
-}
-
-$edit = elgg_view('output/url', array(
- 'href' => '#simplepie-form',
- 'text' => elgg_echo('edit'),
- 'rel' => 'toggle'
-));
-
-echo elgg_view('groups/profile/module', array(
- 'title' => elgg_echo('RSS Group'),
- 'content' => $content,
- 'all_link' => $edit,
-));
-