mod_monthlyarchive.php 1.33 KB
<?php
/* ======================================================
# Monthly Archive - Joomla! Component v4.3.3 (PRO version)
# -------------------------------------------------------
# For Joomla! 3.x
# Author: Yiannis Christodoulou (yiannis@web357.eu)
# Copyright (©) 2009-2018 Web357. All rights reserved.
# License: GNU/GPLv3, http://www.gnu.org/licenses/gpl-3.0.html
# Website: https://www.web357.eu/
# Demo: http://demo.web357.eu/?item=monthlyarchive
# Support: support@web357.eu
# Last modified: 09 Feb 2018, 13:55:18
========================================================= */

defined('_JEXEC') or die;

// load component's language to avoid dublicate translations
$lang = JFactory::getLanguage();
$current_lang_tag = $lang->getTag();
$lang = JFactory::getLanguage();
$extension = 'com_monthlyarchive';
$base_dir = JPATH_SITE.'/components/'.$extension.'/';
$language_tag = (!empty($current_lang_tag)) ? $current_lang_tag : 'en-GB';
$reload = true;
$lang->load($extension, $base_dir, $language_tag, $reload);

// module settings 
require_once(dirname(__FILE__).'/helper.php');
$ma                 = new modMonthlyArchivesHelper($params);
$moduleclass_sfx    = htmlspecialchars($params->get('moduleclass_sfx'));
$layout             = $params->get('layout', 'default');

// display layout
require(JModuleHelper::getLayoutPath('mod_monthlyarchive', $layout));