From db5e1f293b93fc0c4301445ab0c02acf9645cd2d Mon Sep 17 00:00:00 2001 From: ahcwa Date: Sun, 16 Apr 2023 17:23:59 +0200 Subject: [PATCH 1/7] 2.1.4 add closing HTML output after eventlist or when no events are available. --- language/en-GB/en-GB.mod_simple_ical_block.ini | 4 ++++ language/nl-NL/nl-NL.mod_simple_ical_block.ini | 4 ++++ mod_simple_ical_block.xml | 6 ++++-- src/Helper/SimpleicalblockHelper.php | 3 +++ tmpl/default.php | 10 ++++++++-- 5 files changed, 23 insertions(+), 4 deletions(-) diff --git a/language/en-GB/en-GB.mod_simple_ical_block.ini b/language/en-GB/en-GB.mod_simple_ical_block.ini index b5a9f89..ec3d23a 100644 --- a/language/en-GB/en-GB.mod_simple_ical_block.ini +++ b/language/en-GB/en-GB.mod_simple_ical_block.ini @@ -66,6 +66,10 @@ MOD_SIMPLEICALBLOCK_SFLGIA="Suffix event details class" MOD_SIMPLEICALBLOCK_SFLGIA_DESC="Suffix event details class" MOD_SIMPLEICALBLOCK_ALLOWHTML="Allow safe html in description and summary." MOD_SIMPLEICALBLOCK_ALLOWHTML_DESC="Allow safe html in description and summary." +MOD_SIMPLEICALBLOCK_AFTER_EVENTS="Closing HTML after available events." +MOD_SIMPLEICALBLOCK_AFTER_EVENTS_DESC="Closing (safe) HTML after events list, when events are available." +MOD_SIMPLEICALBLOCK_NO_EVENTS="Closing HTML when no events." +MOD_SIMPLEICALBLOCK_NO_EVENTS_DESC="Closing (safe) HTML output when no events are available." MOD_SIMPLEICALBLOCK_CCN="Clear cache." MOD_SIMPLEICALBLOCK_CCN_DESC="Clear cache on save of settings." MOD_SIMPLEICALBLOCK_ANCHORID="HTML anchor" diff --git a/language/nl-NL/nl-NL.mod_simple_ical_block.ini b/language/nl-NL/nl-NL.mod_simple_ical_block.ini index 806109e..9042be9 100644 --- a/language/nl-NL/nl-NL.mod_simple_ical_block.ini +++ b/language/nl-NL/nl-NL.mod_simple_ical_block.ini @@ -66,6 +66,10 @@ 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_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." MOD_SIMPLEICALBLOCK_CCN="Vernieuw agenda cache." MOD_SIMPLEICALBLOCK_CCN_DESC="Vernieuw agenda cache bij opslaan van de instellingen." MOD_SIMPLEICALBLOCK_ANCHORID="HTML anker" diff --git a/mod_simple_ical_block.xml b/mod_simple_ical_block.xml index 175fa46..de34ea1 100644 --- a/mod_simple_ical_block.xml +++ b/mod_simple_ical_block.xml @@ -1,13 +1,13 @@ Simple iCal Block - 09-04-2023 + 16-04-2023 A.H.C. Waasdorp Copyright (C) 2022 - 2023 A.H.C. Waasdorp, All rights reserved. https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL contact@waasdorpsoekhan.nl http://www.waasdorpsoekhan.nl - 2.1.3 + 2.1.4

