Plugin Directory

Changeset 1903183


Ignore:
Timestamp:
07/03/2018 07:11:28 AM (8 years ago)
Author:
hotelierscom
Message:

Pass GA code to hoteliers_form

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hotelierscom-booking-module/trunk/template.php

    r1698676 r1903183  
    2121    function htlrsbm_script($intChainId,$intHotelId,$strLanguage,$strFormClass = null) {
    2222        $strOnSiteOverlay = in_array(htlrsbm_get_option('booking_engine_reminder'),['1',false],true) ? 'true' : 'false';
     23        $strGoogleAnalyticsCode = htlrsbm_get_option('google_analytics_code');
    2324        $strFormClass = null !== $strFormClass ? "'{$strFormClass}'" : 'undefined';
    2425        return <<<HTML
     
    2930                        enable_onSiteOverlay: {$strOnSiteOverlay},
    3031                        form_class: {$strFormClass},
     32                        ga_code: '{$strGoogleAnalyticsCode}',
    3133                    });
    3234                });
Note: See TracChangeset for help on using the changeset viewer.