Plugin Directory

Changeset 2994698

Timestamp:
11/12/2023 01:38:01 PM (9 months ago)
Author:
nielslange
Message:

Update to version 2.2 from GitHub

Location:
smntcs-simple-events-widget
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • smntcs-simple-events-widget/tags/2.2/README.md

    r2994671 r2994698  
    2626
    2727## Changelog
     28
     29
     30
     31
    2832
    2933### 2.1 (2023.11.12)
  • smntcs-simple-events-widget/tags/2.2/README.txt

    r2994671 r2994698  
    33Contributors:       nielslange
    44Tags:               Simple Events, Event, Widget, Sidebar
    5 Stable tag:         2.1
     5Stable tag:         2.
    66Tested up to:       6.4
    77Requires at least:  3.4
     
    3232
    3333== Changelog ==
     34
     35
     36
     37
    3438
    3539= 2.1 (2023.11.12) =
  • smntcs-simple-events-widget/tags/2.2/includes/class-smntcs-simple-events.php

    r2994671 r2994698  
    2020    public function __construct() {
    2121        add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
    22         add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugin_settings_link' ) );
     22        add_filter( 'plugin_action_links_' . plugin_basename( ), array( $this, 'plugin_settings_link' ) );
    2323        add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
    2424        add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
     
    3333     */
    3434    public function load_textdomain() {
    35         load_plugin_textdomain( 'smntcs-simple-events-widget', false, basename( dirname( __FILE__ ) ) . '/languages' );
     35        load_plugin_textdomain( 'smntcs-simple-events-widget', false, basename( dirname( ) ) . '/languages' );
    3636    }
    3737
     
    5555     */
    5656    public function admin_enqueue_scripts() {
    57         $plugin_data = get_plugin_data( __FILE__ );
     57        $plugin_data = get_plugin_data( );
    5858        wp_enqueue_script( 'jquery-ui-datepicker' );
    59         wp_enqueue_script( 'smntcs-simple-events-script', plugin_dir_url( __FILE__ ) . '/js/custom.js', array( 'jquery' ), $plugin_data['Version'] );
    60         wp_enqueue_style( 'smntcs-simple-events-styles', plugin_dir_url( __FILE__ ) . '/js/jquery-ui.css', array(), $plugin_data['Version'] );
     59        wp_enqueue_script( 'smntcs-simple-events-script', plugin_dir_url( js/custom.js', array( 'jquery' ), $plugin_data['Version'] );
     60        wp_enqueue_style( 'smntcs-simple-events-styles', plugin_dir_url( ) . '/js/jquery-ui.css', array(), $plugin_data['Version'] );
    6161    }
    6262
  • smntcs-simple-events-widget/tags/2.2/smntcs-simple-events-widget.php

    r2994671 r2994698  
    77 * Author URI:            https://nielslange.de
    88 * Text Domain:           smntcs-simple-events-widget
    9  * Version:               2.1
     9 * Version:               2.
    1010 * Requires PHP:          5.6
    1111 * Requires at least:     3.4
     
    1616 */
    1717
     18
    1819defined( 'ABSPATH' ) || exit;
    1920
     21
     22
     23
    2024// Include the main class file.
    21 require_once plugin_dir_path( __FILE__ ) . 'includes/class-smntcs-simple-events.php';
     25require_once plugin_dir_path( ) . 'includes/class-smntcs-simple-events.php';
    2226
    2327// Include the widget class file.
    24 require_once plugin_dir_path( __FILE__ ) . 'includes/class-smntcs-simple-events-widget.php';
     28require_once plugin_dir_path( ) . 'includes/class-smntcs-simple-events-widget.php';
  • smntcs-simple-events-widget/trunk/README.md

    r2994671 r2994698  
    2626
    2727## Changelog
     28
     29
     30
     31
    2832
    2933### 2.1 (2023.11.12)
  • smntcs-simple-events-widget/trunk/README.txt

    r2994671 r2994698  
    33Contributors:       nielslange
    44Tags:               Simple Events, Event, Widget, Sidebar
    5 Stable tag:         2.1
     5Stable tag:         2.
    66Tested up to:       6.4
    77Requires at least:  3.4
     
    3232
    3333== Changelog ==
     34
     35
     36
     37
    3438
    3539= 2.1 (2023.11.12) =
  • smntcs-simple-events-widget/trunk/includes/class-smntcs-simple-events.php

    r2994671 r2994698  
    2020    public function __construct() {
    2121        add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
    22         add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugin_settings_link' ) );
     22        add_filter( 'plugin_action_links_' . plugin_basename( ), array( $this, 'plugin_settings_link' ) );
    2323        add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
    2424        add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
     
    3333     */
    3434    public function load_textdomain() {
    35         load_plugin_textdomain( 'smntcs-simple-events-widget', false, basename( dirname( __FILE__ ) ) . '/languages' );
     35        load_plugin_textdomain( 'smntcs-simple-events-widget', false, basename( dirname( ) ) . '/languages' );
    3636    }
    3737
     
    5555     */
    5656    public function admin_enqueue_scripts() {
    57         $plugin_data = get_plugin_data( __FILE__ );
     57        $plugin_data = get_plugin_data( );
    5858        wp_enqueue_script( 'jquery-ui-datepicker' );
    59         wp_enqueue_script( 'smntcs-simple-events-script', plugin_dir_url( __FILE__ ) . '/js/custom.js', array( 'jquery' ), $plugin_data['Version'] );
    60         wp_enqueue_style( 'smntcs-simple-events-styles', plugin_dir_url( __FILE__ ) . '/js/jquery-ui.css', array(), $plugin_data['Version'] );
     59        wp_enqueue_script( 'smntcs-simple-events-script', plugin_dir_url( js/custom.js', array( 'jquery' ), $plugin_data['Version'] );
     60        wp_enqueue_style( 'smntcs-simple-events-styles', plugin_dir_url( ) . '/js/jquery-ui.css', array(), $plugin_data['Version'] );
    6161    }
    6262
  • smntcs-simple-events-widget/trunk/smntcs-simple-events-widget.php

    r2994671 r2994698  
    77 * Author URI:            https://nielslange.de
    88 * Text Domain:           smntcs-simple-events-widget
    9  * Version:               2.1
     9 * Version:               2.
    1010 * Requires PHP:          5.6
    1111 * Requires at least:     3.4
     
    1616 */
    1717
     18
    1819defined( 'ABSPATH' ) || exit;
    1920
     21
     22
     23
    2024// Include the main class file.
    21 require_once plugin_dir_path( __FILE__ ) . 'includes/class-smntcs-simple-events.php';
     25require_once plugin_dir_path( ) . 'includes/class-smntcs-simple-events.php';
    2226
    2327// Include the widget class file.
    24 require_once plugin_dir_path( __FILE__ ) . 'includes/class-smntcs-simple-events-widget.php';
     28require_once plugin_dir_path( ) . 'includes/class-smntcs-simple-events-widget.php';
Note: See TracChangeset for help on using the changeset viewer.