Plugin Directory

Changeset 3094815

Timestamp:
05/29/2024 08:06:29 PM (2 months ago)
Author:
room34
Message:

Version 11.2.0-beta-1

Location:
ics-calendar
Files:
144 added
8 edited

Legend:

Unmodified
Added
Removed
  • ics-calendar/trunk/assets/admin-script.js

    r3091077 r3094815  
    55
    66    // 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');
    1011        if (history.pushState) {
    11             window.history.pushState({}, document.title, jQuery(this).attr('href'));
     12            window.history.pushState({}, document.title, );
    1213        }
    1314        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  
    4444    public $tz = null;
    4545   
     46
    4647    protected $ical_path = '/vendors/ics-parser/src/ICal/ICal.php';
    4748    protected $event_path = '/vendors/ics-parser/src/ICal/Event.php';
     
    165166
    166167        // 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;
    171173        $this->list_style_views = apply_filters('r34ics_list_style_views', $this->list_style_views);
    172174       
     
    20192021        }
    20202022        $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;
    20222028    }
    20232029
  • ics-calendar/trunk/ics-calendar.php

    r3094005 r3094815  
    44Plugin URI: https://icscalendar.com
    55Description: 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-1
     6Version: 11.-beta-1
    77Requires at least: 4.9
    88Requires PHP: 7.0
     
    5959   
    6060    // 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(); }
    6262   
    6363}
  • ics-calendar/trunk/readme.txt

    r3094005 r3094815  
    100100== Changelog ==
    101101
    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.
    105112
    106113= 11.1.0 - 2024.05.22 =
  • ics-calendar/trunk/templates/admin/admin.php

    r3091077 r3094815  
    4848                        <h2><?php _e('Settings', 'r34ics'); ?></h2>
    4949   
    50                         <form id="r34ics-admin-options" method="post" action="">
     50                        <form id="r34ics-admin-options" method="post" action="">
    5151                            <?php
    5252                            wp_nonce_field('r34ics','r34ics-admin-options-nonce');
  • ics-calendar/trunk/templates/admin/sidebar.php

    r3091077 r3094815  
    2020    {
    2121        ?>
    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>
    2323        <?php
    2424    }
  • ics-calendar/trunk/templates/admin/utilities.php

    r3091077 r3094815  
    77        <h3><?php printf(__('%1$s Data Cache', 'r34ics'), 'ICS Calendar'); ?></h3>
    88   
    9         <form id="r34ics-purge-calendar-transients" method="post" action="">
     9        <form id="r34ics-purge-calendar-transients" method="post" action="">
    1010            <?php
    1111            wp_nonce_field('r34ics','r34ics-purge-calendar-transients-nonce');
     
    2323        <p><?php _e('If you are concerned that the plugin is not properly retrieving your feed, you can test the URL here.', 'r34ics'); ?></p>
    2424   
    25         <form id="r34ics-url-tester" method="post" action="#ics-feed-url-tester">
     25        <form id="r34ics-url-tester" method="post" action="#">
    2626            <?php
    2727            wp_nonce_field('r34ics','r34ics-url-tester-nonce');
Note: See TracChangeset for help on using the changeset viewer.