Plugin Directory

Changeset 3112714


Ignore:
Timestamp:
07/04/2024 05:05:21 PM (18 months ago)
Author:
donmhico
Message:

Sugar Calendar Lite v3.1.1

Location:
sugar-calendar-lite
Files:
1076 added
35 edited

Legend:

Unmodified
Added
Removed
  • sugar-calendar-lite/trunk/assets/js/features/event-ticketing/frontend/general.js

    r3112525 r3112714  
    7676     * Refresh the attendee labels.
    7777     *
    78      * @since 3.0.1
     78     * @since 3.1.0
    7979     */
    8080    function refresh_attendee_labels() {
  • sugar-calendar-lite/trunk/assets/js/frontend/blocks/common.js

    r3112525 r3112714  
    66     * Contains the shared functionality for all blocks.
    77     *
    8      * @since 3.0.1
     8     * @since 3.1.0
    99     */
    1010    const app = {
     
    1212         * Start the engine.
    1313         *
    14          * @since 3.0.1
     14         * @since 3.1.0
    1515         */
    1616        init() {
     
    2222         * Document ready.
    2323         *
    24          * @since 3.0.1
     24         * @since 3.1.0
    2525         */
    2626        ready() {
     
    3232         * Events.
    3333         *
    34          * @since 3.0.1
     34         * @since 3.1.0
    3535         */
    3636        events: {
     
    3939             * Close all popovers when user clicked outside of context.
    4040             *
    41              * @since 3.0.1
     41             * @since 3.1.0
    4242             *
    4343             * @param {Event} e The event object.
     
    7474         * Hide all popovers in the page.
    7575         *
    76          * @since 3.0.1
     76         * @since 3.1.0
    7777         */
    7878        hideAllPopovers() {
     
    105105 * Block Controls.
    106106 *
    107  * @since 3.0.1
     107 * @since 3.1.0
    108108 */
    109109SugarCalendarBlocks.Controls = SugarCalendarBlocks.Controls || function( $blockContainer ) {
     
    175175 * Event callback for pre-update.
    176176 *
    177  * @since 3.0.1
     177 * @since 3.1.0
    178178 *
    179179 * @param {Event}  e    The event object.
     
    190190 * Event callback for post-update.
    191191 *
    192  * @since 3.0.1
     192 * @since 3.1.0
    193193 *
    194194 * @param {Event}  e    The event object.
     
    205205 * Get the display mode.
    206206 *
    207  * @since 3.0.1
     207 * @since 3.1.0
    208208 *
    209209 * @return {string}
     
    217217 * Get the calendar IDs that are checked.
    218218 *
    219  * @since 3.0.1
     219 * @since 3.1.0
    220220 *
    221221 * @return {string[]}
     
    235235 * Event callback for changing the display mode of the block.
    236236 *
    237  * @since 3.0.1
     237 * @since 3.1.0
    238238 *
    239239 * @param {Event} e The event object.
     
    271271 * Event call back when the prev button is clicked.
    272272 *
    273  * @since 3.0.1
     273 * @since 3.1.0
    274274 */
    275275SugarCalendarBlocks.Controls.prototype.goToPrevious = function() {
     
    282282 * Event call back when the next button is clicked.
    283283 *
    284  * @since 3.0.1
     284 * @since 3.1.0
    285285 */
    286286SugarCalendarBlocks.Controls.prototype.goToNext = function() {
     
    293293 * Event callback for "This Month", "This Week", or "Today" button.
    294294 *
    295  * @since 3.0.1
     295 * @since 3.1.0
    296296 */
    297297SugarCalendarBlocks.Controls.prototype.goToCurrent = function() {
     
    310310 * Event callback for selecting a calendar to display.
    311311 *
    312  * @since 3.0.1
     312 * @since 3.1.0
    313313 */
    314314SugarCalendarBlocks.Controls.prototype.onSelectCalendar = function() {
     
    321321 * Event callback for searching events.
    322322 *
    323  * @since 3.0.1
     323 * @since 3.1.0
    324324 *
    325325 * @param {Event} e The event object.
     
    343343 * Event callback for focusing on the search field.
    344344 *
    345  * @since 3.0.1
     345 * @since 3.1.0
    346346 *
    347347 * @param {Event} e The event object.
     
    356356 * Event callback for focusing out on the search field.
    357357 *
    358  * @since 3.0.1
     358 * @since 3.1.0
    359359 *
    360360 * @param {Event} e The event object.
     
    369369 * Event callback for clicking the search icon.
    370370 *
    371  * @since 3.0.1
     371 * @since 3.1.0
    372372 *
    373373 * @param {Event} e The event object.
     
    382382 * Event callback for clearing the search field.
    383383 *
    384  * @since 3.0.1
     384 * @since 3.1.0
    385385 *
    386386 * @param {Event} e The event object.
     
    397397 * Event callback for selecting a calendar to display.
    398398 *
    399  * @since 3.0.1
     399 * @since 3.1.0
    400400 */
    401401SugarCalendarBlocks.Controls.prototype.filterDisplayedEvents = function() {
     
    408408 * Initialize the Datepicker.
    409409 *
    410  * @since 3.0.1
     410 * @since 3.1.0
    411411 */
    412412SugarCalendarBlocks.Controls.prototype.initDatePicker = function() {
     
    450450 * Update the Date of the block controls.
    451451 *
    452  * @since 3.0.1
     452 * @since 3.1.0
    453453 *
    454454 * @param {Object} newDate Object containing `year`, `month`, and `day`.
     
    466466 * Get the checked time of day.
    467467 *
    468  * @since 3.0.1
     468 * @since 3.1.0
    469469 *
    470470 * @return {Array}
     
    480480 * Get the checked days of the week.
    481481 *
    482  * @since 3.0.1
     482 * @since 3.1.0
    483483 *
    484484 * @return {Array}
     
    494494 * Control Popovers.
    495495 *
    496  * @since 3.0.1
     496 * @since 3.1.0
    497497 */
    498498SugarCalendarBlocks.Controls.Popovers = SugarCalendarBlocks.Controls.Popovers || function( $blockContainer ) {
     
    531531 * Event callback for handling the toggle of the controls popover.
    532532 *
    533  * @since 3.0.1
     533 * @since 3.1.0
    534534 *
    535535 * @param {jQuery} $button  The button that toggles the popover.
     
    553553 * Show the popover.
    554554 *
    555  * @since 3.0.1
     555 * @since 3.1.0
    556556 *
    557557 * @param {jQuery} $button  The button element.
  • sugar-calendar-lite/trunk/assets/js/frontend/blocks/event-list.js

    r3112525 r3112714  
    2626     * Update the block.
    2727     *
    28      * @since 3.0.1
     28     * @since 3.1.0
    2929     */
    3030    Block.prototype.update = function( args ) {
     
    7878     * Callback for the block:filterDisplayedEvents event.
    7979     *
    80      * @since 3.0.1
     80     * @since 3.1.0
    8181     */
    8282    Block.prototype.onFilterDisplayedEvents = function() {
     
    148148     * Callback for the previous week button click.
    149149     *
    150      * @since 3.0.1
     150     * @since 3.1.0
    151151     */
    152152    Block.prototype.onPreviousWeekBtnClick = function () {
     
    158158     * Callback for the next week button click.
    159159     *
    160      * @since 3.0.1
     160     * @since 3.1.0
    161161     */
    162162    Block.prototype.onNextWeekBtnClick = function() {
     
    170170         * Start the engine.
    171171         *
    172          * @since 3.0.1
     172         * @since 3.1.0
    173173         */
    174174        init() {
     
    180180         * Document ready.
    181181         *
    182          * @since 3.0.1
     182         * @since 3.1.0
    183183         */
    184184        ready() {
  • sugar-calendar-lite/trunk/assets/languages/sugar-calendar.pot

    r3112525 r3112714  
    11msgid ""
    22msgstr ""
    3 "Project-Id-Version: Sugar Calendar 3.1.0\n"
     3"Project-Id-Version: Sugar Calendar 3.1.1\n"
    44"Report-Msgid-Bugs-To: https://sugarcalendar.com/support/\n"
    55"Last-Translator: Sugar Calendar <[email protected]>\n"
     
    88"Content-Type: text/plain; charset=UTF-8\n"
    99"Content-Transfer-Encoding: 8bit\n"
    10 "POT-Creation-Date: 2024-07-04T05:50:54+00:00\n"
     10"POT-Creation-Date: 2024-07-04T16:32:10+00:00\n"
    1111"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1212"X-Generator: WP-CLI 2.8.1\n"
  • sugar-calendar-lite/trunk/includes/common/Features/EventTicketing/Feature.php

    r3112525 r3112714  
    1515     * Setup.
    1616     *
    17      * @since 3.0.1
     17     * @since 3.1.0
    1818     */
    1919    protected function setup() {}
     
    2222     * Setup.
    2323     *
    24      * @since 3.0.1
     24     * @since 3.1.0
    2525     */
    2626    public function setup_plugin() {
     
    3434     * Setup the constants.
    3535     *
    36      * @since 3.0.1
     36     * @since 3.1.0
    3737     */
    3838    private function setup_constants() {
     
    4545             * Feature Folder Path.
    4646             *
    47              * @since 3.0.1
     47             * @since 3.1.0
    4848             */
    4949            define( 'SC_CORE_ET_PLUGIN_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
     
    5454             * Feature Folder URL.
    5555             *
    56              * @since 3.0.1
     56             * @since 3.1.0
    5757             */
    5858            define( 'SC_CORE_ET_PLUGIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . $dir ) );
     
    6363             * Feature assets URL.
    6464             *
    65              * @since 3.0.1
     65             * @since 3.1.0
    6666             */
    6767            define( 'SC_CORE_ET_PLUGIN_ASSETS_URL', SC_PLUGIN_ASSETS_URL . 'css/features/event-ticketing' );
     
    7272     * Setup files.
    7373     *
    74      * @since 3.0.1
     74     * @since 3.1.0
    7575     *
    7676     * @return void
     
    9595     * Automatically include administration specific files.
    9696     *
    97      * @since 3.0.1
     97     * @since 3.1.0
    9898     */
    9999    private function include_admin() {
     
    107107     * Get the Frontend instance.
    108108     *
    109      * @since 3.0.1
     109     * @since 3.1.0
    110110     *
    111111     * @return Frontend\Loader
     
    129129     * Automatically include front-end specific files.
    130130     *
    131      * @since 3.0.1
     131     * @since 3.1.0
    132132     */
    133133    private function include_frontend() {
     
    139139     * Automatically include any files in the /includes/classes/ directory.
    140140     *
    141      * @since 3.0.1
     141     * @since 3.1.0
    142142     */
    143143    private function include_classes() {
     
    182182     * Automatically include files that are shared between all contexts.
    183183     *
    184      * @since 3.0.1
     184     * @since 3.1.0
    185185     */
    186186    private function include_common() {
     
    192192     * Automatically include any files in the /includes/drop-ins/ directory.
    193193     *
    194      * @since 3.0.1
     194     * @since 3.1.0
    195195     */
    196196    private function include_dropins() {
     
    202202     * Automatically include any files in the /includes/gateways/ directory.
    203203     *
    204      * @since 3.0.1
     204     * @since 3.1.0
    205205     */
    206206    private function include_gateways() {
     
    212212     * Automatically include any files in the /includes/integrations/ directory.
    213213     *
    214      * @since 3.0.1
     214     * @since 3.1.0
    215215     */
    216216    private function include_integrations() {
     
    222222     * Automatically include any files in a given directory.
    223223     *
    224      * @since 3.0.1
     224     * @since 3.1.0
    225225     *
    226226     * @param string $dir The name of the directory to include files from.
     
    275275     * Setup the rest of the application.
    276276     *
    277      * @since 3.0.1
     277     * @since 3.1.0
    278278     */
    279279    private function setup_application() {
     
    294294     * Handle Pro Addon Integrations.
    295295     *
    296      * @since 3.0.1
     296     * @since 3.1.0
    297297     */
    298298    private function handle_pro_addon_integrations() {
     
    317317     * WP Hooks.
    318318     *
    319      * @since 3.0.1
     319     * @since 3.1.0
    320320     */
    321321    protected function hooks() {
     
    331331     * Attempt to load the updater.
    332332     *
    333      * @since 3.0.1
     333     * @since 3.1.0
    334334     *
    335335     * @param string $key The License Key.
     
    366366     * Whether we should load the add-on updater.
    367367     *
    368      * @since 3.0.1
     368     * @since 3.1.0
    369369     *
    370370     * @return false|string Returns `false` if the license key is not valid or the addon is not activated.
     
    395395     * Unhook the add-on plugin.
    396396     *
    397      * @since 3.0.1
     397     * @since 3.1.0
    398398     */
    399399    public function handle_addon_plugin() { // phpcs:ignore WPForms.PHP.HooksMethod.InvalidPlaceForAddingHooks, Generic.Metrics.CyclomaticComplexity.TooHigh, Generic.Metrics.NestingLevel.MaxExceeded
     
    436436     * Ticketing Feature installer.
    437437     *
    438      * @since 3.0.1
     438     * @since 3.1.0
    439439     */
    440440    public function install() { // phpcs:ignore Generic.Metrics.CyclomaticComplexity.TooHigh
     
    532532     * Get the Event Ticketing Feature requirements.
    533533     *
    534      * @since 3.0.1
     534     * @since 3.1.0
    535535     *
    536536     * @return array
  • sugar-calendar-lite/trunk/includes/common/Features/EventTicketing/includes/admin/assets.php

    r3112525 r3112714  
    1616 * Register assets.
    1717 *
    18  * @since 3.0.1
     18 * @since 3.1.0
    1919 */
    2020function register() {
     
    4040 * Enqueue assets.
    4141 *
    42  * @since 3.0.1
     42 * @since 3.1.0
    4343 */
    4444function enqueue() {
     
    8080 * Localize scripts.
    8181 *
    82  * @since 3.0.1
     82 * @since 3.1.0
    8383 */
    8484function localize() {
  • sugar-calendar-lite/trunk/includes/common/Features/EventTicketing/includes/admin/settings.php

    r3112525 r3112714  
    727727 *
    728728 * @since 2.2.4
    729  * @since 3.0.1 Loop through the data instead of the settings.
     729 * @since 3.1.0 Loop through the data instead of the settings.
    730730 *
    731731 * @param array $post_data Array containing the data to be saved.
  • sugar-calendar-lite/trunk/includes/common/Features/EventTicketing/includes/common/assets.php

    r3112525 r3112714  
    1515 * Get the plugin URL.
    1616 *
    17  * @since 3.0.1
     17 * @since 3.1.0
    1818 *
    1919 * @param string $type The type of assets URL.
     
    3737function get_css_path() {
    3838
    39     $css_path = trailingslashit( WP::asset_min() );
    40 
    4139    if ( is_rtl() ) {
    42         $css_path .= 'rtl';
     40        $css_path = 'rtl';
    4341    } else {
    44         $css_path .= 'ltr';
     42        $css_path = 'ltr';
    4543    }
    4644
    47     if ( ! empty( $css_path ) ) {
    48         $css_path = trailingslashit( $css_path );
    49     }
    50 
    51     return $css_path;
     45    return trailingslashit( $css_path );
    5246}
  • sugar-calendar-lite/trunk/includes/common/Features/EventTicketing/includes/front-end/modal.php

    r3112525 r3112714  
    88 * Render the event date time.
    99 *
    10  * @since 3.0.1
     10 * @since 3.1.0
    1111 *
    1212 * @param \Sugar_Calendar\Event $event
  • sugar-calendar-lite/trunk/includes/common/Features/EventTicketing/includes/front-end/singular.php

    r3112525 r3112714  
    88 *
    99 * @since 1.0.0
    10  * @since 3.0.1 Only display on single event page.
     10 * @since 3.1.0 Only display on single event page.
    1111 */
    1212function display( $post_id = 0 ) {
  • sugar-calendar-lite/trunk/includes/common/Features/EventTicketing/src/Frontend/Loader.php

    r3112525 r3112714  
    1212 * Frontend Loader.
    1313 *
    14  * @since 3.0.1
     14 * @since 3.1.0
    1515 */
    1616class Loader {
     
    1919     * Init the frontend.
    2020     *
    21      * @since 3.0.1
     21     * @since 3.1.0
    2222     */
    2323    public function init() {
     
    2929     * Front-end related hooks.
    3030     *
    31      * @since 3.0.1
     31     * @since 3.1.0
    3232     */
    3333    private function hooks() {
     
    4040     * Enqueue frontend scripts.
    4141     *
    42      * @since 3.0.1
     42     * @since 3.1.0
    4343     */
    4444    public function enqueue_frontend_scripts() {
     
    6767     * Render the event ticket button.
    6868     *
    69      * @since 3.0.1
     69     * @since 3.1.0
    7070     *
    7171     * @param \Sugar_Calendar\Event $event The event object.
     
    8989         * Filters the "Buy Now" text.
    9090         *
    91          * @since 3.0.1
     91         * @since 3.1.0
    9292         *
    9393         * @param string $label The "Buy Now" label.
  • sugar-calendar-lite/trunk/includes/common/Features/EventTicketing/src/Helpers/Helpers.php

    r3112525 r3112714  
    1010 * Helper functions for the Event Ticketing feature.
    1111 *
    12  * @since 3.0.1
     12 * @since 3.1.0
    1313 */
    1414class Helpers {
     
    1717     * Get the remaining tickets for an event.
    1818     *
    19      * @since 3.0.1
     19     * @since 3.1.0
    2020     *
    2121     * @param \Sugar_Calendar\Event $event Event object.
     
    4747     * Get the WooCommerce event ticket link.
    4848     *
    49      * @since 3.0.1
     49     * @since 3.1.0
    5050     *
    5151     * @param \Sugar_Calendar\Event $event The event object.
  • sugar-calendar-lite/trunk/includes/common/Features/Loader.php

    r3112525 r3112714  
    2626     *
    2727     * @since 3.0.0
    28      * @since 3.0.1 Added Event Ticketing feature.
     28     * @since 3.1.0 Added Event Ticketing feature.
    2929     *
    3030     * @return string[]
  • sugar-calendar-lite/trunk/includes/themes/legacy/event-display.php

    r3112525 r3112714  
    104104 * @since 2.0.7
    105105 *
    106  * @deprecated 3.0.1 Use `Sugar_Calendar\Frontend\Loader::render_event_date()` and `Sugar_Calendar\Frontend\Loader::render_event_time()` instead.
     106 * @deprecated 3.1.0 Use `Sugar_Calendar\Frontend\Loader::render_event_date()` and `Sugar_Calendar\Frontend\Loader::render_event_time()` instead.
    107107 *
    108108 * @param int $post_id
     
    245245 * @since 2.0.7
    246246 *
    247  * @deprecated 3.0.1 Use `Sugar_Calendar\Frontend\Loader::render_event_location()` instead.
     247 * @deprecated 3.1.0 Use `Sugar_Calendar\Frontend\Loader::render_event_location()` instead.
    248248 *
    249249 * @param int $post_id
  • sugar-calendar-lite/trunk/readme.txt

    r3112525 r3112714  
    1010Requires at least: 5.8
    1111Tested up to:      6.5
    12 Stable tag:        3.1.0
     12Stable tag:        3.1.1
    1313
    1414Easily manage events and sell tickets on your WordPress site. Sugar Calendar is easy-to-use, reliable, and exceptionally powerful. See for yourself.
     
    178178== Changelog ==
    179179
    180 = 3.1.0 - 2024-07-04 =
    181 - Added: Event Ticketing feature.
    182 - Added: Event List WP block called Events List.
    183 - Added: Filter to allow non-admin users to manage events.
    184 - Changed: Improved the UI and UX of the single event.
    185 - Changed: Filter for managing events from 'manage_options' to 'edit_events'.
    186 - Fixed: Fatal error on Calendar Feeds on some site configuration.
    187 - Fixed: Some past events not showing in '[sc_events_list]' shortcode.
    188 - Fixed: Recurring event label in the edit event page.
    189 
    190180= 3.0.0 - 2024-05-30 =
    191181- Added: calendar WP block called Events Calendar.
  • sugar-calendar-lite/trunk/src/Admin/Area.php

    r3112525 r3112714  
    945945     *
    946946     * @since 3.0.0
    947      * @since 3.0.1 Remove SC Event Ticketing product education pages.
     947     * @since 3.1.0 Remove SC Event Ticketing product education pages.
    948948     *
    949949     * @param array $pages Array of pages.
     
    964964     *
    965965     * @since 3.0.0
    966      * @since 3.0.1 Remove SC Event Ticketing product education pages.
     966     * @since 3.1.0 Remove SC Event Ticketing product education pages.
    967967     *
    968968     * @param string $page_id Current page id.
     
    990990     *
    991991     * @since 3.0.0
    992      * @since 3.0.1 Remove SC Event Ticketing product education pages.
     992     * @since 3.1.0 Remove SC Event Ticketing product education pages.
    993993     *
    994994     * @param array $tabs Array of tabs.
  • sugar-calendar-lite/trunk/src/Admin/Events/Metaboxes.php

    r3112525 r3112714  
    312312     *
    313313     * @since 3.0.0
    314      * @since 3.0.1 Remove event ticketing education.
     314     * @since 3.1.0 Remove event ticketing education.
    315315     *
    316316     * @param Event $box
  • sugar-calendar-lite/trunk/src/Admin/Pages/Events.php

    r3112525 r3112714  
    315315        wp_register_style(
    316316            'sugar-calendar-vendor-tippy',
    317             SC_PLUGIN_ASSETS_URL . 'lib/tippy/tippy.css',
     317            SC_PLUGIN_ASSETS_URL . 'lib/tippy/tippy.min.css',
    318318            [],
    319319            '2.11.8'
  • sugar-calendar-lite/trunk/src/Block/Calendar/CalendarView/Block.php

    r3112525 r3112714  
    1717     *
    1818     * @since 3.0.0
    19      * @since 3.0.1 Call the parent constructor.
     19     * @since 3.1.0 Call the parent constructor.
    2020     *
    2121     * @param array $attributes Block attributes.
     
    9191     * Get the display options.
    9292     *
    93      * @since 3.0.1
     93     * @since 3.1.0
    9494     *
    9595     * @return array
     
    107107     * Get the current pagination text.
    108108     *
    109      * @since 3.0.1
     109     * @since 3.1.0
    110110     *
    111111     * @return string
  • sugar-calendar-lite/trunk/src/Block/Calendar/Loader.php

    r3112525 r3112714  
    1111     * The Block key.
    1212     *
    13      * @since 3.0.1
     13     * @since 3.1.0
    1414     *
    1515     * @var string
  • sugar-calendar-lite/trunk/src/Block/Common/AbstractBlock.php

    r3112525 r3112714  
    1212 *
    1313 * @since 3.0.0
    14  * @since 3.0.1 Convert to an abstract class.
     14 * @since 3.1.0 Convert to an abstract class.
    1515 */
    1616abstract class AbstractBlock {
     
    109109     * Whether the block has events for the week.
    110110     *
    111      * @since 3.0.1
     111     * @since 3.1.0
    112112     *
    113113     * @var null|bool
     
    526526     * Get the events for the week.
    527527     *
    528      * @since 3.0.1
     528     * @since 3.1.0
    529529     *
    530530     * @return Event[]
     
    563563     * Get the week period.
    564564     *
    565      * @since 3.0.1
     565     * @since 3.1.0
    566566     *
    567567     * @return DatePeriod
     
    592592     * we also display the previous month's offset day in the calendar.
    593593     *
    594      * @since 3.0.1
     594     * @since 3.1.0
    595595     *
    596596     * @return DateTimeImmutable
     
    625625     * action is provided.
    626626     *
    627      * @since 3.0.1
     627     * @since 3.1.0
    628628     */
    629629    public function attempt_update_datetime_info() { // phpcs:ignore Generic.Metrics.CyclomaticComplexity.TooHigh
     
    674674     * Returns whether the block has events for the week or not.
    675675     *
    676      * @since 3.0.1
     676     * @since 3.1.0
    677677     *
    678678     * @return bool|null Returns `null` if we are not aware if there are events for the week or not.
     
    696696     * Get the current pagination text.
    697697     *
    698      * @since 3.0.1
     698     * @since 3.1.0
    699699     *
    700700     * @return string
  • sugar-calendar-lite/trunk/src/Block/Common/Template.php

    r3112525 r3112714  
    88 * Class Template.
    99 *
    10  * @since 3.0.1
     10 * @since 3.1.0
    1111 */
    1212class Template {
     
    1515     * Load a template.
    1616     *
    17      * @since 3.0.1
     17     * @since 3.1.0
    1818     *
    1919     * @param string $template  The template to load.
  • sugar-calendar-lite/trunk/src/Block/EventList/EventListView/AbstractView.php

    r3112525 r3112714  
    1212     * Block object.
    1313     *
    14      * @since 3.0.1
     14     * @since 3.1.0
    1515     *
    1616     * @var Block
     
    2121     * Constructor.
    2222     *
    23      * @since 3.0.1
     23     * @since 3.1.0
    2424     *
    2525     * @param Block $block Block object.
     
    3333     * Get the heading.
    3434     *
    35      * @since 3.0.1
     35     * @since 3.1.0
    3636     *
    3737     * @return string
     
    5353     * Get the block object.
    5454     *
    55      * @since 3.0.1
     55     * @since 3.1.0
    5656     *
    5757     * @return Block
     
    6565     * Render the view.
    6666     *
    67      * @since 3.0.1
     67     * @since 3.1.0
    6868     */
    6969    public function render_base() {
  • sugar-calendar-lite/trunk/src/Block/EventList/EventListView/Block.php

    r3112525 r3112714  
    1212     * The Block key.
    1313     *
    14      * @since 3.0.1
     14     * @since 3.1.0
    1515     *
    1616     * @var string
     
    2121     * Array containing the events.
    2222     *
    23      * @since 3.0.1
     23     * @since 3.1.0
    2424     *
    2525     * @var \Sugar_Calendar\Event[]
     
    3030     * Contains the event IDs that were already displayed.
    3131     *
    32      * @since 3.0.1
     32     * @since 3.1.0
    3333     *
    3434     * @var string[]
     
    3939     * Constructor.
    4040     *
    41      * @since 3.0.1
     41     * @since 3.1.0
    4242     *
    4343     * @param array $attributes Block attributes.
     
    6767     * Get the display options.
    6868     *
    69      * @since 3.0.1
     69     * @since 3.1.0
    7070     *
    7171     * @return array
     
    8383     * Get the classes for the block.
    8484     *
    85      * @since 3.0.1
     85     * @since 3.1.0
    8686     *
    8787     * @return array
     
    101101     * Get the data for the list view.
    102102     *
    103      * @since 3.0.1
     103     * @since 3.1.0
    104104     *
    105105     * @return \Sugar_Calendar\Event[]
     
    121121     * Get the displayed events.
    122122     *
    123      * @since 3.0.1
     123     * @since 3.1.0
    124124     *
    125125     * @return string[]
     
    133133     * Add a displayed event.
    134134     *
    135      * @since 3.0.1
     135     * @since 3.1.0
    136136     *
    137137     * @param string $event_id Event ID.
     
    147147     * Get the current pagination text.
    148148     *
    149      * @since 3.0.1
     149     * @since 3.1.0
    150150     *
    151151     * @return string
     
    159159     * Get the block styles.
    160160     *
    161      * @since 3.0.1
     161     * @since 3.1.0
    162162     *
    163163     * @return string
     
    182182     * Get the settings/attributes for the block.
    183183     *
    184      * @since 3.0.1
     184     * @since 3.1.0
    185185     *
    186186     * @return array
     
    194194     * Get the no events message.
    195195     *
    196      * @since 3.0.1
     196     * @since 3.1.0
    197197     *
    198198     * @return string
  • sugar-calendar-lite/trunk/src/Block/EventList/EventListView/EventView.php

    r3112525 r3112714  
    1414     * Event object.
    1515     *
    16      * @since 3.0.1
     16     * @since 3.1.0
    1717     *
    1818     * @var \Sugar_Calendar\Event
     
    2323     * Block object.
    2424     *
    25      * @since 3.0.1
     25     * @since 3.1.0
    2626     *
    2727     * @var Block
     
    3232     * Constructor.
    3333     *
    34      * @since 3.0.1
     34     * @since 3.1.0
    3535     *
    3636     * @param \Sugar_Calendar\Event $event Event object.
     
    4848     * 6 - Saturday.
    4949     *
    50      * @since 3.0.1
     50     * @since 3.1.0
    5151     *
    5252     * @return int[]
     
    7777     * Render the title.
    7878     *
    79      * @since 3.0.1
     79     * @since 3.1.0
    8080     */
    8181    public function render_title() {
     
    9797     * Render the date and time with icons.
    9898     *
    99      * @since 3.0.1
     99     * @since 3.1.0
    100100     */
    101101    public function render_date_time_with_icons() {
     
    117117     * Get the multi-day date and time to display.
    118118     *
    119      * @since 3.0.1
     119     * @since 3.1.0
    120120     *
    121121     * @return string
     
    150150     * Get the date and time to display.
    151151     *
    152      * @since 3.0.1
     152     * @since 3.1.0
    153153     *
    154154     * @return string
     
    178178     * Get the icons to display.
    179179     *
    180      * @since 3.0.1
     180     * @since 3.1.0
    181181     *
    182182     * @return string
     
    199199         * Filters the icons to display in the event list block.
    200200         *
    201          * @since 3.0.1
     201         * @since 3.1.0
    202202         *
    203203         * @param string[]              $icons SVG urls of the icons.
     
    230230     * Whether or not we should display the featured image.
    231231     *
    232      * @since 3.0.1
     232     * @since 3.1.0
    233233     *
    234234     * @return bool
     
    242242     * Whether or not we should display the description.
    243243     *
    244      * @since 3.0.1
     244     * @since 3.1.0
    245245     *
    246246     * @return bool
     
    254254     * Get the description excerpt.
    255255     *
    256      * @since 3.0.1
     256     * @since 3.1.0
    257257     *
    258258     * @return string
  • sugar-calendar-lite/trunk/src/Block/EventList/EventListView/GridView.php

    r3112525 r3112714  
    88     * Display mode.
    99     *
    10      * @since 3.0.1
     10     * @since 3.1.0
    1111     *
    1212     * @var string
  • sugar-calendar-lite/trunk/src/Block/EventList/EventListView/ListView.php

    r3112525 r3112714  
    88     * Display mode.
    99     *
    10      * @since 3.0.1
     10     * @since 3.1.0
    1111     *
    1212     * @var string
  • sugar-calendar-lite/trunk/src/Block/EventList/EventListView/PlainView.php

    r3112525 r3112714  
    88     * Display mode.
    99     *
    10      * @since 3.0.1
     10     * @since 3.1.0
    1111     *
    1212     * @var string
  • sugar-calendar-lite/trunk/src/Block/EventList/Loader.php

    r3112525 r3112714  
    1414     * The Block key.
    1515     *
    16      * @since 3.0.1
     16     * @since 3.1.0
    1717     *
    1818     * @var string
     
    2323     * Initialize the Block.
    2424     *
    25      * @since 3.0.1
     25     * @since 3.1.0
    2626     */
    2727    public function init() {
     
    3333     * Register hooks.
    3434     *
    35      * @since 3.0.1
     35     * @since 3.1.0
    3636     */
    3737    public function hooks() {
     
    4848     * Register the Block.
    4949     *
    50      * @since 3.0.1
     50     * @since 3.1.0
    5151     */
    5252    public function register_block() {
     
    6363     * Render the Block.
    6464     *
    65      * @since 3.0.1
     65     * @since 3.1.0
    6666     *
    6767     * @param array $block_attributes Block attributes.
     
    106106     * Register the scripts for the block.
    107107     *
    108      * @since 3.0.1
     108     * @since 3.1.0
    109109     */
    110110    public function enqueue_script() {
     
    135135     * This function is used to update the block content.
    136136     *
    137      * @since 3.0.1
     137     * @since 3.1.0
    138138     */
    139139    public function ajax_update() {
  • sugar-calendar-lite/trunk/src/Block/Loader.php

    r3112525 r3112714  
    88     * Array containing the block classes.
    99     *
    10      * @since 3.0.1
     10     * @since 3.1.0
    1111     *
    1212     * @var string[]
     
    2020     * Array containing the blocks.
    2121     *
    22      * @since 3.0.1
     22     * @since 3.1.0
    2323     *
    2424     * @var array
     
    2929     * Initialize the Blocks loader.
    3030     *
    31      * @since 3.0.1
     31     * @since 3.1.0
    3232     */
    3333    public function init() {
     
    3939     * Register hooks.
    4040     *
    41      * @since 3.0.1
     41     * @since 3.1.0
    4242     */
    4343    public function hooks() {
     
    4949     * Enqueue scripts.
    5050     *
    51      * @since 3.0.1
     51     * @since 3.1.0
    5252     */
    5353    public function enqueue_scripts() {
     
    109109     * Load blocks.
    110110     *
    111      * @since 3.0.1
     111     * @since 3.1.0
    112112     */
    113113    public function get_blocks() {
  • sugar-calendar-lite/trunk/src/Frontend/Loader.php

    r3112525 r3112714  
    1010 * Frontend Loader.
    1111 *
    12  * @since 3.0.1
     12 * @since 3.1.0
    1313 */
    1414class Loader {
     
    1717     * Init the Frontend Loader.
    1818     *
    19      * @since 3.0.1
     19     * @since 3.1.0
    2020     */
    2121    public function init() {
     
    2727     * Frontend hooks.
    2828     *
    29      * @since 3.0.1
     29     * @since 3.1.0
    3030     */
    3131    public function hooks() {
     
    4646     * Enqueue frontend scripts.
    4747     *
    48      * @since 3.0.1
     48     * @since 3.1.0
    4949     */
    5050    public function enqueue_frontend_scripts() {
     
    6767     * Wrap the new event details container.
    6868     *
    69      * @since 3.0.1
     69     * @since 3.1.0
    7070     *
    7171     * @param int $post_id The post ID.
     
    8787             * @param \Sugar_Calendar\Event $event The event object.
    8888             *
    89              * @since 3.0.1
     89             * @since 3.1.0
    9090             */
    9191            do_action( 'sugar_calendar_frontend_event_details_before', $event ); // phpcs:ignore WPForms.PHP.ValidateHooks.InvalidHookName
     
    9999                 * @param \Sugar_Calendar\Event $event The event object.
    100100                 *
    101                  * @since 3.0.1
     101                 * @since 3.1.0
    102102                 */
    103103                do_action( 'sugar_calendar_frontend_event_details', $event ); // phpcs:ignore WPForms.PHP.ValidateHooks.InvalidHookName
     
    111111     * Render the event date.
    112112     *
    113      * @since 3.0.1
     113     * @since 3.1.0
    114114     *
    115115     * @param \Sugar_Calendar\Event $event The event object.
     
    136136                 * @param \Sugar_Calendar\Event $event The event object.
    137137                 *
    138                  * @since 3.0.1
     138                 * @since 3.1.0
    139139                 */
    140140                do_action( 'sugar_calendar_frontend_event_details_date', $event ); // phpcs:ignore WPForms.PHP.ValidateHooks.InvalidHookName
     
    147147     * Render the event time.
    148148     *
    149      * @since 3.0.1
     149     * @since 3.1.0
    150150     *
    151151     * @param \Sugar_Calendar\Event $event The event object.
     
    172172     * Render the event location.
    173173     *
    174      * @since 3.0.1
     174     * @since 3.1.0
    175175     *
    176176     * @param \Sugar_Calendar\Event $event The event object.
     
    196196     * Render the event calendars.
    197197     *
    198      * @since 3.0.1
     198     * @since 3.1.0
    199199     *
    200200     * @param \Sugar_Calendar\Event $event The event object.
  • sugar-calendar-lite/trunk/src/Helpers.php

    r3112525 r3112714  
    3737     * Whether the license is valid or not.
    3838     *
    39      * @since 3.0.1
     39     * @since 3.1.0
    4040     *
    4141     * @return bool
     
    6060     * Whether the application fee is supported or not.
    6161     *
    62      * @since 3.0.1
     62     * @since 3.1.0
    6363     *
    6464     * @return bool
     
    8585     * Clean the incoming data.
    8686     *
    87      * @since 3.0.1
     87     * @since 3.1.0
    8888     *
    8989     * @param array $incoming_data Data needed to be cleaned.
     
    195195     * Get the URL for an svg icon.
    196196     *
    197      * @since 3.0.1
     197     * @since 3.1.0
    198198     *
    199199     * @param string $icon Icon name.
     
    209209     * Whether the current request is on the admin editor.
    210210     *
    211      * @since 3.0.1
     211     * @since 3.1.0
    212212     *
    213213     * @return bool
     
    222222     * Sanitize the attributes.
    223223     *
    224      * @since 3.0.1
     224     * @since 3.1.0
    225225     *
    226226     * @param array $attributes Attributes to sanitize.
     
    248248     * Get the date/time label.
    249249     *
    250      * @since 3.0.1
     250     * @since 3.1.0
    251251     *
    252252     * @param \Sugar_Calendar\Event $event The event object.
     
    266266     * Get the multi-day date/time.
    267267     *
    268      * @since 3.0.1
     268     * @since 3.1.0
    269269     *
    270270     * @param \Sugar_Calendar\Event $event The event object.
     
    307307     * Get the event date.
    308308     *
    309      * @since 3.0.1
     309     * @since 3.1.0
    310310     *
    311311     * @param \Sugar_Calendar\Event $event        The event object.
  • sugar-calendar-lite/trunk/sugar-calendar-lite.php

    r3112525 r3112714  
    1212 * Requires PHP:      7.4
    1313 * Requires at least: 5.8
    14  * Version:           3.1.0
     14 * Version:           3.1.1
    1515 */
    1616
     
    2424     * @since 3.0.0
    2525     */
    26     define( 'SC_PLUGIN_VERSION', '3.1.0' );
     26    define( 'SC_PLUGIN_VERSION', '3.1.1' );
    2727}
    2828
  • sugar-calendar-lite/trunk/sugar-calendar-plugin.php

    r3112525 r3112714  
    757757     * Get the Frontend instance.
    758758     *
    759      * @since 3.0.1
     759     * @since 3.1.0
    760760     *
    761761     * @return Frontend\Loader
     
    779779     * Get the Blocks.
    780780     *
    781      * @since 3.0.1
     781     * @since 3.1.0
    782782     *
    783783     * @return mixed
  • sugar-calendar-lite/trunk/vendor/composer/installed.php

    r3112525 r3112714  
    22    'root' => array(
    33        'name' => 'awesomemotive/sugarcalendar',
    4         'pretty_version' => 'dev-develop',
    5         'version' => 'dev-develop',
    6         'reference' => '10a286f23dfd3253b394b50441e9ab4dee208431',
     4        'pretty_version' => 'dev-main',
     5        'version' => 'dev-main',
     6        'reference' => 'd536e5b58f847ab8b7a4d5927bfe50cd05e5de64',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'awesomemotive/sugarcalendar' => array(
    14             'pretty_version' => 'dev-develop',
    15             'version' => 'dev-develop',
    16             'reference' => '10a286f23dfd3253b394b50441e9ab4dee208431',
     14            'pretty_version' => 'dev-main',
     15            'version' => 'dev-main',
     16            'reference' => 'd536e5b58f847ab8b7a4d5927bfe50cd05e5de64',
    1717            'type' => 'wordpress-plugin',
    1818            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.