<?php
// +----------------------------------------------------------------------+
// | BxCms                                                                |     
// +----------------------------------------------------------------------+
// | Copyright (c) 2001-2007 Liip AG                                      |
// +----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or        |
// | modify it under the terms of the GNU General Public License (GPL)    |
// | as published by the Free Software Foundation; either version 2       |
// | of the License, or (at your option) any later version.               |
// | The GPL can be found at http://www.gnu.org/licenses/gpl.html         |
// | See also http://wiki.bitflux.org/License_FAQ                         |
// +----------------------------------------------------------------------+
// | Author: Liip AG      <devel@liip.ch>                              |
// +----------------------------------------------------------------------+

class bx_plugins_blog_delicious {
    
    static function getContentById($path,$id,$params) {
            $simplecache = new popoon_helpers_simplecache();
  
            $simplecache->cacheDir = BX_TEMP_DIR;
            $uri = 'http://del.icio.us:80/html/'.$params[0].'?count=10&rssbutton=no&tags=no&bullet=';
            
            $t = $simplecache->simpleCacheHttpRead($uri,3600);
	    if (function_exists("iconv")) {
	            $t = iconv("UTF-8","UTF-8//IGNORE",$t);
		}
            return '<div xmlns="http://www.w3.org/1999/xhtml">'.$t.'</div>';
    
    }
}
?>
