Subversion Repositories Applications.papyrus

Rev

Rev 1688 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1688 Rev 1738
Line 19... Line 19...
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: syndication.php,v 1.7 2007-07-25 15:09:44 jp_milcent Exp $
24
// CVS : $Id: syndication.php,v 1.7.2.1 2007-11-30 14:15:02 jp_milcent Exp $
25
/**
25
/**
26
* papyrus_bp - syndication.php
26
* papyrus_bp - syndication.php
27
*
27
*
28
* Description :
28
* Description :
29
*
29
*
Line 31... Line 31...
31
//Auteur original :
31
//Auteur original :
32
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
32
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
//Autres auteurs :
33
//Autres auteurs :
34
*@author        Aucun
34
*@author        Aucun
35
*@copyright     Tela-Botanica 1999-2006
35
*@copyright     Tela-Botanica 1999-2006
36
*@version       $Revision: 1.7 $ $Date: 2007-07-25 15:09:44 $
36
*@version       $Revision: 1.7.2.1 $ $Date: 2007-11-30 14:15:02 $
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
38
*/
38
*/
Line 39... Line 39...
39
 
39
 
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line 181... Line 181...
181
					}
181
					}
182
					return $res;
182
					return $res;
183
				}
183
				}
184
				// Gestion du titre
184
				// Gestion du titre
185
				if ( $options['titre'] == '' ) {
185
				if ( $options['titre'] == '' ) {
186
					$aso_site['titre'] = utf8_decode($feed->title);
186
					$aso_site['titre'] = mb_convert_encoding($feed->title, 'HTML-ENTITIES', 'UTF-8');
187
				} else if ( $options['titre'] != '0' ) {
187
				} else if ( $options['titre'] != '0' ) {
188
					$aso_site['titre'] = $options['titre'];
188
					$aso_site['titre'] = $options['titre'];
189
				}
189
				}
190
				// Gestion de l'url du site
190
				// Gestion de l'url du site
191
				$aso_site['url'] = htmlentities($feed->link);
191
				$aso_site['url'] = htmlentities($feed->link);
Line 205... Line 205...
205
					}
205
					}
206
					$i++;
206
					$i++;
207
					$aso_page = array();
207
					$aso_page = array();
208
					$aso_page['site'] = $aso_site;
208
					$aso_page['site'] = $aso_site;
209
					$aso_page['url'] = $item->link;
209
					$aso_page['url'] = $item->link;
210
					$aso_page['titre'] = utf8_decode($item->title);
210
					$aso_page['titre'] = mb_convert_encoding($item->title, 'HTML-ENTITIES', 'UTF-8');
211
					$aso_page['date'] = $item->pubDate;	
211
					$aso_page['date'] = $item->pubDate;	
212
					if ($options['formatdatepro']) {
212
					if ($options['formatdatepro']) {
213
						switch ($options['formatdatepro']) {
213
						switch ($options['formatdatepro']) {
214
							case 'jm' :
214
							case 'jm' :
215
								$aso_page['date'] = strftime('%d.%m', $aso_page['date']);
215
								$aso_page['date'] = strftime('%d.%m', $aso_page['date']);
Line 274... Line 274...
274
}
274
}
Line 275... Line 275...
275
 
275
 
276
/* +--Fin du code ----------------------------------------------------------------------------------------+
276
/* +--Fin du code ----------------------------------------------------------------------------------------+
277
*
277
*
-
 
278
* $Log: not supported by cvs2svn $
-
 
279
* Revision 1.7  2007-07-25 15:09:44  jp_milcent
-
 
280
* Fusion avec la livraison Narmer.
278
* $Log: not supported by cvs2svn $
281
*
279
* Revision 1.5.2.4  2007-07-25 15:07:52  jp_milcent
282
* Revision 1.5.2.4  2007-07-25 15:07:52  jp_milcent
280
* Correction problème url.
283
* Correction problème url.
281
*
284
*
282
* Revision 1.5.2.3  2007-07-25 14:50:21  jp_milcent
285
* Revision 1.5.2.3  2007-07-25 14:50:21  jp_milcent