Plugin Directory

Changeset 3181493


Ignore:
Timestamp:
11/04/2024 02:08:33 PM (17 months ago)
Author:
mnchga
Message:

Committing changes for 5.2.0

Location:
eduadmin-booking/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • eduadmin-booking/trunk/CHANGELOG.md

    r3166325 r3181493  
    22
    33All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
     4
     5## [5.2.0](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.1.3...v5.2.0) (2024-11-04)
     6
     7
     8### Features
     9
     10* Setting to turn off/on OG/metadata and LD+JSON. ([594c422](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/594c422407be2aa6f8a4d2192f5636faac85975b)), closes [#520](https://github.com/MultinetInteractive/EduAdmin-WordPress/issues/520)
     11
     12
     13### Bug Fixes
     14
     15* Added repeatFrequency, repeatCount and courseMode for LD+JSON ([e5e5c42](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/e5e5c42bfe37d39c088e6901c2de3e7f31841e75)), closes [#511](https://github.com/MultinetInteractive/EduAdmin-WordPress/issues/511)
    416
    517### [5.1.3](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.1.2...v5.1.3) (2024-10-10)
  • eduadmin-booking/trunk/PLUGIN-CHECKSUM

    r3166325 r3181493  
    1 dfe92ac2cbf028316a32bfd76b493a0f
     1f43f26b58da1439fef621c2813477a7d
  • eduadmin-booking/trunk/content/template/data/ld-json.php

    r3012782 r3181493  
    1111
    1212if ( $course_id == null ) {
     13    return;
     14}
     15
     16$show_extra_metadata = EDU()->is_checked( 'eduadmin-showExtraMetadata', "on" );
     17
     18if ( ! $show_extra_metadata ) {
    1319    return;
    1420}
     
    8187
    8288            if ( $is_ondemand ) {
    83                 $_event['courseMode']  = "online";
    84                 $_event['location']    = "Online";
     89                $_event['courseMode']  = "Online";
    8590                $_event['description'] = 'On-demand';
    8691
     
    104109                }
    105110            } else {
    106                 $_event['location']  = $event['City'];
    107                 $_event['startDate'] = $event['StartDate'];
    108                 $_event['endDate']   = $event['EndDate'];
     111                $_event['courseMode'] = "Onsite";
     112                $_event['location']   = $event['City'];
     113                $_event['startDate']  = $event['StartDate'];
     114                $_event['endDate']    = $event['EndDate'];
    109115
    110116                $_event['courseSchedule'] = [
    111                     '@type'     => 'Schedule',
    112                     'startDate' => $event['StartDate'],
    113                     'endDate'   => $event['EndDate'],
     117                    '@type'           => 'Schedule',
     118                    'startDate'       => $event['StartDate'],
     119                    'endDate'         => $event['EndDate'],
     120                    'repeatFrequency' => 'Daily',
     121                    'repeatCount'     => count( $event['EventDates'] ),
    114122                ];
    115123            }
  • eduadmin-booking/trunk/content/template/data/ogp.php

    r3039710 r3181493  
    1111
    1212if ( $course_id == null ) {
     13    return;
     14}
     15
     16$show_extra_metadata = EDU()->is_checked( 'eduadmin-showExtraMetadata', "on" );
     17
     18if ( ! $show_extra_metadata ) {
    1319    return;
    1420}
  • eduadmin-booking/trunk/eduadmin.php

    r3166325 r3181493  
    1010 * Description: EduAdmin plugin to allow visitors to book courses at your website
    1111 * Tags:    booking, participants, courses, events, eduadmin, lega online
    12  * Version: 5.1.3
     12 * Version: 5.2.0
    1313 * GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
    1414 * GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
  • eduadmin-booking/trunk/includes/edu-options.php

    r2967419 r3181493  
    310310    register_setting( 'eduadmin-rewrite', 'eduadmin-showVatTexts' );
    311311    register_setting( 'eduadmin-rewrite', 'eduadmin-showPricesAsSelected' );
     312    register_setting( 'eduadmin-rewrite', 'eduadmin-showExtraMetadata' );
    312313
    313314    if ( is_admin() ) {
  • eduadmin-booking/trunk/includes/edu-text-functions.php

    r3137602 r3181493  
    10091009            '<span class="edu-manyDays" title="' . esc_attr_x( 'Show schedule', 'frontend', 'eduadmin-booking' ) . '" onclick="edu_openDatePopup(this);">' .
    10101010            /* translators: 1: Number of days 2: Date range */
    1011             wp_kses_post( sprintf( _nx( '%1$d day on %2$s', '%1$d days between %2$s', count( $days ), 'frontend', 'eduadmin-booking' ), count( $days ), get_start_end_display_date( $days[0], end( $days ), $short, null, false, $force_show_times ) ) ) .
     1011            wp_kses_post( sprintf( _nx( '%1$d day, %2$s', '%1$d days between %2$s', count( $days ), 'frontend', 'eduadmin-booking' ), count( $days ), get_start_end_display_date( $days[0], end( $days ), $short, null, false, $force_show_times ) ) ) .
    10121012            '</span><div class="edu-DayPopup">
    10131013<b>' . esc_html_x( 'Schedule', 'frontend', 'eduadmin-booking' ) . '</b><br />
  • eduadmin-booking/trunk/includes/general-settings.php

    r2962827 r3181493  
    5252                        <br />
    5353                        <textarea name="eduadmin-spotsSettings" class="form-control" rows="5"
    54                                   cols="30"><?php echo EDU()->get_option( 'eduadmin-spotsSettings', "1-5\n5-10\n10+" ); ?></textarea>
     54                                  cols="30"><?php echo EDU()->get_option( 'eduadmin-spotsSettings', "1-5\n5-10\n10+" ); ?></textarea>
    5555                    </div>
    5656                    <div id="eduadmin-alwaysFewSpots">
     
    5959                        <br />
    6060                        <input type="number" name="eduadmin-alwaysFewSpots"
    61                                value="<?php echo esc_attr( EDU()->get_option( 'eduadmin-alwaysFewSpots', "3" ) ); ?>" />
     61                               value="<?php echo esc_attr( EDU()->get_option( 'eduadmin-alwaysFewSpots', "3" ) ); ?>" />
    6262                    </div>
    6363                </div>
     
    6666                <br />
    6767                <input type="number" name="eduadmin-monthsToFetch"
    68                        value="<?php echo esc_attr( EDU()->get_option( 'eduadmin-monthsToFetch', '6' ) ); ?>" /> <?php _ex( 'months', 'backend', 'eduadmin-booking' ); ?>
     68                       value="<?php echo esc_attr( EDU()->get_option( 'eduadmin-monthsToFetch', '6' ) ); ?>" /> <?php _ex( 'months', 'backend', 'eduadmin-booking' ); ?>
    6969                <br />
    7070                <br />
     
    7373                <label>
    7474                    <input type="checkbox"
    75                            name="eduadmin-showVatTexts"<?php checked( EDU()->get_option( 'eduadmin-showVatTexts', "on" ), "on" ); ?> />
     75                           name="eduadmin-showVatTexts"<?php checked( EDU()->get_option( 'eduadmin-showVatTexts', "on" ), "on" ); ?> />
    7676                    <?php echo esc_html_x( 'Show VAT texts on prices', 'backend', 'eduadmin-booking' ); ?>
    7777                </label>
     
    9898                </select>
    9999                <br />
     100                <br />
     101                <strong><?php echo esc_html_x( 'Include meta data for search engines on course pages (Open Graph + LD+JSON)', 'backend', 'eduadmin-booking' ); ?></strong>
     102                <br />
     103                <em><?php echo esc_html_x( 'This option enables some extra data that is invisible for users, but search engines may show some extra information about the results about the courses.', 'backend', 'eduadmin-booking' ); ?></em>
     104                <br />
     105                <label>
     106                    <input type="checkbox"
     107                           name="eduadmin-showExtraMetadata"<?php checked( EDU()->get_option( 'eduadmin-showExtraMetadata', "on" ), "on" ); ?> />
     108                    <?php echo esc_html_x( 'Yes, include extra meta data', 'backend', 'eduadmin-booking' ); ?>
     109                </label>
     110                <br />
    100111                <p class="submit">
    101112                    <input type="submit" name="submit" id="submit" class="button button-primary"
    102                            value="<?php echo esc_attr_x( 'Save settings', 'backend', 'eduadmin-booking' ); ?>" />
     113                           value="<?php echo esc_attr_x( 'Save settings', 'backend', 'eduadmin-booking' ); ?>" />
    103114                </p>
    104115                <h3><?php echo esc_html_x( 'Rewrite settings', 'backend', 'eduadmin-booking' ); ?></h3>
     
    107118                </p>
    108119                <?php echo home_url(); ?>/<input style="width: 200px;" type="text" class="form-control folder"
    109                                                 name="eduadmin-rewriteBaseUrl" id="eduadmin-rewriteBaseUrl"
    110                                                 value="<?php echo esc_attr( EDU()->get_option( 'eduadmin-rewriteBaseUrl' ) ); ?>"
    111                                                 placeholder="<?php echo _x( 'URL', 'backend', 'eduadmin-booking' ); ?>" />/
     120                                                name="eduadmin-rewriteBaseUrl" id="eduadmin-rewriteBaseUrl"
     121                                                value="<?php echo esc_attr( EDU()->get_option( 'eduadmin-rewriteBaseUrl' ) ); ?>"
     122                                                placeholder="<?php echo _x( 'URL', 'backend', 'eduadmin-booking' ); ?>" />/
    112123                <?php
    113124                $pages    = get_pages();
     
    129140                        <td>
    130141                            <select class="form-control" style="width: 300px;" name="eduadmin-listViewPage"
    131                                     id="eduadmin-listViewPage">
     142                                    id="eduadmin-listViewPage">
    132143                                <option
    133144                                    value="">-- <?php echo esc_html_x( 'No page selected', 'backend', 'eduadmin-booking' ); ?>--
     
    141152                                    }
    142153                                    echo "\t\t\t\t\t\t\t<option " . ( $listPage == $p->ID ? " selected=\"selected\"" : "" ) . " value=\"" . $p->ID . "\">" .
    143                                         htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
    144                                         ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
    145                                         "</option>\n";
     154                                        htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
     155                                        ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
     156                                        "</option>\n";
    146157                                }
    147158                                ?>
     
    156167                        <td>
    157168                            <select class="form-control" style="width: 300px;" name="eduadmin-detailViewPage"
    158                                     id="eduadmin-detailViewPage">
     169                                    id="eduadmin-detailViewPage">
    159170                                <option value="">-- <?php _ex( 'No page selected', 'backend', 'eduadmin-booking' ); ?>--
    160171                                </option>
     
    167178                                    }
    168179                                    echo "\t\t\t\t\t\t\t<option" . ( $detailPage == $p->ID ? " selected=\"selected\"" : "" ) . " value=\"" . $p->ID . "\">" .
    169                                         htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
    170                                         ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
    171                                         "</option>\n";
     180                                        htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
     181                                        ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
     182                                        "</option>\n";
    172183                                }
    173184                                ?>
     
    182193                        <td>
    183194                            <select class="form-control" style="width: 300px;" name="eduadmin-bookingViewPage"
    184                                     id="eduadmin-bookingViewPage">
     195                                    id="eduadmin-bookingViewPage">
    185196                                <option value="">-- <?php _ex( 'No page selected', 'backend', 'eduadmin-booking' ); ?>--
    186197                                </option>
     
    193204                                    }
    194205                                    echo "\t\t\t\t\t\t\t<option" . ( $bookingPage == $p->ID ? " selected=\"selected\"" : "" ) . " value=\"" . $p->ID . "\">" .
    195                                         htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
    196                                         ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
    197                                         "</option>\n";
     206                                        htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
     207                                        ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
     208                                        "</option>\n";
    198209                                }
    199210                                ?>
     
    208219                        <td>
    209220                            <select class="form-control" style="width: 300px;" name="eduadmin-thankYouPage"
    210                                     id="eduadmin-thankYouPage">
     221                                    id="eduadmin-thankYouPage">
    211222                                <option value="">-- <?php _ex( 'No page selected', 'backend', 'eduadmin-booking' ); ?>--
    212223                                </option>
     
    215226                                foreach ( $pages as $p ) {
    216227                                    echo "\t\t\t\t\t\t\t<option" . ( $thankPage == $p->ID ? " selected=\"selected\"" : "" ) . " value=\"" . $p->ID . "\">" .
    217                                         htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
    218                                         "</option>\n";
     228                                        htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
     229                                        "</option>\n";
    219230                                }
    220231                                ?>
     
    227238                        <td>
    228239                            <select class="form-control" style="width: 300px;" name="eduadmin-loginViewPage"
    229                                     id="eduadmin-loginViewPage">
     240                                    id="eduadmin-loginViewPage">
    230241                                <option value="">-- <?php _ex( 'No page selected', 'backend', 'eduadmin-booking' ); ?>--
    231242                                </option>
     
    238249                                    }
    239250                                    echo "\t\t\t\t\t\t\t<option" . ( $loginPage == $p->ID ? " selected=\"selected\"" : "" ) . " value=\"" . $p->ID . "\">" .
    240                                         htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
    241                                         ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
    242                                         "</option>\n";
     251                                        htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
     252                                        ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
     253                                        "</option>\n";
    243254                                }
    244255                                ?>
     
    253264                        <td>
    254265                            <select class="form-control" style="width: 300px;" name="eduadmin-interestObjectPage"
    255                                     id="eduadmin-interestObjectPage">
     266                                    id="eduadmin-interestObjectPage">
    256267                                <option value="">-- <?php _ex( 'No page selected', 'backend', 'eduadmin-booking' ); ?>--
    257268                                </option>
     
    264275                                    }
    265276                                    echo "\t\t\t\t\t\t\t<option" . ( $objectInterestPage == $p->ID ? " selected=\"selected\"" : "" ) . " value=\"" . $p->ID . "\">" .
    266                                         htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
    267                                         ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
    268                                         "</option>\n";
     277                                        htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
     278                                        ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
     279                                        "</option>\n";
    269280                                }
    270281                                ?>
     
    279290                        <td>
    280291                            <select class="form-control" style="width: 300px;" name="eduadmin-interestEventPage"
    281                                     id="eduadmin-interestEventPage">
     292                                    id="eduadmin-interestEventPage">
    282293                                <option value="">-- <?php _ex( 'No page selected', 'backend', 'eduadmin-booking' ); ?>--
    283294                                </option>
     
    290301                                    }
    291302                                    echo "\t\t\t\t\t\t\t<option" . ( $eventInterestPage == $p->ID ? " selected=\"selected\"" : "" ) . " value=\"" . $p->ID . "\">" .
    292                                         htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
    293                                         ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
    294                                         "</option>\n";
     303                                        htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
     304                                        ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
     305                                        "</option>\n";
    295306                                }
    296307                                ?>
     
    321332                        <td>
    322333                            <select class="form-control" style="width: 300px;" name="eduadmin-programme-list"
    323                                     id="eduadmin-programme-list">
     334                                    id="eduadmin-programme-list">
    324335                                <option value="">-- <?php _ex( 'No page selected', 'backend', 'eduadmin-booking' ); ?>--
    325336                                </option>
     
    332343                                    }
    333344                                    echo "\t\t\t\t\t\t\t<option" . ( $list_page == $p->ID ? ' selected="selected"' : '' ) . ' value="' . $p->ID . '">' .
    334                                         htmlentities( $p->post_title . ' (ID: ' . $p->ID . ')' ) .
    335                                         ( $suggested ? ' (' . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
    336                                         "</option>\n";
     345                                        htmlentities( $p->post_title . ' (ID: ' . $p->ID . ')' ) .
     346                                        ( $suggested ? ' (' . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
     347                                        "</option>\n";
    337348                                }
    338349                                ?>
     
    347358                        <td>
    348359                            <select class="form-control" style="width: 300px;" name="eduadmin-programme-detail"
    349                                     id="eduadmin-programme-detail">
     360                                    id="eduadmin-programme-detail">
    350361                                <option value="">-- <?php _ex( 'No page selected', 'backend', 'eduadmin-booking' ); ?>--
    351362                                </option>
     
    358369                                    }
    359370                                    echo "\t\t\t\t\t\t\t<option" . ( $detail_page == $p->ID ? " selected=\"selected\"" : "" ) . " value=\"" . $p->ID . "\">" .
    360                                         htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
    361                                         ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
    362                                         "</option>\n";
     371                                        htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
     372                                        ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
     373                                        "</option>\n";
    363374                                }
    364375                                ?>
     
    373384                        <td>
    374385                            <select class="form-control" style="width: 300px;" name="eduadmin-programme-book"
    375                                     id="eduadmin-programme-book">
     386                                    id="eduadmin-programme-book">
    376387                                <option value="">-- <?php _ex( 'No page selected', 'backend', 'eduadmin-booking' ); ?>--
    377388                                </option>
     
    384395                                    }
    385396                                    echo "\t\t\t\t\t\t\t<option" . ( $book_page == $p->ID ? " selected=\"selected\"" : "" ) . " value=\"" . $p->ID . "\">" .
    386                                         htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
    387                                         ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
    388                                         "</option>\n";
     397                                        htmlentities( $p->post_title . " (ID: " . $p->ID . ")" ) .
     398                                        ( $suggested ? " (" . _x( 'suggested', 'backend', 'eduadmin-booking' ) . ")" : "" ) .
     399                                        "</option>\n";
    389400                                }
    390401                                ?>
     
    400411                <p class="submit">
    401412                    <input type="submit" name="submit" id="submit" class="button button-primary"
    402                            value="<?php echo esc_attr_x( 'Save settings', 'backend', 'eduadmin-booking' ); ?>" />
     413                           value="<?php echo esc_attr_x( 'Save settings', 'backend', 'eduadmin-booking' ); ?>" />
    403414                </p>
    404415            </div>
     
    407418            <input type="hidden" name="act" value="clearTransients" />
    408419            <input type="submit" class="button button-primary"
    409                    value="<?php echo esc_attr_x( 'Clear transients/cache', 'backend', 'eduadmin-booking' ); ?>" />
     420                   value="<?php echo esc_attr_x( 'Clear transients/cache', 'backend', 'eduadmin-booking' ); ?>" />
    410421        </form>
    411422    </div>
  • eduadmin-booking/trunk/readme.txt

    r3166325 r3181493  
    44Requires at least: 6.0
    55Tested up to: 6.6
    6 Stable tag: 5.1.3
     6Stable tag: 5.2.0
    77Requires PHP: 8.1
    88License: GPL3
     
    4646The full changelog available on [GitHub](https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/CHANGELOG.md)
    4747
     48### [5.2.0](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.1.3...v5.2.0) (2024-11-04)
     49
     50
     51#### Features
     52
     53* Setting to turn off/on OG/metadata and LD+JSON. ([594c422](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/594c422407be2aa6f8a4d2192f5636faac85975b)), closes [#520](https://github.com/MultinetInteractive/EduAdmin-WordPress/issues/520)
     54
     55
     56#### Bug Fixes
     57
     58* Added repeatFrequency, repeatCount and courseMode for LD+JSON ([e5e5c42](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/e5e5c42bfe37d39c088e6901c2de3e7f31841e75)), closes [#511](https://github.com/MultinetInteractive/EduAdmin-WordPress/issues/511)
     59
    4860### [5.1.3](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.1.2...v5.1.3) (2024-10-10)
    4961
     
    6274* Fetch AnswerId for checkbox questions the correct way ([d123497](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/d123497be9795741796aad8f13469623bc072701))
    6375
    64 ### [5.1.0](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.0.1...v5.1.0) (2024-08-19)
    6576
    6677
    67 #### Features
    68 
    69 * Adding new endpoints and classes ([0df472e](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/0df472e7b80f3e1ca8584a3f7b7cbf0c81432dcc))
    70 
    71 
    72 #### Bug Fixes
    73 
    74 * Fixes incorrect encoding after PHP 8.1 changing how things work. ([ff8055d](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/ff8055dfda0cb4e805977895136a2a0df6135f33)), closes [#526](https://github.com/MultinetInteractive/EduAdmin-WordPress/issues/526)
    75 
    76 
    77 
Note: See TracChangeset for help on using the changeset viewer.