File:  [mozdev] / br / www / sidebar.php
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Mon Mar 19 08:00:43 2007 UTC (10 years, 7 months ago) by hultmann
Branches: MAIN
CVS tags: HEAD
*** empty log message ***

<div id="whatsNew">

<?php

Sidebar();

function Sidebar()
{
   echo '<h2>Novidades do site</h2>';
   global $page;
   $page->LoadPhp('feedenumerator.php');
   $news = new FeedEnumerator('site');

   echo '<dl>';
   $qty = 0;
   while ($news->MoveNext()) {
      $qty++;
      if ($qty > 4) {
         break;
      }
      echo '<dt>';
      echo date('d/m/Y', $news->EntryIssued());
      echo '</dt><dd>';
      echo $news->EntryContent();
      echo '</dd>';
   }
   echo '</dl>';
   echo '<p><a href="sobre/novidades/">Mais...</a>';
   echo '&nbsp;&nbsp;&nbsp;<a rel="alternate" type="application/atom+xml" href="http://feeds.feedburner.com/br-moz" title="Utilize este endereço no seu leitor RSS"><img src="/images/html/xml.gif" width="36" height="14" alt="Atom"></a></p>';

   echo '<h2>Na mídia</h2>';
   $media = new FeedEnumerator('media');

   echo '<dl>';
   $qty = 0;
   while ($media->MoveNext()) {
      $qty++;
      if ($qty > 6) {
         break;
      }
      echo '<dt>';
      echo '</dt><dd title="';
      echo date('d/m/Y', $media->EntryIssued());
      echo '">';
      echo $media->EntryContent();
      echo '</dd>';
   }
   echo '</dl>';
   echo '<p><a href="sobre/midia/">Mais...</a>';
   echo '&nbsp;&nbsp;&nbsp;<a href="/sobre/midia/?atom" rel="alternate" type="application/atom+xml" title="Utilize este endereço no seu agregador de notícias"><img src="/images/html/xml.gif" width="36" height="14" alt="Atom"></a></p>';
}
?>

</div>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>