-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from bramwaas/develop
2.1.5
- Loading branch information
Showing
11 changed files
with
33 additions
and
51 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,8 +1,8 @@ | ||
; | ||
; @version 2.1.3 | ||
; @version 2.1.4 | ||
; @package simple_ical_block | ||
; @subpackage simple_ical_block module | ||
; @copyright Copyright (C) 2022 - 2023 A.H.C Waasdorp, All rights reserved. | ||
; @copyright Copyright (C) 2022 - 2024 A.H.C Waasdorp, All rights reserved. | ||
; @license http://www.gnu.org/licenses GNU/GPL | ||
; @author url: https://www.waasdorpsoekhan.nl | ||
; @author email [email protected] | ||
|
@@ -107,7 +107,7 @@ MOD_SIMPLEICALBLOCK_SUFFIX_LGI_CLASS_HELP="Suffix to add after the css-class aro | |
MOD_SIMPLEICALBLOCK_SUFFIX_LGIA_CLASS_HELP="Suffix to add after the css-class around the event details link (ical_details),<br>start with space to keep the original class and add another class." | ||
MOD_SIMPLEICALBLOCK_ALLOWHTML_HELP="Check checkbox to allow the use of some safe html in description and summary,<br>otherwise it will only be displayed as text." | ||
MOD_SIMPLEICALBLOCK_AFTER_EVENTS_HELP="Closing (safe) HTML after events list, when events are available.<br>This text with simple HTML will be displayed after the events list.<br>Use &lt; or &gt; if you want to output < or > otherwise they may be removed as unknown and therefore unsafe tags.<br>E.g. <hr class="module-ft" >" | ||
MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Closing (safe) HTML output when no events are available.<br>This text with simple HTML will be displayed when instead of the events list.<br>Use &lt; or &gt; if you want to output < or > otherwise they may be removed as unknown and therefore unsafe tags.<br>E.g. <p class="warning" >&lt; No events found. &gt;<\p><hr class="module-ft">" | ||
MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Closing (safe) HTML output when no events are available.<br>This text with simple HTML will be displayed instead of the events list.<br>Use &lt; or &gt; if you want to output < or > otherwise they may be removed as unknown and therefore unsafe tags.<br>E.g. <p class="warning" >&lt; No events found. &gt;<\p><hr class="module-ft">" | ||
MOD_SIMPLEICALBLOCK_CLEAR_CACHE_NOW_HELP="Check checkbox to clear calendar cache on save of settings, otherwise it will be cleared after cache time is expired." | ||
MOD_SIMPLEICALBLOCK_ANCHORID_HELP="HTML anchor for this block.<br>Type one or two words - no spaces - to create a unique web address for this block, called an “anchor” Then you can link directly to this section on your page.<br>You can als use this ID to make parts of your extra css specific for this block" | ||
MOD_SIMPLEICALBLOCK_LAYOUT_HELP="Standard only “Default” available, but you can add defaults in the template; see Joomla documentation" | ||
|
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,8 +1,8 @@ | ||
; | ||
; @version 2.0.0 | ||
; @version 2.1.4 | ||
; @package simple_ical_block | ||
; @subpackage simple_ical_block module | ||
; @copyright Copyright (C) 2022 - 2022 A.H.C Waasdorp, All rights reserved. | ||
; @copyright Copyright (C) 2022 - 2024 A.H.C Waasdorp, All rights reserved. | ||
; @license http://www.gnu.org/licenses GNU/GPL | ||
; @author url: https://www.waasdorpsoekhan.nl | ||
; @author email [email protected] | ||
|
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,8 +1,8 @@ | ||
; | ||
; @version 2.1.3. | ||
; @version 2.1.4. | ||
; @package simple_ical_block | ||
; @subpackage simple_ical_block module | ||
; @copyright Copyright (C) 2022 - 2023 A.H.C Waasdorp, All rights reserved. | ||
; @copyright Copyright (C) 2022 - 2024 A.H.C Waasdorp, All rights reserved. | ||
; @license http://www.gnu.org/licenses GNU/GPL | ||
; @author url: https://www.waasdorpsoekhan.nl | ||
; @author email [email protected] | ||
|
@@ -66,7 +66,7 @@ MOD_SIMPLEICALBLOCK_SFLGIA="Achtervoegsel class voor detail" | |
MOD_SIMPLEICALBLOCK_SFLGIA_DESC="Achtervoegsel class voor detail" | ||
MOD_SIMPLEICALBLOCK_ALLOWHTML="Sta veilige html toe." | ||
MOD_SIMPLEICALBLOCK_ALLOWHTML_DESC="Sta veilige html toe in beschrijving en samenvatting." | ||
MOD_SIMPLEICALBLOCK_AFTER_EVENTS="Alsluitende HTML bij beschikbare gebeurtenissen." | ||
MOD_SIMPLEICALBLOCK_AFTER_EVENTS="Afsluitende HTML bij beschikbare gebeurtenissen." | ||
MOD_SIMPLEICALBLOCK_AFTER_EVENTS_DESC="Afsluitende (veilige) HTML-uitvoer na gebeurtenissenlijst, als er gebeurtenissen aanwezig zijn." | ||
MOD_SIMPLEICALBLOCK_NO_EVENTS="Afsluitende HTML bij geen gebeurtenissen." | ||
MOD_SIMPLEICALBLOCK_NO_EVENTS_DESC="Afsluitende (veilige) HTML-uitvoer wanneer er geen gebeurtenissen beschikbaar zijn." | ||
|
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,8 +1,8 @@ | ||
; | ||
; @version 2.0.0 stable | ||
; @version 2.1.4 stable | ||
; @package simple_ical_block | ||
; @subpackage simple_ical_block module | ||
; @copyright Copyright (C) 2022 - 2022 A.H.C Waasdorp, All rights reserved. | ||
; @copyright Copyright (C) 2022 - 2024 A.H.C Waasdorp, All rights reserved. | ||
; @license http://www.gnu.org/licenses GNU/GPL | ||
; @author url: https://www.waasdorpsoekhan.nl | ||
; @author email [email protected] | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
/** | ||
* @package simple_ical_block | ||
* @subpackage mod_simple_ical_block Module | ||
* @copyright Copyright (C) 2022 - 2022 AHC Waasdorp, All rights reserved. | ||
* @copyright Copyright (C) 2022 - 2024 AHC Waasdorp, All rights reserved. | ||
* @license GNU General Public License version 3 or later | ||
* @author url: https://www.waasdorpsoekhan.nl | ||
* @author email [email protected] | ||
|
@@ -18,7 +18,7 @@ | |
|
||
$joomlaverge4 = (version_compare(JVERSION, '4.0', '>=')); | ||
$app = Factory::getApplication(); | ||
$document = Factory::getDocument(); | ||
$document = $app->getDocument(); | ||
$params->set('blockid', $module->id); | ||
$params->set('clear_cache_now', FALSE); // only clear transient on save in admin. | ||
$direction = $document->direction; | ||
|
@@ -30,7 +30,7 @@ | |
else { | ||
?> | ||
<div id="simpleicalblock<?php echo $params->get('blockid'); ?>" class="simpleicalblock<?php echo $params->get('moduleclass_sfx') ?> " tabindex="0"> | ||
<h3>site simpleicalblock needs joomla v4</h3> | ||
<h3>site simpleicalblock needs joomla v4 or v5</h3> | ||
</div> | ||
<?php | ||
} |
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,13 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<extension type="module" client="site" method="upgrade"> | ||
<compatibility> | ||
<include> | ||
<versions from="4.0.0" to="5.99.99" /> | ||
</include> | ||
</compatibility> | ||
<name>Simple iCal Block</name> | ||
<creationDate>16-04-2023</creationDate> | ||
<creationDate>09-12-2023</creationDate> | ||
<author>A.H.C. Waasdorp</author> | ||
<copyright>Copyright (C) 2022 - 2023 A.H.C. Waasdorp, All rights reserved.</copyright> | ||
<copyright>Copyright (C) 2022 - 2024 A.H.C. Waasdorp, All rights reserved.</copyright> | ||
<license>https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license> | ||
<authorEmail>[email protected]</authorEmail> | ||
<authorUrl>http://www.waasdorpsoekhan.nl</authorUrl> | ||
<version>2.1.4</version> | ||
<version>2.1.5</version> | ||
<description><![CDATA[<div class="sib-info" style="color: #3f48cc;"><p><img class="sib-img" src="../modules/mod_simple_ical_block/assets/simpleicalicon128x128.svg" style="display: inline-block; width: 2em; height:auto; margin-right: 0.5em;"/>Simple iCal Calendar Events Block</p></div> | ||
]]></description> | ||
<namespace path="src">WaasdorpSoekhan\Module\Simpleicalblock</namespace> | ||
|
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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* @version $Id: default.php | ||
* @package simpleicalblock | ||
* @subpackage simpleicalblock Module | ||
* @copyright Copyright (C) 2022 -2023 simpleicalblock, All rights reserved. | ||
* @copyright Copyright (C) 2022 -2024 simpleicalblock, All rights reserved. | ||
* @license GNU General Public License version 3 or later | ||
* @author url: https://www.waasdorpsoekhan.nl | ||
* @author email [email protected] | ||
|
@@ -49,13 +49,10 @@ | |
'b','big','blockquote', 'br','button', 'caption','cite','code','col', | ||
'details', 'div', 'em', 'fieldset', 'figcaption', 'figure', 'footer', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6','hr', | ||
'i', 'img', 'li', 'label', 'legend', 'ol', 'p','q', 'section', 'small', 'span','strike', 'strong', 'u','ul'] ; | ||
$old_timezone = date_default_timezone_get(); | ||
$tzid_ui = Factory::getApplication()->get('offset'); | ||
$tz_ui = new \DateTimeZone(Factory::getApplication()->get('offset')); | ||
$attributes = SimpleicalblockHelper::render_attributes( $params->toArray()); | ||
//$helper = new SimpleicalblockHelper; | ||
|
||
echo '<div id="' . $attributes['anchorId'] . '" class="simple_ical_block" >'; | ||
echo '<div id="' . $attributes['anchorId'] .'" data-sib-id="' . $attributes['blockid'] . '" ' . '" class="simple_ical_block" >'; | ||
|
||
/** | ||
* Front-end display of block or module. | ||
|
@@ -64,6 +61,9 @@ | |
* from static function display_block($attributes) | ||
*/ | ||
{ | ||
$old_timezone = date_default_timezone_get(); | ||
$tzid_ui = Factory::getApplication()->get('offset'); | ||
$tz_ui = new \DateTimeZone($tzid_ui); | ||
$layout = (isset($attributes['sib_layout'])) ? intval($attributes['sib_layout']) : 3; | ||
$dflg = $attributes['dateformat_lg']; | ||
$dflgend =$attributes['dateformat_lgend']; | ||
|
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