Changeset 1219540
- Timestamp:
- 08/12/2015 09:25:42 PM (11 years ago)
- Location:
- classy
- Files:
-
- 37 edited
- 4 copied
-
tags/1.2.3 (copied) (copied from classy/trunk)
-
tags/1.2.3/README.txt (copied) (copied from classy/trunk/README.txt) (1 diff)
-
tags/1.2.3/admin/class-classy-admin.php (modified) (6 diffs)
-
tags/1.2.3/admin/partials/classy-admin-display.php (modified) (1 diff)
-
tags/1.2.3/classy.php (modified) (3 diffs)
-
tags/1.2.3/includes/class-classy-activator.php (modified) (3 diffs)
-
tags/1.2.3/includes/class-classy-api.php (modified) (17 diffs)
-
tags/1.2.3/includes/class-classy-deactivator.php (modified) (3 diffs)
-
tags/1.2.3/includes/class-classy-i18n.php (modified) (5 diffs)
-
tags/1.2.3/includes/class-classy-loader.php (modified) (8 diffs)
-
tags/1.2.3/includes/class-classy.php (modified) (11 diffs)
-
tags/1.2.3/public/class-classy-public.php (modified) (11 diffs)
-
tags/1.2.3/public/partials/classy-public-display.php (modified) (1 diff)
-
tags/1.2.3/trunk (copied) (copied from classy/trunk)
-
tags/1.2.3/trunk/README.txt (copied) (copied from classy/trunk/README.txt) (2 diffs)
-
tags/1.2.3/trunk/admin/class-classy-admin.php (modified) (6 diffs)
-
tags/1.2.3/trunk/admin/partials/classy-admin-display.php (modified) (1 diff)
-
tags/1.2.3/trunk/classy.php (modified) (3 diffs)
-
tags/1.2.3/trunk/includes/class-classy-activator.php (modified) (3 diffs)
-
tags/1.2.3/trunk/includes/class-classy-api.php (modified) (17 diffs)
-
tags/1.2.3/trunk/includes/class-classy-deactivator.php (modified) (3 diffs)
-
tags/1.2.3/trunk/includes/class-classy-i18n.php (modified) (5 diffs)
-
tags/1.2.3/trunk/includes/class-classy-loader.php (modified) (8 diffs)
-
tags/1.2.3/trunk/includes/class-classy.php (modified) (11 diffs)
-
tags/1.2.3/trunk/public/class-classy-public.php (modified) (11 diffs)
-
tags/1.2.3/trunk/public/partials/classy-public-display.php (modified) (1 diff)
-
tags/1.2.3/trunk/uninstall.php (modified) (1 diff)
-
tags/1.2.3/uninstall.php (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/class-classy-admin.php (modified) (6 diffs)
-
trunk/admin/partials/classy-admin-display.php (modified) (1 diff)
-
trunk/classy.php (modified) (3 diffs)
-
trunk/includes/class-classy-activator.php (modified) (3 diffs)
-
trunk/includes/class-classy-api.php (modified) (17 diffs)
-
trunk/includes/class-classy-deactivator.php (modified) (3 diffs)
-
trunk/includes/class-classy-i18n.php (modified) (5 diffs)
-
trunk/includes/class-classy-loader.php (modified) (8 diffs)
-
trunk/includes/class-classy.php (modified) (11 diffs)
-
trunk/public/class-classy-public.php (modified) (11 diffs)
-
trunk/public/partials/classy-public-display.php (modified) (1 diff)
-
trunk/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
classy/tags/1.2.3/README.txt
r1212063 r1219540 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.2.3 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
classy/tags/1.2.3/admin/class-classy-admin.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 23 23 * The ID of this plugin. 24 24 * 25 * @since 1.2. 225 * @since 1.2.3 26 26 * @access private 27 27 * @var string $classy The ID of this plugin. … … 32 32 * The version of this plugin. 33 33 * 34 * @since 1.2. 234 * @since 1.2.3 35 35 * @access private 36 36 * @var string $version The current version of this plugin. … … 41 41 * Initialize the class and set its properties. 42 42 * 43 * @since 1.2. 243 * @since 1.2.3 44 44 * @param string $classy The name of this plugin. 45 45 * @param string $version The version of this plugin. … … 54 54 * Register the stylesheets for the Dashboard. 55 55 * 56 * @since 1.2. 256 * @since 1.2.3 57 57 */ 58 58 public function enqueue_styles() { … … 63 63 * Register the JavaScript for the dashboard. 64 64 * 65 * @since 1.2. 265 * @since 1.2.3 66 66 */ 67 67 public function enqueue_scripts() { -
classy/tags/1.2.3/admin/partials/classy-admin-display.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy -
classy/tags/1.2.3/classy.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * @package Classy 9 9 * … … 12 12 * Plugin URI: http://mediacause.org 13 13 * Description: A tool used to integrate Classy's API into easily accessible shortcodes 14 * Version: 1.2. 214 * Version: 1.2.3 15 15 * Author: Media Cause 16 16 * Author URI: http://mediacause.org … … 60 60 * not affect the page life cycle. 61 61 * 62 * @since 1.2. 262 * @since 1.2.3 63 63 */ 64 64 function run_classy() { -
classy/tags/1.2.3/includes/class-classy-activator.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 16 16 * This class defines all code necessary to run during the plugin's activation. 17 17 * 18 * @since 1.2. 218 * @since 1.2.3 19 19 * @package Classy 20 20 * @subpackage Classy/includes … … 28 28 * Long Description. 29 29 * 30 * @since 1.2. 230 * @since 1.2.3 31 31 */ 32 32 public static function activate() { -
classy/tags/1.2.3/includes/class-classy-api.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 16 16 * This class defines all code necessary to run during the plugin's API functionality. 17 17 * 18 * @since 1.2. 218 * @since 1.2.3 19 19 * @package Classy 20 20 * @subpackage Classy/includes … … 33 33 * Updates Classy Token and CID information. 34 34 * 35 * @since 1.2. 235 * @since 1.2.3 36 36 */ 37 37 … … 61 61 * Get all the details about a specific charity account 62 62 * 63 * @since 1.2. 263 * @since 1.2.3 64 64 */ 65 65 public function account_info(){ … … 78 78 * activity. 79 79 * 80 * @since 1.2. 280 * @since 1.2.3 81 81 * @param string $attrs The query string (optional) 82 82 */ … … 94 94 * Get information about matching sponsors for a campaign/event 95 95 * 96 * @since 1.2. 296 * @since 1.2.3 97 97 * @param string $attrs The query string (optional) 98 98 */ … … 110 110 * Get an array of all campaigns and events for a charity account 111 111 * 112 * @since 1.2. 2112 * @since 1.2.3 113 113 * @param string $attrs The query string (optional) 114 114 */ … … 126 126 * Get all the specific details about a specific campaign or event 127 127 * 128 * @since 1.2. 2128 * @since 1.2.3 129 129 * @param string $eid The unique ID of the campaign/event 130 130 */ … … 142 142 * Get an array of all tickets for a specified campaign/event 143 143 * 144 * @since 1.2. 2144 * @since 1.2.3 145 145 * @param string $eid The unique ID of the campaign/event 146 146 */ … … 159 159 * designation or member 160 160 * 161 * @since 1.2. 2161 * @since 1.2.3 162 162 * @param string $attrs The query string (optional) 163 163 */ … … 175 175 * Get the details for a specific individual fundraising page 176 176 * 177 * @since 1.2. 2177 * @since 1.2.3 178 178 * @param string $fcid The unique ID of the individual fundraising page 179 179 */ … … 191 191 * Get a list of the top fundraising teams ranked by total $ raised for a specific campaign 192 192 * 193 * @since 1.2. 2193 * @since 1.2.3 194 194 * @param string $attrs The query string (optional) 195 195 */ … … 207 207 * Get the details for a specific individual fundraising team page 208 208 * 209 * @since 1.2. 2209 * @since 1.2.3 210 210 * @param string $ftid The unique ID of the individual fundraising page 211 211 */ … … 223 223 * Get an array of donations over a specific date range 224 224 * 225 * @since 1.2. 2225 * @since 1.2.3 226 226 * @param string $attrs The query string (optional) 227 227 */ … … 239 239 * Get an array of recurring donation profiles 240 240 * 241 * @since 1.2. 2241 * @since 1.2.3 242 242 * @param string $attrs The query string (optional) 243 243 */ … … 256 256 * designations and terminology is sometimes interchanged on Classy. 257 257 * 258 * @since 1.2. 2258 * @since 1.2.3 259 259 * @param string $pid The unique ID of the project/designation 260 260 */ … … 272 272 * Retrieve ticket details for a specific campaign/event 273 273 * 274 * @since 1.2. 2274 * @since 1.2.3 275 275 * @param string $eid The unique ID of the campaign/event 276 276 */ -
classy/tags/1.2.3/includes/class-classy-deactivator.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 16 16 * This class defines all code necessary to run during the plugin's deactivation. 17 17 * 18 * @since 1.2. 218 * @since 1.2.3 19 19 * @package Classy 20 20 * @subpackage Classy/includes … … 28 28 * Long Description. 29 29 * 30 * @since 1.2. 230 * @since 1.2.3 31 31 */ 32 32 public static function deactivate() { -
classy/tags/1.2.3/includes/class-classy-i18n.php
r1211458 r1219540 8 8 * 9 9 * @link http://mediacause.org 10 * @since 1.2. 210 * @since 1.2.3 11 11 * 12 12 * @package Classy … … 20 20 * so that it is ready for translation. 21 21 * 22 * @since 1.2. 222 * @since 1.2.3 23 23 * @package Classy 24 24 * @subpackage Classy/includes … … 30 30 * The domain specified for this plugin. 31 31 * 32 * @since 1.2. 232 * @since 1.2.3 33 33 * @access private 34 34 * @var string $domain The domain identifier for this plugin. … … 39 39 * Load the plugin text domain for translation. 40 40 * 41 * @since 1.2. 241 * @since 1.2.3 42 42 */ 43 43 public function load_plugin_textdomain() { … … 54 54 * Set the domain equal to that of the specified domain. 55 55 * 56 * @since 1.2. 256 * @since 1.2.3 57 57 * @param string $domain The domain that represents the locale of this plugin. 58 58 */ -
classy/tags/1.2.3/includes/class-classy-loader.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 27 27 * The array of actions registered with WordPress. 28 28 * 29 * @since 1.2. 229 * @since 1.2.3 30 30 * @access protected 31 31 * @var array $actions The actions registered with WordPress to fire when the plugin loads. … … 36 36 * The array of filters registered with WordPress. 37 37 * 38 * @since 1.2. 238 * @since 1.2.3 39 39 * @access protected 40 40 * @var array $filters The filters registered with WordPress to fire when the plugin loads. … … 45 45 * Initialize the collections used to maintain the actions and filters. 46 46 * 47 * @since 1.2. 247 * @since 1.2.3 48 48 */ 49 49 public function __construct() { … … 57 57 * Add a new action to the collection to be registered with WordPress. 58 58 * 59 * @since 1.2. 259 * @since 1.2.3 60 60 * @param string $hook The name of the WordPress action that is being registered. 61 61 * @param object $component A reference to the instance of the object on which the action is defined. … … 71 71 * Add a new filter to the collection to be registered with WordPress. 72 72 * 73 * @since 1.2. 273 * @since 1.2.3 74 74 * @param string $hook The name of the WordPress filter that is being registered. 75 75 * @param object $component A reference to the instance of the object on which the filter is defined. … … 86 86 * collection. 87 87 * 88 * @since 1.2. 288 * @since 1.2.3 89 89 * @access private 90 90 * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). … … 113 113 * Register the filters and actions with WordPress. 114 114 * 115 * @since 1.2. 2115 * @since 1.2.3 116 116 */ 117 117 public function run() { -
classy/tags/1.2.3/includes/class-classy.php
r1211461 r1219540 8 8 * 9 9 * @link http://mediacause.org 10 * @since 1.2. 210 * @since 1.2.3 11 11 * 12 12 * @package Classy … … 23 23 * version of the plugin. 24 24 * 25 * @since 1.2. 225 * @since 1.2.3 26 26 * @package Classy 27 27 * @subpackage Classy/includes … … 34 34 * the plugin. 35 35 * 36 * @since 1.2. 236 * @since 1.2.3 37 37 * @access protected 38 38 * @var Classy_Loader $loader Maintains and registers all hooks for the plugin. … … 43 43 * The unique identifier of this plugin. 44 44 * 45 * @since 1.2. 245 * @since 1.2.3 46 46 * @access protected 47 47 * @var string $classy The string used to uniquely identify this plugin. … … 52 52 * The current version of the plugin. 53 53 * 54 * @since 1.2. 254 * @since 1.2.3 55 55 * @access protected 56 56 * @var string $version The current version of the plugin. … … 65 65 * the public-facing side of the site. 66 66 * 67 * @since 1.2. 267 * @since 1.2.3 68 68 */ 69 69 public function __construct() { 70 70 71 71 $this->classy = 'classy'; 72 $this->version = '1.2. 2';72 $this->version = '1.2.3'; 73 73 74 74 $this->load_dependencies(); … … 92 92 * with WordPress. 93 93 * 94 * @since 1.2. 294 * @since 1.2.3 95 95 * @access private 96 96 */ … … 133 133 * with WordPress. 134 134 * 135 * @since 1.2. 2135 * @since 1.2.3 136 136 * @access private 137 137 */ … … 149 149 * of the plugin. 150 150 * 151 * @since 1.2. 2151 * @since 1.2.3 152 152 * @access private 153 153 */ … … 165 165 * of the plugin. 166 166 * 167 * @since 1.2. 2167 * @since 1.2.3 168 168 * @access private 169 169 */ … … 180 180 * Run the loader to execute all of the hooks with WordPress. 181 181 * 182 * @since 1.2. 2182 * @since 1.2.3 183 183 */ 184 184 public function run() { -
classy/tags/1.2.3/public/class-classy-public.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 23 23 * The ID of this plugin. 24 24 * 25 * @since 1.2. 225 * @since 1.2.3 26 26 * @access private 27 27 * @var string $classy The ID of this plugin. … … 32 32 * The version of this plugin. 33 33 * 34 * @since 1.2. 234 * @since 1.2.3 35 35 * @access private 36 36 * @var string $version The current version of this plugin. … … 41 41 * The version of this plugin. 42 42 * 43 * @since 1.2. 243 * @since 1.2.3 44 44 * @access private 45 45 * @var object $api The current account API Object … … 53 53 * Initialize the class and set its properties. 54 54 * 55 * @since 1.2. 255 * @since 1.2.3 56 56 * @param string $classy The name of the plugin. 57 57 * @param string $version The version of this plugin. … … 70 70 * Register the stylesheets for the public-facing side of the site. 71 71 * 72 * @since 1.2. 272 * @since 1.2.3 73 73 */ 74 74 public function enqueue_styles() { … … 79 79 * Register the stylesheets for the public-facing side of the site. 80 80 * 81 * @since 1.2. 281 * @since 1.2.3 82 82 */ 83 83 public function enqueue_scripts() { … … 98 98 99 99 // Get events greater than current date 100 function expired_events_func($events){100 private static function expired_events_func($events){ 101 101 foreach ($events as $event) { 102 $date = strtotime($event ->start_date);102 $date = strtotime($event['start_date']); 103 103 $current_date = strtotime("now"); 104 104 return ($event & $date < $current_date); … … 107 107 108 108 // Sort by date ASC 109 function sort_func($a, $b)109 private static function sort_func($a, $b) 110 110 { 111 111 $t1 = strtotime($a->start_date); … … 136 136 $campaigns = $result->campaigns; 137 137 if($a['current'] == "true"){ 138 $campaigns = array_filter($ events, "expired_events_func");138 $campaigns = array_filter($campaigns, array(__CLASS__,'expired_events_func')); 139 139 } 140 140 141 141 if($a['sort'] == "date"){ 142 usort($ events, "sort_func");142 usort($campaigns, array(__CLASS__,'sort_func')); 143 143 } 144 144 … … 400 400 'rid' => '', 401 401 'limit' => '' 402 ) );402 ), $atts); 403 403 404 404 $attrs = http_build_query($a); -
classy/tags/1.2.3/public/partials/classy-public-display.php
r1211458 r1219540 7 7 * 8 8 * @link http://mediacause.org 9 * @since 1.2. 29 * @since 1.2.3 10 10 * 11 11 * @package Classy -
classy/tags/1.2.3/trunk/README.txt
r1212063 r1219540 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.2.3 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 36 36 This plugin was created using Tom McFarlin's Boilerplate WordPress Plugin template. 37 37 38 [Classy API](http://mediacause.org/Classy_API.pdf)39 40 38 Want a customized version for your site? Reach out to us at [web@mediacause.org](mailto:web@mediacause.org) 41 39 -
classy/tags/1.2.3/trunk/admin/class-classy-admin.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 23 23 * The ID of this plugin. 24 24 * 25 * @since 1.2. 225 * @since 1.2.3 26 26 * @access private 27 27 * @var string $classy The ID of this plugin. … … 32 32 * The version of this plugin. 33 33 * 34 * @since 1.2. 234 * @since 1.2.3 35 35 * @access private 36 36 * @var string $version The current version of this plugin. … … 41 41 * Initialize the class and set its properties. 42 42 * 43 * @since 1.2. 243 * @since 1.2.3 44 44 * @param string $classy The name of this plugin. 45 45 * @param string $version The version of this plugin. … … 54 54 * Register the stylesheets for the Dashboard. 55 55 * 56 * @since 1.2. 256 * @since 1.2.3 57 57 */ 58 58 public function enqueue_styles() { … … 63 63 * Register the JavaScript for the dashboard. 64 64 * 65 * @since 1.2. 265 * @since 1.2.3 66 66 */ 67 67 public function enqueue_scripts() { -
classy/tags/1.2.3/trunk/admin/partials/classy-admin-display.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy -
classy/tags/1.2.3/trunk/classy.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * @package Classy 9 9 * … … 12 12 * Plugin URI: http://mediacause.org 13 13 * Description: A tool used to integrate Classy's API into easily accessible shortcodes 14 * Version: 1.2. 214 * Version: 1.2.3 15 15 * Author: Media Cause 16 16 * Author URI: http://mediacause.org … … 60 60 * not affect the page life cycle. 61 61 * 62 * @since 1.2. 262 * @since 1.2.3 63 63 */ 64 64 function run_classy() { -
classy/tags/1.2.3/trunk/includes/class-classy-activator.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 16 16 * This class defines all code necessary to run during the plugin's activation. 17 17 * 18 * @since 1.2. 218 * @since 1.2.3 19 19 * @package Classy 20 20 * @subpackage Classy/includes … … 28 28 * Long Description. 29 29 * 30 * @since 1.2. 230 * @since 1.2.3 31 31 */ 32 32 public static function activate() { -
classy/tags/1.2.3/trunk/includes/class-classy-api.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 16 16 * This class defines all code necessary to run during the plugin's API functionality. 17 17 * 18 * @since 1.2. 218 * @since 1.2.3 19 19 * @package Classy 20 20 * @subpackage Classy/includes … … 33 33 * Updates Classy Token and CID information. 34 34 * 35 * @since 1.2. 235 * @since 1.2.3 36 36 */ 37 37 … … 61 61 * Get all the details about a specific charity account 62 62 * 63 * @since 1.2. 263 * @since 1.2.3 64 64 */ 65 65 public function account_info(){ … … 78 78 * activity. 79 79 * 80 * @since 1.2. 280 * @since 1.2.3 81 81 * @param string $attrs The query string (optional) 82 82 */ … … 94 94 * Get information about matching sponsors for a campaign/event 95 95 * 96 * @since 1.2. 296 * @since 1.2.3 97 97 * @param string $attrs The query string (optional) 98 98 */ … … 110 110 * Get an array of all campaigns and events for a charity account 111 111 * 112 * @since 1.2. 2112 * @since 1.2.3 113 113 * @param string $attrs The query string (optional) 114 114 */ … … 126 126 * Get all the specific details about a specific campaign or event 127 127 * 128 * @since 1.2. 2128 * @since 1.2.3 129 129 * @param string $eid The unique ID of the campaign/event 130 130 */ … … 142 142 * Get an array of all tickets for a specified campaign/event 143 143 * 144 * @since 1.2. 2144 * @since 1.2.3 145 145 * @param string $eid The unique ID of the campaign/event 146 146 */ … … 159 159 * designation or member 160 160 * 161 * @since 1.2. 2161 * @since 1.2.3 162 162 * @param string $attrs The query string (optional) 163 163 */ … … 175 175 * Get the details for a specific individual fundraising page 176 176 * 177 * @since 1.2. 2177 * @since 1.2.3 178 178 * @param string $fcid The unique ID of the individual fundraising page 179 179 */ … … 191 191 * Get a list of the top fundraising teams ranked by total $ raised for a specific campaign 192 192 * 193 * @since 1.2. 2193 * @since 1.2.3 194 194 * @param string $attrs The query string (optional) 195 195 */ … … 207 207 * Get the details for a specific individual fundraising team page 208 208 * 209 * @since 1.2. 2209 * @since 1.2.3 210 210 * @param string $ftid The unique ID of the individual fundraising page 211 211 */ … … 223 223 * Get an array of donations over a specific date range 224 224 * 225 * @since 1.2. 2225 * @since 1.2.3 226 226 * @param string $attrs The query string (optional) 227 227 */ … … 239 239 * Get an array of recurring donation profiles 240 240 * 241 * @since 1.2. 2241 * @since 1.2.3 242 242 * @param string $attrs The query string (optional) 243 243 */ … … 256 256 * designations and terminology is sometimes interchanged on Classy. 257 257 * 258 * @since 1.2. 2258 * @since 1.2.3 259 259 * @param string $pid The unique ID of the project/designation 260 260 */ … … 272 272 * Retrieve ticket details for a specific campaign/event 273 273 * 274 * @since 1.2. 2274 * @since 1.2.3 275 275 * @param string $eid The unique ID of the campaign/event 276 276 */ -
classy/tags/1.2.3/trunk/includes/class-classy-deactivator.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 16 16 * This class defines all code necessary to run during the plugin's deactivation. 17 17 * 18 * @since 1.2. 218 * @since 1.2.3 19 19 * @package Classy 20 20 * @subpackage Classy/includes … … 28 28 * Long Description. 29 29 * 30 * @since 1.2. 230 * @since 1.2.3 31 31 */ 32 32 public static function deactivate() { -
classy/tags/1.2.3/trunk/includes/class-classy-i18n.php
r1211458 r1219540 8 8 * 9 9 * @link http://mediacause.org 10 * @since 1.2. 210 * @since 1.2.3 11 11 * 12 12 * @package Classy … … 20 20 * so that it is ready for translation. 21 21 * 22 * @since 1.2. 222 * @since 1.2.3 23 23 * @package Classy 24 24 * @subpackage Classy/includes … … 30 30 * The domain specified for this plugin. 31 31 * 32 * @since 1.2. 232 * @since 1.2.3 33 33 * @access private 34 34 * @var string $domain The domain identifier for this plugin. … … 39 39 * Load the plugin text domain for translation. 40 40 * 41 * @since 1.2. 241 * @since 1.2.3 42 42 */ 43 43 public function load_plugin_textdomain() { … … 54 54 * Set the domain equal to that of the specified domain. 55 55 * 56 * @since 1.2. 256 * @since 1.2.3 57 57 * @param string $domain The domain that represents the locale of this plugin. 58 58 */ -
classy/tags/1.2.3/trunk/includes/class-classy-loader.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 27 27 * The array of actions registered with WordPress. 28 28 * 29 * @since 1.2. 229 * @since 1.2.3 30 30 * @access protected 31 31 * @var array $actions The actions registered with WordPress to fire when the plugin loads. … … 36 36 * The array of filters registered with WordPress. 37 37 * 38 * @since 1.2. 238 * @since 1.2.3 39 39 * @access protected 40 40 * @var array $filters The filters registered with WordPress to fire when the plugin loads. … … 45 45 * Initialize the collections used to maintain the actions and filters. 46 46 * 47 * @since 1.2. 247 * @since 1.2.3 48 48 */ 49 49 public function __construct() { … … 57 57 * Add a new action to the collection to be registered with WordPress. 58 58 * 59 * @since 1.2. 259 * @since 1.2.3 60 60 * @param string $hook The name of the WordPress action that is being registered. 61 61 * @param object $component A reference to the instance of the object on which the action is defined. … … 71 71 * Add a new filter to the collection to be registered with WordPress. 72 72 * 73 * @since 1.2. 273 * @since 1.2.3 74 74 * @param string $hook The name of the WordPress filter that is being registered. 75 75 * @param object $component A reference to the instance of the object on which the filter is defined. … … 86 86 * collection. 87 87 * 88 * @since 1.2. 288 * @since 1.2.3 89 89 * @access private 90 90 * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). … … 113 113 * Register the filters and actions with WordPress. 114 114 * 115 * @since 1.2. 2115 * @since 1.2.3 116 116 */ 117 117 public function run() { -
classy/tags/1.2.3/trunk/includes/class-classy.php
r1211461 r1219540 8 8 * 9 9 * @link http://mediacause.org 10 * @since 1.2. 210 * @since 1.2.3 11 11 * 12 12 * @package Classy … … 23 23 * version of the plugin. 24 24 * 25 * @since 1.2. 225 * @since 1.2.3 26 26 * @package Classy 27 27 * @subpackage Classy/includes … … 34 34 * the plugin. 35 35 * 36 * @since 1.2. 236 * @since 1.2.3 37 37 * @access protected 38 38 * @var Classy_Loader $loader Maintains and registers all hooks for the plugin. … … 43 43 * The unique identifier of this plugin. 44 44 * 45 * @since 1.2. 245 * @since 1.2.3 46 46 * @access protected 47 47 * @var string $classy The string used to uniquely identify this plugin. … … 52 52 * The current version of the plugin. 53 53 * 54 * @since 1.2. 254 * @since 1.2.3 55 55 * @access protected 56 56 * @var string $version The current version of the plugin. … … 65 65 * the public-facing side of the site. 66 66 * 67 * @since 1.2. 267 * @since 1.2.3 68 68 */ 69 69 public function __construct() { 70 70 71 71 $this->classy = 'classy'; 72 $this->version = '1.2. 2';72 $this->version = '1.2.3'; 73 73 74 74 $this->load_dependencies(); … … 92 92 * with WordPress. 93 93 * 94 * @since 1.2. 294 * @since 1.2.3 95 95 * @access private 96 96 */ … … 133 133 * with WordPress. 134 134 * 135 * @since 1.2. 2135 * @since 1.2.3 136 136 * @access private 137 137 */ … … 149 149 * of the plugin. 150 150 * 151 * @since 1.2. 2151 * @since 1.2.3 152 152 * @access private 153 153 */ … … 165 165 * of the plugin. 166 166 * 167 * @since 1.2. 2167 * @since 1.2.3 168 168 * @access private 169 169 */ … … 180 180 * Run the loader to execute all of the hooks with WordPress. 181 181 * 182 * @since 1.2. 2182 * @since 1.2.3 183 183 */ 184 184 public function run() { -
classy/tags/1.2.3/trunk/public/class-classy-public.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 23 23 * The ID of this plugin. 24 24 * 25 * @since 1.2. 225 * @since 1.2.3 26 26 * @access private 27 27 * @var string $classy The ID of this plugin. … … 32 32 * The version of this plugin. 33 33 * 34 * @since 1.2. 234 * @since 1.2.3 35 35 * @access private 36 36 * @var string $version The current version of this plugin. … … 41 41 * The version of this plugin. 42 42 * 43 * @since 1.2. 243 * @since 1.2.3 44 44 * @access private 45 45 * @var object $api The current account API Object … … 53 53 * Initialize the class and set its properties. 54 54 * 55 * @since 1.2. 255 * @since 1.2.3 56 56 * @param string $classy The name of the plugin. 57 57 * @param string $version The version of this plugin. … … 70 70 * Register the stylesheets for the public-facing side of the site. 71 71 * 72 * @since 1.2. 272 * @since 1.2.3 73 73 */ 74 74 public function enqueue_styles() { … … 79 79 * Register the stylesheets for the public-facing side of the site. 80 80 * 81 * @since 1.2. 281 * @since 1.2.3 82 82 */ 83 83 public function enqueue_scripts() { … … 98 98 99 99 // Get events greater than current date 100 function expired_events_func($events){100 private static function expired_events_func($events){ 101 101 foreach ($events as $event) { 102 $date = strtotime($event ->start_date);102 $date = strtotime($event['start_date']); 103 103 $current_date = strtotime("now"); 104 104 return ($event & $date < $current_date); … … 107 107 108 108 // Sort by date ASC 109 function sort_func($a, $b)109 private static function sort_func($a, $b) 110 110 { 111 111 $t1 = strtotime($a->start_date); … … 136 136 $campaigns = $result->campaigns; 137 137 if($a['current'] == "true"){ 138 $campaigns = array_filter($ events, "expired_events_func");138 $campaigns = array_filter($campaigns, array(__CLASS__,'expired_events_func')); 139 139 } 140 140 141 141 if($a['sort'] == "date"){ 142 usort($ events, "sort_func");142 usort($campaigns, array(__CLASS__,'sort_func')); 143 143 } 144 144 … … 400 400 'rid' => '', 401 401 'limit' => '' 402 ) );402 ), $atts); 403 403 404 404 $attrs = http_build_query($a); -
classy/tags/1.2.3/trunk/public/partials/classy-public-display.php
r1211458 r1219540 7 7 * 8 8 * @link http://mediacause.org 9 * @since 1.2. 29 * @since 1.2.3 10 10 * 11 11 * @package Classy -
classy/tags/1.2.3/trunk/uninstall.php
r1211458 r1219540 21 21 * 22 22 * @link http://mediacause.org 23 * @since 1.2. 223 * @since 1.2.3 24 24 * 25 25 * @package Classy -
classy/tags/1.2.3/uninstall.php
r1211458 r1219540 21 21 * 22 22 * @link http://mediacause.org 23 * @since 1.2. 223 * @since 1.2.3 24 24 * 25 25 * @package Classy -
classy/trunk/README.txt
r1212063 r1219540 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.2.3 6 Stable tag: 1.2. 26 Stable tag: 1.2.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 36 36 This plugin was created using Tom McFarlin's Boilerplate WordPress Plugin template. 37 37 38 [Classy API](http://mediacause.org/Classy_API.pdf)39 40 38 Want a customized version for your site? Reach out to us at [web@mediacause.org](mailto:web@mediacause.org) 41 39 -
classy/trunk/admin/class-classy-admin.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 23 23 * The ID of this plugin. 24 24 * 25 * @since 1.2. 225 * @since 1.2.3 26 26 * @access private 27 27 * @var string $classy The ID of this plugin. … … 32 32 * The version of this plugin. 33 33 * 34 * @since 1.2. 234 * @since 1.2.3 35 35 * @access private 36 36 * @var string $version The current version of this plugin. … … 41 41 * Initialize the class and set its properties. 42 42 * 43 * @since 1.2. 243 * @since 1.2.3 44 44 * @param string $classy The name of this plugin. 45 45 * @param string $version The version of this plugin. … … 54 54 * Register the stylesheets for the Dashboard. 55 55 * 56 * @since 1.2. 256 * @since 1.2.3 57 57 */ 58 58 public function enqueue_styles() { … … 63 63 * Register the JavaScript for the dashboard. 64 64 * 65 * @since 1.2. 265 * @since 1.2.3 66 66 */ 67 67 public function enqueue_scripts() { -
classy/trunk/admin/partials/classy-admin-display.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy -
classy/trunk/classy.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * @package Classy 9 9 * … … 12 12 * Plugin URI: http://mediacause.org 13 13 * Description: A tool used to integrate Classy's API into easily accessible shortcodes 14 * Version: 1.2. 214 * Version: 1.2.3 15 15 * Author: Media Cause 16 16 * Author URI: http://mediacause.org … … 60 60 * not affect the page life cycle. 61 61 * 62 * @since 1.2. 262 * @since 1.2.3 63 63 */ 64 64 function run_classy() { -
classy/trunk/includes/class-classy-activator.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 16 16 * This class defines all code necessary to run during the plugin's activation. 17 17 * 18 * @since 1.2. 218 * @since 1.2.3 19 19 * @package Classy 20 20 * @subpackage Classy/includes … … 28 28 * Long Description. 29 29 * 30 * @since 1.2. 230 * @since 1.2.3 31 31 */ 32 32 public static function activate() { -
classy/trunk/includes/class-classy-api.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 16 16 * This class defines all code necessary to run during the plugin's API functionality. 17 17 * 18 * @since 1.2. 218 * @since 1.2.3 19 19 * @package Classy 20 20 * @subpackage Classy/includes … … 33 33 * Updates Classy Token and CID information. 34 34 * 35 * @since 1.2. 235 * @since 1.2.3 36 36 */ 37 37 … … 61 61 * Get all the details about a specific charity account 62 62 * 63 * @since 1.2. 263 * @since 1.2.3 64 64 */ 65 65 public function account_info(){ … … 78 78 * activity. 79 79 * 80 * @since 1.2. 280 * @since 1.2.3 81 81 * @param string $attrs The query string (optional) 82 82 */ … … 94 94 * Get information about matching sponsors for a campaign/event 95 95 * 96 * @since 1.2. 296 * @since 1.2.3 97 97 * @param string $attrs The query string (optional) 98 98 */ … … 110 110 * Get an array of all campaigns and events for a charity account 111 111 * 112 * @since 1.2. 2112 * @since 1.2.3 113 113 * @param string $attrs The query string (optional) 114 114 */ … … 126 126 * Get all the specific details about a specific campaign or event 127 127 * 128 * @since 1.2. 2128 * @since 1.2.3 129 129 * @param string $eid The unique ID of the campaign/event 130 130 */ … … 142 142 * Get an array of all tickets for a specified campaign/event 143 143 * 144 * @since 1.2. 2144 * @since 1.2.3 145 145 * @param string $eid The unique ID of the campaign/event 146 146 */ … … 159 159 * designation or member 160 160 * 161 * @since 1.2. 2161 * @since 1.2.3 162 162 * @param string $attrs The query string (optional) 163 163 */ … … 175 175 * Get the details for a specific individual fundraising page 176 176 * 177 * @since 1.2. 2177 * @since 1.2.3 178 178 * @param string $fcid The unique ID of the individual fundraising page 179 179 */ … … 191 191 * Get a list of the top fundraising teams ranked by total $ raised for a specific campaign 192 192 * 193 * @since 1.2. 2193 * @since 1.2.3 194 194 * @param string $attrs The query string (optional) 195 195 */ … … 207 207 * Get the details for a specific individual fundraising team page 208 208 * 209 * @since 1.2. 2209 * @since 1.2.3 210 210 * @param string $ftid The unique ID of the individual fundraising page 211 211 */ … … 223 223 * Get an array of donations over a specific date range 224 224 * 225 * @since 1.2. 2225 * @since 1.2.3 226 226 * @param string $attrs The query string (optional) 227 227 */ … … 239 239 * Get an array of recurring donation profiles 240 240 * 241 * @since 1.2. 2241 * @since 1.2.3 242 242 * @param string $attrs The query string (optional) 243 243 */ … … 256 256 * designations and terminology is sometimes interchanged on Classy. 257 257 * 258 * @since 1.2. 2258 * @since 1.2.3 259 259 * @param string $pid The unique ID of the project/designation 260 260 */ … … 272 272 * Retrieve ticket details for a specific campaign/event 273 273 * 274 * @since 1.2. 2274 * @since 1.2.3 275 275 * @param string $eid The unique ID of the campaign/event 276 276 */ -
classy/trunk/includes/class-classy-deactivator.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 16 16 * This class defines all code necessary to run during the plugin's deactivation. 17 17 * 18 * @since 1.2. 218 * @since 1.2.3 19 19 * @package Classy 20 20 * @subpackage Classy/includes … … 28 28 * Long Description. 29 29 * 30 * @since 1.2. 230 * @since 1.2.3 31 31 */ 32 32 public static function deactivate() { -
classy/trunk/includes/class-classy-i18n.php
r1211458 r1219540 8 8 * 9 9 * @link http://mediacause.org 10 * @since 1.2. 210 * @since 1.2.3 11 11 * 12 12 * @package Classy … … 20 20 * so that it is ready for translation. 21 21 * 22 * @since 1.2. 222 * @since 1.2.3 23 23 * @package Classy 24 24 * @subpackage Classy/includes … … 30 30 * The domain specified for this plugin. 31 31 * 32 * @since 1.2. 232 * @since 1.2.3 33 33 * @access private 34 34 * @var string $domain The domain identifier for this plugin. … … 39 39 * Load the plugin text domain for translation. 40 40 * 41 * @since 1.2. 241 * @since 1.2.3 42 42 */ 43 43 public function load_plugin_textdomain() { … … 54 54 * Set the domain equal to that of the specified domain. 55 55 * 56 * @since 1.2. 256 * @since 1.2.3 57 57 * @param string $domain The domain that represents the locale of this plugin. 58 58 */ -
classy/trunk/includes/class-classy-loader.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 27 27 * The array of actions registered with WordPress. 28 28 * 29 * @since 1.2. 229 * @since 1.2.3 30 30 * @access protected 31 31 * @var array $actions The actions registered with WordPress to fire when the plugin loads. … … 36 36 * The array of filters registered with WordPress. 37 37 * 38 * @since 1.2. 238 * @since 1.2.3 39 39 * @access protected 40 40 * @var array $filters The filters registered with WordPress to fire when the plugin loads. … … 45 45 * Initialize the collections used to maintain the actions and filters. 46 46 * 47 * @since 1.2. 247 * @since 1.2.3 48 48 */ 49 49 public function __construct() { … … 57 57 * Add a new action to the collection to be registered with WordPress. 58 58 * 59 * @since 1.2. 259 * @since 1.2.3 60 60 * @param string $hook The name of the WordPress action that is being registered. 61 61 * @param object $component A reference to the instance of the object on which the action is defined. … … 71 71 * Add a new filter to the collection to be registered with WordPress. 72 72 * 73 * @since 1.2. 273 * @since 1.2.3 74 74 * @param string $hook The name of the WordPress filter that is being registered. 75 75 * @param object $component A reference to the instance of the object on which the filter is defined. … … 86 86 * collection. 87 87 * 88 * @since 1.2. 288 * @since 1.2.3 89 89 * @access private 90 90 * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). … … 113 113 * Register the filters and actions with WordPress. 114 114 * 115 * @since 1.2. 2115 * @since 1.2.3 116 116 */ 117 117 public function run() { -
classy/trunk/includes/class-classy.php
r1211461 r1219540 8 8 * 9 9 * @link http://mediacause.org 10 * @since 1.2. 210 * @since 1.2.3 11 11 * 12 12 * @package Classy … … 23 23 * version of the plugin. 24 24 * 25 * @since 1.2. 225 * @since 1.2.3 26 26 * @package Classy 27 27 * @subpackage Classy/includes … … 34 34 * the plugin. 35 35 * 36 * @since 1.2. 236 * @since 1.2.3 37 37 * @access protected 38 38 * @var Classy_Loader $loader Maintains and registers all hooks for the plugin. … … 43 43 * The unique identifier of this plugin. 44 44 * 45 * @since 1.2. 245 * @since 1.2.3 46 46 * @access protected 47 47 * @var string $classy The string used to uniquely identify this plugin. … … 52 52 * The current version of the plugin. 53 53 * 54 * @since 1.2. 254 * @since 1.2.3 55 55 * @access protected 56 56 * @var string $version The current version of the plugin. … … 65 65 * the public-facing side of the site. 66 66 * 67 * @since 1.2. 267 * @since 1.2.3 68 68 */ 69 69 public function __construct() { 70 70 71 71 $this->classy = 'classy'; 72 $this->version = '1.2. 2';72 $this->version = '1.2.3'; 73 73 74 74 $this->load_dependencies(); … … 92 92 * with WordPress. 93 93 * 94 * @since 1.2. 294 * @since 1.2.3 95 95 * @access private 96 96 */ … … 133 133 * with WordPress. 134 134 * 135 * @since 1.2. 2135 * @since 1.2.3 136 136 * @access private 137 137 */ … … 149 149 * of the plugin. 150 150 * 151 * @since 1.2. 2151 * @since 1.2.3 152 152 * @access private 153 153 */ … … 165 165 * of the plugin. 166 166 * 167 * @since 1.2. 2167 * @since 1.2.3 168 168 * @access private 169 169 */ … … 180 180 * Run the loader to execute all of the hooks with WordPress. 181 181 * 182 * @since 1.2. 2182 * @since 1.2.3 183 183 */ 184 184 public function run() { -
classy/trunk/public/class-classy-public.php
r1211458 r1219540 5 5 * 6 6 * @link http://mediacause.org 7 * @since 1.2. 27 * @since 1.2.3 8 8 * 9 9 * @package Classy … … 23 23 * The ID of this plugin. 24 24 * 25 * @since 1.2. 225 * @since 1.2.3 26 26 * @access private 27 27 * @var string $classy The ID of this plugin. … … 32 32 * The version of this plugin. 33 33 * 34 * @since 1.2. 234 * @since 1.2.3 35 35 * @access private 36 36 * @var string $version The current version of this plugin. … … 41 41 * The version of this plugin. 42 42 * 43 * @since 1.2. 243 * @since 1.2.3 44 44 * @access private 45 45 * @var object $api The current account API Object … … 53 53 * Initialize the class and set its properties. 54 54 * 55 * @since 1.2. 255 * @since 1.2.3 56 56 * @param string $classy The name of the plugin. 57 57 * @param string $version The version of this plugin. … … 70 70 * Register the stylesheets for the public-facing side of the site. 71 71 * 72 * @since 1.2. 272 * @since 1.2.3 73 73 */ 74 74 public function enqueue_styles() { … … 79 79 * Register the stylesheets for the public-facing side of the site. 80 80 * 81 * @since 1.2. 281 * @since 1.2.3 82 82 */ 83 83 public function enqueue_scripts() { … … 98 98 99 99 // Get events greater than current date 100 function expired_events_func($events){100 private static function expired_events_func($events){ 101 101 foreach ($events as $event) { 102 $date = strtotime($event ->start_date);102 $date = strtotime($event['start_date']); 103 103 $current_date = strtotime("now"); 104 104 return ($event & $date < $current_date); … … 107 107 108 108 // Sort by date ASC 109 function sort_func($a, $b)109 private static function sort_func($a, $b) 110 110 { 111 111 $t1 = strtotime($a->start_date); … … 136 136 $campaigns = $result->campaigns; 137 137 if($a['current'] == "true"){ 138 $campaigns = array_filter($ events, "expired_events_func");138 $campaigns = array_filter($campaigns, array(__CLASS__,'expired_events_func')); 139 139 } 140 140 141 141 if($a['sort'] == "date"){ 142 usort($ events, "sort_func");142 usort($campaigns, array(__CLASS__,'sort_func')); 143 143 } 144 144 … … 400 400 'rid' => '', 401 401 'limit' => '' 402 ) );402 ), $atts); 403 403 404 404 $attrs = http_build_query($a); -
classy/trunk/public/partials/classy-public-display.php
r1211458 r1219540 7 7 * 8 8 * @link http://mediacause.org 9 * @since 1.2. 29 * @since 1.2.3 10 10 * 11 11 * @package Classy -
classy/trunk/uninstall.php
r1211458 r1219540 21 21 * 22 22 * @link http://mediacause.org 23 * @since 1.2. 223 * @since 1.2.3 24 24 * 25 25 * @package Classy
Note: See TracChangeset
for help on using the changeset viewer.