From f267175c95da7e036e4b17dabee70b6bd80ac580 Mon Sep 17 00:00:00 2001 From: aB0t Date: Thu, 10 Aug 2023 17:50:04 +0200 Subject: [PATCH] Release of v1.0.2 --- README.md | 4 +- .../en-GB/en-GB.mod_version_calendar_svg.ini | 16 ++- .../en-GB.mod_version_calendar_svg.sys.ini | 16 ++- mod_version_calendar_svg.xml | 32 ++++- tmpl/default.php | 122 +++++++++++++++--- 5 files changed, 169 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 80fe66b..545e3db 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Version Calendar in SVG (1.0.1) +# Version Calendar in SVG (1.0.2) > The original source code was taken from the [PHP supported versions](https://github.com/php/web-php/blob/master/images/supported-versions.php). @@ -8,6 +8,6 @@ + *Author*: [Joomla! Project](mailto:admin@joomla.org) + *Name*: [Version Calendar svg](http://www.joomla.org) + *First Build*: 3rd September, 2022 -+ *Version*: 1.0.1 ++ *Version*: 1.0.2 + *Copyright*: (C) 2022 Open Source Matters, Inc. + *License*: GNU General Public License version 2 or later; see LICENSE.txt \ No newline at end of file diff --git a/language/en-GB/en-GB.mod_version_calendar_svg.ini b/language/en-GB/en-GB.mod_version_calendar_svg.ini index 88698e1..636cee7 100644 --- a/language/en-GB/en-GB.mod_version_calendar_svg.ini +++ b/language/en-GB/en-GB.mod_version_calendar_svg.ini @@ -1,6 +1,14 @@ MOD_VERSION_CALENDAR_SVG="Version Calendar Svg" MOD_VERSION_CALENDAR_SVG_DESCRIPTION="Version Calendar in SVG" -MOD_VERSION_CALENDAR_SVG_XML_DESCRIPTION="

Version Calendar Svg (v.1.0.1)

Version Calendar in SVG

Created by Joomla! Project
Development started 3rd September, 2022

" +MOD_VERSION_CALENDAR_SVG_XML_DESCRIPTION="

Version Calendar Svg (v.1.0.2)

Version Calendar in SVG

Created by Joomla! Project
Development started 3rd September, 2022

" +MOD_VERSION_CALENDAR_SVG_PLANNED_RELEASE_SCHEDULE="Planned release schedule" +MOD_VERSION_CALENDAR_SVG_FUTURE_RELEASES="Future Releases" +MOD_VERSION_CALENDAR_SVG_STABLE_RELEASE_SCHEDULE_EXPECT_FULL_SUPPORT_AND_UPDATES="Stable release schedule - expect full support and updates" +MOD_VERSION_CALENDAR_SVG_STABLE_RELEASE="Stable Release" +MOD_VERSION_CALENDAR_SVG_SECURITY_SCHEDULE_EXPECT_ONLY_SECURITY_UPDATES="Security schedule - expect only security updates" +MOD_VERSION_CALENDAR_SVG_SECURITY_RELEASE="Security Release" +MOD_VERSION_CALENDAR_SVG_VERSION_END_OF_LIFE_SCHEDULE_EXPECT_NO_MORE_SUPPORT="Version End of Life schedule - expect no more support" +MOD_VERSION_CALENDAR_SVG_VERSION_AT_END_OF_LIFE="Version at End of Life" MOD_VERSION_CALENDAR_SVG_DIMENTIONS="Dimentions" MOD_VERSION_CALENDAR_SVG_STYLES="Styles" MOD_VERSION_CALENDAR_SVG_DATES="Dates" @@ -20,6 +28,12 @@ MOD_VERSION_CALENDAR_SVG_YEARS_LINE_COLOR_LABEL="Years Line Color" MOD_VERSION_CALENDAR_SVG_YEARS_TEXT_COLOR_LABEL="Years Text Color" MOD_VERSION_CALENDAR_SVG_TODAY_LINE_COLOR_LABEL="Today Line Color" MOD_VERSION_CALENDAR_SVG_TODAY_TEXT_COLOR_LABEL="Today Text Color" +MOD_VERSION_CALENDAR_SVG_SHOW_LEGEND_LABEL="Show Legend" +MOD_VERSION_CALENDAR_SVG_SHOW_LEGEND_DESCRIPTION="Allow the legend to be shown below the calendar." +MOD_VERSION_CALENDAR_SVG_YES="Yes" +MOD_VERSION_CALENDAR_SVG_NO="No" +MOD_VERSION_CALENDAR_SVG_LEGEND_BACKGROUND_COLOR_LABEL="Legend Background Colour" +MOD_VERSION_CALENDAR_SVG_LEGEND_TEXT_COLOR_LABEL="Legend Text Colour" MOD_VERSION_CALENDAR_SVG_MAX_YEARS_LABEL="Max Years" MOD_VERSION_CALENDAR_SVG_MIN_YEARS_LABEL="Min Years" MOD_VERSION_CALENDAR_SVG_DATES_LABEL="Dates" diff --git a/language/en-GB/en-GB.mod_version_calendar_svg.sys.ini b/language/en-GB/en-GB.mod_version_calendar_svg.sys.ini index 88698e1..636cee7 100644 --- a/language/en-GB/en-GB.mod_version_calendar_svg.sys.ini +++ b/language/en-GB/en-GB.mod_version_calendar_svg.sys.ini @@ -1,6 +1,14 @@ MOD_VERSION_CALENDAR_SVG="Version Calendar Svg" MOD_VERSION_CALENDAR_SVG_DESCRIPTION="Version Calendar in SVG" -MOD_VERSION_CALENDAR_SVG_XML_DESCRIPTION="

