{"id":1628,"date":"2007-03-16T23:27:30","date_gmt":"2007-03-16T23:27:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/around-this-date-in-the-past\/"},"modified":"2007-07-27T09:22:15","modified_gmt":"2007-07-27T09:22:15","slug":"around-this-date-in-the-past","status":"publish","type":"plugin","link":"https:\/\/tr.wordpress.org\/plugins\/around-this-date-in-the-past\/","author":165067,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.7","stable_tag":"0.7","tested":"2.1","requires":"2.0","requires_php":"","requires_plugins":"","header_name":"Around this date in the past...","header_author":"Joan Junyent Tarrida","header_description":"","assets_banners_color":"","last_updated":"2007-07-27 09:22:15","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/junyent.org\/blog\/my-code","header_plugin_uri":"http:\/\/junyent.org\/blog\/2006\/05\/20\/around-this-date-in-the-past-wordpress-plugin\/","header_author_uri":"http:\/\/www.junyent.org\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3720,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.6.1","0.6.2","0.6.3","0.6.9","0.7"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"This screenshot shows the output of  on my blog."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3621],"plugin_category":[],"plugin_contributors":[90354,83184],"plugin_business_model":[],"class_list":["post-1628","plugin","type-plugin","status-publish","hentry","plugin_tags-archives","plugin_contributors-cinefilo","plugin_contributors-jjunyent","plugin_committers-jjunyent"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/around-this-date-in-the-past.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>[ Notas en castellano en la web ]  [  Notes en catala a la web ]<\/p>\n\n<p>It shows around this date entries\/posts in the past (if they exist). It is highly customizable. By default it retreives a week around the current day 1 year ago.<\/p>\n\n<p><strong>IMPORTANT<\/strong>: If your sidebar supports the new Wordpress Widgets, you might better use the \"Around this date in the past... - Widget Edition\" plugin.\nCheck-it here:\n[ http:\/\/wordpress.org\/extend\/plugins\/plugin\/around-this-date-in-the-past-widget-edition\/ ]<\/p>\n\n<h3>Usage<\/h3>\n\n<p>Place the function  wherever you want to show the links.<\/p>\n\n<p>You can call to function with default parameters:<\/p>\n\n<pre><code>    &lt;?php around_this_date(); ?&gt;\n<\/code><\/pre>\n\n<p>Or configure it:<\/p>\n\n<pre><code>    &lt;?php around_this_date ($before = 'One year ago... ', $after = '&lt;br \/&gt;', $daysbefore = '3', $daysafter = '3', $mode='1', $yearsago = '1'\u2032,  $limit = '5', $none= 'none', $showdate = '0', $dateformat = 'y', $showexcerpt = '0'); ?&gt;\n    or\n    &lt;?php around_this_date ($before = 'One year ago... ', $after = '&lt;br \/&gt;', $daysbefore = '3', $daysafter = '3', $mode='2', $lastxyears = '2'\u2032,  $limit = '5', $none= 'none', $showdate = '0', $dateformat = 'y', $showexcerpt = '0'); ?&gt;\n    or\n    &lt;?php around_this_date ($before = 'One year ago... ', $after = '&lt;br \/&gt;', $daysbefore = '3', $daysafter = '3', $mode='3', $sinceyear = '2004'\u2032,  $limit = '5', $none= 'none', $showdate = '0', $dateformat = 'y', $showexcerpt = '0'); ?&gt;&lt;h3&gt;Configuration parameters&lt;\/h3&gt;\n$before = Code will show before links. Defaults to \u2018This week last year\u2026: \u2018\n$after = Code will show after links. Defaults to \u2018\u2019\n$daysbefore = Days\u2019 posts that will show before one year ago. By default \u20183' (3 days before)\n$daysafter = Days\u2019 posts that will show after one year ago. By default \u20183' (3 days after)\n$mode = Select the mode that you want the widget to work. By default \u20181' (X years ago)\n    Mode 1: get posts around this date from X years ago.\n    Mode 2: get posts around this date for the last X years.\n    Mode 3: get posts around this date since year X.\n$yearsago = It shows \u201cX\u201d years ago posts. By default \u20181' (1 year). ONLY IF MODE 1 IS SELECTED.\n$lastxyears = It shows posts por the last \"X\" years. By default \u20181' (1 year). ONLY IF MODE 2 IS SELECTED.\n$sinceyear = It shows posts since the year \"X\". By default \u20182005' (since year 2005). ONLY IF MODE 3 IS SELECTED.\n$limit = Number of posts to retrieve. By default \u20184'. \n$none = Text shown when there are no posts. By default 'none'. \n$showdate = Show dates next to the links. ('0' or '1', by default '0', disabled)\n$dateformat = Format of the date displayed next to the links (if checked). See http:\/\/www.php.net\/date \n$showexcerpt = Show the excerpt next to the links. ('0' or '1', by default '0', disabled).&lt;h3&gt;Customize display&lt;\/h3&gt;\n<\/code><\/pre>\n\n<p>In adition to the options avaliable in the function you can highly customize the apearance of the output by using CSS. These are the classes avaliable:\n    ul.atd-list {} \/\/ base list container.\n    li.atd-year {} \/\/ Yearly headers.\n        atd-yXXXX {} \/\/yearly based class, eg. atd-y2006, atd-y2005 ...\n    ul.atd-yearlylist {} \/\/ list container for each year around this date posts.\n    li.atd-entry {} \/\/ list items containing each around this date posts.\n        atd-yXXXX {} \/\/yearly based class, eg. atd-y2006, atd-y2005 ...\n        atd-mXX {} \/\/montly based class, eg. atd-m01, atd-m02 ... atd-m12.\n        atd-dXX {} \/\/dayly based class, eg. adt-d01, atd-d02 ... atd-d31.\n        atd-XXXXXXXX {} \/\/date based class, eg. atd-20061205, atd-20050304 ...\n    a.atd-entry-title {} \/\/ Link to the post.\n    .atd-entry-date {} \/\/ span containing the date, if $showdate enabled.\n    .atd-entry-excerpt {} \/\/ span containing the excerpt, if $showexcerpt enabled.<\/p>\n\n<h3>License<\/h3>\n\n<p>This plugin is released under the GPL license. See license.txt for details.<\/p>\n\n<h3>Credits and Acknowledgments<\/h3>\n\n<p>This plugin is based on:\n- \"One year ago\" plugin released by Borja Fernandez\n[ http:\/\/www.lamateporunyogur.net\/wp-plugins\/one-year-ago\/ ]\n- \"Wayback\" plugin realeaased by Chris Goringe\n[ http:\/\/code.goringe.net\/WordPress\/ ]<\/p>\n\n<p>Thanks to  Borja Fernandez[  http:\/\/www.lamateporunyogur.net  ]  and  Chris Goringe  [  http:\/\/tis.goringe.net  ]  for writing those plugins and to Luis P\u00e9rez and Mike Koepke for their contributions.<\/p>\n\n<h3>ToDo<\/h3>\n\n<p>Nothing else planed by now.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Once downloaded the file, uncopress it and upload it through FTP to the server where your Wordpress blog is hosted.<\/li>\n<li>Copy it to the folder \/wp-content\/plugins\/ .<\/li>\n<li>Activate it through the plugin management screen.<\/li>\n<li>Introduce the funtion  (with or without parameters) wherever you want to show the X years ago entries.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>None yet<\/p>\n\n<!--section=changelog-->\n<p>v.0.7 = All displayed in a single list with yearly sublists.\n        NEW Feature: display date and\/or excerpt.\n        NEW Feature: added CSS markup to allow maximum flexibility on display.<br \/>\nv.0.6.3 = Fixed a bug when calling get_old_posts().\nv.0.6.2 = Fixed a bug when having  &amp; in post's title. Isolated repetitive code in its own function. Changes contributed by Mike Koepke. \nv.0.6.1 = Fixed bug when having quotes in post's title. Thanks to Mike Koepke for bug repporting and helping with fixing.\nv0.6 = NEW Feature: added 2 new modes, last X years and since year X. \n        Corrected bug in $start_ago and $end_ago.\nv0.5.2 = XHTML valid. Thanks to to Luis P\u00e9rez\nv0.5.1 = Added the $daysbefore and $daysafter parameters.\nv0.5.01 = Now the limit option works, for real ;)\nv0.5 = First release. I decided to start on version 06 because of preserving version relation with \u201cOne year ago\u201d plugin.<\/p>","raw_excerpt":"It shows entries\/posts around today&#039;s date in the past (if they exist). It is highly customizable.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/1628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=1628"}],"author":[{"embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jjunyent"}],"wp:attachment":[{"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=1628"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=1628"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=1628"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=1628"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=1628"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=1628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}