Changeset 1477223
- Timestamp:
- 08/17/2016 07:25:10 PM (10 years ago)
- Location:
- fireems-stats/trunk
- Files:
-
- 44 added
- 3 edited
-
admin (added)
-
admin/class-fireems-stats-admin.php (added)
-
admin/css (added)
-
admin/css/bootstrap-theme.min.css (added)
-
admin/css/bootstrap.min.css (added)
-
admin/css/fireems-stats-admin.css (added)
-
admin/css/font-awesome.min.css (added)
-
admin/fonts (added)
-
admin/fonts/FontAwesome.otf (added)
-
admin/fonts/fontawesome-webfont.eot (added)
-
admin/fonts/fontawesome-webfont.svg (added)
-
admin/fonts/fontawesome-webfont.ttf (added)
-
admin/fonts/fontawesome-webfont.woff (added)
-
admin/fonts/fontawesome-webfont.woff2 (added)
-
admin/images (added)
-
admin/images/large_spinner_orange.gif (added)
-
admin/images/small_ms.png (added)
-
admin/images/truck65.png (added)
-
admin/index.php (added)
-
admin/js (added)
-
admin/js/bootstrap.min.js (added)
-
admin/js/fireems-stats-admin.min.js (added)
-
admin/partials (added)
-
admin/partials/fireems-stats-display.php (added)
-
admin/partials/fireems-stats-faq-display.php (added)
-
admin/partials/fireems-stats-prior-display.php (added)
-
admin/partials/fireems-stats-settings-display.php (added)
-
admin/partials/spinner_orange.gif (added)
-
fireems-stats.php (modified) (1 diff)
-
includes (added)
-
includes/class-fireems-stats-activator.php (added)
-
includes/class-fireems-stats-deactivator.php (added)
-
includes/class-fireems-stats-i18n.php (added)
-
includes/class-fireems-stats-loader.php (added)
-
includes/class-fireems-stats.php (added)
-
includes/index.php (added)
-
index.php (added)
-
languages (added)
-
languages/fireems-stats.pot (added)
-
public (added)
-
public/class-fireems-stats-public.php (added)
-
public/css (added)
-
public/css/fireems-stats-public.css (added)
-
public/index.php (added)
-
public/widget.php (added)
-
readme.txt (modified) (4 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fireems-stats/trunk/fireems-stats.php
r1445425 r1477223 1 1 <?php 2 /*3 Plugin Name: Fire/EMS Stats (Lite)4 Plugin URI: http://www.maltesesolutions.com5 Description: This plugin will display your Fire/EMS Stats.6 Version: 1.2.37 Author: Maltese Solutions8 Author URI: http://www.maltesesolutions.com9 License: GPLv210 */11 2 12 define('FIREEMS_VERSION', '1.2.3'); //since 1.2.1 13 define('FIREEMS_PATH', plugin_dir_path( __FILE__ ) ); 14 define('FIREEMS_URL', WP_PLUGIN_URL."/fireems-stats/" ); 15 require_once(FIREEMS_PATH."inc/functions.php"); 16 require_once(FIREEMS_PATH."inc/admin.php"); 17 require_once(FIREEMS_PATH."inc/widget.php"); 18 register_activation_hook( __FILE__, 'FireEMS_install' ); 19 ?> 3 /** 4 * The plugin bootstrap file 5 * 6 * This file is read by WordPress to generate the plugin information in the plugin 7 * admin area. This file also includes all of the dependencies used by the plugin, 8 * registers the activation and deactivation functions, and defines a function 9 * that starts the plugin. 10 * 11 * @link http://www.maltesesolutions.com 12 * @since 2.0.0 13 * @package Fireems_Stats 14 * 15 * @wordpress-plugin 16 * Plugin Name: FireEMS Stats 17 * Plugin URI: http://www.maltesesolutions.com 18 * Description: Plugin that allows your Fire or EMS Organizaiton to list its monthly activity. 19 * Version: 2.0.0 20 * Author: MalteseSolutions 21 * Author URI: http://www.maltesesolutions.com 22 * License: GPL-2.0+ 23 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 24 * Text Domain: fireems-stats 25 * Domain Path: /languages 26 */ 27 28 29 // If this file is called directly, abort. 30 if ( ! defined( 'WPINC' ) ) { 31 die; 32 } 33 34 ob_start(); 35 36 /** 37 * The code that runs during plugin activation. 38 * This action is documented in includes/class-fireems-stats-activator.php 39 */ 40 function activate_fireems_stats() { 41 require_once plugin_dir_path( __FILE__ ) . 'includes/class-fireems-stats-activator.php'; 42 Fireems_Stats_Activator::activate(); 43 } 44 45 /** 46 * The code that runs during plugin deactivation. 47 * This action is documented in includes/class-fireems-stats-deactivator.php 48 */ 49 function deactivate_fireems_stats() { 50 require_once plugin_dir_path( __FILE__ ) . 'includes/class-fireems-stats-deactivator.php'; 51 Fireems_Stats_Deactivator::deactivate(); 52 } 53 54 register_activation_hook( __FILE__, 'activate_fireems_stats' ); 55 register_deactivation_hook( __FILE__, 'deactivate_fireems_stats' ); 56 57 /** 58 * The core plugin class that is used to define internationalization, 59 * admin-specific hooks, and public-facing site hooks. 60 */ 61 require plugin_dir_path( __FILE__ ) . 'includes/class-fireems-stats.php'; 62 63 /** 64 * Begins execution of the plugin. 65 * 66 * Since everything within the plugin is registered via hooks, 67 * then kicking off the plugin from this point in the file does 68 * not affect the page life cycle. 69 * 70 * @since 2.0.0 71 */ 72 function run_fireems_stats() { 73 74 $plugin = new Fireems_Stats(); 75 $plugin->run(); 76 77 } 78 run_fireems_stats(); -
fireems-stats/trunk/readme.txt
r1445425 r1477223 3 3 Tags: fire department, EMS, monthly calls, fire stats, ems stats, fire 4 4 Requires at least: 4.0 5 Tested up to: 4. 56 Stable tag: 1.2.35 Tested up to: 4.6 6 Stable tag: 2.0.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 16 16 Edit your stats manually to keep your visitors and community up to date. 17 17 18 Live Demo: [Pro Version](http://wpdemo.maltesesolutions.com).19 18 20 19 = Like this plugin? = … … 35 34 36 35 FireEMS Stats allows your Fire or EMS Organization to list monthly activity on the front page. 37 Edit your stats manually to keep your visitors and community up to date.36 You can edit your stats manually to keep your visitors and community up to date. 38 37 39 38 == Frequently Asked Questions == … … 52 51 53 52 == Changelog == 53 54 = 2.0.0 (2016-8-17) = 55 * Complete rewrite of the code 56 * Updated to Object Oriented 57 * Integration of Tom McFarlins Boilerplate Plugin 58 * Admin now utilizes Bootstrap 3.3.7 59 * Stats updates are now completed with ajax calls 60 * Improved CSS 61 * Added additional features to widget 62 * Now available for translations 63 * Compatible with WordPress 4.6 64 * Compatible with prior versions of Fire/EMS Stats 54 65 55 66 = 1.2.3 (2016-06-29) = -
fireems-stats/trunk/uninstall.php
r1378271 r1477223 1 1 <?php 2 2 3 /** 3 * Uninstall4 * Fired when the plugin is uninstalled. 4 5 * 5 * @link http:// maltesesolutions.com6 * @since 1.2.26 * @link http://www.maltesesolutions.com 7 * @since 2.0.0 7 8 * 8 * @package Fire EmsStats9 * @package Fireems_Stats 9 10 */ 10 11 11 //if uninstall not called from WordPress exit 12 if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) 13 exit(); 12 // If uninstall not called from WordPress, then exit. 13 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { 14 exit; 15 } 16 14 17 global $wpdb; 18 15 19 $prefix = $wpdb->prefix; 20 16 21 $stats = $prefix.'fireEMS'; 22 17 23 $stats_db = $prefix.'fireEMS_'; 18 24 19 25 // Delete All Stat Years 20 $wpdb->query($sql); 21 $sql = "select year from $stats order by year"; 22 $result = $wpdb->get_results($sql); 23 foreach ($result as $data) { 24 $sql = "DROP TABLE $stats_db".$data->year; 25 $wpdb->query($sql); 26 } 27 $sql = "DROP TABLE $stats"; 26 28 27 $wpdb->query($sql); 29 28 30 $option_name = 'fireEMS'; 31 delete_option( $option_name ); 29 $sql = "select year from $stats order by year"; 30 31 $result = $wpdb->get_results($sql); 32 33 foreach ($result as $data) { 34 35 $sql = "DROP TABLE $stats_db".$data->year; 36 37 $wpdb->query($sql); 38 39 } 40 41 $sql = "DROP TABLE $stats"; 42 43 $wpdb->query($sql); 44 45 delete_option( 'fireEMS' );
Note: See TracChangeset
for help on using the changeset viewer.