Changeset 3080909
- Timestamp:
- 05/03/2024 11:42:24 AM (23 months ago)
- Location:
- badges/trunk
- Files:
-
- 2 edited
-
DisplayBadges.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
badges/trunk/DisplayBadges.php
r2155757 r3080909 1 1 <?php 2 /* 3 Plugin Name: Display Badges4 Plugin URI: https://damn.org.za/widgets/5 Description: Display a set of Badges (named XXFoo.inc) within the widget6 Author: Eugéne Roux7 Version: 2.4.18 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/ 9 9 */ 10 10 … … 16 16 // constructor 17 17 // 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' ); 21 24 $this->widget_defaults = array( 22 25 'internalcss' => true, … … 25 28 'path' => 'badges', 26 29 ); 27 28 30 } 29 31 … … 140 142 // register DisplayBadges widget 141 143 // 142 add_action('widgets_init', create_function('', 'return register_widget( "DisplayBadges" );')); 144 function register_badges_widget() { 145 register_widget( 'DisplayBadges' ); 146 } 147 add_action( 'widgets_init', 'register_badges_widget' ); 143 148 149 ?> -
badges/trunk/readme.txt
r2755101 r3080909 3 3 Contributors: eroux 4 4 Tags: books, read, reading, admin, administration, jadb 5 Requires at least: 2.86 Tested up to: 6. 0.05 Requires at least: 6.0 6 Tested up to: 6.5.2 7 7 Stable tag: trunk 8 8
Note: See TracChangeset
for help on using the changeset viewer.