Example #1
0
 public static function Initialise()
 {
     modOpts::AddOption('news_widget_archive', 'Archive Widget', 'Articles', 'article-archive');
     modOpts::AddOption('news_widget_article', 'Article Widget', 'Articles', 'article');
     uSearch::AddSearchRecipient(__CLASS__, array('heading', 'text'), 'heading', 'text');
 }
Example #2
0
 public static function Initialise()
 {
     uEvents::AddCallback('BeforeRunModule', 'uCMS_View::assertContent', null, 9999);
     uEvents::AddCallback('AfterRunModule', 'uCMS_View::InitSitemap');
     uEvents::AddCallback('ProcessDomDocument', 'uCMS_View::ProcessDomDocument');
     uWidgets::AddStaticWidget('page_updated', 'uCMS_View::last_updated');
     uSearch::AddSearchRecipient(__CLASS__, array('title', 'content_published'), 'title', 'content_published');
 }