File: /home/centralexf/www/modules/mod_janews2/mod_janews2.php
<?php
/*
# ------------------------------------------------------------------------
# JA News2 module for Joomla 1.5
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license - PHP files are GNU/GPL V2. CSS / JS are Copyrighted Commercial,
# bound by Proprietary License of JoomlArt. For details on licensing,
# Please Read Terms of Use at http://www.joomlart.com/terms_of_use.html.
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com
# Redistribution, Modification or Re-licensing of this file in part of full,
# is bound by the License applied.
# ------------------------------------------------------------------------
*/
// no direct access
defined ( '_JEXEC' ) or die ( 'Restricted access' );
require_once (dirname ( __FILE__ ) . DS . 'helper.php');
$helper = new modJaNews2Helper ( $module, $params );
$helper->_load ();
if (!defined ('_MODE_JAMODNEWS2_ASSETS_')) {
define ('_MODE_JAMODNEWS2_ASSETS_', 1);
JHTML::stylesheet('style.css','modules/'.$module->module.'/assets/');
if (is_file(JPATH_SITE.DS.'templates'.DS.$mainframe->getTemplate().DS.'css'.DS.$module->module.".css"))
JHTML::stylesheet($module->module.".css",'templates/'.$mainframe->getTemplate().'/css/');
}
$path = JModuleHelper::getLayoutPath ( $module->module, 'blog' );
if (file_exists ( $path )) {
require ($path);
}
?>