Çcgluon.globals Session q}q(U _auth_nextqU/init/default/indexqUflashqUU_formkey[login]q]qU$92ad6f1b-9f71-4b6c-810a-747b2b0cd4acqauůRq .Çcgluon.globals Session q}q(U _auth_nextqU/init/default/indexqUflashqUU_formkey[login]q]qU$6657a773-2933-4c55-8f36-256b24c4c6d9qauůRq .Çcgluon.globals Session q}q(U _auth_nextqU/init/default/indexqUflashqUU_formkey[login]q]qU$fa7fbcda-e90c-451a-94db-18cab2e3085eqauůRq .Çcgluon.globals Session q}q(U _auth_nextqU/init/default/indexqUflashqUU_formkey[login]q]qU$8bcff546-9ed7-4619-b965-6d9e9bb9b56cqauůRq . } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_TURNCONV ] ) { $_gtmrestrictlistitems[] = 'tc'; } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_TURNDATA ] ) { $_gtmrestrictlistitems[] = 'tdc'; } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_UA ] ) { $_gtmrestrictlistitems[] = 'ua'; } $_gtmwhitelist = array(); $_gtmblacklist = array(); if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_ENABLE ] == 1 ) { $_gtmblacklist = array_merge( $_gtmblacklist, $_gtmrestrictlistitems ); } else { $_gtmwhitelist = array_merge( $_gtmwhitelist, $_gtmrestrictlistitems ); } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_MACRO_DOMELEMENT ] ) { $_gtmwhitelist[] = 'd'; } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_MACRO_CUSTOMJS ] ) { $_gtmwhitelist[] = 'jsm'; } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_MACRO_CONSTANT ] ) { $_gtmwhitelist[] = 'c'; } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_MACRO_1STCOOKIE ] ) { $_gtmwhitelist[] = 'k'; } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_MACRO_EVENTNAME ] ) { $_gtmwhitelist[] = 'e'; } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_MACRO_JSVAR ] ) { $_gtmwhitelist[] = 'j'; } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_MACRO_DLAYERVAR ] ) { $_gtmwhitelist[] = 'v'; } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_MACRO_RANDOMNUM ] ) { $_gtmwhitelist[] = 'r'; } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_MACRO_REFERRER ] ) { $_gtmwhitelist[] = 'f'; } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_MACRO_URL ] ) { $_gtmwhitelist[] = 'u'; } if ( $gtm4wp_options[ GTM4WP_OPTION_BLACKLIST_MACRO_AUTOEVENT ] ) { $_gtmwhitelist[] = 'v'; } $dataLayer['gtm.whitelist'] = $_gtmwhitelist; $dataLayer['gtm.blacklist'] = $_gtmblacklist; } if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_MISCGEOCF ] && isset( $_SERVER['HTTP_CF_IPCOUNTRY'] ) ) { $dataLayer['geoCloudflareCountryCode'] = $_SERVER['HTTP_CF_IPCOUNTRY']; } if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_WEATHER ] || $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_MISCGEO ] ) { if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_WEATHER ] ) { $dataLayer['weatherCategory'] = __( '(no weather data available)', 'duracelltomi-google-tag-manager' ); $dataLayer['weatherDescription'] = __( '(no weather data available)', 'duracelltomi-google-tag-manager' ); $dataLayer['weatherTemp'] = 0; $dataLayer['weatherPressure'] = 0; $dataLayer['weatherWindSpeed'] = 0; $dataLayer['weatherWindDeg'] = 0; $dataLayer['weatherDataStatus'] = 'Initialized with empty data'; } if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_MISCGEO ] ) { $dataLayer['geoCountryCode'] = __( '(no geo data available)', 'duracelltomi-google-tag-manager' ); $dataLayer['geoCountryName'] = __( '(no geo data available)', 'duracelltomi-google-tag-manager' ); $dataLayer['geoRegionCode'] = __( '(no geo data available)', 'duracelltomi-google-tag-manager' ); $dataLayer['geoRegionName'] = __( '(no geo data available)', 'duracelltomi-google-tag-manager' ); $dataLayer['geoCity'] = __( '(no geo data available)', 'duracelltomi-google-tag-manager' ); $dataLayer['geoZipcode'] = __( '(no geo data available)', 'duracelltomi-google-tag-manager' ); $dataLayer['geoLatitude'] = __( '(no geo data available)', 'duracelltomi-google-tag-manager' ); $dataLayer['geoLongitude'] = __( '(no geo data available)', 'duracelltomi-google-tag-manager' ); } $client_ip = gtm4wp_get_user_ip(); if ( '' !== $client_ip ) { if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_WEATHER ] ) { $weatherdata = get_transient( 'gtm4wp-weatherdata-' . esc_attr( $client_ip ) ); if ( false !== $weatherdata ) { $dataLayer['weatherCategory'] = $weatherdata->weather[0]->main; $dataLayer['weatherDescription'] = $weatherdata->weather[0]->description; $dataLayer['weatherTemp'] = $weatherdata->main->temp; $dataLayer['weatherPressure'] = $weatherdata->main->pressure; $dataLayer['weatherWindSpeed'] = $weatherdata->wind->speed; $dataLayer['weatherWindDeg'] = ( isset($weatherdata->wind->deg) ? $weatherdata->wind->deg : '' ); $dataLayer['weatherFullWeatherData'] = $weatherdata; $dataLayer['weatherDataStatus'] = 'Read from cache'; } else { $dataLayer['weatherDataStatus'] = 'No weather data in cache (' . esc_attr( $client_ip ) . ')'; } } if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_MISCGEO ] ) { $geodata = get_transient( 'gtm4wp-geodata-' . esc_attr( $client_ip ) ); if ( false !== $geodata ) { $dataLayer['geoFullGeoData'] = $geodata; if ( isset( $geodata->latitude ) ) { $dataLayer['geoCountryCode'] = $geodata->country_code; $dataLayer['geoCountryName'] = $geodata->country_name; $dataLayer['geoRegionCode'] = $geodata->region_code; $dataLayer['geoRegionName'] = $geodata->region_name; $dataLayer['geoCity'] = $geodata->city; $dataLayer['geoZipcode'] = $geodata->zip; $dataLayer['geoLatitude'] = $geodata->latitude; $dataLayer['geoLongitude'] = $geodata->longitude; } } } } } return $dataLayer; } function gtm4wp_wp_loaded() { global $gtm4wp_options; if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_WEATHER ] || $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_MISCGEO ] ) { $client_ip = gtm4wp_get_user_ip(); $geodata = get_transient( 'gtm4wp-geodata-' . esc_attr( $client_ip ) ); if ( false === $geodata ) { $gtm4wp_geodata = @wp_remote_get( sprintf( 'http://api.ipstack.com/%s?access_key=%s&format=1', urlencode( $client_ip ), $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_MISCGEOAPI ] ) ); if ( is_array( $gtm4wp_geodata ) && ( 200 == $gtm4wp_geodata['response']['code'] ) ) { $gtm4wp_geodata = @json_decode( $gtm4wp_geodata['body'] ); if ( is_object( $gtm4wp_geodata ) ) { set_transient( 'gtm4wp-geodata-' . esc_attr( $client_ip ), $gtm4wp_geodata, 60 * 60 ); $weatherdata = get_transient( 'gtm4wp-weatherdata-' . esc_attr( $client_ip ) ); if ( false === $weatherdata && isset( $gtm4wp_geodata->latitude ) ) { $weatherdata = wp_remote_get( 'http://api.openweathermap.org/data/2.5/weather?appid=' . $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_WEATHEROWMAPI ] . '&lat=' . $gtm4wp_geodata->latitude . '&lon=' . $gtm4wp_geodata->longitude . '&units=' . ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_WEATHERUNITS ] == 0 ? 'metric' : 'imperial' ) ); if ( is_array( $weatherdata ) && ( 200 == $weatherdata['response']['code'] ) ) { $weatherdata = @json_decode( $weatherdata['body'] ); if ( is_object( $weatherdata ) ) { set_transient( 'gtm4wp-weatherdata-' . esc_attr( $client_ip ), $weatherdata, 60 * 60 ); setcookie( 'gtm4wp_last_weatherstatus', 'Weather data loaded.' ); } else { setcookie( 'gtm4wp_last_weatherstatus', 'Openweathermap.org did not return processable data: ' . var_export( $weatherdata, true ) ); } } else { if ( is_wp_error( $weatherdata ) ) { setcookie( 'gtm4wp_last_weatherstatus', 'Openweathermap.org request error: ' . $weatherdata->get_error_message() ); } else { setcookie( 'gtm4wp_last_weatherstatus', 'Openweathermap.org returned status code: ' . $weatherdata['response']['code'] ); } } } } else { setcookie( 'gtm4wp_last_weatherstatus', 'ipstack.com did not return lat-lng data: ' . var_export( $gtm4wp_geodata, true ) ); } } else { if ( is_wp_error( $gtm4wp_geodata ) ) { setcookie( 'gtm4wp_last_weatherstatus', 'ipstack.com request error: ' . $gtm4wp_geodata->get_error_message() ); } else { setcookie( 'gtm4wp_last_weatherstatus', 'ipstack.com returned status code: ' . $gtm4wp_geodata['response']['code'] ); } } } } } function gtm4wp_get_the_gtm_tag() { global $gtm4wp_options, $gtm4wp_datalayer_name, $gtm4wp_container_code_written; $_gtm_tag = ' '; if ( GTM4WP_PLACEMENT_OFF == $gtm4wp_options[ GTM4WP_OPTION_GTM_PLACEMENT ] ) { $gtm4wp_container_code_written = true; } if ( ( $gtm4wp_options[ GTM4WP_OPTION_GTM_CODE ] != '' ) && ( ! $gtm4wp_container_code_written ) ) { $_gtm_codes = explode( ',', str_replace( array( ';', ' ' ), array( ',', '' ), $gtm4wp_options[ GTM4WP_OPTION_GTM_CODE ] ) ); if ( ( '' != $gtm4wp_options[ GTM4WP_OPTION_ENV_GTM_AUTH ] ) && ( '' != $gtm4wp_options[ GTM4WP_OPTION_ENV_GTM_PREVIEW ] ) ) { $_gtm_env = '>m_auth=' . $gtm4wp_options[ GTM4WP_OPTION_ENV_GTM_AUTH ] . '>m_preview=' . $gtm4wp_options[ GTM4WP_OPTION_ENV_GTM_PREVIEW ] . '>m_cookies_win=x'; } else { $_gtm_env = ''; } foreach ( $_gtm_codes as $one_gtm_code ) { $_gtm_tag .= ' '; } $_gtm_tag .= ' '; $_gtm_tag = apply_filters( GTM4WP_WPFILTER_GETTHEGTMTAG, $_gtm_tag ); $gtm4wp_container_code_written = true; } return $_gtm_tag; } function gtm4wp_the_gtm_tag() { echo gtm4wp_get_the_gtm_tag(); } function gtm4wp_enqueue_scripts() { global $gtm4wp_options, $gtp4wp_plugin_url; if ( $gtm4wp_options[ GTM4WP_OPTION_EVENTS_OUTBOUND ] ) { $in_footer = apply_filters( 'gtm4wp_' . GTM4WP_OPTION_EVENTS_OUTBOUND, false ); wp_enqueue_script( 'gtm4wp-outbound-click-tracker', $gtp4wp_plugin_url . 'js/gtm4wp-outbound-click-tracker.js', array( 'jquery' ), GTM4WP_VERSION, $in_footer ); } if ( $gtm4wp_options[ GTM4WP_OPTION_EVENTS_DOWNLOADS ] ) { $in_footer = apply_filters( 'gtm4wp_' . GTM4WP_OPTION_EVENTS_DOWNLOADS, false ); wp_enqueue_script( 'gtm4wp-download-tracker', $gtp4wp_plugin_url . 'js/gtm4wp-download-tracker.js', array( 'jquery' ), GTM4WP_VERSION, $in_footer ); } if ( $gtm4wp_options[ GTM4WP_OPTION_EVENTS_EMAILCLICKS ] ) { $in_footer = apply_filters( 'gtm4wp_' . GTM4WP_OPTION_EVENTS_EMAILCLICKS, false ); wp_enqueue_script( 'gtm4wp-email-link-tracker', $gtp4wp_plugin_url . 'js/gtm4wp-email-link-tracker.js', array( 'jquery' ), GTM4WP_VERSION, $in_footer ); } if ( $gtm4wp_options[ GTM4WP_OPTION_INTEGRATE_WPCF7 ] ) { $in_footer = apply_filters( 'gtm4wp_' . GTM4WP_OPTION_INTEGRATE_WPCF7, false ); wp_enqueue_script( 'gtm4wp-contact-form-7-tracker', $gtp4wp_plugin_url . 'js/gtm4wp-contact-form-7-tracker.js', array( 'jquery' ), GTM4WP_VERSION, $in_footer ); } if ( $gtm4wp_options[ GTM4WP_OPTION_EVENTS_FORMMOVE ] ) { $in_footer = apply_filters( 'gtm4wp_' . GTM4WP_OPTION_EVENTS_FORMMOVE, false ); wp_enqueue_script( 'gtm4wp-form-move-tracker', $gtp4wp_plugin_url . 'js/gtm4wp-form-move-tracker.js', array( 'jquery' ), GTM4WP_VERSION, $in_footer ); } if ( $gtm4wp_options[ GTM4WP_OPTION_EVENTS_SOCIAL ] ) { $in_footer = apply_filters( 'gtm4wp_' . GTM4WP_OPTION_EVENTS_SOCIAL, false ); wp_enqueue_script( 'gtm4wp-social-actions', $gtp4wp_plugin_url . 'js/gtm4wp-social-tracker.js', array( 'jquery' ), GTM4WP_VERSION, $in_footer ); } if ( $gtm4wp_options[ GTM4WP_OPTION_EVENTS_YOUTUBE ] ) { require_once dirname( __FILE__ ) . '/../integration/youtube.php'; } if ( $gtm4wp_options[ GTM4WP_OPTION_EVENTS_VIMEO ] ) { require_once dirname( __FILE__ ) . '/../integration/vimeo.php'; } if ( $gtm4wp_options[ GTM4WP_OPTION_EVENTS_SOUNDCLOUD ] ) { require_once dirname( __FILE__ ) . '/../integration/soundcloud.php'; } if ( $gtm4wp_options[ GTM4WP_OPTION_SCROLLER_ENABLED ] ) { $in_footer = apply_filters( 'gtm4wp_' . GTM4WP_OPTION_SCROLLER_ENABLED, false ); wp_enqueue_script( 'gtm4wp-scroll-tracking', $gtp4wp_plugin_url . 'js/analytics-talk-content-tracking.js', array( 'jquery' ), GTM4WP_VERSION, $in_footer ); } } function gtm4wp_wp_footer() { global $gtm4wp_options; if ( GTM4WP_PLACEMENT_FOOTER == $gtm4wp_options[ GTM4WP_OPTION_GTM_PLACEMENT ] ) { gtm4wp_the_gtm_tag(); } } function gtm4wp_wp_body_open() { global $gtm4wp_options; if ( ( GTM4WP_PLACEMENT_BODYOPEN == $gtm4wp_options[ GTM4WP_OPTION_GTM_PLACEMENT ] ) || ( GTM4WP_PLACEMENT_BODYOPEN_AUTO == $gtm4wp_options[ GTM4WP_OPTION_GTM_PLACEMENT ] ) ) { gtm4wp_the_gtm_tag(); } } function gtm4wp_filter_visitor_keys( $dataLayer ) { foreach ( $dataLayer as $dl_key => $dl_value ) { if ( strpos( $dl_key, 'visitor' ) !== false ) { unset( $dataLayer[ $dl_key ] ); } } return $dataLayer; } /** * GTM4WP global JS variables WordPress filter * * @author Vincent Koc * @link https://github.com/duracelltomi/gtm4wp/issues/34 * @return mixed returns the */ function gtm4wp_add_global_vars( $vars, $return = false ) { if ( ! $return ) { if ( function_exists( $vars ) ) { $vars = $vars(); } $GLOBALS['gtm4wp_datalayer_globalvars'] = $GLOBALS['gtm4wp_datalayer_globalvars'] . ' ' . $vars; } return $GLOBALS['gtm4wp_datalayer_globalvars']; } function gtm4wp_wp_header_top( $echo = true ) { global $gtm4wp_options, $gtm4wp_datalayer_name; $has_html5_support = current_theme_supports( 'html5' ); $_gtm_top_content = ' '; if ( ! gtm4wp_amp_running() ) { if ( $echo ) { echo $_gtm_top_content; } else { return $_gtm_top_content; } } } function gtm4wp_wp_header_begin( $echo = true ) { global $gtm4wp_datalayer_name, $gtm4wp_datalayer_json, $gtm4wp_options, $woocommerce; $has_html5_support = current_theme_supports( 'html5' ); $_gtm_header_content = ' '; $_gtm_header_content .= apply_filters( GTM4WP_WPFILTER_AFTER_DATALAYER, '' ); if ( ( $gtm4wp_options[ GTM4WP_OPTION_GTM_CODE ] != '' ) && ( GTM4WP_PLACEMENT_OFF != $gtm4wp_options[ GTM4WP_OPTION_GTM_PLACEMENT ] ) ) { $_gtm_codes = explode( ',', str_replace( array( ';', ' ' ), array( ',', '' ), $gtm4wp_options[ GTM4WP_OPTION_GTM_CODE ] ) ); $_gtm_tag = ''; foreach ( $_gtm_codes as $one_gtm_code ) { if ( ( '' != $gtm4wp_options[ GTM4WP_OPTION_ENV_GTM_AUTH ] ) && ( '' != $gtm4wp_options[ GTM4WP_OPTION_ENV_GTM_PREVIEW ] ) ) { $_gtm_env = "+'>m_auth=" . $gtm4wp_options[ GTM4WP_OPTION_ENV_GTM_AUTH ] . '>m_preview=' . $gtm4wp_options[ GTM4WP_OPTION_ENV_GTM_PREVIEW ] . ">m_cookies_win=x'"; } else { $_gtm_env = ''; } $_gtm_tag .= ' '; } $_gtm_tag .= ' '; $_gtm_tag = apply_filters( GTM4WP_WPFILTER_GETTHEGTMTAG, $_gtm_tag ); $_gtm_header_content .= $_gtm_tag; } $_gtm_header_content .= ' '; if ( ! gtm4wp_amp_running() ) { if ( $echo ) { echo $_gtm_header_content; } else { return $_gtm_header_content; } } } function gtm4wp_body_class( $classes ) { global $gtm4wp_options; // solution is based on the code of Yaniv Friedensohn // http://www.affectivia.com/blog/placing-the-google-tag-manager-in-wordpress-after-the-body-tag/ if ( ( GTM4WP_PLACEMENT_BODYOPEN_AUTO == $gtm4wp_options[ GTM4WP_OPTION_GTM_PLACEMENT ] ) && ( !isset($_GET["ct_builder"]) ) ) { $classes[] = '">' . gtm4wp_get_the_gtm_tag() . '
Landscaper Pro Mariana Paraschiv, Author at Landscaper Pro

Calitatea Apei

Calitatea apei de irigat utilizat─â pentru ├«ntre╚Ťinerea gazonului poate influen╚Ťa s─ân─âtatea solului ╚Öi poate restric╚Ťiona sever performan╚Ťa gazonului. Utilizarea apei de slab─â calitate pentru irigarea...
Read More