Plugin Directory

Changeset 1107270


Ignore:
Timestamp:
03/06/2015 11:59:07 PM (11 years ago)
Author:
Asitha
Message:

Update Readme & Screenshots

Location:
classy
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • classy/trunk/README.txt

    r1107257 r1107270  
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 A tool used to integrate Classy's (https://classy.org) API into easily accessible shortcodes
     11A tool used to integrate Classy's API into easily accessible shortcodes
    1212
    1313== Description ==
    1414
    15 Classy is the world’s largest fundraising platform for social good organizations. Since 2011, we’ve enabled 1.3 million people across 300K individual campaigns to raise over $130M for social good organizations. From cutting-edge health programs to educational advancement, our customers are tackling the world’s greatest challenges with the power of the Classy platform.
     15[Classy](https://classy.org) is the world’s largest fundraising platform for social good organizations. Since 2011, we’ve enabled 1.3 million people across 300K individual campaigns to raise over $130M for social good organizations. From cutting-edge health programs to educational advancement, their customers are tackling the world’s greatest challenges with the power of the Classy platform.
    1616
    1717This plugin integrates the Classy API via shortcodes for easy access on Wordpress. 
    1818
    19 Currently supported shortcodes/API calls.
     19Currently supported shortcodes/API calls:
    2020
    21 [classy_campaigns]
    22 [classy_fundraisers]
    23 [classy_donations]
     21* [classy_campaigns]
     22* [classy_fundraisers]
     23* [classy_donations]
     24
     25You are able to use attributes that are available on the API as well in your shortcodes. For example:
     26
     27[classy_fundraisers order="firstname"]
     28
     29This will return a list of fundraisers ordered by first name.
     30
     31This plugin was created using Tom McFarlin's Boilerplate WordPress Plugin template.
     32
     33[Classy API](http://go.stayclassy.org/hs-fs/hub/190333/file-1586506388-pdf/StayClassy_API_v1.1_FINAL_%281%29.pdf)
     34
     35== Screenshots ==
     36
     371. **Classy Admin** - Updated your API Token and CID in the admin panel.
    2438
    2539== Installation ==
     
    2741Upload the Classy plugin to your blog, activate it, then enter your API Token and CID in the Classy menu.
    2842
     43To get your API Token and CID, you will need to contact [Classy support](https://fundraise.tofightcancer.com/help-center).
     44
    2945== Changelog ==
    3046
    3147= 1.0 =
    32 * Intial plugin which includes campaigns, fundraisers and donations.
     48* Initial plugin which includes campaigns, fundraisers and donations.
  • classy/trunk/public/class-classy-public.php

    r1107257 r1107270  
    111111                        foreach ($campaigns as $campaign){
    112112                            $date = strtotime($campaign->start_date);
    113                             if($campaign->address){
    114                                 $location = $campaign->venue;
    115                             } else {
    116                                 $campaign->address;
    117                             }
     113                            $location = trim($campaign->address) == false ? $campaign->venue : $campaign->address;
    118114                            $output .= '
    119115                                    <div class="single-campaign">
Note: See TracChangeset for help on using the changeset viewer.