| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php // no direct access 2 defined('_JEXEC') or die('Restricted access'); ?> 3 <div style="direction: <?php echo $rssrtl ? 'rtl' :'ltr'; ?>; text-align: <?php echo $rssrtl ? 'right' :'left'; ?> ! important"> 4 <?php 5 if( $feed != false ) 6 { 7 //image handling 8 $iUrl = isset($feed->image->url) ? $feed->image->url : null; 9 $iTitle = isset($feed->image->title) ? $feed->image->title : null; 10 ?> 11 <table cellpadding="0" cellspacing="0" class="moduletable<?php echo $params->get('moduleclass_sfx'); ?>"> 12 <?php 13 // feed description 14 if (!is_null( $feed->title ) && $params->get('rsstitle', 1)) { 15 ?> 16 <tr> 17 <td> 18 <strong> 19 <a href="<?php echo str_replace( '&', '&', $feed->link ); ?>" target="_blank"> 20 <?php echo $feed->title; ?></a> 21 </strong> 22 </td> 23 </tr> 24 <?php 25 } 26 27 // feed description 28 if ($params->get('rssdesc', 1)) { 29 ?> 30 <tr> 31 <td><?php echo $feed->description; ?></td> 32 </tr> 33 <?php 34 } 35 36 // feed image 37 if ($params->get('rssimage', 1) && $iUrl) { 38 ?> 39 <tr> 40 <td><img src="<?php echo $iUrl; ?>" alt="<?php echo @$iTitle; ?>"/></td> 41 </tr> 42 <?php 43 } 44 45 $actualItems = count( $feed->items ); 46 $setItems = $params->get('rssitems', 5); 47 48 if ($setItems > $actualItems) { 49 $totalItems = $actualItems; 50 } else { 51 $totalItems = $setItems; 52 } 53 ?> 54 <tr> 55 <td> 56 <ul class="newsfeed<?php echo $params->get( 'moduleclass_sfx'); ?>" > 57 <?php 58 $words = $params->def('word_count', 0); 59 for ($j = 0; $j < $totalItems; $j ++) 60 { 61 $currItem = & $feed->items[$j]; 62 // item title 63 ?> 64 <li> 65 <?php 66 if ( !is_null( $currItem->get_link() ) ) { 67 ?> 68 <a href="<?php echo $currItem->get_link(); ?>" target="_blank"> 69 <?php echo $currItem->get_title(); ?></a> 70 <?php 71 } 72 73 // item description 74 if ($params->get('rssitemdesc', 1)) 75 { 76 // item description 77 $text = $currItem->get_description(); 78 $text = str_replace(''', "'", $text); 79 80 // word limit check 81 if ($words) 82 { 83 $texts = explode(' ', $text); 84 $count = count($texts); 85 if ($count > $words) 86 { 87 $text = ''; 88 for ($i = 0; $i < $words; $i ++) { 89 $text .= ' '.$texts[$i]; 90 } 91 $text .= '...'; 92 } 93 } 94 ?> 95 <div style="text-align: <?php echo $params->get('rssrtl', 0) ? 'right': 'left'; ?> ! important" class="newsfeed_item<?php echo $params->get( 'moduleclass_sfx'); ?>" > 96 <?php echo $text; ?> 97 </div> 98 <?php 99 } 100 ?> 101 </li> 102 <?php 103 } 104 ?> 105 </ul> 106 </td> 107 </tr> 108 </table> 109 <?php } ?> 110 </div>
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 |