Changeset 1393770
- Timestamp:
- 04/13/2016 07:44:33 AM (10 years ago)
- Location:
- eventupon-calendar/trunk
- Files:
-
- 3 edited
-
eventupon-calendar.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
-
settings.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eventupon-calendar/trunk/eventupon-calendar.php
r1392873 r1393770 4 4 Plugin URI: https://wordpress.org/plugins/eventupon-calendar/ 5 5 Description: Displays events from EventUpon.com, activate and place [eu-calendar] tag to a page you want to have the calendar. 6 Version: 1.4. 16 Version: 1.4.2 7 7 Author: Max Kovrigovich 8 8 Author URI: https://www.linkedin.com/in/max-kovrigovich-007bb888 … … 32 32 const EU_CALENDAR_TAG = 'eu-calendar'; 33 33 const EU_CALENDAR_BASE = 'www.eventupon.com'; 34 //const EU_CALENDAR_BASE = 'www.eventupon.us';34 // const EU_CALENDAR_BASE = 'www.eventupon.us'; 35 35 //const EU_CALENDAR_BASE = 'www.eventupon.dev'; 36 36 //const EU_CALENDAR_BASE = 'www.eventupon'; 37 37 const PREFIX = 'eventupon_calendar'; 38 38 39 40 private static $https_prefix; 39 41 private $event_api_url; 40 42 private $token; … … 56 58 require_once(sprintf("%s/settings.php", dirname(__FILE__))); 57 59 $this->pageSettings = new EventUpon_Calendar_Settings(); 60 self::$https_prefix = get_option(EventUpon_Calendar::PREFIX . '_http_s', 'http'); 58 61 $this->token = get_option(EventUpon_Calendar::PREFIX . '_saved_search_id', ''); 62 // $this->event_api_url = self::$https_prefix."://" . self::EU_CALENDAR_BASE . "/services/rest.json?"; 59 63 $this->event_api_url = "http://" . self::EU_CALENDAR_BASE . "/services/rest.json?"; 60 64 /* require_once(sprintf("%s/add_event.php", dirname(__FILE__))); … … 400 404 delete_option(EventUpon_Calendar::PREFIX . '_header_text_color'); 401 405 delete_option(EventUpon_Calendar::PREFIX . '_view_mode'); 406 delete_option(EventUpon_Calendar::PREFIX . '_http_s'); 402 407 delete_option(EventUpon_Calendar::PREFIX . '_saved_search_id'); 403 408 delete_option(EventUpon_Calendar::PREFIX . '_url'); … … 427 432 $colorHeaderText = get_option(EventUpon_Calendar::PREFIX . '_header_text_color', '#000000'); 428 433 $cssFile = get_option(EventUpon_Calendar::PREFIX . '_css_file', ''); 429 $url = get_option(EventUpon_Calendar::PREFIX . '_url', '//' . self::EU_CALENDAR_BASE . '/embed/calendar');434 $url = preg_replace('/^http(s)?/i' , self::$https_prefix, get_option(EventUpon_Calendar::PREFIX . '_url', '//' . self::EU_CALENDAR_BASE . '/embed/calendar') ); 430 435 $activateLinks = get_option(EventUpon_Calendar::PREFIX . '_activate_links', 0); 431 436 -
eventupon-calendar/trunk/readme.txt
r1392872 r1393770 114 114 == Changelog == 115 115 116 = 1.4.2 = 117 118 Setting added for http or https. 119 Updated readme.txt 120 116 121 = 1.4.1 = 117 122 -
eventupon-calendar/trunk/settings.php
r1392872 r1393770 17 17 EventUpon_Calendar::PREFIX . '_height' => '1700px', 18 18 EventUpon_Calendar::PREFIX . '_view_mode' => 'agenda', 19 EventUpon_Calendar::PREFIX . '_http_s' => 'https', 19 20 EventUpon_Calendar::PREFIX . '_url' => '//' . EventUpon_Calendar::EU_CALENDAR_BASE . '/embed/calendar', 20 21 EventUpon_Calendar::PREFIX . '_background_color' => '#FFFFFF', … … 48 49 register_setting(EventUpon_Calendar::PREFIX . '-group', EventUpon_Calendar::PREFIX . '_header_text_color'); 49 50 register_setting(EventUpon_Calendar::PREFIX . '-group', EventUpon_Calendar::PREFIX . '_view_mode'); 51 register_setting(EventUpon_Calendar::PREFIX . '-group', EventUpon_Calendar::PREFIX . '_http_s'); 50 52 register_setting(EventUpon_Calendar::PREFIX . '-group', EventUpon_Calendar::PREFIX . '_saved_search_id'); 51 53 register_setting(EventUpon_Calendar::PREFIX . '-group', EventUpon_Calendar::PREFIX . '_activate_links'); … … 96 98 'field' => EventUpon_Calendar::PREFIX . '_view_mode', 97 99 'options' => array('discovery' => 'Discovery', 'week' => 'Week', 'month' => 'Month', 'agenda' => 'Agenda'), 100 ) 101 ); 102 103 add_settings_field( 104 EventUpon_Calendar::PREFIX . '-calendar_http_s', 105 'URL Prefix (HTTPS/HTTP)', 106 array(&$this, 'settings_field_select'), 107 EventUpon_Calendar::PREFIX . '_general', 108 EventUpon_Calendar::PREFIX . '-section', 109 array( 110 'field' => EventUpon_Calendar::PREFIX . '_http_s', 111 'options' => array('http' => 'HTTP', 'https' => 'HTTPS'), 98 112 ) 99 113 );
Note: See TracChangeset
for help on using the changeset viewer.