Plugin Directory

Changeset 3261532


Ignore:
Timestamp:
03/25/2025 12:26:27 PM (12 months ago)
Author:
activityhub
Message:

Updated version 3.4.2

Location:
activityhub/trunk
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • activityhub/trunk/README.txt

    r3259599 r3261532  
    44Requires at least: 5.0
    55Tested up to: 6.7.2
    6 Stable tag: 3.4.1
     6Stable tag: 3.4.2
    77Requires PHP: 7.2 or Greater
    88License: GPLv2 or later
     
    151151== Changelog ==
    152152
     153= 3.4.2 =
     154* Fix Deprecated Scheme Parameter for typography controls for Elementor Widgets
     155* Resolved PHP 8.x deprecation warnings
     156
    153157= 3.4.1 =
    154158* UI Changes for Filter and Sessions
  • activityhub/trunk/assets/js/widgets_calender.min.js

    r2695200 r3261532  
    7474                                var eventweekcount= eventweek.getDay();
    7575
    76                                     if (dateevent <= doc[i].end && dateevent >= doc[i].start
    77                                      &&  jQuery.inArray(eventweekcount, doc[i].days) !== -1) {
     76                                    if (dateevent <= doc[i].end && dateevent >= doc[i].start && jQuery.inArray(eventweekcount, doc[i].days) !== -1) {
    7877                                            jQuery(this).find('.fc-day-number').after('<div class="eventtitle km_session_single_item" data-time-stamp-from=\"' + doc[i].starttimestamp + '\" data-time-stamp-to=\"' + doc[i].endtimestamp + '\" ><a class="km_eventclick km_primary_color" href="javascript:void(0);" data_eventid=\"' + doc[i].id + '\" ><span style="display: block;font-weight: bold;">' + doc[i].title + '</span></a><span class="km_event_time"></span></div>');
    7978
     
    140139        },
    141140        giftCardSlider:function(){
    142           $('.km_gift_image_slider').slick({
    143             dots: false,
    144             infinite: true,
    145             arrows:true,
    146             speed: 300,
    147             slidesToShow: 1,
    148             adaptiveHeight: false
    149           })
     141            $('.km_gift_image_slider').slick({
     142                dots: false,
     143                infinite: true,
     144                arrows: true,
     145                speed: 300,
     146                slidesToShow: 1,
     147                adaptiveHeight: false
     148            });
    150149        },
    151150
  • activityhub/trunk/fieldday.php

    r3259599 r3261532  
    55 * Plugin URI: https://activityhub.com
    66 * Description: A wordpress plugin for Field Day API
    7  * Version: 3.4.1
     7 * Version: 3.4.2
    88 * Author: Field Day
    99 * Author URI: https://profiles.wordpress.org/fieldday/
  • activityhub/trunk/inc/ClassActions.php

    r3259599 r3261532  
    11591159        $GcartId = fieldday()->engine->getCookieStorage('GcartId', false);
    11601160        $GparentId = fieldday()->engine->getCookieStorage('GparentId', false);
    1161         $singlecartitem = fieldday()->api->UpdateSingleCartItemApi($cartItemKey, $GcartId, $GparentId, $apidata);
     1161        $singlecartitem = fieldday()->api->UpdateSingleCartItemApi($cartItemKey, $apidata, $GcartId, $GparentId);
    11621162        //print_r($singlecartitem);
    11631163        if ($singlecartitem->statusCode === 200) {
     
    21912191            $queryParams['parentId'] = $GparentId;
    21922192            $status = 'applycoupon';
    2193             $applycoupon = fieldday()->api->ApplyCouponAPI($couponapidata, $queryParams, $status);
     2193            $applycoupon = fieldday()->api->ApplyCouponAPI($queryParams, $status, $couponapidata);
    21942194            if ($applycoupon->statusCode != 200) {
    21952195                wp_send_json(['status' => 'fail', 'message' => $applycoupon->message]);
     
    22082208            $queryParams['parentId'] = $GparentId;
    22092209            $status = 'removecoupon';
    2210             $removecoupon = fieldday()->api->ApplyCouponAPI('', $queryParams, $status);
     2210            $removecoupon = fieldday()->api->ApplyCouponAPI($queryParams, $status);
    22112211            wp_send_json(['status' => 'success', 'message' => '']);
    22122212        }
     
    32753275        global $post;
    32763276        global $KmUser;
    3277         $redirectpage = fieldday()->engine->LoginRedirect();
     3277        /*$redirectpage = fieldday()->engine->LoginRedirect();
    32783278        if (is_user_logged_in() && has_shortcode($post->post_content, 'fieldday_login') && current_user_can(fieldday_ROLE) && $redirectpage && $KmUser) {
    32793279
    32803280            wp_redirect($redirectpage);
    32813281            die;
     3282        }*/
     3283        if ($post && property_exists($post, 'post_content')) {
     3284            $redirectpage = fieldday()->engine->LoginRedirect();
     3285            if (is_user_logged_in() && has_shortcode($post->post_content, 'fieldday_login') && current_user_can(fieldday_ROLE) && $redirectpage && $KmUser) {
     3286                wp_redirect($redirectpage);
     3287                exit; // It's recommended to use exit() instead of die() for clarity
     3288            }
    32823289        }
    32833290    }
     
    34223429        $start = $_POST['start'];
    34233430        $end = $_POST['end'];
    3424         $mobiledata = $_POST['mobiledata'];
     3431        $mobiledata = isset($_POST['mobiledata']) ? $_POST['mobiledata'] : null;
    34253432
    34263433        if ($mobiledata) {
  • activityhub/trunk/inc/ClassFielddayhubCore.php

    r3176609 r3261532  
    28662866    {
    28672867        global $fielddaySetting;
    2868 
     2868        $html ='';
    28692869        $bookingTypesAvailable = $this->_sessionBookingTypes();
     2870        $fullWeekPrice = null;
    28702871        /*if($is_single==true){
    28712872        $fullWeekPrice = $this->getValue('price', $session->fullCampDetails, false);
    28722873        }else{*/
    2873         if ($session->oneDayType != 'fullDay') {
     2874        if (isset($session->oneDayType) && $session->oneDayType != 'fullDay') {
    28742875            $fullWeekPrice = $this->getValue('price', $session, false);
    28752876        }
     
    28862887                    $duration = $bookingType['duration'];
    28872888                    $Pricekey = $bookingType['apikey'];
    2888                     if ($is_single == true) {
     2889                    if (isset($is_single) && $is_single == true) {
    28892890                        $singlesessionkey = $bookingType['singlesessionkey'];
    28902891                        $PriceValue = $this->getValue('price', $session->$singlesessionkey, false);
     
    28972898            $html .= '</span>';
    28982899        } else {
    2899             if ($session->oneDayType != 'fullDay') {
     2900            if (isset($session->oneDayType) && $session->oneDayType != 'fullDay') {
    29002901                $html = '<span class="km_session_prices km_noavail_seat">No Available Seats</span>';
    29012902            }
  • activityhub/trunk/inc/ClassShortcodes.php

    r3176609 r3261532  
    337337        $authKey = $fielddaySetting['fieldday_api_auth_key'];
    338338        $orderId = $_REQUEST['orderid'];
    339         $orderData = fieldday()->api->GetOrderDetailsByOrderId([],$orderId);
     339        $orderData = fieldday()->api->GetOrderDetailsByOrderId($orderId);
    340340        return fieldday()->engine->getView('checkout/thankyou', ['data' => $orderData]);
    341341    }
  • activityhub/trunk/inc/Classfieldday.php

    r3259599 r3261532  
    1515     * @var string
    1616     */
    17     public $version = '3.4.1';
     17    public $version = '3.4.2';
    1818
    1919    /**
     
    441441        global $post;
    442442        global $fielddaySetting;
     443        $post_id = isset($post) ? $post->ID : 0;
     444
    443445        $activetheme = $this->engine->getvalue('fieldday_theme_mode', $fielddaySetting, false);
    444446
     
    508510        wp_localize_script('fieldday_script', 'fieldday_ajax', array(
    509511            'ajax_url' => admin_url('admin-ajax.php'),
    510             "permalink" => get_permalink($post->ID),
    511             '_wpnonce' => wp_create_nonce('km_nonce_' . $post->ID),
     512            "permalink" => get_permalink($post_id),
     513            '_wpnonce' => wp_create_nonce('km_nonce_' . $post_id),
    512514            'isKmUser' => $this->engine->isKmLogin(),
    513515            'fieldday_stripe_token' => $this->engine->getStripeToken(),
     
    522524            'confirm_pop_text' => $this->engine->displayText('confirm_pop_text', false),
    523525            'global_popup_key' => $fielddaySetting['global_popup_key'],
    524             'isEnabledLocationPopUpPurchasePage' => $fielddaySetting['fieldday_sticky_location_widget'],
     526            'isEnabledLocationPopUpPurchasePage' => $fielddaySetting['fieldday_sticky_location_widget'] ?? '',
    525527            'fieldday_provider_country_code' => $fielddaySetting['fieldday_provider_country_code'] ?? 'US',
    526528            'fieldday_provider_dial_code' => $fielddaySetting['fieldday_provider_dial_code'] ?? '1',
  • activityhub/trunk/inc/widgets/Elementor/classActivitySessions.php

    r3176609 r3261532  
    429429            [
    430430                'name' => 'title_typography',
    431                 'label' => __('Typography', 'plugin-domain'),
    432                 'scheme' => Typography::TYPOGRAPHY_1,
     431                'label' => __('Typography', 'fieldday'),
     432                //'scheme' => Typography::TYPOGRAPHY_1,
    433433                'selector' => '{{WRAPPER}} .km_featured_activity_title',
    434434            ]
     
    490490            [
    491491                'name' => 'heading_typography',
    492                 'label' => __('Heading Typography', 'plugin-domain'),
    493                 'scheme' => Typography::TYPOGRAPHY_1,
     492                'label' => __('Heading Typography', 'fieldday'),
     493                //'scheme' => Typography::TYPOGRAPHY_1,
    494494                'selector' => '{{WRAPPER}} .km_act_heading',
    495495            ]
     
    541541            [
    542542                'name' => 'text_typography',
    543                 'label' => __('Text Typography', 'plugin-domain'),
    544                 'scheme' => Typography::TYPOGRAPHY_1,
     543                'label' => __('Text Typography', 'fieldday'),
     544                //'scheme' => Typography::TYPOGRAPHY_1,
    545545                'selector' => '{{WRAPPER}} .km_activity_text',
    546546            ]
     
    654654                'type' => Controls_Manager::SELECT2,
    655655                'multiple' => true,
    656                 'options' => $this->SessionsList($control),
     656                'options' => $this->SessionsList(),
    657657                'default' => [],
    658658                'dynamic' => [
     
    671671     * @return array list of all sessions
    672672     */
    673     private function SessionsList( $control )
     673    private function SessionsList()
    674674    {
    675675        $tagsOptions = ['all' => 'all'];  $filters =[]; $activity_id=[];
    676676        $control = (array) $this;
    677677        foreach($control as $cont){
    678             if(is_array($cont)){
     678            //if(is_array($cont)){
     679            if (is_array($cont) && isset($cont['settings']['activity_ids'])) {
    679680               $activity_id[] = $cont['settings']['activity_ids'];
    680681            }
     
    682683        }
    683684        $trimmed_array = array_map('trim', array_filter($activity_id));
    684        
     685        $filter_value = "";
    685686        foreach($trimmed_array as $trimmed_arr){
    686687            if($trimmed_arr!=''){
  • activityhub/trunk/inc/widgets/Elementor/classActivitySessionsCopy.php

    r3176609 r3261532  
    444444            [
    445445                'name' => 'title_typography',
    446                 'label' => __('Typography', 'plugin-domain'),
    447                 'scheme' => Typography::TYPOGRAPHY_1,
     446                'label' => __('Typography', 'fieldday'),
     447                //'scheme' => Typography::TYPOGRAPHY_1,
    448448                'selector' => '{{WRAPPER}} .km_featured_activity_title',
    449449            ]
     
    505505            [
    506506                'name' => 'heading_typography',
    507                 'label' => __('Heading Typography', 'plugin-domain'),
    508                 'scheme' => Typography::TYPOGRAPHY_1,
     507                'label' => __('Heading Typography', 'fieldday'),
     508                //'scheme' => Typography::TYPOGRAPHY_1,
    509509                'selector' => '{{WRAPPER}} .km_act_heading',
    510510            ]
     
    556556            [
    557557                'name' => 'text_typography',
    558                 'label' => __('Text Typography', 'plugin-domain'),
    559                 'scheme' => Typography::TYPOGRAPHY_1,
     558                'label' => __('Text Typography', 'fieldday'),
     559                //'scheme' => Typography::TYPOGRAPHY_1,
    560560                'selector' => '{{WRAPPER}} .km_activity_text',
    561561            ]
  • activityhub/trunk/inc/widgets/Elementor/classFeaturedActivities.php

    r3000133 r3261532  
    708708                'name' => 'title_typography',
    709709                'label' => __('Typography', 'plugin-domain'),
    710                 'scheme' => Typography::TYPOGRAPHY_1,
     710                //'scheme' => Typography::TYPOGRAPHY_1,
    711711                'selector' => '{{WRAPPER}} .km_featured_activity_title',
    712712            ]
     
    769769                'name' => 'heading_typography',
    770770                'label' => __('Heading Typography', 'plugin-domain'),
    771                 'scheme' => Typography::TYPOGRAPHY_1,
     771                //'scheme' => Typography::TYPOGRAPHY_1,
    772772                'selector' => '{{WRAPPER}} .km_act_heading',
    773773            ]
     
    819819                'name' => 'text_typography',
    820820                'label' => __('Text Typography', 'plugin-domain'),
    821                 'scheme' => Typography::TYPOGRAPHY_1,
     821                //'scheme' => Typography::TYPOGRAPHY_1,
    822822                'selector' => '{{WRAPPER}} .km_activity_text',
    823823            ]
     
    899899                'name' => 'btn_text_typography',
    900900                'label' => __('Typography', 'plugin-domain'),
    901                 'scheme' => Typography::TYPOGRAPHY_1,
     901                //'scheme' => Typography::TYPOGRAPHY_1,
    902902                'selector' => '{{WRAPPER}} .km_activity_pu_btn .km_purchase_btn',
    903903            ]
  • activityhub/trunk/inc/widgets/Elementor/classFeaturedSessions.php

    r3079857 r3261532  
    699699    private function SessionSpots($session)
    700700    {
     701        $spots ='';
    701702        $availspot = fieldday()->engine->getValue('availableSpots', $session, false);
    702703        $alert_class = '';
  • activityhub/trunk/inc/widgets/Elementor/classFieldDayGiftcards.php

    r2645786 r3261532  
    192192            [
    193193                'name' => 'title_typography',
    194                 'label' => __('Typography', 'plugin-domain'),
    195                 'scheme' => Typography::TYPOGRAPHY_1,
     194                'label' => __('Typography', 'fieldday'),
     195                //'scheme' => Typography::TYPOGRAPHY_1,
    196196                'selector' => '{{WRAPPER}} .km_giftcard_title',
    197197            ]
     
    246246            [
    247247                'name' => 'btn_text_typography',
    248                 'label' => __('Typography', 'plugin-domain'),
    249                 'scheme' => Typography::TYPOGRAPHY_1,
     248                'label' => __('Typography', 'fieldday'),
     249                //'scheme' => Typography::TYPOGRAPHY_1,
    250250                'selector' => '{{WRAPPER}}  a.km_btn.km_purchase_btn',
    251251            ]
     
    555555            [
    556556                'name' => 'heading_typography',
    557                 'label' => __('Heading Typography', 'plugin-domain'),
    558                 'scheme' => Typography::TYPOGRAPHY_1,
     557                'label' => __('Heading Typography', 'fieldday'),
     558                //'scheme' => Typography::TYPOGRAPHY_1,
    559559                'selector' => '{{WRAPPER}} .km_act_heading',
    560560            ]
     
    605605            [
    606606                'name' => 'text_typography',
    607                 'label' => __('Text Typography', 'plugin-domain'),
    608                 'scheme' => Typography::TYPOGRAPHY_1,
     607                'label' => __('Text Typography', 'fieldday'),
     608                //'scheme' => Typography::TYPOGRAPHY_1,
    609609                'selector' => '{{WRAPPER}} .km_activity_text',
    610610            ]
  • activityhub/trunk/inc/widgets/Elementor/classParties.php

    r2772112 r3261532  
    450450            [
    451451                'name' => 'title_typography',
    452                 'label' => __('Typography', 'plugin-domain'),
    453                 'scheme' => Typography::TYPOGRAPHY_1,
     452                'label' => __('Typography', 'fieldday'),
     453                //'scheme' => Typography::TYPOGRAPHY_1,
    454454                'selector' => '{{WRAPPER}} .km_featured_activity_title',
    455455            ]
     
    511511            [
    512512                'name' => 'heading_typography',
    513                 'label' => __('Heading Typography', 'plugin-domain'),
    514                 'scheme' => Typography::TYPOGRAPHY_1,
     513                'label' => __('Heading Typography', 'fieldday'),
     514                //'scheme' => Typography::TYPOGRAPHY_1,
    515515                'selector' => '{{WRAPPER}} .km_act_heading',
    516516            ]
     
    561561            [
    562562                'name' => 'text_typography',
    563                 'label' => __('Text Typography', 'plugin-domain'),
    564                 'scheme' => Typography::TYPOGRAPHY_1,
     563                'label' => __('Text Typography', 'fieldday'),
     564                //'scheme' => Typography::TYPOGRAPHY_1,
    565565                'selector' => '{{WRAPPER}} .km_activity_text',
    566566            ]
     
    640640            [
    641641                'name' => 'btn_text_typography',
    642                 'label' => __('Typography', 'plugin-domain'),
    643                 'scheme' => Typography::TYPOGRAPHY_1,
     642                'label' => __('Typography', 'fieldday'),
     643                //'scheme' => Typography::TYPOGRAPHY_1,
    644644                'selector' => '{{WRAPPER}} .km_activity_pu_btn .km_purchase_btn',
    645645            ]
  • activityhub/trunk/inc/widgets/Elementor/classfielddayCalender.php

    r2890270 r3261532  
    8181                    'name' => 'event_time_design',
    8282                    'label' => __('Event Time Typography', 'fieldday'),
    83                     'scheme' => Typography::TYPOGRAPHY_1,
     83                    //'scheme' => Typography::TYPOGRAPHY_1,
    8484                    'selector' => '{{WRAPPER}} span.km_event_time',
    8585                ]
     
    101101                    'name' => 'event_design',
    102102                    'label' => __('Event Typography', 'fieldday'),
    103                     'scheme' => Typography::TYPOGRAPHY_1,
     103                    //'scheme' => Typography::TYPOGRAPHY_1,
    104104                    'selector' => '{{WRAPPER}} a.km_eventclick span',
    105105                ]
  • activityhub/trunk/inc/widgets/Elementor/classfielddayContact.php

    r2811866 r3261532  
    9797                    'name' => 'heading_design',
    9898                    'label' => __('HeadingTypography', 'fieldday'),
    99                     'scheme' => Typography::TYPOGRAPHY_1,
     99                    //'scheme' => Typography::TYPOGRAPHY_1,
    100100                    'selector' => '{{WRAPPER}} .email_login_wrap .km_contact_heading',
    101101                ]
     
    139139                    'name' => 'subheading_design',
    140140                    'label' => __('Sub Heading Typography', 'fieldday'),
    141                     'scheme' => Typography::TYPOGRAPHY_1,
     141                    //'scheme' => Typography::TYPOGRAPHY_1,
    142142                    'selector' => '{{WRAPPER}} .email_login_wrap .km_contact_subheading',
    143143                ]
  • activityhub/trunk/inc/widgets/Elementor/classfielddayMembership.php

    r2762415 r3261532  
    109109                    'name' => 'event_list_title_design',
    110110                    'label' => __('Membership Lists Title Typography', 'fieldday'),
    111                     'scheme' => Typography::TYPOGRAPHY_1,
     111                    //'scheme' => Typography::TYPOGRAPHY_1,
    112112                    'selector' => '{{WRAPPER}} .km_featured_membershipsession_tilte',
    113113                ]
     
    129129                    'name' => 'event_list_content_design',
    130130                    'label' => __('List Content Typography', 'fieldday'),
    131                     'scheme' => Typography::TYPOGRAPHY_1,
     131                    //'scheme' => Typography::TYPOGRAPHY_1,
    132132                    'selector' => '{{WRAPPER}} .membership_section span',
    133133                ]
  • activityhub/trunk/inc/widgets/Elementor/classfielddayReviews.php

    r3000133 r3261532  
    99class ElementorfielddayReviews extends Widget_Base
    1010{
     11    private $settings;
     12    private $properties = [];
    1113
    1214    public function get_name()
     
    108110        );
    109111
    110         $this->add_group_control(
     112        /*$this->add_group_control(
    111113                \Elementor\Group_Control_Typography::get_type(),
    112114                [
     
    116118                    'selector' => '{{WRAPPER}} .km_review_description',
    117119                ]
    118         );
     120        );*/
     121
     122        $this->add_group_control(
     123            \Elementor\Group_Control_Typography::get_type(),
     124            [
     125                'name' => 'testimonial_desc_design',
     126                'label' => __('Testimonial Typography', 'fieldday'),
     127                'global' => [
     128                    'default' => \Elementor\Core\Kits\Documents\Tabs\Global_Typography::TYPOGRAPHY_PRIMARY,
     129                ],
     130                'selector' => '{{WRAPPER}} .km_review_description',
     131            ]
     132        );
     133
    119134
    120135        $this->add_control(
     
    128143                ]
    129144        );
    130         $this->add_group_control(
     145        /*$this->add_group_control(
    131146                \Elementor\Group_Control_Typography::get_type(),
    132147                [
     
    136151                    'selector' => '{{WRAPPER}} .km_review_username',
    137152                ]
    138         );
     153        );*/
     154
     155        $this->add_group_control(
     156            \Elementor\Group_Control_Typography::get_type(),
     157            [
     158                'name' => 'testimonial_username_design',
     159                'label' => __('Username Typography', 'fieldday'),
     160                'global' => [
     161                    'default' => \Elementor\Core\Kits\Documents\Tabs\Global_Typography::TYPOGRAPHY_PRIMARY,
     162                ],
     163                'selector' => '{{WRAPPER}} .km_review_username',
     164            ]
     165        );
     166
    139167        $this->end_controls_section();
    140168    }
     
    284312     */
    285313    private function displayDetailedSummary($reviews, $totalRate)
    286     {   $html;
     314    {   $html ='';
    287315        $k = array_keys($reviews);
    288316        $v = array_values($reviews);
  • activityhub/trunk/inc/widgets/classWidgets.php

    r2982598 r3261532  
    108108        wp_enqueue_script('fieldday-addon-main-script');
    109109
    110         wp_register_script('fieldday-addon-calender-new-script', fieldday_URL . '/assets/js/widgets_calender' . $this->suffix . '.js', ['jquery'], fieldday_VERSION);
     110        wp_register_script('fieldday-addon-calender-new-script', fieldday_URL . '/assets/js/widgets_calender.min.js', ['jquery'], fieldday_VERSION);
    111111        wp_enqueue_script('fieldday-addon-calender-new-script');
    112112    }
  • activityhub/trunk/lib/FielddayApi/FielddayApi.php

    r3176609 r3261532  
    223223     * @return mixed
    224224     */
    225     public function GetOrderDetailsByOrderId($queryOptions = [],$orderId)
     225    public function GetOrderDetailsByOrderId($orderId,$queryOptions = [])
    226226    {
    227227        $this->setVersion();
     
    889889     * Update Single cart item to API
    890890     */
    891     public function UpdateSingleCartItemApi($itemId, $cartId = null, $parentId = null, $postData)
     891    public function UpdateSingleCartItemApi($itemId, $postData, $cartId = null, $parentId = null)
    892892    {
    893893        global $fielddaySetting;global $KmUser;
     
    963963    }
    964964
    965     public function ApplyCouponAPI($postData = null, $queryParams, $status)
     965    public function ApplyCouponAPI($queryParams, $status, $postData = null)
    966966    {
    967967        global $fielddaySetting;global $KmUser;
Note: See TracChangeset for help on using the changeset viewer.