<?php
class XenFacil_Widgets_Listener_WFRenderer
{
public static function XFWidgetsWFRenderer(array &$renderers)
{
/* if (($addon = XenForo_Model::create('XenForo_Model_AddOn')->getAddOnById('EWRatendo')) && $addon['active'])
{
$renderers[] = 'EWRporta_portaEventsBirthdaysWidget';
$renderers[] = 'EWRporta_portaEventsCalendarWidget';
$renderers[] = 'EWRporta_portaEventsStreamWidget';
$renderers[] = 'EWRporta_portaEventsUpcomingWidget';
}
if (($addon = XenForo_Model::create('XenForo_Model_AddOn')->getAddOnById('EWRmedio')) && $addon['active'])
{
$renderers[] = 'EWRporta_portaMediaCloudWidget';
$renderers[] = 'EWRporta_portaMediaRecentWidget';
}
if (($addon = XenForo_Model::create('XenForo_Model_AddOn')->getAddOnById('EWRporta')) && $addon['active'])
{
$renderers[] = 'EWRporta_portaAmazonWidget';
$renderers[] = 'EWRporta_portaCoverItLiveWidget';
$renderers[] = 'EWRporta_portaChatUsersWidget';
$renderers[] = 'EWRporta_portaDonationsWidget';
$renderers[] = 'EWRporta_portaRanksToplistWidget';
$renderers[] = 'EWRporta_portaRecentAttachmentsWidget';
$renderers[] = 'EWRporta_portaRecentFeaturesWidget';
$renderers[] = 'EWRporta_portaStatusUpdatesWidget';
$renderers[] = 'EWRporta_portaTorneoWidget';
$renderers[] = 'EWRporta_portaWikiNavWidget';
}*/
$renderers[] = 'XenFacil_Widgets_AdSenseWidget';
$renderers[] = 'XenFacil_Widgets_BoardTotalsWidget';
$renderers[] = 'XenFacil_Widgets_CuentaAtrasWidget';
$renderers[] = 'XenFacil_Widgets_FaceBookWidget';
$renderers[] = 'XenFacil_Widgets_LastImagesWidget';
$renderers[] = 'XenFacil_Widgets_MostXXXThreadsWidget';
$renderers[] = 'XenFacil_Widgets_MostXXXUsersWidget';
$renderers[] = 'XenFacil_Widgets_OnlineUsersWidget';
$renderers[] = 'XenFacil_Widgets_RawHTMLWidget';
$renderers[] = 'XenFacil_Widgets_RecentActivityWidget';
$renderers[] = 'XenFacil_Widgets_ShareThisPageWidget';
$renderers[] = 'XenFacil_Widgets_StatusUpdatesWidget';
$renderers[] = 'XenFacil_Widgets_TwitterWidget';
if (isset($renderers)){
return $renderers;
}
}
public static function load_class($class, array &$extend) {
if ($class == 'WidgetFramework_Model_Widget') {
$extend[] = 'XenFacil_Widgets_Model_Widget';
}
if ($class == 'XenForo_Model') {
$extend[] = 'XenFacil_Widgets_Model_LastImages';
}
}
public static function load_class_View($class, array &$extend) {
if ($class == 'XenForo_ViewPublic_NewsFeed_View') {
$extend[] = 'XenFacil_Widgets_ViewPublic_NewsFeed_View';
}
if ($class == 'XenForo_NewsFeedHandler_Abstract') {
$extend[] = 'XenFacil_Widgets_NewsFeedHandler_NewsFeed';
}
}
}
?>