- md5
- b33d1faa5a2c87a3f4008888beab5a56
- sha1
- 1aef4a6ba3c13ff3ca3d949f3cd9d2246560fe50
- sha256
- 5a4dbc11076ecd075ca4c2e2a9119011a80841c2525819816fb35d6dbccf9627
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
<?php
/**
* @version $Id: default.php 22355 2011-11-07 05:11:58Z github_bot $
* @package Joomla.Site
* @subpackage com_newsfeeds
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// no direct access
defined('_JEXEC') or die;
?>
<?php
$lang = JFactory::getLanguage();
$myrtl = $this->newsfeed->rtl;
$direction = " ";
if ($lang->isRTL() && $myrtl == 0) {
$direction = " redirect-rtl";
} elseif ($lang->isRTL() && $myrtl == 1) {
$direction = " redirect-ltr";
} elseif ($lang->isRTL() && $myrtl == 2) {
$direction = " redirect-rtl";
} elseif ($myrtl == 0) {
$direction = " redirect-ltr";
} elseif ($myrtl == 1) {
$direction = " redirect-ltr";
} elseif ($myrtl == 2) {
$direction = " redirect-rtl";
}
?>
<div class="newsfeed<?php echo $this->pageclass_sfx?><?php echo $direction; ?>">
<?php if ($this->params->get('show_page_heading', 1)) : ?>
<h1 class="<?php echo $direction; ?>">
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>
<h2 class="<?php echo $direction; ?>">
<a href="<?php echo $this->newsfeed->channel['link']; ?>" target="_blank">
<?php echo str_replace(''', "'", $this->newsfeed->channel['title']); ?></a>
</h2>
<!-- Show Description -->
<?php if ($this->params->get('show_feed_description')) : ?>
<div class="feed-description">
<?php echo str_replace(''', "'", $this->newsfeed->channel['description']); ?>
</div>
<?php endif; ?>
<!-- Show Image -->
<?php if (isset($this->newsfeed->image['url']) && isset($this->newsfeed->image['title']) && $this->params->get('show_feed_image')) : ?>
<div>
<img src="<?php echo $this->newsfeed->image['url']; ?>" alt="<?php echo $this->newsfeed->image['title']; ?>" />
</div>
<?php endif; ?>
<!-- Show items -->
<ol>
<?php foreach ($this->newsfeed->items as $item) : ?>
<li>
<?php if (!is_null($item->get_link())) : ?>
<a href="<?php echo $item->get_link(); ?>" target="_blank">
<?php echo $item->get_title(); ?></a>
<?php endif; ?>
<?php if ($this->params->get('show_item_description') && $item->get_description()) : ?>
<div class="feed-item-description">
<?php $text = $item->get_description();
if($this->params->get('show_feed_image', 0) == 0)
{
$text = JFilterOutput::stripImages($text);
}
$text = JHtml::_('string.truncate', $text, $this->params->get('feed_character_count'));
echo str_replace(''', "'", $text);
?>
</div>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ol>
</div>
The same content is in 3 releases, Joomla 1.7.3 to 1.7.5. See them all, or every version of this file.