| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php // @version $Id: default.php 11917 2009-05-29 19:37:05Z ian $ 2 defined('_JEXEC') or die('Restricted access'); 3 ?> 4 5 <?php 6 $lang = &JFactory::getLanguage(); 7 $myrtl =$this->newsfeed->rtl; 8 if ($lang->isRTL() && $myrtl==0){ 9 $direction= "direction:rtl !important;"; 10 $align= "text-align:right !important;"; 11 } 12 else if ($lang->isRTL() && $myrtl==1){ 13 $direction= "direction:ltr !important;"; 14 $align= "text-align:left !important;"; 15 } 16 else if ($lang->isRTL() && $myrtl==2){ 17 $direction= "direction:rtl !important;"; 18 $align= "text-align:right !important;"; 19 } 20 else if ($myrtl==0) { 21 $direction= "direction:ltr !important;"; 22 $align= "text-align:left !important;"; 23 } 24 else if ($myrtl==1) { 25 $direction= "direction:ltr !important;"; 26 $align= "text-align:left !important;"; 27 } 28 else if ($myrtl==2) { 29 $direction= "direction:rtl !important;"; 30 $align= "text-align:right !important;"; 31 } 32 ?> 33 <?php if ( $this->params->get( 'show_page_title', 1 ) ) : ?> 34 <h1 style="<?php echo $direction; ?><?php echo $align; ?>" class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>"> 35 <?php echo $this->escape($this->params->get('page_title')); ?> 36 </h1> 37 <?php endif; ?> 38 39 <h2 style="<?php echo $direction; ?><?php echo $align; ?>" class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>"> 40 <a href="<?php echo $this->newsfeed->channel['link']; ?>" target="_blank"> 41 <?php echo str_replace(''', "'", $this->escape($this->newsfeed->channel['title'])); ?></a> 42 </h2> 43 44 <?php if ( $this->params->get( 'show_feed_description' ) ) : ?> 45 <div style="<?php echo $direction; ?><?php echo $align; ?>" class="feed_description"> 46 <?php echo str_replace(''', "'", $this->newsfeed->channel['description']); ?> 47 </div> 48 <?php endif; ?> 49 50 <?php if ( isset( $this->newsfeed->image['url'] ) && isset( $this->newsfeed->image['title'] ) && $this->params->get( 'show_feed_image' ) ) : ?> 51 <p style="<?php echo $direction; ?><?php echo $align; ?>"> 52 <img src="<?php echo $this->escape($this->newsfeed->image['url']); ?>" alt="<?php echo $this->escape($this->newsfeed->image['title']); ?>" /> 53 </p> 54 <?php endif; ?> 55 56 <?php if ( count( $this->newsfeed->items ) ) : ?> 57 <div style="<?php echo $direction; ?><?php echo $align; ?>"> 58 <ul style="<?php echo $direction; ?><?php echo $align; ?>"> 59 <?php foreach ( $this->newsfeed->items as $item ) : ?> 60 <li style="<?php echo $direction; ?><?php echo $align; ?>"> 61 <?php if ( !is_null( $item->get_link() ) ) : ?> 62 <a href="<?php echo $this->escape($item->get_link()); ?>" target="_blank"> 63 <?php echo $this->escape($item->get_title()); ?></a> 64 <?php endif; ?> 65 <?php if ( $this->params->get( 'show_item_description' ) && $item->get_description() ) : ?> 66 <br /> 67 <?php $text = $this->limitText( $item->get_description(), $this->params->get( 'feed_word_count' ) ); 68 echo str_replace(''', "'", $text); ?> 69 <br /><br /> 70 <?php endif; ?> 71 </li> 72 <?php endforeach; ?> 73 </ul> 74 </div> 75 <?php endif;
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |