Changeset 1103583
- Timestamp:
- 03/02/2015 09:13:53 PM (11 years ago)
- Location:
- social-metrics-tracker
- Files:
-
- 104 added
- 4 edited
-
tags/1.4.3 (added)
-
tags/1.4.3/MetricsUpdater.class.php (added)
-
tags/1.4.3/SocialMetricsDebugger.class.php (added)
-
tags/1.4.3/SocialMetricsSettings.class.php (added)
-
tags/1.4.3/SocialMetricsTrackerWidget.class.php (added)
-
tags/1.4.3/css (added)
-
tags/1.4.3/css/social-metrics-tracker.min.css (added)
-
tags/1.4.3/css/social-metrics-tracker.min.css.map (added)
-
tags/1.4.3/css/social-metrics-tracker.scss (added)
-
tags/1.4.3/data-sources (added)
-
tags/1.4.3/data-sources/FacebookUpdater.class.php (added)
-
tags/1.4.3/data-sources/GooglePlusUpdater.class.php (added)
-
tags/1.4.3/data-sources/HTTPResourceUpdater.class.php (added)
-
tags/1.4.3/data-sources/LinkedInUpdater.class.php (added)
-
tags/1.4.3/data-sources/PinterestUpdater.class.php (added)
-
tags/1.4.3/data-sources/StumbleUponUpdater.class.php (added)
-
tags/1.4.3/data-sources/TwitterUpdater.class.php (added)
-
tags/1.4.3/data-sources/WordPressCircuitBreaker.class.php (added)
-
tags/1.4.3/data-sources/google_analytics.php (added)
-
tags/1.4.3/js (added)
-
tags/1.4.3/js/social-metrics-tracker.js (added)
-
tags/1.4.3/js/social-metrics-tracker.min.js (added)
-
tags/1.4.3/lib (added)
-
tags/1.4.3/lib/Google (added)
-
tags/1.4.3/lib/Google/Auth (added)
-
tags/1.4.3/lib/Google/Auth/Abstract.php (added)
-
tags/1.4.3/lib/Google/Auth/AssertionCredentials.php (added)
-
tags/1.4.3/lib/Google/Auth/Exception.php (added)
-
tags/1.4.3/lib/Google/Auth/LoginTicket.php (added)
-
tags/1.4.3/lib/Google/Auth/OAuth2.php (added)
-
tags/1.4.3/lib/Google/Auth/Simple.php (added)
-
tags/1.4.3/lib/Google/Cache (added)
-
tags/1.4.3/lib/Google/Cache/Abstract.php (added)
-
tags/1.4.3/lib/Google/Cache/Apc.php (added)
-
tags/1.4.3/lib/Google/Cache/Exception.php (added)
-
tags/1.4.3/lib/Google/Cache/File.php (added)
-
tags/1.4.3/lib/Google/Cache/Memcache.php (added)
-
tags/1.4.3/lib/Google/Cache/Null.php (added)
-
tags/1.4.3/lib/Google/Client.php (added)
-
tags/1.4.3/lib/Google/Collection.php (added)
-
tags/1.4.3/lib/Google/Config.php (added)
-
tags/1.4.3/lib/Google/Exception.php (added)
-
tags/1.4.3/lib/Google/Http (added)
-
tags/1.4.3/lib/Google/Http/Batch.php (added)
-
tags/1.4.3/lib/Google/Http/CacheParser.php (added)
-
tags/1.4.3/lib/Google/Http/MediaFileUpload.php (added)
-
tags/1.4.3/lib/Google/Http/REST.php (added)
-
tags/1.4.3/lib/Google/Http/Request.php (added)
-
tags/1.4.3/lib/Google/IO (added)
-
tags/1.4.3/lib/Google/IO/Abstract.php (added)
-
tags/1.4.3/lib/Google/IO/Curl.php (added)
-
tags/1.4.3/lib/Google/IO/Exception.php (added)
-
tags/1.4.3/lib/Google/IO/Stream.php (added)
-
tags/1.4.3/lib/Google/IO/cacerts.pem (added)
-
tags/1.4.3/lib/Google/Model.php (added)
-
tags/1.4.3/lib/Google/Service (added)
-
tags/1.4.3/lib/Google/Service.php (added)
-
tags/1.4.3/lib/Google/Service/Analytics.php (added)
-
tags/1.4.3/lib/Google/Service/Exception.php (added)
-
tags/1.4.3/lib/Google/Service/Resource.php (added)
-
tags/1.4.3/lib/Google/Signer (added)
-
tags/1.4.3/lib/Google/Signer/Abstract.php (added)
-
tags/1.4.3/lib/Google/Signer/P12.php (added)
-
tags/1.4.3/lib/Google/Utils (added)
-
tags/1.4.3/lib/Google/Utils.php (added)
-
tags/1.4.3/lib/Google/Utils/URITemplate.php (added)
-
tags/1.4.3/lib/Google/Verifier (added)
-
tags/1.4.3/lib/Google/Verifier/Abstract.php (added)
-
tags/1.4.3/lib/Google/Verifier/Pem.php (added)
-
tags/1.4.3/lib/Handlebars (added)
-
tags/1.4.3/lib/Handlebars/Autoloader.php (added)
-
tags/1.4.3/lib/Handlebars/Cache (added)
-
tags/1.4.3/lib/Handlebars/Cache.php (added)
-
tags/1.4.3/lib/Handlebars/Cache/APC.php (added)
-
tags/1.4.3/lib/Handlebars/Cache/Disk.php (added)
-
tags/1.4.3/lib/Handlebars/Cache/Dummy.php (added)
-
tags/1.4.3/lib/Handlebars/Context.php (added)
-
tags/1.4.3/lib/Handlebars/Engine.php (added)
-
tags/1.4.3/lib/Handlebars/Helpers.php (added)
-
tags/1.4.3/lib/Handlebars/Loader (added)
-
tags/1.4.3/lib/Handlebars/Loader.php (added)
-
tags/1.4.3/lib/Handlebars/Loader/FilesystemLoader.php (added)
-
tags/1.4.3/lib/Handlebars/Loader/StringLoader.php (added)
-
tags/1.4.3/lib/Handlebars/Parser.php (added)
-
tags/1.4.3/lib/Handlebars/String.php (added)
-
tags/1.4.3/lib/Handlebars/Template.php (added)
-
tags/1.4.3/lib/Handlebars/Tokenizer.php (added)
-
tags/1.4.3/lib/class-wp-list-table.php (added)
-
tags/1.4.3/lib/wp-settings-framework.php (added)
-
tags/1.4.3/readme.txt (added)
-
tags/1.4.3/settings (added)
-
tags/1.4.3/settings/smt-gapi.php (added)
-
tags/1.4.3/settings/smt-general.php (added)
-
tags/1.4.3/smt-dashboard-debug.php (added)
-
tags/1.4.3/smt-dashboard.php (added)
-
tags/1.4.3/smt-export.php (added)
-
tags/1.4.3/social-metrics-tracker.php (added)
-
tags/1.4.3/templates (added)
-
tags/1.4.3/templates/example.handlebars (added)
-
tags/1.4.3/templates/settings-nav.handlebars (added)
-
tags/1.4.3/templates/settings-test.handlebars (added)
-
tags/1.4.3/templates/settings-urls.handlebars (added)
-
tags/1.4.3/templates/stat-details.handlebars (added)
-
tags/1.4.3/uninstall.php (added)
-
trunk/SocialMetricsSettings.class.php (modified) (2 diffs)
-
trunk/lib/wp-settings-framework.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/social-metrics-tracker.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-metrics-tracker/trunk/SocialMetricsSettings.class.php
r1094497 r1103583 40 40 41 41 default: 42 if (count($_POST) > 0) { 43 $this->process_general_form(); 44 } 45 42 46 $this->section = 'general'; 43 47 $this->wpsf = new WordPressSettingsFramework( plugin_dir_path( __FILE__ ) .'settings/smt-'.$this->section.'.php', 'smt' ); … … 96 100 97 101 </div> 98 <?php } 102 <?php 103 } 99 104 100 105 101 106 // Render the general settings page 102 107 function general_section() { 103 $this->wpsf->settings(); 104 } 105 108 $this->wpsf->settings(''); 109 } 110 111 // Saves the general settings page 112 function process_general_form() { 113 if (!isset($_POST) || count($_POST) == 0) return; 114 $this->smt->merge_smt_options($_POST['smt_settings']); 115 } 106 116 107 117 // Renders the Test Tool page -
social-metrics-tracker/trunk/lib/wp-settings-framework.php
r1092718 r1103583 254 254 * Output the settings form 255 255 */ 256 function settings( )256 function settings($form_action='options.php') 257 257 { 258 258 do_action('wpsf_before_settings'); 259 259 ?> 260 <form action=" options.php" method="post">260 <form action="<?php echo $form_action; ?>" method="post"> 261 261 <?php do_action('wpsf_before_settings_fields'); ?> 262 262 <?php settings_fields( $this->option_group ); ?> -
social-metrics-tracker/trunk/readme.txt
r1094497 r1103583 5 5 Requires at least: 3.5 6 6 Tested up to: 4.1.1 7 Stable tag: 1.4. 27 Stable tag: 1.4.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 96 96 97 97 == Changelog == 98 99 = 1.4.3 = 100 * Fixed a bug where saving the general settings page would overwrite domain migration settings 101 * Fixed a bug where the dashboard widget would display regardless of if it was enabled 102 * Load dashboard assets over SSL if enabled 98 103 99 104 = 1.4.2 = … … 180 185 == Upgrade Notice == 181 186 182 = 1.4.2 187 = 1.4.3 = 188 Bug fixes 189 190 = 1.4.2 = 183 191 Fixed a bug where domain migration settings were being erased 184 192 -
social-metrics-tracker/trunk/social-metrics-tracker.php
r1094497 r1103583 4 4 Plugin URI: https://github.com/ChapmanU/wp-social-metrics-tracker 5 5 Description: Collect and display social network shares, likes, tweets, and view counts of posts. 6 Version: 1.4. 26 Version: 1.4.3 7 7 Author: Ben Cole, Chapman University 8 8 Author URI: http://www.bencole.net … … 39 39 class SocialMetricsTracker { 40 40 41 public $version = '1.4. 2'; // for db upgrade comparison41 public $version = '1.4.3'; // for db upgrade comparison 42 42 public $updater; 43 43 public $options; … … 140 140 wp_enqueue_script( 'smt-js' ); 141 141 142 wp_enqueue_style('jquery-style', ' http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');142 wp_enqueue_style('jquery-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css'); 143 143 144 144 } // end adminHeaderScripts() … … 158 158 159 159 public function dashboard_setup() { 160 new SocialMetricsTrackerWidget($this);160 if ($this->get_smt_option('display_widget')) new SocialMetricsTrackerWidget($this); 161 161 } 162 162 … … 322 322 323 323 /*************************************************** 324 * Merge another array of options into the current, use input to overwrite local settings 325 ***************************************************/ 326 public function merge_smt_options($options) { 327 $this->options = array_merge($this->options, $options); 328 return $this->save_smt_options(); 329 } 330 331 /*************************************************** 324 332 * Saves the settings to the DB 325 333 ***************************************************/
Note: See TracChangeset
for help on using the changeset viewer.