| Current Path : /home/jcjack6/dantealighieriofdenver.com/plugins/maximenuck/articlesbydate/ |
| Current File : /home/jcjack6/dantealighieriofdenver.com/plugins/maximenuck/articlesbydate/articlesbydate.php |
<?php
/**
* @copyright Copyright (C) 2018 Cédric KEIFLIN alias ced1870
* https://www.template-creator.com
* https://www.joomlack.fr
* @license GNU/GPL
* */
defined('_JEXEC') or die('Restricted access');
jimport('joomla.event.plugin');
class plgMaximenuckArticlesbydate extends \Joomla\CMS\Plugin\CMSPlugin {
private $type = 'articlesbydate';
private $shallLoad = true;
function __construct(&$subject, $params) {
parent::__construct($subject, $params);
}
/*
* Initiate the lugin load
*
* Return mixed
*/
function registerListeners() {
if ($this->shallLoad === true) {
parent::registerListeners();
} else {
return false;
}
}
/*
* Send the infos in the source list to add the type in the plugin options
*
* Return string the source type
*/
public function onMaximenuckGetSourceName() {
$this->loadLanguage();
return $this->type;
}
/*
* Send the infos in the source list to add the type in the plugin options
*
* Return string the source type
*/
public function onMaximenuckGetTypeName() {
$this->loadLanguage();
return $this->type;
}
}