Plugin Directory

Changeset 1104324


Ignore:
Timestamp:
03/03/2015 04:59:44 PM (11 years ago)
Author:
bcole808
Message:

Release of v1.4.4

Location:
social-metrics-tracker
Files:
104 added
3 edited

Legend:

Unmodified
Added
Removed
  • social-metrics-tracker/trunk/SocialMetricsSettings.class.php

    r1103583 r1104324  
    1313        add_action( 'admin_menu', array(&$this, 'admin_menu'), 99 );
    1414
    15         $section = (isset($_REQUEST['section'])) ? $_REQUEST['section'] : false;
    16         switch ($section) {
    17             case 'gapi':
    18 
    19                 $this->section = 'gapi';
    20 
    21                 $smt->updater->setupDataSources();
    22                 $this->gapi = $smt->updater->GoogleAnalyticsUpdater;
    23 
    24                 if (isset($_GET['go_to_step']) && $_GET['go_to_step']) $this->gapi->go_to_step($_GET['go_to_step']);
    25 
    26                 break;
    27 
    28             case 'urls':
    29                 if (count($_POST) > 0) {
    30                     $this->process_urls_form();
    31                 }
    32 
    33                 $this->section = 'urls';
    34                 break;
    35 
    36             case 'test':
    37 
    38                 $this->section = 'test';
    39                 break;
    40 
    41             default:
    42                 if (count($_POST) > 0) {
    43                     $this->process_general_form();
    44                 }
    45 
    46                 $this->section = 'general';
    47                 $this->wpsf = new WordPressSettingsFramework( plugin_dir_path( __FILE__ ) .'settings/smt-'.$this->section.'.php', 'smt' );
    48                 break;
    49         }
    50 
     15        $pages = array('social-metrics-tracker', 'social-metrics-tracker-export', 'social-metrics-tracker-settings');
     16
     17        if (isset($_REQUEST['page']) && in_array($_REQUEST['page'], $pages)) {
     18            $this->section = (isset($_REQUEST['section'])) ? $_REQUEST['section'] : 'general';
     19            $this->wpsf = new WordPressSettingsFramework( plugin_dir_path( __FILE__ ) .'settings/smt-'.$this->section.'.php', 'smt' );
     20        }
     21   
    5122    }
    5223
     
    9364
    9465
    95     function render_settings_page() { ?>
     66    function render_settings_page() {
     67
     68        switch ($this->section) {
     69            case 'gapi':
     70                $this->smt->updater->setupDataSources();
     71                $this->gapi = $this->smt->updater->GoogleAnalyticsUpdater;
     72
     73                if (isset($_GET['go_to_step']) && $_GET['go_to_step']) $this->gapi->go_to_step($_GET['go_to_step']);
     74
     75                break;
     76
     77            case 'urls':
     78                if (count($_POST) > 0) {
     79                    $this->process_urls_form();
     80                }
     81
     82                break;
     83
     84            case 'test':
     85                break;
     86
     87            default:
     88                if (count($_POST) > 0) {
     89                    $this->process_general_form();
     90                }
     91
     92                break;
     93        }
     94
     95        ?>
    9696        <div class="wrap">
    9797            <h2>Social Metrics Tracker Configuration</h2>
  • social-metrics-tracker/trunk/readme.txt

    r1103583 r1104324  
    55Requires at least: 3.5
    66Tested up to: 4.1.1
    7 Stable tag: 1.4.3
     7Stable tag: 1.4.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9696
    9797== Changelog ==
     98
     99= 1.4.4 =
     100* Fixed a PHP warning caused by the plugin
    98101
    99102= 1.4.3 =
     
    185188== Upgrade Notice ==
    186189
     190= 1.4.4 =
     191Minor bug fix
     192
    187193= 1.4.3 =
    188194Bug fixes
  • social-metrics-tracker/trunk/social-metrics-tracker.php

    r1103583 r1104324  
    44Plugin URI: https://github.com/ChapmanU/wp-social-metrics-tracker
    55Description: Collect and display social network shares, likes, tweets, and view counts of posts.
    6 Version: 1.4.3
     6Version: 1.4.4
    77Author: Ben Cole, Chapman University
    88Author URI: http://www.bencole.net
     
    3939class SocialMetricsTracker {
    4040
    41     public $version = '1.4.3'; // for db upgrade comparison
     41    public $version = '1.4.4'; // for db upgrade comparison
    4242    public $updater;
    4343    public $options;
     
    325325    ***************************************************/
    326326    public function merge_smt_options($options) {
     327        if (!is_array($options)) return false;
    327328        $this->options = array_merge($this->options, $options);
    328329        return $this->save_smt_options();
Note: See TracChangeset for help on using the changeset viewer.