PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
wp-events-manager
/
inc
/
admin
/
settings
<?php /** * WP Events Manager Admin Setting General class * * @author ThimPress, leehld * @package WP-Events-Manager/Class * @version 2.1.7 */ /** * Prevent loading this file directly */ defined( 'ABSPATH' ) || exit; class WPEMS_Admin_Setting_General extends WPEMS_Abstract_Setting { /** * ID * @var type mixed */ public $id = null; /** * Title * @var type string */ public $label = null; public function __construct() { $this->id = 'event_general'; $this->label = __( 'General', 'wp-events-manager' ); parent::__construct(); } /** * Get options setting page * @return type array */ public function get_settings() { $prefix = 'thimpress_events_'; $allow_register_event = wpems_get_option( 'allow_register_event' ); return apply_filters( 'event_admin_setting_page_' . $this->id, array( // Currency array( 'type' => 'section_start', 'id' => 'auth_currency_settings', 'title' => __( 'General Options', 'wp-events-manager' ), ), array( 'type' => 'yes_no', 'title' => __( 'Event registration', 'wp-events-manager' ), 'desc' => __( 'Allows user register events', 'wp-events-manager' ), 'id' => $prefix . 'allow_register_event', 'default' => 'yes', ), array( 'type' => 'select', 'title' => __( 'Currency', 'wp-events-manager' ), 'desc' => __( 'This controls what the currency prices', 'wp-events-manager' ), 'id' => $prefix . 'currency', 'options' => wpems_currencies(), 'default' => 'USD', 'class' => 'setting-currency' . ( $allow_register_event == 'no' ? ' hide-if-js' : '' ) . apply_filters( 'tp_event_currency_setting_fields_class', '' ), ), array( 'type' => 'select', 'title' => __( 'Currency Position', 'wp-events-manager' ), 'desc' => __( 'This controls the position of the currency symbol', 'wp-events-manager' ), 'id' => $prefix . 'currency_position', 'options' => array( 'left' => __( 'Left', 'wp-events-manager' ) . ' ' . '(£99.99)', 'right' => __( 'Right', 'wp-events-manager' ) . ' ' . '(99.99£)', 'left_space' => __( 'Left with space', 'wp-events-manager' ) . ' ' . '(£ 99.99)', 'right_space' => __( 'Right with space', 'wp-events-manager' ) . ' ' . '(99.99 £)', ), 'default' => 'left', 'class' => 'setting-currency-position' . ( $allow_register_event == 'no' ? ' hide-if-js' : '' ) . apply_filters( 'tp_event_currency_setting_fields_class', '' ), ), array( 'type' => 'text', 'title' => __( 'Thousand Separator', 'wp-events-manager' ), 'id' => $prefix . 'currency_thousand', 'default' => ',', 'class' => 'setting-currency-thousand' . ( $allow_register_event == 'no' ? ' hide-if-js' : '' ) . apply_filters( 'tp_event_currency_setting_fields_class', '' ), ), array( 'type' => 'text', 'title' => __( 'Decimal Separator', 'wp-events-manager' ), 'id' => $prefix . 'currency_separator', 'default' => '.', 'class' => 'setting-currency-separator' . ( $allow_register_event == 'no' ? ' hide-if-js' : '' ) . apply_filters( 'tp_event_currency_setting_fields_class', '' ), ), array( 'type' => 'number', 'title' => __( 'Number of Decimals', 'wp-events-manager' ), 'id' => $prefix . 'currency_num_decimal', 'atts' => array( 'step' => 'any' ), 'default' => '2', 'class' => 'setting-number-decimals' . ( $allow_register_event == 'no' ? ' hide-if-js' : '' ) . apply_filters( 'tp_event_currency_setting_fields_class', '' ), ), array( 'type' => 'text', 'title' => __( 'Google Map API Key', 'wp-events-manager' ), 'id' => $prefix . 'google_map_api_key', 'desc' => __( 'Refer on https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key', 'wp-events-manager' ), ), array( 'type' => 'section_end', 'id' => 'auth_currency_settings', ), ) ); } } return new WPEMS_Admin_Setting_General();
[+]
..
[-] class-wpems-admin-setting-emails.php
[edit]
[-] class-wpems-admin-setting-general.php
[edit]
[-] class-wpems-admin-setting-pages.php
[edit]
[-] class-wpems-admin-setting-checkout.php
[edit]