Changeset 3094815
- Timestamp:
- 05/29/2024 08:06:29 PM (2 months ago)
- Location:
- ics-calendar
- Files:
-
- 144 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
ics-calendar/trunk/assets/admin-script.js
r3091077 r3094815 5 5 6 6 // Admin page tabbed navigation 7 jQuery('.r34ics-menu a').on('click', function() { 8 jQuery(jQuery(this).attr('href')).attr('data-current', 'current').siblings().removeAttr('data-current'); 9 jQuery(this).attr('data-current', 'current').parent().siblings().find('a').removeAttr('data-current'); 7 jQuery('.r34ics-menu a, .wrap.r34ics a[href^=#]').on('click', function() { 8 var href = jQuery(this).attr('href'); 9 jQuery(href).attr('data-current', 'current').siblings().removeAttr('data-current'); 10 jQuery('.r34ics-menu a[href="' + href + '"]').attr('data-current', 'current').parent().siblings().find('a').removeAttr('data-current'); 10 11 if (history.pushState) { 11 window.history.pushState({}, document.title, jQuery(this).attr('href'));12 window.history.pushState({}, document.title, ); 12 13 } 13 14 return false; -
ics-calendar/trunk/assets/admin-script.min.js
r3091077 r3094815 1 /*! ICS Calendar admin scripts https://icscalendar.com */ jQuery(function(){jQuery(".r34ics-menu a ").on("click",function(){return jQuery(jQuery(this).attr("href")).attr("data-current","current").siblings().removeAttr("data-current"),jQuery(this).attr("data-current","current").parent().siblings().find("a").removeAttr("data-current"),history.pushState&&window.history.pushState({},document.title,jQuery(this).attr("href")),!1}),jQuery("#poststuff").on("click",".add_r34ics",function(){jQuery("#insert_r34ics").addClass("open")}),jQuery("#insert_r34ics_close, #insert_r34ics_overlay").on("click",function(){jQuery("#insert_r34ics").removeClass("open")}),jQuery("#insert_r34ics_form").on("submit",function(){if(jQuery(this).hasClass("saved_calendar"))return!1;if(""==jQuery("#insert_r34ics_url").val()&&0==jQuery("#insert_r34ics_id").length||""==jQuery("#insert_r34ics_id").val())return alert("ICS Subscribe URL is required."),jQuery("#insert_r34ics_url").focus(),!1;var r='[ics_calendar url="'+jQuery("#insert_r34ics_url").val().replace('"',"")+'"';return""!=jQuery("#insert_r34ics_title").val()&&(r+=' title="'+jQuery("#insert_r34ics_title").val().replace('"',"")+'"'),""!=jQuery("#insert_r34ics_description").val()&&(r+=' description="'+jQuery("#insert_r34ics_description").val().replace('"',"")+'"'),""!=jQuery("#insert_r34ics_view").val()&&(r+=' view="'+jQuery("#insert_r34ics_view").val().replace('"',"")+'"'),"list"==jQuery("#insert_r34ics_view").val()&&parseInt(jQuery("#insert_r34ics_count").val())>0&&(r+=' count="'+parseInt(jQuery("#insert_r34ics_count").val())+'"'),"list"==jQuery("#insert_r34ics_view").val()&&""!=jQuery("#insert_r34ics_format").val()&&(r+=' format="'+jQuery("#insert_r34ics_format").val().replace('"',"")+'"'),!0==jQuery("#insert_r34ics_eventdesc").prop("checked")&&(r+=' eventdesc="true"'),!0==jQuery("#insert_r34ics_location").prop("checked")&&(r+=' location="true"'),!0==jQuery("#insert_r34ics_organizer").prop("checked")&&(r+=' organizer="true"'),r+="]",window.send_to_editor(r),jQuery("#insert_r34ics_form")[0].reset(),jQuery("#r34ics_list_view_options").hide(),jQuery("#insert_r34ics").removeClass("open"),!1})}),document.addEventListener("DOMContentLoaded",function(){jQuery(".r34ics").length>0&&setTimeout(function(){var r=location.hash&&jQuery('.r34ics-menu a[href="'+location.hash+'"]').length>0?location.hash:jQuery(".r34ics-menu a:first-of-type").attr("href");jQuery('.r34ics-menu a[href="'+r+'"]').trigger("click"),window.scrollTo(-100,-100)},1)});1 /*! ICS Calendar admin scripts https://icscalendar.com */ jQuery(function(){jQuery(".r34ics-menu a),!1}),jQuery("#poststuff").on("click",".add_r34ics",function(){jQuery("#insert_r34ics").addClass("open")}),jQuery("#insert_r34ics_close, #insert_r34ics_overlay").on("click",function(){jQuery("#insert_r34ics").removeClass("open")}),jQuery("#insert_r34ics_form").on("submit",function(){if(jQuery(this).hasClass("saved_calendar"))return!1;if(""==jQuery("#insert_r34ics_url").val()&&0==jQuery("#insert_r34ics_id").length||""==jQuery("#insert_r34ics_id").val())return alert("ICS Subscribe URL is required."),jQuery("#insert_r34ics_url").focus(),!1;var r='[ics_calendar url="'+jQuery("#insert_r34ics_url").val().replace('"',"")+'"';return""!=jQuery("#insert_r34ics_title").val()&&(r+=' title="'+jQuery("#insert_r34ics_title").val().replace('"',"")+'"'),""!=jQuery("#insert_r34ics_description").val()&&(r+=' description="'+jQuery("#insert_r34ics_description").val().replace('"',"")+'"'),""!=jQuery("#insert_r34ics_view").val()&&(r+=' view="'+jQuery("#insert_r34ics_view").val().replace('"',"")+'"'),"list"==jQuery("#insert_r34ics_view").val()&&parseInt(jQuery("#insert_r34ics_count").val())>0&&(r+=' count="'+parseInt(jQuery("#insert_r34ics_count").val())+'"'),"list"==jQuery("#insert_r34ics_view").val()&&""!=jQuery("#insert_r34ics_format").val()&&(r+=' format="'+jQuery("#insert_r34ics_format").val().replace('"',"")+'"'),!0==jQuery("#insert_r34ics_eventdesc").prop("checked")&&(r+=' eventdesc="true"'),!0==jQuery("#insert_r34ics_location").prop("checked")&&(r+=' location="true"'),!0==jQuery("#insert_r34ics_organizer").prop("checked")&&(r+=' organizer="true"'),r+="]",window.send_to_editor(r),jQuery("#insert_r34ics_form")[0].reset(),jQuery("#r34ics_list_view_options").hide(),jQuery("#insert_r34ics").removeClass("open"),!1})}),document.addEventListener("DOMContentLoaded",function(){jQuery(".r34ics").length>0&&setTimeout(function(){var r=location.hash&&jQuery('.r34ics-menu a[href="'+location.hash+'"]').length>0?location.hash:jQuery(".r34ics-menu a:first-of-type").attr("href");jQuery('.r34ics-menu a[href="'+r+'"]').trigger("click"),window.scrollTo(-100,-100)},1)}); -
ics-calendar/trunk/class-r34ics.php
r3094005 r3094815 44 44 public $tz = null; 45 45 46 46 47 protected $ical_path = '/vendors/ics-parser/src/ICal/ICal.php'; 47 48 protected $event_path = '/vendors/ics-parser/src/ICal/Event.php'; … … 165 166 166 167 // Set property values 167 $this->ical_path = rtrim(plugin_dir_path(__FILE__), '/') . $this->ical_path; 168 $this->event_path = rtrim(plugin_dir_path(__FILE__), '/') . $this->event_path; 169 $this->ical_legacy_path = rtrim(plugin_dir_path(__FILE__), '/') . $this->ical_legacy_path; 170 $this->event_legacy_path = rtrim(plugin_dir_path(__FILE__), '/') . $this->event_legacy_path; 168 $this->r34ics_path = rtrim(plugin_dir_path(__FILE__), '/'); 169 $this->ical_path = $this->r34ics_path . $this->ical_path; 170 $this->event_path = $this->r34ics_path . $this->event_path; 171 $this->ical_legacy_path = $this->r34ics_path . $this->ical_legacy_path; 172 $this->event_legacy_path = $this->r34ics_path . $this->event_legacy_path; 171 173 $this->list_style_views = apply_filters('r34ics_list_style_views', $this->list_style_views); 172 174 … … 2019 2021 } 2020 2022 $plugin_data = get_plugin_data(dirname(__FILE__) . '/ics-calendar.php'); 2021 return $plugin_data['Version']; 2023 $version = $plugin_data['Version']; 2024 // Are we running an embedded version? 2025 global $r34ics_embedded; 2026 if (!empty($r34ics_embedded)) { $version .= 'E'; } 2027 return $version; 2022 2028 } 2023 2029 -
ics-calendar/trunk/ics-calendar.php
r3094005 r3094815 4 4 Plugin URI: https://icscalendar.com 5 5 Description: Turn your Google Calendar, Microsoft Office 365 or Apple iCloud Calendar into a seamlessly integrated, auto-updating, zero-maintenance WordPress experience. 6 Version: 11. 1.1-beta-16 Version: 11.-beta-1 7 7 Requires at least: 4.9 8 8 Requires PHP: 7.0 … … 59 59 60 60 // Conditionally run update function 61 if (is_admin() && version_compare(get_option('r34ics_version'), $R34ICS->version, ' <')) { r34ics_update(); }61 if (is_admin() && version_compare(get_option('r34ics_version'), $R34ICS->version, '')) { r34ics_update(); } 62 62 63 63 } -
ics-calendar/trunk/readme.txt
r3094005 r3094815 100 100 == Changelog == 101 101 102 = 11.1.1-beta-1 - 2024.05.28 = 103 104 * Added `fulldateintable` parameter. By default, month and list views show only the day number in the table on desktop breakpoints, and use the date format defined by the `format` parameter for mobile breakpoints. When `fulldateintable="true"` is set, the `format` value will be used to display the date in the table on desktop as well. 102 = 11.2.0-beta-1 - 2024.05.29 = 103 104 * Admin: 105 * Fixed issue after introduction of tabbed layout on ICS Calendar admin page that would cause the wrong tab to load after clicking buttons on the Utilities tab. 106 * Added "System Report" link in sidebar. 107 * Shortcode: 108 * Added `fulldateintable` parameter. By default, month and list views show only the day number in the table on desktop breakpoints, and use the date format defined by the `format` parameter for mobile breakpoints. When `fulldateintable="true"` is set, the `format` value will be used to display the date in the table on desktop as well. 109 * Miscellaneous: 110 * Modified loading logic to run `r34ics_update()` if the version number has *changed*, not just if it has increased. 111 * Updated protected properties of the `R34ICS` class. 105 112 106 113 = 11.1.0 - 2024.05.22 = -
ics-calendar/trunk/templates/admin/admin.php
r3091077 r3094815 48 48 <h2><?php _e('Settings', 'r34ics'); ?></h2> 49 49 50 <form id="r34ics-admin-options" method="post" action=" ">50 <form id="r34ics-admin-options" method="post" action=""> 51 51 <?php 52 52 wp_nonce_field('r34ics','r34ics-admin-options-nonce'); -
ics-calendar/trunk/templates/admin/sidebar.php
r3091077 r3094815 20 20 { 21 21 ?> 22 <p><mark class="error"><?php printf(__('When emailing, please include the %1$sSystem Report%2$s from this page.', 'r34ics'), '< strong style="white-space: nowrap;">', '</strong>'); ?></mark></p>22 <p><mark class="error"><?php printf(__('When emailing, please include the %1$sSystem Report%2$s from this page.', 'r34ics'), '<>'); ?></mark></p> 23 23 <?php 24 24 } -
ics-calendar/trunk/templates/admin/utilities.php
r3091077 r3094815 7 7 <h3><?php printf(__('%1$s Data Cache', 'r34ics'), 'ICS Calendar'); ?></h3> 8 8 9 <form id="r34ics-purge-calendar-transients" method="post" action=" ">9 <form id="r34ics-purge-calendar-transients" method="post" action=""> 10 10 <?php 11 11 wp_nonce_field('r34ics','r34ics-purge-calendar-transients-nonce'); … … 23 23 <p><?php _e('If you are concerned that the plugin is not properly retrieving your feed, you can test the URL here.', 'r34ics'); ?></p> 24 24 25 <form id="r34ics-url-tester" method="post" action="# ics-feed-url-tester">25 <form id="r34ics-url-tester" method="post" action="#"> 26 26 <?php 27 27 wp_nonce_field('r34ics','r34ics-url-tester-nonce');
Note: See TracChangeset
for help on using the changeset viewer.