Simple iCal Calendar Events Block

]]>
WaasdorpSoekhan\Module\Simpleicalblock @@ -68,6 +68,8 @@ + + diff --git a/src/Helper/SimpleicalblockHelper.php b/src/Helper/SimpleicalblockHelper.php index 872091d..b58d6d5 100644 --- a/src/Helper/SimpleicalblockHelper.php +++ b/src/Helper/SimpleicalblockHelper.php @@ -25,6 +25,7 @@ * 0.0.3 replaced defaults for dateformats by "", because we also use empty format to skip the field. * Added space to sanitize html class because it it also used for more classes. * 0.0.4 removed selfmade transient functions because we now use Joomla standard cache type output to replace wp_transient. + * 2.1.4 add closing HTML output after eventlist or when no events are available. */ namespace WaasdorpSoekhan\Module\Simpleicalblock\Site\Helper; // no direct access @@ -94,6 +95,8 @@ static function render_attributes($block_attributes) { 'suffix_lg_class' => '', 'suffix_lgi_class' => ' py-0', 'suffix_lgia_class' => '', + 'after_events' => '', + 'no_events' => '', 'allowhtml' => false, 'clear_cache_now' => false, // 'align'=>'', diff --git a/tmpl/default.php b/tmpl/default.php index 91f4b16..1e1a37f 100644 --- a/tmpl/default.php +++ b/tmpl/default.php @@ -31,7 +31,8 @@ * 2.0.1 back to static functions getData() and fetch() only instantiate object in fetch when parsing must be done (like it always was in WP) * 2.1.0 add calendar class to list-group-item * add htmlspecialchars() to summary, description and location when not 'allowhtml', replacing similar code from IcsParser - * 2.1.3 use select 'layout' in stead of 'start with summary' to create more lay-out options. + * 2.1.3 use select 'layout' in stead of 'start with summary' to create more lay-out options. + * 2.1.4 add closing HTML output after eventlist or when no events are available. */ // no direct access defined('_JEXEC') or die ('Restricted access'); @@ -46,7 +47,7 @@ */ static $allowed_tags = ['a','abbr', 'acronym', 'address','area','article', 'aside','audio', 'b','big','blockquote', 'br','button', 'caption','cite','code','col', - 'details', 'div', 'em', 'fieldset', 'figcaption', 'figure', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6','hr', + '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'); @@ -150,6 +151,11 @@ } echo ''; date_default_timezone_set($old_timezone); + echo strip_tags($attributes['after_events'],$allowed_tags); + } + else { + echo strip_tags($attributes['after_events'],$allowed_tags); + } echo '
'; } From b211605cc081f0bceb89eabe5f9987e93c94eddf Mon Sep 17 00:00:00 2001 From: ahcwa Date: Sun, 16 Apr 2023 22:52:18 +0200 Subject: [PATCH 2/7] 3.1.4 --- language/en-GB/en-GB.mod_simple_ical_block.ini | 2 ++ language/nl-NL/nl-NL.mod_simple_ical_block.ini | 2 ++ mod_simple_ical_block.xml | 8 ++++++++ tmpl/default.php | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/language/en-GB/en-GB.mod_simple_ical_block.ini b/language/en-GB/en-GB.mod_simple_ical_block.ini index ec3d23a..1dd6163 100644 --- a/language/en-GB/en-GB.mod_simple_ical_block.ini +++ b/language/en-GB/en-GB.mod_simple_ical_block.ini @@ -106,6 +106,8 @@ MOD_SIMPLEICALBLOCK_SUFFIX_LG_CLASS_HELP="Suffix to add after css-class around t MOD_SIMPLEICALBLOCK_SUFFIX_LGI_CLASS_HELP="Suffix to add after the css-class around the event start line (list-group-item),
start with space to keep the original class and add another class.
E.g.: py-0 with leading space; standard bootstrap 4 class to set padding top and bottom to 0; ml-1 to set margin left to 0.25 rem" MOD_SIMPLEICALBLOCK_SUFFIX_LGIA_CLASS_HELP="Suffix to add after the css-class around the event details link (ical_details),
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,
otherwise it will only be displayed as text." +MOD_SIMPLEICALBLOCK_AFTER_EVENTS_HELP="Closing (safe) HTML after events list, when events are available.
This text with simple HTML will be displayed after the events list.
E.g. <hr class="module-ft" >" +MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Closing (safe) HTML output when no events are available.
This text with simple HTML will be displayed when instead of the events list.
E.g. <p class="warning" >No events found.<\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.
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.
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" diff --git a/language/nl-NL/nl-NL.mod_simple_ical_block.ini b/language/nl-NL/nl-NL.mod_simple_ical_block.ini index 9042be9..320e167 100644 --- a/language/nl-NL/nl-NL.mod_simple_ical_block.ini +++ b/language/nl-NL/nl-NL.mod_simple_ical_block.ini @@ -106,6 +106,8 @@ MOD_SIMPLEICALBLOCK_SUFFIX_LG_CLASS_HELP="Achtervoegsel achter de css-class om d MOD_SIMPLEICALBLOCK_SUFFIX_LGI_CLASS_HELP="Achtervoegsel achter de css-class van de kopregel (list-group-item),
begin met spatie om originele class te behouden en andere toe te voegen.
Bv.: py-0 met voorloop spatie; standard bootstrap 4 class om padding top and bottom op 0 te zetten; ml-1 om linker marge op 0.25 rem te zetten." MOD_SIMPLEICALBLOCK_SUFFIX_LGIA_CLASS_HELP="Achtervoegsel om achter de css-class van de details link (ical_details) te voegen,
begin met spatie om originele class te behouden en andere toe te voegen." MOD_SIMPLEICALBLOCK_ALLOWHTML_HELP="Vink aan om enige veilige html in de beschrijving en samenvatting toe te staan,
anders wordt het getoond als tekst." +MOD_SIMPLEICALBLOCK_AFTER_EVENTS_HELP="Afsluitende (veilige) HTML-uitvoer na gebeurtenissenlijst, als er gebeurtenissen aanwezig zijn.
Deze tekst met eenvoudige HTML wordt getoond na de gebeurtenissen lijst.
Bijv. <hr class="module-ft" >" +MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Afsluitende (veilige) HTML-uitvoer wanneer er geen gebeurtenissen beschikbaar zijn.
Deze tekst met eenvoudige HTML wordt getoond in plaats van de gebeurtenissen lijst.
Bijv. <p class="warning" >Geen gebeurtenissen gevonden.<\p><hr class="module-ft" >" MOD_SIMPLEICALBLOCK_CLEAR_CACHE_NOW_HELP="Vink aan om agenda cache nu op te schonen bij het opslaan van de instellingen, ander wordt hij opgeschoond als de cache tijd is verlopen." MOD_SIMPLEICALBLOCK_ANCHORID_HELP="HTML anker voor dit blok.
Type een of twee woorden - geen spaties - om een uniek webadres te creëren voor dit blok, een zogenaamd “anchor” Dan kan je rechtstreeks naar deze plaats op de pagina linken.
Je kan deze ID ook gebruiken om delen van je CSS specifiek te maken voor dit blok." MOD_SIMPLEICALBLOCK_LAYOUT_HELP="Standard is alleen “Default” beschikbaar, maar je kan overrides toevoegen in je template; zie Joomla documentation" diff --git a/mod_simple_ical_block.xml b/mod_simple_ical_block.xml index de34ea1..1bb5f23 100644 --- a/mod_simple_ical_block.xml +++ b/mod_simple_ical_block.xml @@ -186,6 +186,14 @@ label="MOD_SIMPLEICALBLOCK_ALLOWHTML" description="MOD_SIMPLEICALBLOCK_ALLOWHTML_HELP" /> + + '; From 5ad966d8807a35253ec5316ac44ce7b4d3de336b Mon Sep 17 00:00:00 2001 From: ahcwa Date: Sun, 16 Apr 2023 23:00:15 +0200 Subject: [PATCH 3/7] 3.1.4 --- language/en-GB/en-GB.mod_simple_ical_block.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/en-GB/en-GB.mod_simple_ical_block.ini b/language/en-GB/en-GB.mod_simple_ical_block.ini index 1dd6163..901e1e9 100644 --- a/language/en-GB/en-GB.mod_simple_ical_block.ini +++ b/language/en-GB/en-GB.mod_simple_ical_block.ini @@ -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),
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,
otherwise it will only be displayed as text." MOD_SIMPLEICALBLOCK_AFTER_EVENTS_HELP="Closing (safe) HTML after events list, when events are available.
This text with simple HTML will be displayed after the events list.
E.g. <hr class="module-ft" >" -MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Closing (safe) HTML output when no events are available.
This text with simple HTML will be displayed when instead of the events list.
E.g. <p class="warning" >No events found.<\p><hr class="module-ft" >" +MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Closing (safe) HTML output when no events are available.
This text with simple HTML will be displayed when instead of the events list.
E.g. <p class="warning" >&lt; No events found.<\p><hr class="module-ft" >&lt;>" 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.
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.
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" From 868410b99eac3e9b22f814b079dea50dfbc33984 Mon Sep 17 00:00:00 2001 From: ahcwa Date: Sun, 16 Apr 2023 23:02:54 +0200 Subject: [PATCH 4/7] 3.1.4 --- language/en-GB/en-GB.mod_simple_ical_block.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/en-GB/en-GB.mod_simple_ical_block.ini b/language/en-GB/en-GB.mod_simple_ical_block.ini index 901e1e9..2ad783f 100644 --- a/language/en-GB/en-GB.mod_simple_ical_block.ini +++ b/language/en-GB/en-GB.mod_simple_ical_block.ini @@ -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),
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,
otherwise it will only be displayed as text." MOD_SIMPLEICALBLOCK_AFTER_EVENTS_HELP="Closing (safe) HTML after events list, when events are available.
This text with simple HTML will be displayed after the events list.
E.g. <hr class="module-ft" >" -MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Closing (safe) HTML output when no events are available.
This text with simple HTML will be displayed when instead of the events list.
E.g. <p class="warning" >&lt; No events found.<\p><hr class="module-ft" >&lt;>" +MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Closing (safe) HTML output when no events are available.
This text with simple HTML will be displayed when instead of the events list.
E.g. <p class="warning" >&lt; No events found.<\p><hr class="module-ft" &gt;>" 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.
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.
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" From 0edb6410ae45edf40f82ea9b725f100bba3d0509 Mon Sep 17 00:00:00 2001 From: ahcwa Date: Sun, 16 Apr 2023 23:04:39 +0200 Subject: [PATCH 5/7] 3.1.4 --- language/en-GB/en-GB.mod_simple_ical_block.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/en-GB/en-GB.mod_simple_ical_block.ini b/language/en-GB/en-GB.mod_simple_ical_block.ini index 2ad783f..978bad0 100644 --- a/language/en-GB/en-GB.mod_simple_ical_block.ini +++ b/language/en-GB/en-GB.mod_simple_ical_block.ini @@ -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),
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,
otherwise it will only be displayed as text." MOD_SIMPLEICALBLOCK_AFTER_EVENTS_HELP="Closing (safe) HTML after events list, when events are available.
This text with simple HTML will be displayed after the events list.
E.g. <hr class="module-ft" >" -MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Closing (safe) HTML output when no events are available.
This text with simple HTML will be displayed when instead of the events list.
E.g. <p class="warning" >&lt; No events found.<\p><hr class="module-ft" &gt;>" +MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Closing (safe) HTML output when no events are available.
This text with simple HTML will be displayed when instead of the events list.
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.
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.
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" From 62cc6a8cffd95e051e957e8b24815a6d30dd76bd Mon Sep 17 00:00:00 2001 From: ahcwa Date: Sun, 16 Apr 2023 23:09:27 +0200 Subject: [PATCH 6/7] 3.1.4 --- language/en-GB/en-GB.mod_simple_ical_block.ini | 2 +- language/nl-NL/nl-NL.mod_simple_ical_block.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/language/en-GB/en-GB.mod_simple_ical_block.ini b/language/en-GB/en-GB.mod_simple_ical_block.ini index 978bad0..c0cf5b0 100644 --- a/language/en-GB/en-GB.mod_simple_ical_block.ini +++ b/language/en-GB/en-GB.mod_simple_ical_block.ini @@ -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),
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,
otherwise it will only be displayed as text." MOD_SIMPLEICALBLOCK_AFTER_EVENTS_HELP="Closing (safe) HTML after events list, when events are available.
This text with simple HTML will be displayed after the events list.
E.g. <hr class="module-ft" >" -MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Closing (safe) HTML output when no events are available.
This text with simple HTML will be displayed when instead of the events list.
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.
This text with simple HTML will be displayed when instead of the events list.
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.
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.
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" diff --git a/language/nl-NL/nl-NL.mod_simple_ical_block.ini b/language/nl-NL/nl-NL.mod_simple_ical_block.ini index 320e167..515b812 100644 --- a/language/nl-NL/nl-NL.mod_simple_ical_block.ini +++ b/language/nl-NL/nl-NL.mod_simple_ical_block.ini @@ -107,7 +107,7 @@ MOD_SIMPLEICALBLOCK_SUFFIX_LGI_CLASS_HELP="Achtervoegsel achter de css-class van MOD_SIMPLEICALBLOCK_SUFFIX_LGIA_CLASS_HELP="Achtervoegsel om achter de css-class van de details link (ical_details) te voegen,
begin met spatie om originele class te behouden en andere toe te voegen." MOD_SIMPLEICALBLOCK_ALLOWHTML_HELP="Vink aan om enige veilige html in de beschrijving en samenvatting toe te staan,
anders wordt het getoond als tekst." MOD_SIMPLEICALBLOCK_AFTER_EVENTS_HELP="Afsluitende (veilige) HTML-uitvoer na gebeurtenissenlijst, als er gebeurtenissen aanwezig zijn.
Deze tekst met eenvoudige HTML wordt getoond na de gebeurtenissen lijst.
Bijv. <hr class="module-ft" >" -MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Afsluitende (veilige) HTML-uitvoer wanneer er geen gebeurtenissen beschikbaar zijn.
Deze tekst met eenvoudige HTML wordt getoond in plaats van de gebeurtenissen lijst.
Bijv. <p class="warning" >Geen gebeurtenissen gevonden.<\p><hr class="module-ft" >" +MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Afsluitende (veilige) HTML-uitvoer wanneer er geen gebeurtenissen beschikbaar zijn.
Deze tekst met eenvoudige HTML wordt getoond in plaats van de gebeurtenissen lijst.
Bijv. <p class="warning" >&lt; Geen gebeurtenissen gevonden found. &gt;<\p><hr class="module-ft">" MOD_SIMPLEICALBLOCK_CLEAR_CACHE_NOW_HELP="Vink aan om agenda cache nu op te schonen bij het opslaan van de instellingen, ander wordt hij opgeschoond als de cache tijd is verlopen." MOD_SIMPLEICALBLOCK_ANCHORID_HELP="HTML anker voor dit blok.
Type een of twee woorden - geen spaties - om een uniek webadres te creëren voor dit blok, een zogenaamd “anchor” Dan kan je rechtstreeks naar deze plaats op de pagina linken.
Je kan deze ID ook gebruiken om delen van je CSS specifiek te maken voor dit blok." MOD_SIMPLEICALBLOCK_LAYOUT_HELP="Standard is alleen “Default” beschikbaar, maar je kan overrides toevoegen in je template; zie Joomla documentation" From df334d8c9eb71d30e1bc61c0003d3c9b86a19886 Mon Sep 17 00:00:00 2001 From: ahcwa Date: Mon, 17 Apr 2023 12:08:32 +0200 Subject: [PATCH 7/7] 2.1.4 --- README.md | 4 +++- language/en-GB/en-GB.mod_simple_ical_block.ini | 4 ++-- language/nl-NL/nl-NL.mod_simple_ical_block.ini | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 57d0d72..5d965da 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Contributors: bramwaas Tags: Event Calendar, Google Calendar, iCal, Events, Block, Calendar, iCalendar, Outlook, iCloud Requires at least Joomla: 4.0 Tested up to: 4.2 -Requires PHP: 5.3.0 +Requires PHP: 7 Stable tag: trunk License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -172,6 +172,8 @@ This project is licensed under the [GNU GPL](https://www.gnu.org/licenses/gpl-3. * works with Joomla 4 or higher. == Changelog == +* 2.1.4 After a feature request of achimmm (in github on Joomla module) added optional placeholder HTML output when no upcoming events are avalable. Also added optional output after the events list (when upcoming events are available). +* 2.1.3 In response to a support issue of (@marijnvr) (on WP plugin). New lay-out for block with first date line on a higer level li. 'Start with summary' toggle-setting changed in 'layout' select-setting with options 'Startdate higher level', 'Start with summary', 'Old style'. * 2.1.1 Solved Warning: Array to string conversion in .../Transport/Curl.php on line 183 that occured after using php 8. * 2.1.0 Support more calendars in one module/block. Support DURATION of event. Move processing 'allowhtml' complete out Parser to template/block. Use properties in IcsParser to limit copying of input params in several functions. diff --git a/language/en-GB/en-GB.mod_simple_ical_block.ini b/language/en-GB/en-GB.mod_simple_ical_block.ini index c0cf5b0..c720cc5 100644 --- a/language/en-GB/en-GB.mod_simple_ical_block.ini +++ b/language/en-GB/en-GB.mod_simple_ical_block.ini @@ -106,8 +106,8 @@ MOD_SIMPLEICALBLOCK_SUFFIX_LG_CLASS_HELP="Suffix to add after css-class around t MOD_SIMPLEICALBLOCK_SUFFIX_LGI_CLASS_HELP="Suffix to add after the css-class around the event start line (list-group-item),
start with space to keep the original class and add another class.
E.g.: py-0 with leading space; standard bootstrap 4 class to set padding top and bottom to 0; ml-1 to set margin left to 0.25 rem" MOD_SIMPLEICALBLOCK_SUFFIX_LGIA_CLASS_HELP="Suffix to add after the css-class around the event details link (ical_details),
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,
otherwise it will only be displayed as text." -MOD_SIMPLEICALBLOCK_AFTER_EVENTS_HELP="Closing (safe) HTML after events list, when events are available.
This text with simple HTML will be displayed after the events list.
E.g. <hr class="module-ft" >" -MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Closing (safe) HTML output when no events are available.
This text with simple HTML will be displayed when instead of the events list.
E.g. <p class="warning" >&lt; No events found. &gt;<\p><hr class="module-ft">" +MOD_SIMPLEICALBLOCK_AFTER_EVENTS_HELP="Closing (safe) HTML after events list, when events are available.
This text with simple HTML will be displayed after the events list.
Use &lt; or &gt; if you want to output < or > otherwise they may be removed as unknown and therefore unsafe tags.
E.g. <hr class="module-ft" >" +MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Closing (safe) HTML output when no events are available.
This text with simple HTML will be displayed when instead of the events list.
Use &lt; or &gt; if you want to output < or > otherwise they may be removed as unknown and therefore unsafe tags.
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.
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.
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" diff --git a/language/nl-NL/nl-NL.mod_simple_ical_block.ini b/language/nl-NL/nl-NL.mod_simple_ical_block.ini index 515b812..77c4bc1 100644 --- a/language/nl-NL/nl-NL.mod_simple_ical_block.ini +++ b/language/nl-NL/nl-NL.mod_simple_ical_block.ini @@ -106,8 +106,8 @@ MOD_SIMPLEICALBLOCK_SUFFIX_LG_CLASS_HELP="Achtervoegsel achter de css-class om d MOD_SIMPLEICALBLOCK_SUFFIX_LGI_CLASS_HELP="Achtervoegsel achter de css-class van de kopregel (list-group-item),
begin met spatie om originele class te behouden en andere toe te voegen.
Bv.: py-0 met voorloop spatie; standard bootstrap 4 class om padding top and bottom op 0 te zetten; ml-1 om linker marge op 0.25 rem te zetten." MOD_SIMPLEICALBLOCK_SUFFIX_LGIA_CLASS_HELP="Achtervoegsel om achter de css-class van de details link (ical_details) te voegen,
begin met spatie om originele class te behouden en andere toe te voegen." MOD_SIMPLEICALBLOCK_ALLOWHTML_HELP="Vink aan om enige veilige html in de beschrijving en samenvatting toe te staan,
anders wordt het getoond als tekst." -MOD_SIMPLEICALBLOCK_AFTER_EVENTS_HELP="Afsluitende (veilige) HTML-uitvoer na gebeurtenissenlijst, als er gebeurtenissen aanwezig zijn.
Deze tekst met eenvoudige HTML wordt getoond na de gebeurtenissen lijst.
Bijv. <hr class="module-ft" >" -MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Afsluitende (veilige) HTML-uitvoer wanneer er geen gebeurtenissen beschikbaar zijn.
Deze tekst met eenvoudige HTML wordt getoond in plaats van de gebeurtenissen lijst.
Bijv. <p class="warning" >&lt; Geen gebeurtenissen gevonden found. &gt;<\p><hr class="module-ft">" +MOD_SIMPLEICALBLOCK_AFTER_EVENTS_HELP="Afsluitende (veilige) HTML-uitvoer na gebeurtenissenlijst, als er gebeurtenissen aanwezig zijn.
Deze tekst met eenvoudige HTML wordt getoond na de gebeurtenissen lijst.
Gebruik &lt; of &gt; als u < of > wilt tonen anders kunnen ze worden verwijderd als onbekende en dus onveilige tags.
Bijv. <hr class="module-ft" >" +MOD_SIMPLEICALBLOCK_NO_EVENTS_HELP="Afsluitende (veilige) HTML-uitvoer wanneer er geen gebeurtenissen beschikbaar zijn.
Deze tekst met eenvoudige HTML wordt getoond in plaats van de gebeurtenissen lijst.
Gebruik &lt; of &gt; als u < of > wilt tonen anders kunnen ze worden verwijderd als onbekende en dus onveilige tags.
Bijv. <p class="warning" >&lt; Geen gebeurtenissen gevonden found. &gt;<\p><hr class="module-ft">" MOD_SIMPLEICALBLOCK_CLEAR_CACHE_NOW_HELP="Vink aan om agenda cache nu op te schonen bij het opslaan van de instellingen, ander wordt hij opgeschoond als de cache tijd is verlopen." MOD_SIMPLEICALBLOCK_ANCHORID_HELP="HTML anker voor dit blok.
Type een of twee woorden - geen spaties - om een uniek webadres te creëren voor dit blok, een zogenaamd “anchor” Dan kan je rechtstreeks naar deze plaats op de pagina linken.
Je kan deze ID ook gebruiken om delen van je CSS specifiek te maken voor dit blok." MOD_SIMPLEICALBLOCK_LAYOUT_HELP="Standard is alleen “Default” beschikbaar, maar je kan overrides toevoegen in je template; zie Joomla documentation"