Plugin Directory

Changeset 3080909


Ignore:
Timestamp:
05/03/2024 11:42:24 AM (23 months ago)
Author:
eroux
Message:

Update for 6.5

Location:
badges/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • badges/trunk/DisplayBadges.php

    r2155757 r3080909  
    11<?php
    2 /*
    3    Plugin Name: Display Badges
    4    Plugin URI: https://damn.org.za/widgets/
    5    Description: Display a set of Badges (named XXFoo.inc) within the widget
    6    Author: Eugéne Roux
    7     Version: 2.4.1
    8    Author URI: https://damn.org.za/
     2/**
     3 * Plugin Name: Display Badges
     4 * Plugin URI: https://damn.org.za/widgets/
     5 * Description: Display a set of Badges (named XXFoo.inc) within the widget
     6 * Author: Eugéne Roux
     7 * Version: 2.5
     8 * Author URI: https://damn.org.za/
    99 */
    1010
     
    1616    //  constructor
    1717    //
    18     public function DisplayBadges() {
    19         $widget_ops = array( 'classname' => 'widget_badges', 'description' => __( "Display a set of Badges (named XXFoo.inc) within the widget. The path is specified as an offset from the Blog's base URL." ));
    20         $this->WP_Widget( 'badges', __( 'Badges', 'badges_widget' ), $widget_ops );
     18    public function __construct() {
     19        $widget_ops = array(
     20            'classname' => 'badges_widget',
     21            'description' => "Display a set of Badges (named XXFoo.inc) within the widget. The path is specified as an offset from the Blog's base URL."
     22        );
     23        parent::__construct( 'badges_widget', 'Display Badges' );
    2124        $this->widget_defaults = array(
    2225            'internalcss' => true,
     
    2528            'path' => 'badges',
    2629        );
    27 
    2830    }
    2931
     
    140142// register DisplayBadges widget
    141143//
    142 add_action('widgets_init', create_function('', 'return register_widget( "DisplayBadges" );'));
     144function register_badges_widget() {
     145    register_widget( 'DisplayBadges' );
     146}
     147add_action( 'widgets_init', 'register_badges_widget' );
    143148
     149?>
  • badges/trunk/readme.txt

    r2755101 r3080909  
    33Contributors: eroux
    44Tags: books, read, reading, admin, administration, jadb
    5 Requires at least: 2.8
    6 Tested up to: 6.0.0
     5Requires at least: 6.0
     6Tested up to: 6.5.2
    77Stable tag: trunk
    88
Note: See TracChangeset for help on using the changeset viewer.