Changeset 3461849
- Timestamp:
- 02/15/2026 02:05:54 PM (6 weeks ago)
- Location:
- simple-yearly-archive/trunk
- Files:
-
- 2 added
- 4 edited
-
languages/simple-yearly-archive-de_DE.mo (modified) (previous)
-
languages/simple-yearly-archive-de_DE.po (modified) (4 diffs)
-
languages/simple-yearly-archive-de_DE_formal.mo (added)
-
languages/simple-yearly-archive-de_DE_formal.po (added)
-
readme.txt (modified) (4 diffs)
-
simple-yearly-archive.php (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-yearly-archive/trunk/languages/simple-yearly-archive-de_DE.po
r1567410 r3461849 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2017-01-03 20:30+0000\n" 6 "PO-Revision-Date: 20 17-01-03 20:30+0000\n"6 "PO-Revision-Date: 2025-10-07 15:51+0200\n" 7 7 "Last-Translator: Alphawolf <scripts@schloebe.de>\n" 8 8 "Language-Team: German\n" 9 "Language: de_DE\n" 9 10 "MIME-Version: 1.0\n" 10 11 "Content-Type: text/plain; charset=UTF-8\n" 11 12 "Content-Transfer-Encoding: 8bit\n" 12 "Plural-Forms: nplurals=2; plural=n != 1\n" 13 "X-Generator: Loco - https://localise.biz/\n" 14 "X-Poedit-Language: German\n" 15 "X-Poedit-Country: GERMANY\n" 13 "Plural-Forms: nplurals=2; plural=n != 1;\n" 14 "X-Generator: Poedit 3.6\n" 16 15 "X-Poedit-SourceCharset: utf-8\n" 17 "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"18 "_ n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"16 "X-Poedit-KeywordsList: " 17 "__;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n" 19 18 "X-Poedit-Basepath: .\n" 20 19 "X-Poedit-Bookmarks: \n" 21 "X-Poedit-SearchPath-0: D:"22 "/schloebeweb/xampp/htdocs/wordpresssource/plugins/simple-yearly-archive\n"23 20 "X-Textdomain-Support: yes\n" 24 "Language: de-DE" 21 "X-Poedit-SearchPath-0: D:/schloebeweb/xampp/htdocs/wordpresssource/plugins/" 22 "simple-yearly-archive\n" 25 23 26 24 #: admin/views/admin.php:138 … … 146 144 #: admin/views/admin.php:240 147 145 msgid "You may also be interested in some of my other plugins:" 148 msgstr "Es könnten Sie ebenfalls einige meiner weiteren Plugins interessieren:" 146 msgstr "" 147 "Es könnten Dich ebenfalls einige meiner weiteren Plugins interessieren:" 149 148 150 149 #: admin/views/admin.php:241 … … 154 153 #: admin/views/admin.php:254 155 154 msgid "" 156 "More plugins at: <a class=\"button rbutton\" href=\"http://www.schloebe. "157 " de/portfolio/\" target=\"_blank\">www.schloebe.de</a>"155 "More plugins at: <a class=\"button rbutton\" href=\"http://www.schloebe.de/" 156 "portfolio/\" target=\"_blank\">www.schloebe.de</a>" 158 157 msgstr "" 159 "Mehr Plugins auf: <a class=\"button rbutton\" href=\"http://www.schloebe. "160 " de/portfolio/\" target=\"_blank\">www.schloebe.de</a>"158 "Mehr Plugins auf: <a class=\"button rbutton\" href=\"http://www.schloebe.de/" 159 "portfolio/\" target=\"_blank\">www.schloebe.de</a>" 161 160 162 161 #: admin/views/admin.php:263 … … 167 166 msgid "" 168 167 "If you are new to using this plugin or cant understand what all these " 169 "settings do, please read the documentation at <a href=\"http://www.schloebe." 170 "de/wordpress/simple-yearly-archive-plugin/\" target=\"_blank\">http://www." 171 "schloebe.de/wordpress/simple-yearly-archive-plugin/</a>" 168 "settings do, please read the documentation at <a href=\"http://" 169 "www.schloebe.de/wordpress/simple-yearly-archive-plugin/\" " 170 "target=\"_blank\">http://www.schloebe.de/wordpress/simple-yearly-archive-" 171 "plugin/</a>" 172 172 msgstr "" 173 "Falls Sie dieses Plugin zum ersten Mal benutzen und nicht wissen, was all"174 " diese Optionen machen, schauen Sie bitte in die Dokumentation auf <a"175 " href=\"http://www.schloebe.de/wordpress/simple-yearly-archive-plugin/\" "173 "Falls Du dieses Plugin zum ersten Mal benutzt und nicht weißt, was all diese " 174 "Optionen machen, schaue bitte in die Dokumentation auf <a href=\"http://" 175 "www.schloebe.de/wordpress/simple-yearly-archive-plugin/\" " 176 176 "target=\"_blank\">http://www.schloebe.de/wordpress/simple-yearly-archive-" 177 177 "plugin/</a>" -
simple-yearly-archive/trunk/readme.txt
r3271921 r3461849 4 4 Tags: gettext, archive, archives, wpml, wp_query 5 5 Requires at least: 3.7 6 Tested up to: 6. 8.996 Tested up to: 6.9.99 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 21 21 * English 22 22 * German (de_DE) (Thanks to me ;-)) 23 * German (de_DE_formal) (Thanks for contributing formal german language goes to [Paul Vogel](https://github.com/pavog)) 23 24 * Italian (it_IT) (Thanks for contributing italian language goes to [Gianni Diurno](https://gidibao.net)) 24 25 * Russian (ru_RU) (Thanks for contributing russian language goes to [Dimitry German](https://grugl.me)) … … 34 35 [Click here for a demo](https://www.schloebe.de/archiv/ "Click here for a demo") 35 36 36 [Developer on Twitter](https://twitter.com/wpseek "Developer on Twitter")37 [Developer on X](https://x.com/wpseek "Developer on X") [Developer on Bluesky](https://bsky.app/profile/cyberblitzbirne.bsky.social "Developer on Bluesky") 37 38 38 39 **Looking for more WordPress plugins? Visit [www.schloebe.de/portfolio/](https://www.schloebe.de/portfolio/)** … … 259 260 == Changelog == 260 261 262 = 2.2.4 = 263 * Split german translation into informal and formal 264 * WordPress 6.9 compatibility 265 * Code improvements 266 261 267 = 2.2.3 = 262 268 * WordPress 6.7 compatibility -
simple-yearly-archive/trunk/simple-yearly-archive.php
r3215712 r3461849 2 2 /* 3 3 * Plugin Name: Simple Yearly Archive 4 * Version: 2.2. 34 * Version: 2.2.4 5 5 * Plugin URI: https://www.schloebe.de/wordpress/simple-yearly-archive-plugin/ 6 6 * Description: A simple, clean yearly list of your archives. … … 10 10 * Domain Path: /languages 11 11 * 12 * Copyright 2009-202 5Oliver Schlöbe (email : wordpress@schloebe.de)12 * Copyright 2009-2026 Oliver Schlöbe (email : wordpress@schloebe.de) 13 13 * 14 14 * This program is free software; you can redistribute it and/or modify … … 46 46 private $slug = 'simple-yearly-archive'; 47 47 private $shortcode = 'SimpleYearlyArchive'; 48 private $plugin_version = '2.2. 3';48 private $plugin_version = '2.2.4'; 49 49 50 50 /** … … 73 73 load_plugin_textdomain('simple-yearly-archive', false, dirname(plugin_basename(__FILE__)) . '/languages'); 74 74 75 add_action('admin_enqueue_scripts', array(75 add_action('admin_enqueue_scripts', [ 76 76 $this, 77 77 'register_scripts' 78 ));79 add_action('admin_enqueue_scripts', array(78 ]); 79 add_action('admin_enqueue_scripts', [ 80 80 $this, 81 81 'register_styles' 82 )); 83 84 add_action('the_content', array( 82 ]); 83 84 add_action('the_content', [ 85 85 86 $this, 86 87 'parse_inline' 87 ), 1);88 89 add_shortcode($this->shortcode, array(88 ], 1); 89 90 add_shortcode($this->shortcode, [ 90 91 $this, 91 92 'register_shortcode' 92 ));93 94 register_activation_hook(__FILE__, array(93 ]); 94 95 register_activation_hook(__FILE__, [ 95 96 $this, 96 97 'activation' 97 ));98 register_deactivation_hook(__FILE__, array(98 ]); 99 register_deactivation_hook(__FILE__, [ 99 100 $this, 100 101 'deactivation' 101 ));102 ]); 102 103 103 104 $this->run(); … … 124 125 $this->post_type_array = array_map('trim', explode(',', $posttype)); 125 126 126 $allcatids = get_terms('category', array(127 $allcatids = get_terms('category', [ 127 128 'fields' => 'ids' 128 ));129 ]); 129 130 $sya_post_types = array_keys(get_post_types()); 130 131 $output = ''; … … 155 156 (in_array('attachment', $this->post_type_array) ? array_push($this->post_status, 'inherit') : ''); 156 157 157 $syaargs = array(158 $syaargs = [ 158 159 'no_found_rows' => 1, 159 160 'post_type' => $this->post_type_array, … … 163 164 'order' => $this->sort_order, 164 165 'suppress_filters' => false 165 );166 167 $syaargs_filter = array();166 ]; 167 168 $syaargs_filter = []; 168 169 $syaargs_filter = apply_filters("sya_get_posts", $syaargs_filter); 169 170 … … 176 177 $syaposts = get_posts($syaargs); 177 178 178 $jmb = array();179 $jmb = []; 179 180 foreach ($syaposts as $jahrMitBeitrag) { 180 181 $jmb[] = date('Y', strtotime($jahrMitBeitrag->post_date)); … … 216 217 } 217 218 218 $entryclass = array();219 $entryclass = []; 219 220 220 221 $entryclass[] = ''; … … 238 239 } 239 240 if (get_option('sya_show_categories') == true) { 240 $sya_categories = array();241 $sya_categories = []; 241 242 foreach (wp_get_post_categories($syapost->ID) as $cat_id) { 242 243 $sya_categories[$cat_id] = get_cat_name($cat_id); … … 248 249 } 249 250 if (get_option('sya_show_tags') == true) { 250 $sya_tags = array();251 $sya_tags = []; 251 252 foreach (wp_get_post_tags($syapost->ID) as $tag) { 252 253 $sya_tags[$tag->term_id] = get_tag($tag)->name; … … 342 343 global $wpdb; 343 344 344 $allposts = array();345 $allposts = []; 345 346 $_post_status = "'" . join("','", $this->post_status) . "'"; 346 347 … … 351 352 $_year = date('Y', strtotime($syapost->post_date)); 352 353 353 $_query = array();354 $_query = []; 354 355 $_query[] = 'SELECT post.ID, post.post_title, post.post_date, YEAR(post.post_date) as post_year, post.post_status, post.comment_count, post.comment_status, post.post_author, post.post_excerpt, term_rel.term_taxonomy_id'; 355 356 if (defined('ICL_LANGUAGE_CODE') && ! defined('POLYLANG_VERSION')) { … … 390 391 public function get_archive_post_statuses() 391 392 { 392 return (current_user_can('read_private_posts')) ? array(393 return (current_user_can('read_private_posts')) ? [ 393 394 'private', 394 395 'publish' 395 ) : array(396 ] : [ 396 397 'publish' 397 );398 ]; 398 399 } 399 400 … … 425 426 $syaargs['year'] = date('Y'); 426 427 } elseif ($format == 'yearly_past') { 427 $syaargs['date_query']['before'] = array(428 $syaargs['date_query']['before'] = [ 428 429 'year' => date('Y') - 1, 429 430 'month' => 12, 430 431 'day' => 31 431 );432 ]; 432 433 $syaargs['date_query']['inclusive'] = true; 433 434 } elseif (preg_match("/^([0-9]{1,})-([0-9]{1,})/", $format)) { … … 436 437 $date_to = $from_to_arr[2] + $this->gmt_offset; 437 438 438 $syaargs['date_query']['after'] = array(439 $syaargs['date_query']['after'] = [ 439 440 'year' => date('Y', $date_from), 440 441 'month' => date('m', $date_from), 441 442 'day' => date('d', $date_from) 442 );443 $syaargs['date_query']['before'] = array(443 ]; 444 $syaargs['date_query']['before'] = [ 444 445 'year' => date('Y', $date_to), 445 446 'month' => date('m', $date_to), 446 447 'day' => date('d', $date_to) 447 );448 ]; 448 449 $syaargs['date_query']['inclusive'] = true; 449 450 } elseif (preg_match("/^[0-9]{4}$/", $format)) { … … 463 464 public function get_overview($yeararray) 464 465 { 465 $years = array();466 $years = []; 466 467 foreach ($yeararray as $year) { 467 468 $years[] = '<a href="#year' . $year . '">' . $year . '</a>'; … … 501 502 public function register_shortcode($atts) 502 503 { 503 extract(shortcode_atts( array(504 extract(shortcode_atts([ 504 505 'type' => 'yearly', 505 506 'exclude' => '', … … 507 508 'posttype' => 'post', 508 509 'dateformat' => '' 509 ), $atts, $this->shortcode));510 ], $atts, $this->shortcode)); 510 511 511 512 return $this->get($type, $exclude, $include, $posttype, $dateformat); … … 657 658 } 658 659 659 add_action('plugins_loaded', array(660 add_action('plugins_loaded', [ 660 661 'SimpleYearlyArchive', 661 662 'get_instance' 662 ));663 ]); 663 664 664 665 if (is_admin() && (! defined('DOING_AJAX') || ! DOING_AJAX)) { 665 666 require_once(plugin_dir_path(__FILE__) . 'admin/simple-yearly-archive-admin.php'); 666 add_action('plugins_loaded', array(667 add_action('plugins_loaded', [ 667 668 'SimpleYearlyArchive_Admin', 668 669 'get_instance' 669 ));670 ]); 670 671 require_once(plugin_dir_path(__FILE__) . 'admin/authorplugins.inc.php'); 671 672 }
Note: See TracChangeset
for help on using the changeset viewer.