Initialer Commit

This commit is contained in:
2015-02-04 22:26:32 +01:00
commit 8815ddc762
13 changed files with 544 additions and 0 deletions

19
config/autoload.ini Normal file
View File

@ -0,0 +1,19 @@
;;
; List modules which are required to be loaded beforehand
;;
requires[] = "core"
;;
; Configure what you want the autoload creator to register
;;
register_namespaces = true
register_classes = true
register_templates = true
;;
; Override the default configuration for certain sub directories
;;
[vendor/*]
register_namespaces = false
register_classes = false
register_templates = false

40
config/autoload.php Normal file
View File

@ -0,0 +1,40 @@
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2015 Leo Feyer
*
* @license LGPL-3.0+
*/
/**
* Register the namespaces
*/
ClassLoader::addNamespaces(array
(
'cgoIT',
));
/**
* Register the classes
*/
ClassLoader::addClasses(array
(
// Classes
'cgoIT\rateit\RateItNews4ward' => 'system/modules/news4ward_rateit/classes/RateItNews4ward.php',
));
/**
* Register the templates
*/
TemplateLoader::addFiles(array
(
'mod_news4ward_reader_rateit' => 'system/modules/news4ward_rateit/templates',
'mod_news4ward_reader_rateit_microdata' => 'system/modules/news4ward_rateit/templates',
'news4ward_list_item_rateit' => 'system/modules/news4ward_rateit/templates',
'news4ward_list_item_rateit_microdata' => 'system/modules/news4ward_rateit/templates',
));

3
config/config.php Normal file
View File

@ -0,0 +1,3 @@
<?php
$GLOBALS['TL_HOOKS']['News4wardParseArticle'][] = array('rateit\\RateItNews4ward', 'parseArticle');