{"id":84164,"date":"2018-04-09T04:56:52","date_gmt":"2018-04-09T04:56:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/years-since\/"},"modified":"2024-12-29T19:16:02","modified_gmt":"2024-12-29T19:16:02","slug":"years-since","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/years-since\/","author":12022803,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.4.1","stable_tag":"1.4.1","tested":"6.5.8","requires":"4.9.0","requires_php":"7.4","requires_plugins":null,"header_name":"Years Since - Timeless Texts","header_author":"Laurence Bahiirwa","header_description":"Texts like \"I have worked for x years in web dev\" in articles are outdated within a year. This plugin keeps these types of time-span references up to date.","assets_banners_color":"78bcda","last_updated":"2024-12-29 19:16:02","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/paypal.me\/laurencebahiirwa","header_plugin_uri":"https:\/\/github.com\/bahiirwa\/years-since\/","header_author_uri":"https:\/\/github.com\/bahiirwa\/years-since\/","rating":5,"author_block_rating":0,"active_installs":100,"downloads":4120,"num_ratings":6,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":{"1.1.0":{"tag":"1.1.0","author":"laurencebahiirwa","date":"2019-04-02 15:55:59"},"1.2.0":{"tag":"1.2.0","author":"laurencebahiirwa","date":"2019-05-05 13:17:07"},"1.3.0":{"tag":"1.3.0","author":"laurencebahiirwa","date":"2020-05-07 11:30:43"},"1.3.2":{"tag":"1.3.2","author":"laurencebahiirwa","date":"2022-06-21 09:50:32"},"1.3.3":{"tag":"1.3.3","author":"laurencebahiirwa","date":"2023-10-04 07:14:49"},"1.3.4":{"tag":"1.3.4","author":"laurencebahiirwa","date":"2023-10-06 11:54:59"},"1.3.5":{"tag":"1.3.5","author":"laurencebahiirwa","date":"2023-10-07 09:57:56"},"1.4.0":{"tag":"1.4.0","author":"laurencebahiirwa","date":"2024-04-16 19:41:29"},"1.4.1":{"tag":"1.4.1","author":"laurencebahiirwa","date":"2024-12-29 19:16:02"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":6},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":2792340,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":2792340,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":2792340,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2792340,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0","1.2.0","1.3.0","1.3.2","1.3.3","1.3.4","1.3.5","1.4.0","1.4.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2792340,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2792340,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3071931,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3071931,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"Sample shortcodes added in the editor.","2":"Preview of the shortcodes on the front end."}},"plugin_section":[],"plugin_tags":[1358,31875,1356,2552,2519],"plugin_category":[],"plugin_contributors":[145229],"plugin_business_model":[],"class_list":["post-84164","plugin","type-plugin","status-closed","hentry","plugin_tags-date","plugin_tags-span","plugin_tags-time","plugin_tags-update","plugin_tags-updater","plugin_contributors-laurencebahiirwa","plugin_committers-laurencebahiirwa"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/years-since_78bcda.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/years-since\/assets\/screenshot-1.png?rev=2792340","caption":"Sample shortcodes added in the editor."},{"src":"https:\/\/ps.w.org\/years-since\/assets\/screenshot-2.png?rev=2792340","caption":"Preview of the shortcodes on the front end."},{"src":"https:\/\/ps.w.org\/years-since\/assets\/screenshot-3.png?rev=3071931","caption":""},{"src":"https:\/\/ps.w.org\/years-since\/assets\/screenshot-4.png?rev=3071931","caption":""}],"raw_content":"<!--section=description-->\n<p>Keep date time related texts relevant. \"I have worked for x years.\" becomes outdated within a year. Years since keeps \"x\" current in your posts and allow your content to age well.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>A year must be provided in your text by the attribute \"y\" such as <strong>[years-since y=2012]<\/strong>.\nAs an option, Months by referencing \"m\" and day by using \"d\". Months and day default to \"1\" if not added in the shortcode.<\/p>\n\n<p>For example, on an \"About\" page text, you might have something like:<\/p>\n\n<blockquote>\n  <p>We've worked remotely for <strong>[years-since y=2012]<\/strong>, which has allowed the team to spend more time traveling and spending time with family.\n  Or, if you wanted to update a time span on a particular anniversary, you could do something like:\n  <strong>I'm [years-since y=1990 m=5 d=16] old.<\/strong><\/p>\n<\/blockquote>\n\n<h3>More attributes<\/h3>\n\n<p><strong>html<\/strong>\nAdd specific HTML tag to the calculation with the html attrribute e.g.<\/p>\n\n<p><strong>[years-since y=1990 html=span]<\/strong> will wrap the output in a span tag.<\/p>\n\n<p><strong>text<\/strong>\nAdd a text attribute with value false i.e.\n<strong>[years-since y=1990 text=false]<\/strong> will remove the text years from the calculation.<\/p>\n\n<p>It will output <strong>23<\/strong> instead of <strong>23 years<\/strong>.<\/p>\n\n<h3>1.4.1<\/h3>\n\n<ul>\n<li>Fix: Add proper escaping for the shortcode input.<\/li>\n<\/ul>\n\n<h3>1.4.0<\/h3>\n\n<ul>\n<li>Fix: Breaking month and day output.<\/li>\n<li>Add: Testing for WP 6.5.2<\/li>\n<li>Add: Require PHP 8.2.0<\/li>\n<li>Add: Require PHP 7.4<\/li>\n<li>Add: Function arguments and Return Type hinting.<\/li>\n<li>Add: A testing framework with pest with CI.<\/li>\n<li>Fix: Deprecate Editor poylfill function for the block editor.<\/li>\n<\/ul>\n\n<h3>1.3.5<\/h3>\n\n<ul>\n<li>Fix: Breaking change HTML Default argument paragraph <code>html<\/code> attribute as \"p\" for the shortcode output.<\/li>\n<\/ul>\n\n<h3>1.3.4<\/h3>\n\n<ul>\n<li>Fix: Restore minus text format for the calculations.<\/li>\n<li>Add: Translations file build + .pot.<\/li>\n<li>Add: Default attributes for the shortcode.<\/li>\n<li>New: HTML Default argument paragraph <code>html<\/code> attribute as \"p\" for the shortcode output.<\/li>\n<\/ul>\n\n<h3>1.3.3<\/h3>\n\n<ul>\n<li>Fix: Time calculations and messaging.<\/li>\n<li>Test: WP 6.3.1.<\/li>\n<li>Test: PHP 8.2.10.<\/li>\n<\/ul>\n\n<h3>1.3.2<\/h3>\n\n<ul>\n<li>Fix <code>or<\/code> to <code>||<\/code><\/li>\n<\/ul>\n\n<h3>1.3.1<\/h3>\n\n<ul>\n<li>Namespace the plugin to avoid PHP conflicts.<\/li>\n<li>Fix the breaking html when [years-since-gb] is used.<\/li>\n<li>Test WP version compatibility for 5.6.<\/li>\n<\/ul>\n\n<h3>1.3.0<\/h3>\n\n<ul>\n<li>Add functionality to allow for days, months, weeks instead of 0 years when time is less than a year.<\/li>\n<\/ul>\n\n<h3>1.2.0<\/h3>\n\n<ul>\n<li>Add Gutenberg support<\/li>\n<\/ul>\n\n<h3>1.1.0<\/h3>\n\n<ul>\n<li>Add Gutenberg note to readme.<\/li>\n<\/ul>\n\n<h3>1.0.1<\/h3>\n\n<ul>\n<li>Translate returned errors.<\/li>\n<li>Shortcode parameter to suppress \"year\" and \"years\" text.<\/li>\n<\/ul>\n\n<h3>1.0.0<\/h3>\n\n<ul>\n<li>Initial creation.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ul>\n<li>Navigate to your plugins' admin page.<\/li>\n<li>Search for \"years since\" and download the plugin.<\/li>\n<li>Install using the plugin admin interface.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt id='does%20it%20work%20with%20the%20block%20editor%2Fgutenberg%3F'><h3>Does it work with the Block Editor\/Gutenberg?<\/h3><\/dt>\n<dd><p>Yes.<\/p><\/dd>\n<dt id='does%20it%20work%20with%20classicpress%3F'><h3>Does it work with ClassicPress?<\/h3><\/dt>\n<dd><p>Yes. This will still work even if you revert to the Classic Editor seamlessly.<\/p><\/dd>\n<dt id='how%20can%20i%20contribute%3F'><h3>How can I contribute?<\/h3><\/dt>\n<dd><p>You can raise lots of <a href=\"https:\/\/github.com\/bahiirwa\/years-since\/\">issues<\/a> here and also make some <a href=\"https:\/\/github.com\/bahiirwa\/years-since\/\">Pull Requests through github<\/a><\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Keep date time related texts relevant. &quot;I have worked for x years.&quot; becomes outdated within a year. Years since keeps &quot;x&quot; current  &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/84164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=84164"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/laurencebahiirwa"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=84164"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=84164"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=84164"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=84164"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=84164"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=84164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}