Changeset 3206424
- Timestamp:
- 12/11/2024 02:49:53 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ticketsource-events/tags/3.0.1/ticketsource-events.php
r3206417 r3206424 1 1 <?php 2 2 /* 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 3 Plugin Name: TicketSource Ticket Shop 4 Plugin URI: https://www.ticketsource.co.uk/kb/additional-services-and-integrations/wordpress-plugin 5 Description: TicketSource Ticket Shop plugin for WordPress. 6 Version: 3.0.1 7 Requires PHP: 7.4 7 8 Author: TicketSource 8 9 Author URI: https://ticketsource.co.uk/ … … 28 29 Copyright 2005-2018 TicketSource. 29 30 */ 30 if ( ! class_exists( 'ticketsource_events') ): 31 class ticketsource_events { 31 if (!class_exists('ticketsource_events')) : 32 class ticketsource_events 33 { 32 34 33 35 private static $instance; 34 36 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)) { 37 40 self::$instance = new ticketsource_events(); 38 41 self::$instance->setup_constants(); … … 43 46 } 44 47 45 private function __construct() {} 48 private function __construct() 49 { 50 } 46 51 47 private function setup_constants() { 52 private function setup_constants() 53 { 48 54 49 if ( ! defined( 'TS_VERSION' )) {50 define( 'TS_VERSION', '3.0.0');55 if (!defined('TS_VERSION')) { 56 define('TS_VERSION', '3.0.0'); 51 57 } 52 58 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__)); 55 61 } 56 62 } 57 63 58 private function includes() { 64 private function includes() 65 { 59 66 require_once TS_PLUGIN_DIR . 'includes/ticketsource-events-build.php'; 60 67 } … … 62 69 endif; // end class 63 70 64 function import_ticketsource_events() { 71 function import_ticketsource_events() 72 { 65 73 return ticketsource_events::instance(); 66 74 }
Note: See TracChangeset
for help on using the changeset viewer.