WordPress.org

Plugin Directory

Changeset 1809067


Ignore:
Timestamp:
01/25/18 06:21:22 (4 weeks ago)
Author:
hiddenpearls
Message:

### 2.1.11 - 2018-01-25 ### Released

  • Enhancement: Compatibility with PHP 7.2
  • Enhancement: Add link to page/post titles
  • Bug Fix: Fix momentjs deprecation warning
Location:
wp-analytify/trunk
Files:
2 added
12 edited

Legend:

Unmodified
Added
Removed
  • wp-analytify/trunk/analytify-general.php

    r1784913 r1809067  
    1313define( 'ANALYTIFY_NICK', 'Analytify' ); 
    1414define( 'ANALYTIFY_ROOT_PATH', dirname( __FILE__ ) ); 
    15 define( 'ANALYTIFY_VERSION', '2.1.10' ); 
     15define( 'ANALYTIFY_VERSION', '2.1.11' ); 
    1616define( 'ANALYTIFY_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 
    1717define( 'ANALYTIFY_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 
  • wp-analytify/trunk/assets/default/css/styles.css

    r1784913 r1809067  
    19411941    position: relative; 
    19421942} 
    1943 .wp_analytify_woo .button-primary, .wp_analytify_dash .button-primary{ 
     1943.wp_analytify_woo .button-primary, .analytify-analytics-dashboard-widget .button-primary{ 
    19441944    float: none; 
    19451945    margin-bottom: 0; 
     
    19551955    padding-top: 46px; 
    19561956} 
    1957 .wp_analytify_dash h3{ 
     1957.analytify-analytics-dashboard-widget h3{ 
    19581958    background-size: 60px 76px; 
    19591959    background-position: 35px 18px; 
     
    19681968    background-size: 64px 65px; 
    19691969    background-position: 32px 22px; 
     1970    padding-top: 48px; 
     1971} 
     1972.analytify-contact-form-7-gooogle-analytics-tracking h3{ 
     1973    background-size: 57px 67px; 
     1974    background-position: 35px 26px; 
    19701975    padding-top: 48px; 
    19711976} 
  • wp-analytify/trunk/assets/default/js/wp-analytify-dashboard.js

    r1632744 r1809067  
    178178      if ( !$('#analytify_start').val() == '' || !$('#analytify_end').val() == '' ) { 
    179179      var s_date = $('#analytify_start').val(), 
    180           s_date = moment(s_date).format("YYYY-MM-DD"), 
     180          s_date = moment(s_date, 'MMM DD, YYYY').format("YYYY-MM-DD"), 
    181181          e_date = $('#analytify_end').val(), 
    182           e_date = moment(e_date).format("YYYY-MM-DD"); 
     182          e_date = moment(e_date, 'MMM DD, YYYY').format("YYYY-MM-DD"); 
    183183          $('#analytify_start_val').val(s_date); 
    184184          $('#analytify_end_val').val(e_date); 
  • wp-analytify/trunk/assets/old/css/wp-analytify-style.css

    r1524210 r1809067  
    952952 
    953953} 
    954 .wp_analytify_woo .button-primary,.wp_analytify_dash .button-primary{ 
     954.wp_analytify_woo .button-primary,.analytify-analytics-dashboard-widget .button-primary{ 
    955955    margin-bottom: -14px; 
    956956  float: left; 
     
    976976    background-image: url(../../images/woo_commerce_icon.png) !important; 
    977977} 
    978 .wp_analytify_dash h3 { 
     978.analytify-analytics-dashboard-widget h3 { 
    979979    background-image: url(../../images/dashboard_icon.png) !important; 
    980980} 
     
    988988    background-image: url(../../images/email_icon.png) !important; 
    989989} 
    990  
     990.analytify-contact-form-7-gooogle-analytics-tracking h3 { 
     991    background-image: url(../../images/form_tracking.png) !important; 
     992} 
    991993.show-hide{ 
    992994    text-align: center; 
  • wp-analytify/trunk/classes/analytify-settings.php

    r1784913 r1809067  
    395395                if ( isset( $section['desc'] ) && ! empty( $section['desc'] ) ) { 
    396396                    $section['desc'] = '<div class="inside">'.$section['desc'].'</div>'; 
    397                     $callback = create_function( '', 'echo "'.str_replace( '"', '\"', $section['desc'] ).'";' ); 
     397                    $callback = call_user_func( array( $this, 'get_description' ), $section['desc'] ); 
    398398                } else if ( isset( $section['callback'] ) ) { 
    399399                    $callback = $section['callback']; 
     
    10281028        } 
    10291029 
     1030        /** 
     1031         * Get Section Description 
     1032         * @param  string $desc [description] 
     1033         * 
     1034         * @since 2.1.11 
     1035         */ 
     1036        function get_description( $desc ) { 
     1037 
     1038            return $desc; 
     1039        } 
     1040 
     1041 
     1042        /** 
     1043        * Prints out all settings sections added to a particular settings page 
     1044        * 
     1045        * @since 2.1.11 
     1046        */ 
     1047        function do_settings_sections( $page ) { 
     1048            global $wp_settings_sections, $wp_settings_fields; 
     1049 
     1050            if ( !isset($wp_settings_sections) || !isset($wp_settings_sections[$page]) ) 
     1051            return; 
     1052 
     1053            foreach ( (array) $wp_settings_sections[$page] as $section ) { 
     1054                echo "<h3>{$section['title']}</h3>\n"; 
     1055                echo  $section['callback'] ; 
     1056                if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) ) 
     1057                continue; 
     1058                echo '<table class="form-table">'; 
     1059                do_settings_fields($page, $section['id']); 
     1060                echo '</table>'; 
     1061            } 
     1062        } 
    10301063 
    10311064        /** 
     
    10671100                            // do_action( 'wsa_form_top_' . $form['id'], $form ); 
    10681101                        settings_fields( $form['id'] ); 
    1069                         do_settings_sections( $form['id'] ); 
     1102                        $this->do_settings_sections( $form['id'] ); 
    10701103                            // do_action( 'wsa_form_bottom_' . $form['id'], $form ); 
    10711104                        ?> 
     
    10851118                                // do_action( 'wsa_form_top_' . $form['id'], $form ); 
    10861119                            settings_fields( $form['id'] ); 
    1087                             do_settings_sections( $form['id'] ); 
     1120                            $this->do_settings_sections( $form['id'] ); 
    10881121                                // do_action( 'wsa_form_bottom_' . $form['id'], $form ); 
    10891122 
  • wp-analytify/trunk/inc/analytics-dashboard.php

    r1784913 r1809067  
    191191 
    192192                if ( in_array( 'show-compare-stats', $selected_stats ) ) { 
    193                     do_action( 'wp_analytify_view_compare_stats' ); 
     193                    do_action( 'wp_analytify_view_compare_stats', $start_date, $end_date, $compare_start_date, $compare_end_date ); 
    194194                } 
    195195                ?> 
     
    285285 
    286286                        <div class="analytify_status_footer"> 
    287                             <span class="analytify_info_stats"><?php esc_html_e( 'Listing statistics of top countries and cities.', 'wp-analytify' ); ?></span>  
     287                            <span class="analytify_info_stats"><?php esc_html_e( 'Listing statistics of top countries and cities.', 'wp-analytify' ); ?></span> 
    288288                        </div> 
    289289                    </div> 
  • wp-analytify/trunk/inc/class-wpa-ajax.php

    r1626317 r1809067  
    249249 
    250250        if ( $top_page_stats === false ) { 
    251             $top_page_stats = $wp_analytify->pa_get_analytics_dashboard('ga:pageviews', $start_date, $end_date, 'ga:PageTitle', '-ga:pageviews', false, 40 ); 
     251            $top_page_stats = $wp_analytify->pa_get_analytics_dashboard('ga:pageviews', $start_date, $end_date, 'ga:PageTitle,ga:pagePath', '-ga:pageviews', false, 40 ); 
    252252            set_transient( md5( 'show-default-top-pages-dashboard' . $dashboard_profile_ID . $start_date . $end_date ) , $top_page_stats, 60 * 60 * 20 ); 
    253253        } 
  • wp-analytify/trunk/inc/page-addons.php

    r1767437 r1809067  
    4646                        'description' => esc_html__( 'Everyone runs campaigns through social media or create backlinks. This add-on helps you to show your campaigns stats in a beautiful dashboard.', 'wp-analytify' ), 
    4747                        ), 
    48                 'wp_analytify_dash' => (object) array( 
     48                'analytify-analytics-dashboard-widget' => (object) array( 
    4949                    'url'           => 'https://analytify.io/add-ons/google-analytics-dashboard-widget-wordpress/?utm_source=analytify-lite&utm_medium=addons-page&utm_campaign=pro-upgrade&utm_content=google-analytics-dashboard-widget-wordpress', 
    50                     'slug'            => 'wp-analytify-dashboard/wp-analytify-dashboard.php', 
     50                    'slug'            => 'analytify-analytics-dashboard-widget/wp-analytify-dashboard.php', 
    5151                    'title'           => sprintf( esc_html__( 'Google Analytics Dashboard widget (FREE)', 'wp-analytify' ), '<br />' ), 
    5252                    'status'          => '', 
     
    5454                    ), 
    5555 
    56                         'wp_analytify_email' => (object) array( 
    57                             'url'           => 'https://analytify.io/add-ons/email-notifications/?utm_source=analytify-lite&utm_medium=addons-page&utm_campaign=pro-upgrade&utm_content=email-notifications', 
    58                             'slug'            => 'wp-analytify-email/wp-analytify-email.php', 
    59                             'title'           =>  esc_html__( 'Email Notifications', 'wp-analytify' ), 
    60                             'status'          => '', 
    61                             'description' => esc_html__( 'Our Analytify For Email Notifications add-on sends your website analytics reports in email weekly and monthly.', 'wp-analytify' ), 
    62                             ), 
     56                    'wp_analytify_email' => (object) array( 
     57                        'url'           => 'https://analytify.io/add-ons/email-notifications/?utm_source=analytify-lite&utm_medium=addons-page&utm_campaign=pro-upgrade&utm_content=email-notifications', 
     58                        'slug'            => 'wp-analytify-email/wp-analytify-email.php', 
     59                        'title'           =>  esc_html__( 'Email Notifications', 'wp-analytify' ), 
     60                        'status'          => '', 
     61                        'description' => esc_html__( 'Our Analytify For Email Notifications add-on sends your website analytics reports in email weekly and monthly.', 'wp-analytify' ), 
     62                    ), 
     63                'analytify-contact-form-7-gooogle-analytics-tracking' => (object) array( 
     64                    'url'           => 'https://wordpress.org/plugins/analytify-contact-form-7-gooogle-analytics-tracking/', 
     65                    'slug'            => 'analytify-contact-form-7-gooogle-analytics-tracking/analytify-contact-form-7-gooogle-analytics-tracking.php', 
     66                    'title'           => sprintf( esc_html__( 'Contact form 7 Google Analytics Tracking (FREE)', 'wp-analytify' ), '<br />' ), 
     67                    'status'          => '', 
     68                    'description' => sprintf( esc_html__( 'It is a FREE plug and play Add-on by Analytify for Contact form 7 to Track Form Submissions with Google Analytics. No settings needed as all, Add-on settings should have already setup from Analytify settings page.', 'wp-analytify' ), '<br /><br />' ), 
     69                    ), 
    6370                ); 
    6471 
  • wp-analytify/trunk/readme.txt

    r1784913 r1809067  
    55Requires at least: 3.6 
    66Tested up to: 4.9 
    7 Stable tag: 2.1.10 
     7Stable tag: 2.1.11 
    88License: GPLv3 or later 
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html 
     
    148148 
    149149== Changelog == 
     150 
     151= 2.1.11 - 2018-01-25 = 
     152* Enhancement: Compatibility with PHP 7.2 
     153* Enhancement: Add link to page/post titles 
     154* Bug Fix:  Fix momentjs deprecation warning 
     155 
    150156 
    151157= 2.1.10 - 2017-12-11 = 
     
    415421== Upgrade Notice == 
    416422 
    417 = 2.1.10 = 
    418 * [Important Update] Upgrade immediately. Performance optimization, WordPress 4.9 compatibility & Hungarian language added. 
     423= 2.1.11 = 
     424* [Important Update] Upgrade immediately. 
    419425 
    420426 
  • wp-analytify/trunk/views/default/admin/pages-stats.php

    r1703877 r1809067  
    2222            <?php 
    2323 
    24             if (  isset( $stats['rows'] ) && $stats['rows'] > 0 ) : 
    25                 $i                      = 0; 
    26                 $url            = $stats['rows'][0][1]; 
     24            if ( isset( $stats['rows'] ) && $stats['rows'] > 0 ) : 
     25                $i            = 0; 
     26                $url          = $stats['rows'][0][1]; 
    2727                $top_entrance = $stats['rows'][0][2]; 
    2828 
    29                 foreach ( $stats['rows'] as $row ) :  $i++; ?> 
     29                $dashboard_profile_ID = $GLOBALS['WP_ANALYTIFY']->settings->get_option( 'profile_for_dashboard', 'wp-analytify-profile' ); 
     30                $site_url             = WP_ANALYTIFY_FUNCTIONS::search_profile_info( $dashboard_profile_ID, 'websiteUrl' ); 
     31 
     32                foreach ( $stats['rows'] as $row ) : 
     33                    $i++; 
     34            ?> 
    3035                    <tr> 
    31                         <td class="analytify_page_url_detials"><span class="analytify_page_name analytify_bullet_<?php echo $i; ?>"><?php echo $row[0]; ?></span><a target="_blank" href="<?php echo get_site_url() . $row[1] ?>"><?php echo $row[1]; ?></a> </td> 
     36                        <td class="analytify_page_url_detials"><span class="analytify_page_name analytify_bullet_<?php echo $i; ?>"><?php echo $row[0]; ?></span><a target="_blank" href="<?php echo $site_url . $row[1]; ?>"><?php echo $row[1]; ?></a> </td> 
    3237                        <td class="analytify_txt_center analytify_w_300 analytify_l_f"><?php echo WPANALYTIFY_Utils::pretty_numbers( $row[2] ); ?></td> 
    3338                        <td class="analytify_txt_center analytify_w_300 analytify_l_f"><?php echo WPANALYTIFY_Utils::pretty_numbers( $row[3] ); ?></td> 
     
    3641                            <div class="analytify_enter_exit_bars analytify_enter"> 
    3742                                <?php echo round( $row[4], 2 ) . '<span class="analytify_persantage_sign">%</span>'; ?> 
    38                                 <span class="analytify_bar_graph"><span style="width: <?php echo round( $row[4], 2 )?>%"></span></span> 
     43                                <span class="analytify_bar_graph"><span style="width: <?php echo round( $row[4], 2 ); ?>%"></span></span> 
    3944                            </div> 
    4045                            <div class="analytify_enter_exit_bars"> 
    4146                                <?php echo round( $row[5], 2 ) . '<span class="analytify_persantage_sign">%</span>'; ?> 
    42                                 <span class="analytify_bar_graph"><span style="width: <?php echo round( $row[5], 2 )?>%"></span></span> 
     47                                <span class="analytify_bar_graph"><span style="width: <?php echo round( $row[5], 2 ); ?>%"></span></span> 
    4348                            </div> 
    4449 
     
    6368    $body = ob_get_clean(); 
    6469 
    65     echo json_encode( array( 
    66         'message' =>  sprintf( esc_html__( 'Did you know that %s people landed directly to your site at %s','wp-analytify' ) , WPANALYTIFY_Utils::pretty_numbers( $top_entrance ), $url  ), 
    67         'body'    => $body, 
    68     ) ); 
     70    echo json_encode( 
     71        array( 
     72            'message' => sprintf( esc_html__( 'Did you know that %1$s people landed directly to your site at %2$s', 'wp-analytify' ), WPANALYTIFY_Utils::pretty_numbers( $top_entrance ), $url ), 
     73            'body'    => $body, 
     74        ) 
     75    ); 
    6976 
    7077} 
  • wp-analytify/trunk/views/default/admin/top-pages-stats.php

    r1524210 r1809067  
    2020 
    2121                $i = 1; 
     22                $dashboard_profile_ID = $GLOBALS['WP_ANALYTIFY']->settings->get_option( 'profile_for_dashboard','wp-analytify-profile' ); 
     23                $site_url = WP_ANALYTIFY_FUNCTIONS::search_profile_info( $dashboard_profile_ID, 'websiteUrl' ); 
    2224 
    2325                foreach ( $stats['rows'] as $top_page ) { 
     
    2527                    <tr> 
    2628                        <td class="analytify_txt_center"><?php echo $i; ?></td> 
    27                         <td><?php echo $top_page[0]; ?></td> 
    28                         <td class="analytify_txt_center analytify_value_row"><?php echo WPANALYTIFY_Utils::pretty_numbers( $top_page[1] ); ?></td> 
     29                        <td><a target='_blank' href="<?php echo $site_url . $top_page[1] ?>"><?php echo $top_page[0]; ?></a></td> 
     30                        <td class="analytify_txt_center analytify_value_row"><?php echo WPANALYTIFY_Utils::pretty_numbers( $top_page[2] ); ?></td> 
    2931                    </tr> 
    3032                    <?php 
  • wp-analytify/trunk/wp-analytify.php

    r1784913 r1809067  
    44 * Plugin URI: https://analytify.io/details 
    55 * Description: Analytify brings a brand new and modern feeling Google Analytics superbly integrated with WordPress Dashboard. It presents the statistics in a beautiful way under the WordPress Posts/Pages at front end, backend and in its own Dashboard. This provides Stats from Country, Referrers, Social media, General stats, New visitors, Returning visitors, Exit pages, Browser wise and Top keywords. This plugin provides the RealTime statistics in a new UI which is easy to understand & looks good. 
    6  * Version: 2.1.10 
     6 * Version: 2.1.11 
    77 * Author: Analytify 
    88 * Author URI: https://analytify.io 
Note: See TracChangeset for help on using the changeset viewer.