Plugin Directory

Changeset 1446875


Ignore:
Timestamp:
06/30/2016 11:01:09 PM (10 years ago)
Author:
gcorne
Message:

Remove trailing whitespace and svn:executable properties

Location:
hubspot-tracking-code/trunk/inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • hubspot-tracking-code/trunk/inc/class-hubspot-tracking-code-analytics.php

    r1446872 r1446875  
    11<?php
    2 class HubSpotTrackingCodeAnalytics 
     2class HubSpotTrackingCodeAnalytics
    33{
    4     function HubSpotTrackingCodeAnalytics () 
     4    function HubSpotTrackingCodeAnalytics ()
    55    {
    66        add_action('wp_footer', array(&$this, 'hubspot_analytics_insert'));
     
    2222        {
    2323            // Identify the current user if logged in
    24             if ( $current_user->user_email ) 
     24            if ( $current_user->user_email )
    2525            {
    2626                $hs_identify_name   = $current_user->user_login;
    2727                $hs_identify_email  = $current_user->user_email;
    2828                $hs_identify_id     = md5($current_user->user_email);
    29             } 
    30             else 
     29            }
     30            else
    3131            {
    3232                $commenter = wp_get_current_commenter();
    33                 if ( $commenter['comment_author_email'] ) 
     33                if ( $commenter['comment_author_email'] )
    3434                {
    3535                    $hs_identify_name   = $commenter['comment_author'];
     
    3939            }
    4040
    41             if ( isset($hs_identify_email) ) 
     41            if ( isset($hs_identify_email) )
    4242            {
    4343                echo "\n" . '<!-- DO NOT COPY THIS SNIPPET! -- HubSpot User Identification Code -->' . "\n";
     
    4545                echo "(function(d,w) {\n";
    4646                // Wrap `identify` call in hubspotutk check to help prevent accidental copy-paste
    47                 if ( isset($_COOKIE['hubspotutk']) ) 
     47                if ( isset($_COOKIE['hubspotutk']) )
    4848                {
    4949                    echo "var match = d.cookie.match('(^|;) ?hubspotutk=([^;]*)(;|$)');\n";
     
    5656                echo "  \"id\" : \"" . $hs_identify_id . "\"\n";
    5757                echo "}]);\n";
    58                 if ( isset($_COOKIE['hubspotutk']) ) 
     58                if ( isset($_COOKIE['hubspotutk']) )
    5959                {
    6060                    echo "}\n";
     
    6969            echo 'var _hsq = _hsq || [];' . "\n";
    7070            // Pass along the correct content-type
    71             if ( is_singular('post') ) 
     71            if ( is_singular('post') )
    7272            {
    73                 echo '_hsq.push(["setContentType", "blog-post"]);' . "\n"; 
    74             } 
     73                echo '_hsq.push(["setContentType", "blog-post"]);' . "\n";
     74            }
    7575            else if ( is_archive () || is_search() )
    7676            {
    7777                echo '_hsq.push(["setContentType", "listing-page"]);' . "\n";
    78             } 
    79             else 
     78            }
     79            else
    8080            {
    8181                echo '_hsq.push(["setContentType", "standard-page"]);' . "\n";
  • hubspot-tracking-code/trunk/inc/class-hubspot-tracking-code.php

    r1208526 r1446875  
    3333            return FALSE;
    3434
    35         $html = '';     
     35        $html = '';
    3636        if ( ! isset($options['hs_portal']) || ( isset($options['hs_portal']) && ! $options['hs_portal'] ) )
    37         {   
     37        {
    3838            $html = '<div class="updated" style="border-color: #f47621">';
    3939                $html .= '<p>';
  • hubspot-tracking-code/trunk/inc/hubspot-tracking-code-functions.php

    r1208526 r1446875  
    11<?php
    22
    3 if ( !defined('HUBSPOT_TRACKING_CODE_PLUGIN_VERSION') ) 
     3if ( !defined('HUBSPOT_TRACKING_CODE_PLUGIN_VERSION') )
    44{
    55    header('HTTP/1.0 403 Forbidden');
     
    1616 * @return  bool            True if option value has changed, false if not or if update failed.
    1717 */
    18 function hubspot_tracking_code_update_option ( $option, $option_key, $new_value ) 
     18function hubspot_tracking_code_update_option ( $option, $option_key, $new_value )
    1919{
    2020    $options_array = get_option($option);
     
    4848        if ( is_array($message) || is_object($message) )
    4949            error_log(print_r($message, TRUE));
    50         else 
     50        else
    5151            error_log($message);
    5252    }
Note: See TracChangeset for help on using the changeset viewer.