Plugin Directory

Changeset 1219540


Ignore:
Timestamp:
08/12/2015 09:25:42 PM (11 years ago)
Author:
Asitha
Message:

tagging version 1.2.3

Location:
classy
Files:
37 edited
4 copied

Legend:

Unmodified
Added
Removed
  • classy/tags/1.2.3/README.txt

    r1212063 r1219540  
    44Requires at least: 3.0.1
    55Tested up to: 4.2.3
    6 Stable tag: 1.2.2
     6Stable tag: 1.2.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • classy/tags/1.2.3/admin/class-classy-admin.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    2323     * The ID of this plugin.
    2424     *
    25      * @since    1.2.2
     25     * @since    1.2.3
    2626     * @access   private
    2727     * @var      string    $classy    The ID of this plugin.
     
    3232     * The version of this plugin.
    3333     *
    34      * @since    1.2.2
     34     * @since    1.2.3
    3535     * @access   private
    3636     * @var      string    $version    The current version of this plugin.
     
    4141     * Initialize the class and set its properties.
    4242     *
    43      * @since    1.2.2
     43     * @since    1.2.3
    4444     * @param      string    $classy       The name of this plugin.
    4545     * @param      string    $version    The version of this plugin.
     
    5454     * Register the stylesheets for the Dashboard.
    5555     *
    56      * @since    1.2.2
     56     * @since    1.2.3
    5757     */
    5858    public function enqueue_styles() {
     
    6363     * Register the JavaScript for the dashboard.
    6464     *
    65      * @since    1.2.2
     65     * @since    1.2.3
    6666     */
    6767    public function enqueue_scripts() {
  • classy/tags/1.2.3/admin/partials/classy-admin-display.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
  • classy/tags/1.2.3/classy.php

    r1211458 r1219540  
    55 *
    66 * @link              http://mediacause.org
    7  * @since             1.2.2
     7 * @since             1.2.3
    88 * @package           Classy
    99 *
     
    1212 * Plugin URI:        http://mediacause.org
    1313 * Description:       A tool used to integrate Classy's API into easily accessible shortcodes
    14  * Version:           1.2.2
     14 * Version:           1.2.3
    1515 * Author:            Media Cause
    1616 * Author URI:        http://mediacause.org
     
    6060 * not affect the page life cycle.
    6161 *
    62  * @since    1.2.2
     62 * @since    1.2.3
    6363 */
    6464function run_classy() {
  • classy/tags/1.2.3/includes/class-classy-activator.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    1616 * This class defines all code necessary to run during the plugin's activation.
    1717 *
    18  * @since      1.2.2
     18 * @since      1.2.3
    1919 * @package    Classy
    2020 * @subpackage Classy/includes
     
    2828     * Long Description.
    2929     *
    30      * @since    1.2.2
     30     * @since    1.2.3
    3131     */
    3232    public static function activate() {
  • classy/tags/1.2.3/includes/class-classy-api.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    1616 * This class defines all code necessary to run during the plugin's API functionality.
    1717 *
    18  * @since      1.2.2
     18 * @since      1.2.3
    1919 * @package    Classy
    2020 * @subpackage Classy/includes
     
    3333     * Updates Classy Token and CID information.
    3434     *
    35      * @since    1.2.2
     35     * @since    1.2.3
    3636     */
    3737
     
    6161     * Get all the details about a specific charity account
    6262     *
    63      * @since    1.2.2
     63     * @since    1.2.3
    6464     */
    6565    public function account_info(){
     
    7878     * activity.
    7979     *
    80      * @since    1.2.2
     80     * @since    1.2.3
    8181     * @param    string     $attrs  The query string (optional)
    8282     */
     
    9494     * Get information about matching sponsors for a campaign/event
    9595     *
    96      * @since    1.2.2
     96     * @since    1.2.3
    9797     * @param    string     $attrs  The query string (optional)
    9898     */
     
    110110     * Get an array of all campaigns and events for a charity account
    111111     *
    112      * @since    1.2.2
     112     * @since    1.2.3
    113113     * @param    string     $attrs  The query string (optional)
    114114     */
     
    126126     * Get all the specific details about a specific campaign or event
    127127     *
    128      * @since    1.2.2
     128     * @since    1.2.3
    129129     * @param    string     $eid    The unique ID of the campaign/event
    130130     */
     
    142142     * Get an array of all tickets for a specified campaign/event
    143143     *
    144      * @since    1.2.2
     144     * @since    1.2.3
    145145     * @param    string     $eid    The unique ID of the campaign/event
    146146     */
     
    159159     * designation or member
    160160     *
    161      * @since    1.2.2
     161     * @since    1.2.3
    162162     * @param    string     $attrs  The query string (optional)
    163163     */
     
    175175     * Get the details for a specific individual fundraising page
    176176     *
    177      * @since    1.2.2
     177     * @since    1.2.3
    178178     * @param    string     $fcid   The unique ID of the individual fundraising page
    179179     */
     
    191191     * Get a list of the top fundraising teams ranked by total $ raised for a specific campaign
    192192     *
    193      * @since    1.2.2
     193     * @since    1.2.3
    194194     * @param    string     $attrs  The query string (optional)
    195195     */
     
    207207     * Get the details for a specific individual fundraising team page
    208208     *
    209      * @since    1.2.2
     209     * @since    1.2.3
    210210     * @param    string     $ftid   The unique ID of the individual fundraising page
    211211     */
     
    223223     * Get an array of donations over a specific date range
    224224     *
    225      * @since    1.2.2
     225     * @since    1.2.3
    226226     * @param    string     $attrs  The query string (optional)
    227227     */
     
    239239     * Get an array of recurring donation profiles
    240240     *
    241      * @since    1.2.2
     241     * @since    1.2.3
    242242     * @param    string     $attrs  The query string (optional)
    243243     */
     
    256256     * designations and terminology is sometimes interchanged on Classy.
    257257     *
    258      * @since    1.2.2
     258     * @since    1.2.3
    259259     * @param    string     $pid    The unique ID of the project/designation
    260260     */
     
    272272     * Retrieve ticket details for a specific campaign/event
    273273     *
    274      * @since    1.2.2
     274     * @since    1.2.3
    275275     * @param    string     $eid    The unique ID of the campaign/event
    276276     */
  • classy/tags/1.2.3/includes/class-classy-deactivator.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    1616 * This class defines all code necessary to run during the plugin's deactivation.
    1717 *
    18  * @since      1.2.2
     18 * @since      1.2.3
    1919 * @package    Classy
    2020 * @subpackage Classy/includes
     
    2828     * Long Description.
    2929     *
    30      * @since    1.2.2
     30     * @since    1.2.3
    3131     */
    3232    public static function deactivate() {
  • classy/tags/1.2.3/includes/class-classy-i18n.php

    r1211458 r1219540  
    88 *
    99 * @link       http://mediacause.org
    10  * @since      1.2.2
     10 * @since      1.2.3
    1111 *
    1212 * @package    Classy
     
    2020 * so that it is ready for translation.
    2121 *
    22  * @since      1.2.2
     22 * @since      1.2.3
    2323 * @package    Classy
    2424 * @subpackage Classy/includes
     
    3030     * The domain specified for this plugin.
    3131     *
    32      * @since    1.2.2
     32     * @since    1.2.3
    3333     * @access   private
    3434     * @var      string    $domain    The domain identifier for this plugin.
     
    3939     * Load the plugin text domain for translation.
    4040     *
    41      * @since    1.2.2
     41     * @since    1.2.3
    4242     */
    4343    public function load_plugin_textdomain() {
     
    5454     * Set the domain equal to that of the specified domain.
    5555     *
    56      * @since    1.2.2
     56     * @since    1.2.3
    5757     * @param    string    $domain    The domain that represents the locale of this plugin.
    5858     */
  • classy/tags/1.2.3/includes/class-classy-loader.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    2727     * The array of actions registered with WordPress.
    2828     *
    29      * @since    1.2.2
     29     * @since    1.2.3
    3030     * @access   protected
    3131     * @var      array    $actions    The actions registered with WordPress to fire when the plugin loads.
     
    3636     * The array of filters registered with WordPress.
    3737     *
    38      * @since    1.2.2
     38     * @since    1.2.3
    3939     * @access   protected
    4040     * @var      array    $filters    The filters registered with WordPress to fire when the plugin loads.
     
    4545     * Initialize the collections used to maintain the actions and filters.
    4646     *
    47      * @since    1.2.2
     47     * @since    1.2.3
    4848     */
    4949    public function __construct() {
     
    5757     * Add a new action to the collection to be registered with WordPress.
    5858     *
    59      * @since    1.2.2
     59     * @since    1.2.3
    6060     * @param      string               $hook             The name of the WordPress action that is being registered.
    6161     * @param      object               $component        A reference to the instance of the object on which the action is defined.
     
    7171     * Add a new filter to the collection to be registered with WordPress.
    7272     *
    73      * @since    1.2.2
     73     * @since    1.2.3
    7474     * @param      string               $hook             The name of the WordPress filter that is being registered.
    7575     * @param      object               $component        A reference to the instance of the object on which the filter is defined.
     
    8686     * collection.
    8787     *
    88      * @since    1.2.2
     88     * @since    1.2.3
    8989     * @access   private
    9090     * @param      array                $hooks            The collection of hooks that is being registered (that is, actions or filters).
     
    113113     * Register the filters and actions with WordPress.
    114114     *
    115      * @since    1.2.2
     115     * @since    1.2.3
    116116     */
    117117    public function run() {
  • classy/tags/1.2.3/includes/class-classy.php

    r1211461 r1219540  
    88 *
    99 * @link       http://mediacause.org
    10  * @since      1.2.2
     10 * @since      1.2.3
    1111 *
    1212 * @package    Classy
     
    2323 * version of the plugin.
    2424 *
    25  * @since      1.2.2
     25 * @since      1.2.3
    2626 * @package    Classy
    2727 * @subpackage Classy/includes
     
    3434     * the plugin.
    3535     *
    36      * @since    1.2.2
     36     * @since    1.2.3
    3737     * @access   protected
    3838     * @var      Classy_Loader    $loader    Maintains and registers all hooks for the plugin.
     
    4343     * The unique identifier of this plugin.
    4444     *
    45      * @since    1.2.2
     45     * @since    1.2.3
    4646     * @access   protected
    4747     * @var      string    $classy    The string used to uniquely identify this plugin.
     
    5252     * The current version of the plugin.
    5353     *
    54      * @since    1.2.2
     54     * @since    1.2.3
    5555     * @access   protected
    5656     * @var      string    $version    The current version of the plugin.
     
    6565     * the public-facing side of the site.
    6666     *
    67      * @since    1.2.2
     67     * @since    1.2.3
    6868     */
    6969    public function __construct() {
    7070
    7171        $this->classy = 'classy';
    72         $this->version = '1.2.2';
     72        $this->version = '1.2.3';
    7373
    7474        $this->load_dependencies();
     
    9292     * with WordPress.
    9393     *
    94      * @since    1.2.2
     94     * @since    1.2.3
    9595     * @access   private
    9696     */
     
    133133     * with WordPress.
    134134     *
    135      * @since    1.2.2
     135     * @since    1.2.3
    136136     * @access   private
    137137     */
     
    149149     * of the plugin.
    150150     *
    151      * @since    1.2.2
     151     * @since    1.2.3
    152152     * @access   private
    153153     */
     
    165165     * of the plugin.
    166166     *
    167      * @since    1.2.2
     167     * @since    1.2.3
    168168     * @access   private
    169169     */
     
    180180     * Run the loader to execute all of the hooks with WordPress.
    181181     *
    182      * @since    1.2.2
     182     * @since    1.2.3
    183183     */
    184184    public function run() {
  • classy/tags/1.2.3/public/class-classy-public.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    2323     * The ID of this plugin.
    2424     *
    25      * @since    1.2.2
     25     * @since    1.2.3
    2626     * @access   private
    2727     * @var      string    $classy    The ID of this plugin.
     
    3232     * The version of this plugin.
    3333     *
    34      * @since    1.2.2
     34     * @since    1.2.3
    3535     * @access   private
    3636     * @var      string    $version    The current version of this plugin.
     
    4141     * The version of this plugin.
    4242     *
    43      * @since    1.2.2
     43     * @since    1.2.3
    4444     * @access   private
    4545     * @var      object    $api    The current account API Object
     
    5353     * Initialize the class and set its properties.
    5454     *
    55      * @since    1.2.2
     55     * @since    1.2.3
    5656     * @param      string    $classy       The name of the plugin.
    5757     * @param      string    $version    The version of this plugin.
     
    7070     * Register the stylesheets for the public-facing side of the site.
    7171     *
    72      * @since    1.2.2
     72     * @since    1.2.3
    7373     */
    7474    public function enqueue_styles() {
     
    7979     * Register the stylesheets for the public-facing side of the site.
    8080     *
    81      * @since    1.2.2
     81     * @since    1.2.3
    8282     */
    8383    public function enqueue_scripts() {
     
    9898
    9999    // Get events greater than current date
    100     function expired_events_func($events){
     100    private static function expired_events_func($events){
    101101        foreach ($events as $event) {
    102             $date = strtotime($event->start_date);
     102            $date = strtotime($event['start_date']);
    103103            $current_date = strtotime("now");
    104104            return ($event & $date < $current_date);
     
    107107
    108108    // Sort by date ASC
    109     function sort_func($a, $b)
     109    private static function sort_func($a, $b)
    110110    {
    111111        $t1 = strtotime($a->start_date);
     
    136136            $campaigns = $result->campaigns;
    137137            if($a['current'] == "true"){
    138                 $campaigns = array_filter($events, "expired_events_func");
     138                $campaigns = array_filter($campaigns, array(__CLASS__,'expired_events_func'));
    139139            }
    140140
    141141            if($a['sort'] == "date"){
    142                 usort($events, "sort_func");
     142                usort($campaigns, array(__CLASS__,'sort_func'));
    143143            }
    144144
     
    400400                'rid' => '',
    401401                'limit' => ''
    402             ));
     402            ), $atts);
    403403
    404404        $attrs = http_build_query($a);
  • classy/tags/1.2.3/public/partials/classy-public-display.php

    r1211458 r1219540  
    77 *
    88 * @link       http://mediacause.org
    9  * @since      1.2.2
     9 * @since      1.2.3
    1010 *
    1111 * @package    Classy
  • classy/tags/1.2.3/trunk/README.txt

    r1212063 r1219540  
    44Requires at least: 3.0.1
    55Tested up to: 4.2.3
    6 Stable tag: 1.2.2
     6Stable tag: 1.2.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3636This plugin was created using Tom McFarlin's Boilerplate WordPress Plugin template.
    3737
    38 [Classy API](http://mediacause.org/Classy_API.pdf)
    39 
    4038Want a customized version for your site? Reach out to us at [web@mediacause.org](mailto:web@mediacause.org)
    4139
  • classy/tags/1.2.3/trunk/admin/class-classy-admin.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    2323     * The ID of this plugin.
    2424     *
    25      * @since    1.2.2
     25     * @since    1.2.3
    2626     * @access   private
    2727     * @var      string    $classy    The ID of this plugin.
     
    3232     * The version of this plugin.
    3333     *
    34      * @since    1.2.2
     34     * @since    1.2.3
    3535     * @access   private
    3636     * @var      string    $version    The current version of this plugin.
     
    4141     * Initialize the class and set its properties.
    4242     *
    43      * @since    1.2.2
     43     * @since    1.2.3
    4444     * @param      string    $classy       The name of this plugin.
    4545     * @param      string    $version    The version of this plugin.
     
    5454     * Register the stylesheets for the Dashboard.
    5555     *
    56      * @since    1.2.2
     56     * @since    1.2.3
    5757     */
    5858    public function enqueue_styles() {
     
    6363     * Register the JavaScript for the dashboard.
    6464     *
    65      * @since    1.2.2
     65     * @since    1.2.3
    6666     */
    6767    public function enqueue_scripts() {
  • classy/tags/1.2.3/trunk/admin/partials/classy-admin-display.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
  • classy/tags/1.2.3/trunk/classy.php

    r1211458 r1219540  
    55 *
    66 * @link              http://mediacause.org
    7  * @since             1.2.2
     7 * @since             1.2.3
    88 * @package           Classy
    99 *
     
    1212 * Plugin URI:        http://mediacause.org
    1313 * Description:       A tool used to integrate Classy's API into easily accessible shortcodes
    14  * Version:           1.2.2
     14 * Version:           1.2.3
    1515 * Author:            Media Cause
    1616 * Author URI:        http://mediacause.org
     
    6060 * not affect the page life cycle.
    6161 *
    62  * @since    1.2.2
     62 * @since    1.2.3
    6363 */
    6464function run_classy() {
  • classy/tags/1.2.3/trunk/includes/class-classy-activator.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    1616 * This class defines all code necessary to run during the plugin's activation.
    1717 *
    18  * @since      1.2.2
     18 * @since      1.2.3
    1919 * @package    Classy
    2020 * @subpackage Classy/includes
     
    2828     * Long Description.
    2929     *
    30      * @since    1.2.2
     30     * @since    1.2.3
    3131     */
    3232    public static function activate() {
  • classy/tags/1.2.3/trunk/includes/class-classy-api.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    1616 * This class defines all code necessary to run during the plugin's API functionality.
    1717 *
    18  * @since      1.2.2
     18 * @since      1.2.3
    1919 * @package    Classy
    2020 * @subpackage Classy/includes
     
    3333     * Updates Classy Token and CID information.
    3434     *
    35      * @since    1.2.2
     35     * @since    1.2.3
    3636     */
    3737
     
    6161     * Get all the details about a specific charity account
    6262     *
    63      * @since    1.2.2
     63     * @since    1.2.3
    6464     */
    6565    public function account_info(){
     
    7878     * activity.
    7979     *
    80      * @since    1.2.2
     80     * @since    1.2.3
    8181     * @param    string     $attrs  The query string (optional)
    8282     */
     
    9494     * Get information about matching sponsors for a campaign/event
    9595     *
    96      * @since    1.2.2
     96     * @since    1.2.3
    9797     * @param    string     $attrs  The query string (optional)
    9898     */
     
    110110     * Get an array of all campaigns and events for a charity account
    111111     *
    112      * @since    1.2.2
     112     * @since    1.2.3
    113113     * @param    string     $attrs  The query string (optional)
    114114     */
     
    126126     * Get all the specific details about a specific campaign or event
    127127     *
    128      * @since    1.2.2
     128     * @since    1.2.3
    129129     * @param    string     $eid    The unique ID of the campaign/event
    130130     */
     
    142142     * Get an array of all tickets for a specified campaign/event
    143143     *
    144      * @since    1.2.2
     144     * @since    1.2.3
    145145     * @param    string     $eid    The unique ID of the campaign/event
    146146     */
     
    159159     * designation or member
    160160     *
    161      * @since    1.2.2
     161     * @since    1.2.3
    162162     * @param    string     $attrs  The query string (optional)
    163163     */
     
    175175     * Get the details for a specific individual fundraising page
    176176     *
    177      * @since    1.2.2
     177     * @since    1.2.3
    178178     * @param    string     $fcid   The unique ID of the individual fundraising page
    179179     */
     
    191191     * Get a list of the top fundraising teams ranked by total $ raised for a specific campaign
    192192     *
    193      * @since    1.2.2
     193     * @since    1.2.3
    194194     * @param    string     $attrs  The query string (optional)
    195195     */
     
    207207     * Get the details for a specific individual fundraising team page
    208208     *
    209      * @since    1.2.2
     209     * @since    1.2.3
    210210     * @param    string     $ftid   The unique ID of the individual fundraising page
    211211     */
     
    223223     * Get an array of donations over a specific date range
    224224     *
    225      * @since    1.2.2
     225     * @since    1.2.3
    226226     * @param    string     $attrs  The query string (optional)
    227227     */
     
    239239     * Get an array of recurring donation profiles
    240240     *
    241      * @since    1.2.2
     241     * @since    1.2.3
    242242     * @param    string     $attrs  The query string (optional)
    243243     */
     
    256256     * designations and terminology is sometimes interchanged on Classy.
    257257     *
    258      * @since    1.2.2
     258     * @since    1.2.3
    259259     * @param    string     $pid    The unique ID of the project/designation
    260260     */
     
    272272     * Retrieve ticket details for a specific campaign/event
    273273     *
    274      * @since    1.2.2
     274     * @since    1.2.3
    275275     * @param    string     $eid    The unique ID of the campaign/event
    276276     */
  • classy/tags/1.2.3/trunk/includes/class-classy-deactivator.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    1616 * This class defines all code necessary to run during the plugin's deactivation.
    1717 *
    18  * @since      1.2.2
     18 * @since      1.2.3
    1919 * @package    Classy
    2020 * @subpackage Classy/includes
     
    2828     * Long Description.
    2929     *
    30      * @since    1.2.2
     30     * @since    1.2.3
    3131     */
    3232    public static function deactivate() {
  • classy/tags/1.2.3/trunk/includes/class-classy-i18n.php

    r1211458 r1219540  
    88 *
    99 * @link       http://mediacause.org
    10  * @since      1.2.2
     10 * @since      1.2.3
    1111 *
    1212 * @package    Classy
     
    2020 * so that it is ready for translation.
    2121 *
    22  * @since      1.2.2
     22 * @since      1.2.3
    2323 * @package    Classy
    2424 * @subpackage Classy/includes
     
    3030     * The domain specified for this plugin.
    3131     *
    32      * @since    1.2.2
     32     * @since    1.2.3
    3333     * @access   private
    3434     * @var      string    $domain    The domain identifier for this plugin.
     
    3939     * Load the plugin text domain for translation.
    4040     *
    41      * @since    1.2.2
     41     * @since    1.2.3
    4242     */
    4343    public function load_plugin_textdomain() {
     
    5454     * Set the domain equal to that of the specified domain.
    5555     *
    56      * @since    1.2.2
     56     * @since    1.2.3
    5757     * @param    string    $domain    The domain that represents the locale of this plugin.
    5858     */
  • classy/tags/1.2.3/trunk/includes/class-classy-loader.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    2727     * The array of actions registered with WordPress.
    2828     *
    29      * @since    1.2.2
     29     * @since    1.2.3
    3030     * @access   protected
    3131     * @var      array    $actions    The actions registered with WordPress to fire when the plugin loads.
     
    3636     * The array of filters registered with WordPress.
    3737     *
    38      * @since    1.2.2
     38     * @since    1.2.3
    3939     * @access   protected
    4040     * @var      array    $filters    The filters registered with WordPress to fire when the plugin loads.
     
    4545     * Initialize the collections used to maintain the actions and filters.
    4646     *
    47      * @since    1.2.2
     47     * @since    1.2.3
    4848     */
    4949    public function __construct() {
     
    5757     * Add a new action to the collection to be registered with WordPress.
    5858     *
    59      * @since    1.2.2
     59     * @since    1.2.3
    6060     * @param      string               $hook             The name of the WordPress action that is being registered.
    6161     * @param      object               $component        A reference to the instance of the object on which the action is defined.
     
    7171     * Add a new filter to the collection to be registered with WordPress.
    7272     *
    73      * @since    1.2.2
     73     * @since    1.2.3
    7474     * @param      string               $hook             The name of the WordPress filter that is being registered.
    7575     * @param      object               $component        A reference to the instance of the object on which the filter is defined.
     
    8686     * collection.
    8787     *
    88      * @since    1.2.2
     88     * @since    1.2.3
    8989     * @access   private
    9090     * @param      array                $hooks            The collection of hooks that is being registered (that is, actions or filters).
     
    113113     * Register the filters and actions with WordPress.
    114114     *
    115      * @since    1.2.2
     115     * @since    1.2.3
    116116     */
    117117    public function run() {
  • classy/tags/1.2.3/trunk/includes/class-classy.php

    r1211461 r1219540  
    88 *
    99 * @link       http://mediacause.org
    10  * @since      1.2.2
     10 * @since      1.2.3
    1111 *
    1212 * @package    Classy
     
    2323 * version of the plugin.
    2424 *
    25  * @since      1.2.2
     25 * @since      1.2.3
    2626 * @package    Classy
    2727 * @subpackage Classy/includes
     
    3434     * the plugin.
    3535     *
    36      * @since    1.2.2
     36     * @since    1.2.3
    3737     * @access   protected
    3838     * @var      Classy_Loader    $loader    Maintains and registers all hooks for the plugin.
     
    4343     * The unique identifier of this plugin.
    4444     *
    45      * @since    1.2.2
     45     * @since    1.2.3
    4646     * @access   protected
    4747     * @var      string    $classy    The string used to uniquely identify this plugin.
     
    5252     * The current version of the plugin.
    5353     *
    54      * @since    1.2.2
     54     * @since    1.2.3
    5555     * @access   protected
    5656     * @var      string    $version    The current version of the plugin.
     
    6565     * the public-facing side of the site.
    6666     *
    67      * @since    1.2.2
     67     * @since    1.2.3
    6868     */
    6969    public function __construct() {
    7070
    7171        $this->classy = 'classy';
    72         $this->version = '1.2.2';
     72        $this->version = '1.2.3';
    7373
    7474        $this->load_dependencies();
     
    9292     * with WordPress.
    9393     *
    94      * @since    1.2.2
     94     * @since    1.2.3
    9595     * @access   private
    9696     */
     
    133133     * with WordPress.
    134134     *
    135      * @since    1.2.2
     135     * @since    1.2.3
    136136     * @access   private
    137137     */
     
    149149     * of the plugin.
    150150     *
    151      * @since    1.2.2
     151     * @since    1.2.3
    152152     * @access   private
    153153     */
     
    165165     * of the plugin.
    166166     *
    167      * @since    1.2.2
     167     * @since    1.2.3
    168168     * @access   private
    169169     */
     
    180180     * Run the loader to execute all of the hooks with WordPress.
    181181     *
    182      * @since    1.2.2
     182     * @since    1.2.3
    183183     */
    184184    public function run() {
  • classy/tags/1.2.3/trunk/public/class-classy-public.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    2323     * The ID of this plugin.
    2424     *
    25      * @since    1.2.2
     25     * @since    1.2.3
    2626     * @access   private
    2727     * @var      string    $classy    The ID of this plugin.
     
    3232     * The version of this plugin.
    3333     *
    34      * @since    1.2.2
     34     * @since    1.2.3
    3535     * @access   private
    3636     * @var      string    $version    The current version of this plugin.
     
    4141     * The version of this plugin.
    4242     *
    43      * @since    1.2.2
     43     * @since    1.2.3
    4444     * @access   private
    4545     * @var      object    $api    The current account API Object
     
    5353     * Initialize the class and set its properties.
    5454     *
    55      * @since    1.2.2
     55     * @since    1.2.3
    5656     * @param      string    $classy       The name of the plugin.
    5757     * @param      string    $version    The version of this plugin.
     
    7070     * Register the stylesheets for the public-facing side of the site.
    7171     *
    72      * @since    1.2.2
     72     * @since    1.2.3
    7373     */
    7474    public function enqueue_styles() {
     
    7979     * Register the stylesheets for the public-facing side of the site.
    8080     *
    81      * @since    1.2.2
     81     * @since    1.2.3
    8282     */
    8383    public function enqueue_scripts() {
     
    9898
    9999    // Get events greater than current date
    100     function expired_events_func($events){
     100    private static function expired_events_func($events){
    101101        foreach ($events as $event) {
    102             $date = strtotime($event->start_date);
     102            $date = strtotime($event['start_date']);
    103103            $current_date = strtotime("now");
    104104            return ($event & $date < $current_date);
     
    107107
    108108    // Sort by date ASC
    109     function sort_func($a, $b)
     109    private static function sort_func($a, $b)
    110110    {
    111111        $t1 = strtotime($a->start_date);
     
    136136            $campaigns = $result->campaigns;
    137137            if($a['current'] == "true"){
    138                 $campaigns = array_filter($events, "expired_events_func");
     138                $campaigns = array_filter($campaigns, array(__CLASS__,'expired_events_func'));
    139139            }
    140140
    141141            if($a['sort'] == "date"){
    142                 usort($events, "sort_func");
     142                usort($campaigns, array(__CLASS__,'sort_func'));
    143143            }
    144144
     
    400400                'rid' => '',
    401401                'limit' => ''
    402             ));
     402            ), $atts);
    403403
    404404        $attrs = http_build_query($a);
  • classy/tags/1.2.3/trunk/public/partials/classy-public-display.php

    r1211458 r1219540  
    77 *
    88 * @link       http://mediacause.org
    9  * @since      1.2.2
     9 * @since      1.2.3
    1010 *
    1111 * @package    Classy
  • classy/tags/1.2.3/trunk/uninstall.php

    r1211458 r1219540  
    2121 *
    2222 * @link       http://mediacause.org
    23  * @since      1.2.2
     23 * @since      1.2.3
    2424 *
    2525 * @package    Classy
  • classy/tags/1.2.3/uninstall.php

    r1211458 r1219540  
    2121 *
    2222 * @link       http://mediacause.org
    23  * @since      1.2.2
     23 * @since      1.2.3
    2424 *
    2525 * @package    Classy
  • classy/trunk/README.txt

    r1212063 r1219540  
    44Requires at least: 3.0.1
    55Tested up to: 4.2.3
    6 Stable tag: 1.2.2
     6Stable tag: 1.2.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3636This plugin was created using Tom McFarlin's Boilerplate WordPress Plugin template.
    3737
    38 [Classy API](http://mediacause.org/Classy_API.pdf)
    39 
    4038Want a customized version for your site? Reach out to us at [web@mediacause.org](mailto:web@mediacause.org)
    4139
  • classy/trunk/admin/class-classy-admin.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    2323     * The ID of this plugin.
    2424     *
    25      * @since    1.2.2
     25     * @since    1.2.3
    2626     * @access   private
    2727     * @var      string    $classy    The ID of this plugin.
     
    3232     * The version of this plugin.
    3333     *
    34      * @since    1.2.2
     34     * @since    1.2.3
    3535     * @access   private
    3636     * @var      string    $version    The current version of this plugin.
     
    4141     * Initialize the class and set its properties.
    4242     *
    43      * @since    1.2.2
     43     * @since    1.2.3
    4444     * @param      string    $classy       The name of this plugin.
    4545     * @param      string    $version    The version of this plugin.
     
    5454     * Register the stylesheets for the Dashboard.
    5555     *
    56      * @since    1.2.2
     56     * @since    1.2.3
    5757     */
    5858    public function enqueue_styles() {
     
    6363     * Register the JavaScript for the dashboard.
    6464     *
    65      * @since    1.2.2
     65     * @since    1.2.3
    6666     */
    6767    public function enqueue_scripts() {
  • classy/trunk/admin/partials/classy-admin-display.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
  • classy/trunk/classy.php

    r1211458 r1219540  
    55 *
    66 * @link              http://mediacause.org
    7  * @since             1.2.2
     7 * @since             1.2.3
    88 * @package           Classy
    99 *
     
    1212 * Plugin URI:        http://mediacause.org
    1313 * Description:       A tool used to integrate Classy's API into easily accessible shortcodes
    14  * Version:           1.2.2
     14 * Version:           1.2.3
    1515 * Author:            Media Cause
    1616 * Author URI:        http://mediacause.org
     
    6060 * not affect the page life cycle.
    6161 *
    62  * @since    1.2.2
     62 * @since    1.2.3
    6363 */
    6464function run_classy() {
  • classy/trunk/includes/class-classy-activator.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    1616 * This class defines all code necessary to run during the plugin's activation.
    1717 *
    18  * @since      1.2.2
     18 * @since      1.2.3
    1919 * @package    Classy
    2020 * @subpackage Classy/includes
     
    2828     * Long Description.
    2929     *
    30      * @since    1.2.2
     30     * @since    1.2.3
    3131     */
    3232    public static function activate() {
  • classy/trunk/includes/class-classy-api.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    1616 * This class defines all code necessary to run during the plugin's API functionality.
    1717 *
    18  * @since      1.2.2
     18 * @since      1.2.3
    1919 * @package    Classy
    2020 * @subpackage Classy/includes
     
    3333     * Updates Classy Token and CID information.
    3434     *
    35      * @since    1.2.2
     35     * @since    1.2.3
    3636     */
    3737
     
    6161     * Get all the details about a specific charity account
    6262     *
    63      * @since    1.2.2
     63     * @since    1.2.3
    6464     */
    6565    public function account_info(){
     
    7878     * activity.
    7979     *
    80      * @since    1.2.2
     80     * @since    1.2.3
    8181     * @param    string     $attrs  The query string (optional)
    8282     */
     
    9494     * Get information about matching sponsors for a campaign/event
    9595     *
    96      * @since    1.2.2
     96     * @since    1.2.3
    9797     * @param    string     $attrs  The query string (optional)
    9898     */
     
    110110     * Get an array of all campaigns and events for a charity account
    111111     *
    112      * @since    1.2.2
     112     * @since    1.2.3
    113113     * @param    string     $attrs  The query string (optional)
    114114     */
     
    126126     * Get all the specific details about a specific campaign or event
    127127     *
    128      * @since    1.2.2
     128     * @since    1.2.3
    129129     * @param    string     $eid    The unique ID of the campaign/event
    130130     */
     
    142142     * Get an array of all tickets for a specified campaign/event
    143143     *
    144      * @since    1.2.2
     144     * @since    1.2.3
    145145     * @param    string     $eid    The unique ID of the campaign/event
    146146     */
     
    159159     * designation or member
    160160     *
    161      * @since    1.2.2
     161     * @since    1.2.3
    162162     * @param    string     $attrs  The query string (optional)
    163163     */
     
    175175     * Get the details for a specific individual fundraising page
    176176     *
    177      * @since    1.2.2
     177     * @since    1.2.3
    178178     * @param    string     $fcid   The unique ID of the individual fundraising page
    179179     */
     
    191191     * Get a list of the top fundraising teams ranked by total $ raised for a specific campaign
    192192     *
    193      * @since    1.2.2
     193     * @since    1.2.3
    194194     * @param    string     $attrs  The query string (optional)
    195195     */
     
    207207     * Get the details for a specific individual fundraising team page
    208208     *
    209      * @since    1.2.2
     209     * @since    1.2.3
    210210     * @param    string     $ftid   The unique ID of the individual fundraising page
    211211     */
     
    223223     * Get an array of donations over a specific date range
    224224     *
    225      * @since    1.2.2
     225     * @since    1.2.3
    226226     * @param    string     $attrs  The query string (optional)
    227227     */
     
    239239     * Get an array of recurring donation profiles
    240240     *
    241      * @since    1.2.2
     241     * @since    1.2.3
    242242     * @param    string     $attrs  The query string (optional)
    243243     */
     
    256256     * designations and terminology is sometimes interchanged on Classy.
    257257     *
    258      * @since    1.2.2
     258     * @since    1.2.3
    259259     * @param    string     $pid    The unique ID of the project/designation
    260260     */
     
    272272     * Retrieve ticket details for a specific campaign/event
    273273     *
    274      * @since    1.2.2
     274     * @since    1.2.3
    275275     * @param    string     $eid    The unique ID of the campaign/event
    276276     */
  • classy/trunk/includes/class-classy-deactivator.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    1616 * This class defines all code necessary to run during the plugin's deactivation.
    1717 *
    18  * @since      1.2.2
     18 * @since      1.2.3
    1919 * @package    Classy
    2020 * @subpackage Classy/includes
     
    2828     * Long Description.
    2929     *
    30      * @since    1.2.2
     30     * @since    1.2.3
    3131     */
    3232    public static function deactivate() {
  • classy/trunk/includes/class-classy-i18n.php

    r1211458 r1219540  
    88 *
    99 * @link       http://mediacause.org
    10  * @since      1.2.2
     10 * @since      1.2.3
    1111 *
    1212 * @package    Classy
     
    2020 * so that it is ready for translation.
    2121 *
    22  * @since      1.2.2
     22 * @since      1.2.3
    2323 * @package    Classy
    2424 * @subpackage Classy/includes
     
    3030     * The domain specified for this plugin.
    3131     *
    32      * @since    1.2.2
     32     * @since    1.2.3
    3333     * @access   private
    3434     * @var      string    $domain    The domain identifier for this plugin.
     
    3939     * Load the plugin text domain for translation.
    4040     *
    41      * @since    1.2.2
     41     * @since    1.2.3
    4242     */
    4343    public function load_plugin_textdomain() {
     
    5454     * Set the domain equal to that of the specified domain.
    5555     *
    56      * @since    1.2.2
     56     * @since    1.2.3
    5757     * @param    string    $domain    The domain that represents the locale of this plugin.
    5858     */
  • classy/trunk/includes/class-classy-loader.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    2727     * The array of actions registered with WordPress.
    2828     *
    29      * @since    1.2.2
     29     * @since    1.2.3
    3030     * @access   protected
    3131     * @var      array    $actions    The actions registered with WordPress to fire when the plugin loads.
     
    3636     * The array of filters registered with WordPress.
    3737     *
    38      * @since    1.2.2
     38     * @since    1.2.3
    3939     * @access   protected
    4040     * @var      array    $filters    The filters registered with WordPress to fire when the plugin loads.
     
    4545     * Initialize the collections used to maintain the actions and filters.
    4646     *
    47      * @since    1.2.2
     47     * @since    1.2.3
    4848     */
    4949    public function __construct() {
     
    5757     * Add a new action to the collection to be registered with WordPress.
    5858     *
    59      * @since    1.2.2
     59     * @since    1.2.3
    6060     * @param      string               $hook             The name of the WordPress action that is being registered.
    6161     * @param      object               $component        A reference to the instance of the object on which the action is defined.
     
    7171     * Add a new filter to the collection to be registered with WordPress.
    7272     *
    73      * @since    1.2.2
     73     * @since    1.2.3
    7474     * @param      string               $hook             The name of the WordPress filter that is being registered.
    7575     * @param      object               $component        A reference to the instance of the object on which the filter is defined.
     
    8686     * collection.
    8787     *
    88      * @since    1.2.2
     88     * @since    1.2.3
    8989     * @access   private
    9090     * @param      array                $hooks            The collection of hooks that is being registered (that is, actions or filters).
     
    113113     * Register the filters and actions with WordPress.
    114114     *
    115      * @since    1.2.2
     115     * @since    1.2.3
    116116     */
    117117    public function run() {
  • classy/trunk/includes/class-classy.php

    r1211461 r1219540  
    88 *
    99 * @link       http://mediacause.org
    10  * @since      1.2.2
     10 * @since      1.2.3
    1111 *
    1212 * @package    Classy
     
    2323 * version of the plugin.
    2424 *
    25  * @since      1.2.2
     25 * @since      1.2.3
    2626 * @package    Classy
    2727 * @subpackage Classy/includes
     
    3434     * the plugin.
    3535     *
    36      * @since    1.2.2
     36     * @since    1.2.3
    3737     * @access   protected
    3838     * @var      Classy_Loader    $loader    Maintains and registers all hooks for the plugin.
     
    4343     * The unique identifier of this plugin.
    4444     *
    45      * @since    1.2.2
     45     * @since    1.2.3
    4646     * @access   protected
    4747     * @var      string    $classy    The string used to uniquely identify this plugin.
     
    5252     * The current version of the plugin.
    5353     *
    54      * @since    1.2.2
     54     * @since    1.2.3
    5555     * @access   protected
    5656     * @var      string    $version    The current version of the plugin.
     
    6565     * the public-facing side of the site.
    6666     *
    67      * @since    1.2.2
     67     * @since    1.2.3
    6868     */
    6969    public function __construct() {
    7070
    7171        $this->classy = 'classy';
    72         $this->version = '1.2.2';
     72        $this->version = '1.2.3';
    7373
    7474        $this->load_dependencies();
     
    9292     * with WordPress.
    9393     *
    94      * @since    1.2.2
     94     * @since    1.2.3
    9595     * @access   private
    9696     */
     
    133133     * with WordPress.
    134134     *
    135      * @since    1.2.2
     135     * @since    1.2.3
    136136     * @access   private
    137137     */
     
    149149     * of the plugin.
    150150     *
    151      * @since    1.2.2
     151     * @since    1.2.3
    152152     * @access   private
    153153     */
     
    165165     * of the plugin.
    166166     *
    167      * @since    1.2.2
     167     * @since    1.2.3
    168168     * @access   private
    169169     */
     
    180180     * Run the loader to execute all of the hooks with WordPress.
    181181     *
    182      * @since    1.2.2
     182     * @since    1.2.3
    183183     */
    184184    public function run() {
  • classy/trunk/public/class-classy-public.php

    r1211458 r1219540  
    55 *
    66 * @link       http://mediacause.org
    7  * @since      1.2.2
     7 * @since      1.2.3
    88 *
    99 * @package    Classy
     
    2323     * The ID of this plugin.
    2424     *
    25      * @since    1.2.2
     25     * @since    1.2.3
    2626     * @access   private
    2727     * @var      string    $classy    The ID of this plugin.
     
    3232     * The version of this plugin.
    3333     *
    34      * @since    1.2.2
     34     * @since    1.2.3
    3535     * @access   private
    3636     * @var      string    $version    The current version of this plugin.
     
    4141     * The version of this plugin.
    4242     *
    43      * @since    1.2.2
     43     * @since    1.2.3
    4444     * @access   private
    4545     * @var      object    $api    The current account API Object
     
    5353     * Initialize the class and set its properties.
    5454     *
    55      * @since    1.2.2
     55     * @since    1.2.3
    5656     * @param      string    $classy       The name of the plugin.
    5757     * @param      string    $version    The version of this plugin.
     
    7070     * Register the stylesheets for the public-facing side of the site.
    7171     *
    72      * @since    1.2.2
     72     * @since    1.2.3
    7373     */
    7474    public function enqueue_styles() {
     
    7979     * Register the stylesheets for the public-facing side of the site.
    8080     *
    81      * @since    1.2.2
     81     * @since    1.2.3
    8282     */
    8383    public function enqueue_scripts() {
     
    9898
    9999    // Get events greater than current date
    100     function expired_events_func($events){
     100    private static function expired_events_func($events){
    101101        foreach ($events as $event) {
    102             $date = strtotime($event->start_date);
     102            $date = strtotime($event['start_date']);
    103103            $current_date = strtotime("now");
    104104            return ($event & $date < $current_date);
     
    107107
    108108    // Sort by date ASC
    109     function sort_func($a, $b)
     109    private static function sort_func($a, $b)
    110110    {
    111111        $t1 = strtotime($a->start_date);
     
    136136            $campaigns = $result->campaigns;
    137137            if($a['current'] == "true"){
    138                 $campaigns = array_filter($events, "expired_events_func");
     138                $campaigns = array_filter($campaigns, array(__CLASS__,'expired_events_func'));
    139139            }
    140140
    141141            if($a['sort'] == "date"){
    142                 usort($events, "sort_func");
     142                usort($campaigns, array(__CLASS__,'sort_func'));
    143143            }
    144144
     
    400400                'rid' => '',
    401401                'limit' => ''
    402             ));
     402            ), $atts);
    403403
    404404        $attrs = http_build_query($a);
  • classy/trunk/public/partials/classy-public-display.php

    r1211458 r1219540  
    77 *
    88 * @link       http://mediacause.org
    9  * @since      1.2.2
     9 * @since      1.2.3
    1010 *
    1111 * @package    Classy
  • classy/trunk/uninstall.php

    r1211458 r1219540  
    2121 *
    2222 * @link       http://mediacause.org
    23  * @since      1.2.2
     23 * @since      1.2.3
    2424 *
    2525 * @package    Classy
Note: See TracChangeset for help on using the changeset viewer.