Plugin Directory

Changeset 3206424


Ignore:
Timestamp:
12/11/2024 02:49:53 PM (16 months ago)
Author:
ticketsource
Message:

Update WordPress readme schema

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ticketsource-events/tags/3.0.1/ticketsource-events.php

    r3206417 r3206424  
    11<?php
    22/*
    3 Plugin Name: TicketSource Events
    4 Plugin URI: https://ticketsource.co.uk/kb/marketing-and-publicity/ticket-shop-plugin-for-wordpress
    5 Description: TicketSource events list plugin.
    6 Version: 2.0.0
     3Plugin Name: TicketSource Ticket Shop
     4Plugin URI: https://www.ticketsource.co.uk/kb/additional-services-and-integrations/wordpress-plugin
     5Description: TicketSource Ticket Shop plugin for WordPress.
     6Version: 3.0.1
     7Requires PHP: 7.4
    78Author: TicketSource
    89Author URI: https://ticketsource.co.uk/
     
    2829Copyright 2005-2018 TicketSource.
    2930*/
    30 if ( ! class_exists( 'ticketsource_events') ):
    31     class ticketsource_events {
     31if (!class_exists('ticketsource_events')) :
     32    class ticketsource_events
     33    {
    3234
    3335        private static $instance;
    3436
    35         public static function instance() {
    36             if ( ! isset( self::$instance ) && ! ( self::$instance instanceof ticketsource_events ) ) {
     37        public static function instance()
     38        {
     39            if (!isset(self::$instance) && !(self::$instance instanceof ticketsource_events)) {
    3740                self::$instance = new ticketsource_events();
    3841                self::$instance->setup_constants();
     
    4346        }
    4447
    45         private function __construct() {}
     48        private function __construct()
     49        {
     50        }
    4651
    47         private function setup_constants() {
     52        private function setup_constants()
     53        {
    4854
    49             if ( ! defined( 'TS_VERSION' ) ) {
    50                 define( 'TS_VERSION', '3.0.0');
     55            if (!defined('TS_VERSION')) {
     56                define('TS_VERSION', '3.0.0');
    5157            }
    5258
    53             if ( ! defined( 'TS_PLUGIN_DIR' ) ) {
    54                 define( 'TS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
     59            if (!defined('TS_PLUGIN_DIR')) {
     60                define('TS_PLUGIN_DIR', plugin_dir_path(__FILE__));
    5561            }
    5662        }
    5763
    58         private function includes() {
     64        private function includes()
     65        {
    5966            require_once TS_PLUGIN_DIR . 'includes/ticketsource-events-build.php';
    6067        }
     
    6269endif; // end class
    6370
    64 function import_ticketsource_events() {
     71function import_ticketsource_events()
     72{
    6573    return ticketsource_events::instance();
    6674}
Note: See TracChangeset for help on using the changeset viewer.