Plugin Directory

Changeset 1435151


Ignore:
Timestamp:
06/12/2016 01:23:38 AM (10 years ago)
Author:
matsuoshi
Message:

add banner images

Location:
small-archives/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • small-archives/trunk

    • Property svn:ignore set to
      [Rr][Ee][Aa][Dd][Mm][Ee].[Mm][Dd]
      .git
      HISTORY.md
      assets-wp-repo
      .gitignore
  • small-archives/trunk/readme.txt

    r1316311 r1435151  
    11=== Small Archives ===
    2 Contributors: h.matsuo
     2Contributors: matsuoshi
    33Tags: archive, archives, widget
    44Requires at least: 3.0
    5 Tested up to: 4.4
    6 Stable tag: 1.0
     5Tested up to: 4.5.2
     6Stable tag: 1.1.1
    77License: GPLv2 or later
    88
     
    1414
    1515= [before] =
    16 Dec. 2013
    17 Nov. 2013
    18 Oct. 2013
    19 Sep. 2013
     16Dec. 2013 
     17Nov. 2013 
     18Oct. 2013 
     19Sep. 2013 
    2020...
    2121
    2222= [after] =
    23 2013
    24 1 2 3 4 5 6 7 8 9 10 11 12
    25 2012
    26 1 2 3 4 5 6 7 8 9 10 11 12
     232013 
     241 2 3 4 5 6 7 8 9 10 11 12 
     252012 
     261 2 3 4 5 6 7 8 9 10 11 12 
    2727...
    2828
     
    4040
    4141== Changelog ==
     42= 1.1.1 =
     43* 2016.6: add banner
     44
     45= 1.1 =
     46* 2016.6: fix notice error
     47
    4248= 1.0 =
    4349* 2014.1: first version.
  • small-archives/trunk/small-archives.php

    r836950 r1435151  
    33Plugin Name: Small Archives
    44Description: monthly archive widget, display smaller list in the sidebar.
    5 Version: 1.0
     5Version: 1.1.1
    66Plugin URI: https://github.com/matsuoshi/wp-small-archives
    7 Author: h.matsuo
     7Author: matsuoshi
    88Author URI: https://github.com/matsuoshi/
    99License: GPLv2
     
    4040    {
    4141        extract($args);
     42        /** @var string $before_widget */
     43        /** @var string $before_title */
     44        /** @var string $after_title */
     45        /** @var string $after_widget */
    4246
    4347        echo $before_widget;
     
    4650        echo $before_title . apply_filters('widget_title', $title) . $after_title;
    4751
    48         $archives = $this->getArchives($instance);
     52        $archives = $this->getArchives();
    4953        if ($archives) {
    5054            if (! empty($instance['reverseYearOrder'])) {
     
    6771
    6872                        $month_after = ($instance['showPostCount']) ? "<span>({$count})</span>" : '';
    69                         $month_link = get_archives_link(get_month_link($year, $month), $month, $format, $before, $month_after . $after);
     73                        $month_link = get_archives_link(get_month_link($year, $month), $month, '', '', $month_after);
    7074                    ?>
    7175                        <li><?php echo $month_link ?></li>
     
    8488    /**
    8589     * call query
    86      * @param $instance
    8790     * @return array
    8891     */
    89     function getArchives($instance)
     92    function getArchives()
    9093    {
    9194        global $wpdb;
Note: See TracChangeset for help on using the changeset viewer.