Geeklog France
 

Feeds block

function phpblock_feeds( ){
 
global $_CONF, $_TABLES;
 
    $retval = "";
 
    $result = DB_query("SELECT * FROM {$_TABLES['syndication']} WHERE is_enabled = 1 ORDER BY format, title",1);
    $rows = DB_numRows($result);
 
    for ($i=0; $i< $rows; $i++) {
        $row = DB_fetchArray($result) ;
 
        $flogo = $row['feedlogo'];
        if ( $flogo == "" ) {
            $flogo = "/images/feed.png";
        }
 
        $ftitle = htmlspecialchars( $row['title'] );
 
        $fdesc = ( $row['description'] );
        if ( $fdesc == "" ) {
            $fdesc = $ftitle;
        }
 
        $fspec = $_CONF['site_url'] . '/backend/' . $row['filename'];
 
        $retval .= '
        <img src="'. $_CONF['site_url'] . $flogo .'" alt="'. $fdesc .'">&nbsp;&nbsp;<a href="'. $fspec .'" type="application/rss+xml" title="Click to Subscribe">'. $ftitle .'</a><br>';
 
    }
    return $retval;
}
Connecté en tant que : Guest (Guest)
blocks/feeds.txt · Dernière modification: 2009/01/16 20:14 par ::Ben
 

Download geeklog

Last version 1.8.1

Espace Membre





Devenir membre
Enregistrez-vous

Mot de passe oublié ?

Change language

Categories

  • Geeklog (38)
  • Plugins (53)
  • Thèmes (17)
  • My cart

    Votre panier (0 article)

    Votre panier est vide!

    0.00 EUR

    Visual Theme Switcher

    Test out available themes by selecting from one of the 6 available themes or give the Visual Switcher a try:

    Follow us on twitter

    En ligne

    Visiteurs: 9