Skip to content

Commit

Permalink
Update default.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed Aug 17, 2014
1 parent 5c2221f commit 85ddbfb
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions components/com_newsfeeds/views/newsfeed/tmpl/default.php
Expand Up @@ -8,16 +8,15 @@
*/

defined('_JEXEC') or die;
?>
<?php

if (!empty($this->msg))
{
echo $this->msg;
}
else
{
$lang = JFactory::getLanguage();
$myrtl = $this->newsfeed->rtl;
$lang = JFactory::getLanguage();
$myrtl = $this->newsfeed->rtl;
$direction = " ";

if ($lang->isRTL() && $myrtl == 0)
Expand All @@ -26,7 +25,7 @@
}
elseif ($lang->isRTL() && $myrtl == 1)
{
$direction = " redirect-ltr";
$direction = " redirect-ltr";
}
elseif ($lang->isRTL() && $myrtl == 2)
{
Expand All @@ -44,7 +43,7 @@
{
$direction = " redirect-rtl";
}
$images = json_decode($this->item->images);
$images = json_decode($this->item->images);
?>
<div class="newsfeed<?php echo $this->pageclass_sfx?><?php echo $direction; ?>">
<?php if ($this->params->get('display_num')) : ?>
Expand Down Expand Up @@ -84,7 +83,7 @@
src="<?php echo htmlspecialchars($images->image_second); ?>" alt="<?php echo htmlspecialchars($images->image_second_alt); ?>"/> </div>
<?php endif; ?>
<!-- Show Description from Component -->
<?php echo $this->item->description; ?>
<?php echo $this->item->description; ?>
<!-- Show Feed's Description -->

<?php if ($this->params->get('show_feed_description')) : ?>
Expand All @@ -104,7 +103,7 @@
<?php if (!empty($this->rssDoc[0])) { ?>
<ol>
<?php for ($i = 0; $i < $this->item->numarticles; $i++) { ?>

<?php if (empty($this->rssDoc[$i])) { break; } ?>
<?php
$uri = !empty($this->rssDoc[$i]->guid) || !is_null($this->rssDoc[$i]->guid) ? $this->rssDoc[$i]->guid : $this->rssDoc[$i]->uri;
$uri = substr($uri, 0, 4) != 'http' ? $this->item->link : $uri;
Expand All @@ -126,7 +125,6 @@
$text = JHtml::_('string.truncate', $text, $this->params->get('feed_character_count'));
echo str_replace('&apos;', "'", $text);
?>

</div>
<?php endif; ?>
</li>
Expand Down

0 comments on commit 85ddbfb

Please sign in to comment.