[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/components/com_newsfeeds/views/newsfeed/tmpl/ -> default.php (source)

   1  <?php // no direct acces
   2  defined('_JEXEC') or die('Restricted access'); ?>
   3  <?php
   4          $lang = &JFactory::getLanguage();
   5          $myrtl =$this->newsfeed->rtl;
   6           if ($lang->isRTL() && $myrtl==0){
   7             $direction= "direction:rtl !important;";
   8             $align= "text-align:right !important;";
   9             }
  10           else if ($lang->isRTL() && $myrtl==1){
  11             $direction= "direction:ltr !important;";
  12             $align= "text-align:left !important;";
  13             }
  14            else if ($lang->isRTL() && $myrtl==2){
  15             $direction= "direction:rtl !important;";
  16             $align= "text-align:right !important;";
  17             }
  18  
  19          else if ($myrtl==0) {
  20          $direction= "direction:ltr !important;";
  21             $align= "text-align:left !important;";
  22             }
  23          else if ($myrtl==1) {
  24          $direction= "direction:ltr !important;";
  25             $align= "text-align:left !important;";
  26             }
  27          else if ($myrtl==2) {
  28             $direction= "direction:rtl !important;";
  29             $align= "text-align:right !important;";
  30             }
  31  
  32  ?>
  33  <div style="<?php echo $direction; ?><?php echo $align; ?>">
  34  <?php if ($this->params->get('show_page_title', 1)) : ?>
  35      <div class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" style="<?php echo $direction; ?><?php echo $align; ?>"><?php echo $this->escape($this->params->get('page_title')); ?></div>
  36  <?php endif; ?>
  37  <table width="100%" class="contentpane<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
  38  <tr>
  39      <td class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" style="<?php echo $direction; ?><?php echo $align; ?>">
  40          <a href="<?php echo $this->newsfeed->channel['link']; ?>" target="_blank">
  41              <?php echo str_replace('&apos;', "'", $this->newsfeed->channel['title']); ?></a>
  42      </td>
  43  </tr>
  44  <?php if ( $this->params->get( 'show_feed_description' ) ) : ?>
  45  <tr>
  46      <td>
  47          <?php echo str_replace('&apos;', "'", $this->newsfeed->channel['description']); ?>
  48          <br />
  49          <br />
  50      </td>
  51  </tr>
  52  <?php endif; ?>
  53  <?php if ( isset($this->newsfeed->image['url']) && isset($this->newsfeed->image['title']) && $this->params->get( 'show_feed_image' ) ) : ?>
  54  <tr>
  55      <td>
  56          <img src="<?php echo $this->newsfeed->image['url']; ?>" alt="<?php echo $this->newsfeed->image['title']; ?>" />
  57      </td>
  58  </tr>
  59  <?php endif; ?>
  60  <tr>
  61      <td>
  62          <ul>
  63          <?php foreach ( $this->newsfeed->items as $item ) :  ?>
  64              <li>
  65              <?php if ( !is_null( $item->get_link() ) ) : ?>
  66                  <a href="<?php echo $item->get_link(); ?>" target="_blank">
  67                      <?php echo $item->get_title(); ?></a>
  68              <?php endif; ?>
  69              <?php if ( $this->params->get( 'show_item_description' ) && $item->get_description()) : ?>
  70                  <br />
  71                  <?php $text = $this->limitText($item->get_description(), $this->params->get( 'feed_word_count' ));
  72                      echo str_replace('&apos;', "'", $text);
  73                  ?>
  74                  <br />
  75                  <br />
  76              <?php endif; ?>
  77              </li>
  78          <?php endforeach; ?>
  79          </ul>
  80      </td>
  81  </tr>
  82  </table>
  83  </div>


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1