-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
70 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
<?php | ||
/** | ||
* @package Saint Of The Day | ||
* @license GNU/GPL, see LICENSE.php | ||
* @link https:// github.com/gmansillo/saintoftheday | ||
*/ | ||
* @package Module Saint Of The Day for Joomla! | ||
* @author Giovanni Mansillo | ||
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html | ||
* @link https:// github.com/gmansillo/saintoftheday | ||
* | ||
**/ | ||
|
||
// No direct access | ||
defined('_JEXEC') or die; | ||
|
||
jimport( 'joomla.application.module.helper' ); | ||
|
||
// Include the syndicate functions only once | ||
require_once dirname(__FILE__) . '/helper.php'; | ||
|
||
require JModuleHelper::getLayoutPath('mod_saintoftheday'); | ||
$module = JModuleHelper::getModule('mod_saintoftheday'); | ||
$lang = JFactory::getLanguage()->getTag(); | ||
$params = new JRegistry(); | ||
$params->loadString($module->params); | ||
|
||
$sod_title = ModSaintOfTheDayHelper::getDataFromAPI('liturgic_t', $lang); | ||
$sod_list = ModSaintOfTheDayHelper::getDataFromAPI('saint', $lang); | ||
|
||
$lang = ModSaintOfTheDayHelper::getAPIFormattedLanguage(); | ||
$params = JFactory::getParams('mod_saintoftheday'); | ||
|
||
if($params->get('show_title')) { $sod_title = ModSaintOfTheDayHelper::getDataFromAPI('liturgic_t', $lang); } | ||
if($params->get('show_list')) { $sod_list = ModSaintOfTheDayHelper::getDataFromAPI('saint', $lang); } | ||
require_once JModuleHelper::getLayoutPath('mod_saintoftheday'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
<?php | ||
/** | ||
* @package Saint Of The Day | ||
* @license GNU/GPL, see LICENSE.php | ||
* @link https:// github.com/gmansillo/saintoftheday | ||
*/ | ||
* @package Module Saint Of The Day for Joomla! | ||
* @author Giovanni Mansillo | ||
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html | ||
* @link https:// github.com/gmansillo/saintoftheday | ||
* | ||
**/ | ||
|
||
// No direct access | ||
defined('_JEXEC') or die; | ||
|
||
if ($sod_title) echo '<p class="sod_title">'.$sod_title.'</p>'; | ||
if ($sod_list) echo '<p class="sod_list">'.$sod_list.'</p>'; | ||
?> | ||
|
||
<p class="sod_title"> | ||
<?php echo $sod_title; ?> | ||
</p> | ||
|
||
<p class="sod_list"> | ||
<?php echo $sod_list; ?> | ||
</p> |