Changeset 3421858
- Timestamp:
- 12/17/2025 11:56:06 AM (3 months ago)
- Location:
- runthings-current-year-shortcode/trunk
- Files:
-
- 4 edited
-
languages/runthings-current-year-shortcode.pot (modified) (3 diffs)
-
readme.md (modified) (5 diffs)
-
readme.txt (modified) (6 diffs)
-
runthings-current-year-shortcode.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
runthings-current-year-shortcode/trunk/languages/runthings-current-year-shortcode.pot
r3265011 r3421858 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Current Year Shortcode 2.1. 0\n"5 "Project-Id-Version: Current Year Shortcode 2.1.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/runthings-current-year-shortcode\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025- 03-26T12:32:00+00:00\n"12 "POT-Creation-Date: 2025-12-17T11:50:13+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.11.0\n" … … 27 27 #. Description of the plugin 28 28 #: runthings-current-year-shortcode.php 29 msgid "Add a shortcode for displaying the current year as a range, usage: [year from=\"202 5\"] or [runthings_year from=\"2025\"] if there's a conflict."29 msgid "Add a shortcode for displaying the current year as a range, usage: [year from=\"2026\"] or [runthings_year from=\"2026\"] if there's a conflict." 30 30 msgstr "" 31 31 -
runthings-current-year-shortcode/trunk/readme.md
r3265011 r3421858 15 15 - Display current year with `[year]` 16 16 - Create a dynamic year range with `[year from="2020"]` 17 - Abbreviated year format with `[year from="2020" mode="short"]`, which shows "2020-2 5" (if the current year is 2025)17 - Abbreviated year format with `[year from="2020" mode="short"]`, which shows "2020-26" (if the current year is 2026) 18 18 - Automatic fallback shortcode `[runthings_year]` if another plugin already uses the 'year' shortcode 19 19 - Filter (`runthings_current_year_shortcode_tag`) to set your own shortcode … … 21 21 ### Usage Examples 22 22 23 Assuming the current year is 202 5:23 Assuming the current year is 2026: 24 24 25 - `[year]` displays "202 5"26 - `[year from="202 5"]` displays "2025" (since it's the current year)27 - `[year from="1983"]` displays "1983-202 5"28 - `[year from="2020" mode="short"]` displays "2020-2 5" (shortened current year)29 - `[year from="1995" mode="short"]` displays "1995-202 5" (not shortened because centuries differ)25 - `[year]` displays "2026" 26 - `[year from="2026"]` displays "2026" (since it's the current year) 27 - `[year from="1983"]` displays "1983-2026" 28 - `[year from="2020" mode="short"]` displays "2020-26" (shortened current year) 29 - `[year from="1995" mode="short"]` displays "1995-2026" (not shortened because centuries differ) 30 30 31 31 ## Installation … … 73 73 ### What's the 'mode=short' parameter for? 74 74 75 When using a date range with years in the same century (e.g., 2020-202 5), the 'short' mode will abbreviate the end year to just the last digits (2020-25), creating a cleaner look for your copyright statements.75 When using a date range with years in the same century (e.g., 2020-2026), the 'short' mode will abbreviate the end year to just the last digits (2020-26), creating a cleaner look for your copyright statements. 76 76 77 77 ## Screenshots … … 87 87 88 88 ## Changelog 89 90 ### 2.1.1 - 17th December 2025 91 92 - Bump tested up to 6.9 89 93 90 94 ### 2.1.0 - 26th March 2025 … … 123 127 ## Additional Notes 124 128 125 Built by Matthew Harris of runthings.dev, copyright 2021-202 5.129 Built by Matthew Harris of runthings.dev, copyright 2021-2026. 126 130 127 131 Visit [runthings.dev](https://runthings.dev/) for more WordPress plugins and resources. -
runthings-current-year-shortcode/trunk/readme.txt
r3265011 r3421858 2 2 Contributors: runthingsdev 3 3 Tags: shortcode, year, copyright, date, dynamic-content 4 Tested up to: 6. 84 Tested up to: 6.9 5 5 Requires at least: 6.0 6 6 Requires PHP: 7.4 7 Stable tag: 2.1. 07 Stable tag: 2.1.1 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 22 22 * Display current year with `[year]` 23 23 * Create a dynamic year range with `[year from="2020"]` 24 * Abbreviated year format with `[year from="2020" mode="short"]`, which shows "2020-2 5" (if the current year is 2025)24 * Abbreviated year format with `[year from="2020" mode="short"]`, which shows "2020-26" (if the current year is 2026) 25 25 * Automatic fallback shortcode `[runthings_year]` if another plugin already uses the 'year' shortcode 26 26 * Filter (`runthings_current_year_shortcode_tag`) to set your own shortcode 27 27 28 28 = Usage Examples = 29 Assuming the current year is 202 5:29 Assuming the current year is 2026: 30 30 31 * `[year]` displays "202 5"32 * `[year from="202 5"]` displays "2025" (since it's the current year)33 * `[year from="1983"]` displays "1983-202 5"34 * `[year from="2020" mode="short"]` displays "2020-2 5" (shortened current year)35 * `[year from="1995" mode="short"]` displays "1995-202 5" (not shortened because centuries differ)31 * `[year]` displays "2026" 32 * `[year from="2026"]` displays "2026" (since it's the current year) 33 * `[year from="1983"]` displays "1983-2026" 34 * `[year from="2020" mode="short"]` displays "2020-26" (shortened current year) 35 * `[year from="1995" mode="short"]` displays "1995-2026" (not shortened because centuries differ) 36 36 37 37 == Installation == … … 57 57 = What's the 'mode=short' parameter for? = 58 58 59 When using a date range with years in the same century (e.g., 2020-202 5), the 'short' mode will abbreviate the end year to just the last digits (2020-25), creating a cleaner look for your copyright statements.59 When using a date range with years in the same century (e.g., 2020-2026), the 'short' mode will abbreviate the end year to just the last digits (2020-26), creating a cleaner look for your copyright statements. 60 60 61 61 == Screenshots == … … 66 66 67 67 == Changelog == 68 69 = 2.1.1 - 17th December 2025 = 70 * Update year examples to 2026 71 * Bump tested up to 6.9 68 72 69 73 = 2.1.0 - 26th March 2025 = … … 96 100 == Upgrade Notice == 97 101 102 = 2.1.1 = 103 Bump tested up to 6.9. Update year examples to 2026. 104 98 105 = 2.1.0 = 99 106 This update moves scripts and styles into externally included files. … … 116 123 == Additional Notes == 117 124 118 Built by Matthew Harris of runthings.dev, copyright 2021-202 5.125 Built by Matthew Harris of runthings.dev, copyright 2021-2026. 119 126 120 127 Visit [runthings.dev](https://runthings.dev/) for more WordPress plugins and resources. -
runthings-current-year-shortcode/trunk/runthings-current-year-shortcode.php
r3265011 r3421858 3 3 Plugin Name: Current Year Shortcode 4 4 Plugin URI: https://runthings.dev/wordpress-plugins/current-year-shortcode/ 5 Description: Add a shortcode for displaying the current year as a range, usage: [year from="202 5"] or [runthings_year from="2025"] if there's a conflict.6 Version: 2.1. 05 Description: Add a shortcode for displaying the current year as a range, usage: [year from="2026"] or [runthings_year from="2026"] if there's a conflict. 6 Version: 2.1.1 7 7 Author: runthingsdev 8 8 Author URI: https://runthings.dev/ 9 9 Requires PHP: 7.4 10 10 Requires at least: 6.0 11 Tested up to: 6. 811 Tested up to: 6.9 12 12 Text Domain: runthings-current-year-shortcode 13 13 Domain Path: /languages … … 15 15 License URI: http://www.gnu.org/licenses/gpl-3.0.html 16 16 17 Copyright 2022-202 5Matthew Harris17 Copyright 2022-2026 Matthew Harris 18 18 19 19 This program is free software; you can redistribute it and/or modify … … 37 37 } 38 38 39 define('RUNTHINGS_CYS_VERSION', '2.1. 0');39 define('RUNTHINGS_CYS_VERSION', '2.1.1'); 40 40 define('RUNTHINGS_CYS_FILE', __FILE__); 41 41 define('RUNTHINGS_CYS_DIR', plugin_dir_path(__FILE__)); … … 125 125 * 126 126 * @example 127 * // assuming current year is 202 5128 * [year] = 202 5(or [runthings_year] if 'year' is taken)127 * // assuming current year is 2026 128 * [year] = 2026 (or [runthings_year] if 'year' is taken) 129 129 * @example 130 * // assuming current year is 202 5131 * [year from="202 5"] = 2025130 * // assuming current year is 2026 131 * [year from="2026"] = 2026 132 132 * @example 133 * // assuming current year is 202 5134 * [year from="1983"] = 1983-202 5133 * // assuming current year is 2026 134 * [year from="1983"] = 1983-2026 135 135 * @example 136 * // assuming current year is 202 5137 * [year from="2020" mode="short"] = 2020-2 5136 * // assuming current year is 2026 137 * [year from="2020" mode="short"] = 2020-26 138 138 * @example 139 * // assuming current year is 202 5140 * [year from="1995" mode="short"] = 1995-202 5139 * // assuming current year is 2026 140 * [year from="1995" mode="short"] = 1995-2026 141 141 * 142 142 * @param array|string $atts Shortcode attributes
Note: See TracChangeset
for help on using the changeset viewer.