Plugin Directory

Changeset 1663970


Ignore:
Timestamp:
05/24/2017 01:18:43 PM (9 years ago)
Author:
saravan
Message:

edit files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • technoscore-hotjar-tracking/trunk/technoscore-hotjar-tracking.php

    r1663849 r1663970  
    3131function techno_show_hotjar(){
    3232global $post;
     33$techno_hotjar_script = esc_attr( get_option('techno_bing_script') );
    3334$techno_hotjar_page_id_empty = esc_attr( get_option('techno_hotjar_page_id') );
    34 if(!empty($techno_hotjar_page_id_empty)){
    35 $techno_hotjar_page_id = explode(',',get_option('techno_hotjar_page_id'));
    36     if(count($techno_hotjar_page_id)>0){
    37         if(in_array($post->ID,$techno_hotjar_page_id)){
    38             echo get_option('techno_hotjar_script');
     35if(!empty($techno_hotjar_script)){
     36    if(!empty($techno_hotjar_page_id_empty)){
     37    $techno_hotjar_page_id = explode(',',get_option('techno_hotjar_page_id'));
     38        if(count($techno_hotjar_page_id)>0){
     39            if(in_array($post->ID,$techno_hotjar_page_id)){
     40                echo get_option('techno_hotjar_script');
     41            }
    3942        }
     43    }else{
     44    echo get_option('techno_hotjar_script');
    4045    }
    41 }else{
    42 echo get_option('techno_hotjar_script');
    4346}
    4447
Note: See TracChangeset for help on using the changeset viewer.