Version Calendar Svg (v.1.0.1)

Version Calendar in SVG

Created by Joomla! Project
Development started 3rd September, 2022

" +MOD_VERSION_CALENDAR_SVG_XML_DESCRIPTION="

Version Calendar Svg (v.1.0.2)

Version Calendar in SVG

Created by Joomla! Project
Development started 3rd September, 2022

" +MOD_VERSION_CALENDAR_SVG_PLANNED_RELEASE_SCHEDULE="Planned release schedule" +MOD_VERSION_CALENDAR_SVG_FUTURE_RELEASES="Future Releases" +MOD_VERSION_CALENDAR_SVG_STABLE_RELEASE_SCHEDULE_EXPECT_FULL_SUPPORT_AND_UPDATES="Stable release schedule - expect full support and updates" +MOD_VERSION_CALENDAR_SVG_STABLE_RELEASE="Stable Release" +MOD_VERSION_CALENDAR_SVG_SECURITY_SCHEDULE_EXPECT_ONLY_SECURITY_UPDATES="Security schedule - expect only security updates" +MOD_VERSION_CALENDAR_SVG_SECURITY_RELEASE="Security Release" +MOD_VERSION_CALENDAR_SVG_VERSION_END_OF_LIFE_SCHEDULE_EXPECT_NO_MORE_SUPPORT="Version End of Life schedule - expect no more support" +MOD_VERSION_CALENDAR_SVG_VERSION_AT_END_OF_LIFE="Version at End of Life" MOD_VERSION_CALENDAR_SVG_DIMENTIONS="Dimentions" MOD_VERSION_CALENDAR_SVG_STYLES="Styles" MOD_VERSION_CALENDAR_SVG_DATES="Dates" @@ -20,6 +28,12 @@ MOD_VERSION_CALENDAR_SVG_YEARS_LINE_COLOR_LABEL="Years Line Color" MOD_VERSION_CALENDAR_SVG_YEARS_TEXT_COLOR_LABEL="Years Text Color" MOD_VERSION_CALENDAR_SVG_TODAY_LINE_COLOR_LABEL="Today Line Color" MOD_VERSION_CALENDAR_SVG_TODAY_TEXT_COLOR_LABEL="Today Text Color" +MOD_VERSION_CALENDAR_SVG_SHOW_LEGEND_LABEL="Show Legend" +MOD_VERSION_CALENDAR_SVG_SHOW_LEGEND_DESCRIPTION="Allow the legend to be shown below the calendar." +MOD_VERSION_CALENDAR_SVG_YES="Yes" +MOD_VERSION_CALENDAR_SVG_NO="No" +MOD_VERSION_CALENDAR_SVG_LEGEND_BACKGROUND_COLOR_LABEL="Legend Background Colour" +MOD_VERSION_CALENDAR_SVG_LEGEND_TEXT_COLOR_LABEL="Legend Text Colour" MOD_VERSION_CALENDAR_SVG_MAX_YEARS_LABEL="Max Years" MOD_VERSION_CALENDAR_SVG_MIN_YEARS_LABEL="Min Years" MOD_VERSION_CALENDAR_SVG_DATES_LABEL="Dates" diff --git a/mod_version_calendar_svg.xml b/mod_version_calendar_svg.xml index 1c920ee..086354d 100644 --- a/mod_version_calendar_svg.xml +++ b/mod_version_calendar_svg.xml @@ -7,7 +7,7 @@ http://www.joomla.org (C) 2020 Open Source Matters, Inc. GNU General Public License version 2 or later; see LICENSE.txt - 1.0.1 + 1.0.2 MOD_VERSION_CALENDAR_SVG_XML_DESCRIPTION @@ -204,6 +204,36 @@ label="MOD_VERSION_CALENDAR_SVG_TODAY_TEXT_COLOR_LABEL" required="true" /> + + + + + + + + + +
get('header_height', 24); ?>px; } - g.future rect, .branches rect.future { fill: get('future_color', '#000'); ?>; } - g.eol rect, .branches rect.eol { fill: get('end_of_life_color', '#f33'); ?>; } - g.eol text { fill: get('end_of_life_text_color', '#fff'); ?>; } - g.security rect, .branches rect.security { fill: get('security_color', '#f93'); ?>; } - g.stable rect, .branches rect.stable { fill: get('stable_color', '#9c9'); ?>; } - .branch-labels text { dominant-baseline: central; text-anchor: middle; } - .today line { stroke: get('today_line_color', '#f33'); ?>; stroke-dasharray: 7, 7; stroke-width: 3px; } - .today text { fill: get('today_text_color', '#f33'); ?>; text-anchor: middle; } - .years line { stroke: get('years_line_color', '#000'); ?>; } - .years text { fill: get('years_text_color', '#000'); ?>; text-anchor: middle; } - + - + state($branch); ?> + + @@ -84,7 +76,6 @@ defined('_JEXEC') or die('Restricted access'); - @@ -99,7 +90,6 @@ defined('_JEXEC') or die('Restricted access'); width="" height="get('branch_height', 30); ?>"/> - years() as $date): ?> @@ -111,7 +101,6 @@ defined('_JEXEC') or die('Restricted access'); - format('j M Y'); ?> - + +get('show_legend', 0) == 1): ?> + +
+
+
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+
+