]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-wernis_portal.php
Updated copyright notice as there are changes in this year
[mailer.git] / inc / modules / guest / what-wernis_portal.php
index 45558fa73c7a883839d0b1d7eb76f7062c298f1b..b886468a0ec5fbc53ebd2493cfec4bae55cf0427 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -51,9 +51,10 @@ if ((!isExtensionActive('wernis')) && (!isAdmin())) {
        return;
 } // END - if
 
-outputHtml('<div style="padding-left: 10px; padding-right: 10px">');
+// Init PDF/RDF parser class
 $rdf = new fase4_rdf();
 $rdf->_use_nl2br = FALSE;
+$rdf->_finishCallback = 'compactContent';
 $rdf->use_dynamic_display(FALSE);
 $rdf->set_CacheDir(getCachePath() . '');
 $rdf->set_salt(md5(getSiteKey()));
@@ -81,9 +82,8 @@ if (isProxyUsed()) {
 
 $rdf->parse_RDF('http://www.wds66.com/rss.xml');
 
-// Fix to avoid 'headers already sent' bug. Thanks to Profi-Concept
-outputHtml($rdf->finish(TRUE));
-outputHtml('</div>');
+// Load template
+loadTemplate('guest_wernis_news', FALSE, $rdf->finish(TRUE));
 
 // [EOF]
 ?>