Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Elgg/Elgg
- Loading branch information
Showing
26 changed files
with
197 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,18 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<plugin_manifest xmlns="http://www.elgg.org/plugin_manifest/1.8"> | |||
<name>My Plugin</name> | |||
<author>My Name</author> | |||
<version>1.0</version> | |||
<description>This is a description of my plugin and its features.</description> | |||
<website>http://www.elgg.org/</website> | |||
<copyright>(C) My Name or Company 2012</copyright> | |||
<license>GNU Public License version 2</license> | |||
|
|||
<requires> | |||
<type>elgg_release</type> | |||
<version>1.8</version> | |||
</requires> | |||
|
|||
<category>communication</category> | |||
|
|||
</plugin_manifest> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,33 @@ | |||
<?php | |||
/** | |||
* Elgg RSS view for a generic_comment annotation | |||
* | |||
* @package Elgg | |||
* @subpackage Core | |||
*/ | |||
|
|||
$annotation = $vars['annotation']; | |||
|
|||
$poster = $annotation->getOwnerEntity(); | |||
$poster_name = htmlspecialchars($poster->name, ENT_NOQUOTES, 'UTF-8'); | |||
$pubdate = date('r', $annotation->getTimeCreated()); | |||
$permalink = $annotation->getURL(); | |||
|
|||
$title = elgg_echo('generic_comment:title', array($poster_name)); | |||
|
|||
$creator = elgg_view('page/components/creator', array('entity' => $annotation)); | |||
$extensions = elgg_view('extensions/item'); | |||
|
|||
$item = <<<__HTML | |||
<item> | |||
<guid isPermaLink='true'>$permalink</guid> | |||
<pubDate>$pubdate</pubDate> | |||
<link>$permalink</link> | |||
<title><![CDATA[$title]]></title> | |||
<description><![CDATA[{$vars['annotation']->value}]]></description> | |||
$creator$extensions | |||
</item> | |||
__HTML; | |||
|
|||
echo $item; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,37 +1,37 @@ | |||
<?php | <?php | ||
/** | /** | ||
* Elgg default group view | * RSS group view | ||
* | * | ||
* @package Elgg | * @package Elgg | ||
* @subpackage Core | * @subpackage Core | ||
*/ | */ | ||
|
|
||
?> | $permalink = htmlspecialchars($vars['entity']->getURL(), ENT_NOQUOTES, 'UTF-8'); | ||
$pubdate = date('r', $vars['entity']->getTimeCreated()); | |||
$title = htmlspecialchars($vars['entity']->name, ENT_NOQUOTES, 'UTF-8'); | |||
|
|
||
if ($vars['entity']->description) { | |||
$description = autop($vars['entity']->description); | |||
} elseif ($vars['entity']->briefdescription) { | |||
$description = autop($vars['entity']->briefdescription); | |||
} else { | |||
$description = ''; | |||
} | |||
|
|||
$creator = elgg_view('page/components/creator', $vars); | |||
$georss = elgg_view('page/components/georss', $vars); | |||
$extension = elgg_view('extensions/item'); | |||
|
|||
$item = <<<__HTML | |||
<item> | <item> | ||
<guid isPermaLink='true'><?php echo htmlspecialchars($vars['entity']->getURL()); ?></guid> | <guid isPermaLink="true">$permalink</guid> | ||
<pubDate><?php echo date("r",$vars['entity']->time_created) ?></pubDate> | <pubDate>$pubdate</pubDate> | ||
<link><?php echo htmlspecialchars($vars['entity']->getURL()); ?></link> | <link>$permalink</link> | ||
<title><![CDATA[<?php echo (($vars['entity']->name)); ?>]]></title> | <title><![CDATA[$title]]></title> | ||
<description><![CDATA[<?php echo (autop($vars['entity']->description)); ?>]]></description> | <description><![CDATA[$description]]></description> | ||
<?php | $creator$georss$extension | ||
$owner = $vars['entity']->getOwnerEntity(); | |||
if ($owner) { | |||
?> | |||
<dc:creator><?php echo $owner->name; ?></dc:creator> | |||
<?php | |||
} | |||
?> | |||
<?php | |||
if ( | |||
($vars['entity'] instanceof Locatable) && | |||
($vars['entity']->getLongitude()) && | |||
($vars['entity']->getLatitude()) | |||
) { | |||
?> | |||
<georss:point><?php echo $vars['entity']->getLatitude(); ?> <?php echo $vars['entity']->getLongitude(); ?></georss:point> | |||
<?php | |||
} | |||
?> | |||
<?php echo elgg_view('extensions/item'); ?> | |||
</item> | </item> | ||
__HTML; | |||
|
|||
echo $item; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,6 +1,6 @@ | |||
<?php | <?php | ||
/** | /** | ||
* RSS url view | * RSS url output view | ||
* | * | ||
*/ | */ | ||
echo elgg_view('output/url', $vars, false, false, 'default'); | echo elgg_view('output/url', $vars, false, false, 'default'); |
Oops, something went wrong.