Changeset 990384
- Timestamp:
- 09/15/2014 06:06:48 PM (11 years ago)
- Location:
- simple-campaigns
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.3 (copied) (copied from simple-campaigns/trunk)
-
tags/1.0.3/includes/functions.php (modified) (1 diff)
-
tags/1.0.3/readme.txt (modified) (3 diffs)
-
tags/1.0.3/simple-campaigns.php (modified) (1 diff)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/simple-campaigns.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-campaigns/tags/1.0.3/includes/functions.php
r989747 r990384 187 187 $post_id = isset( $post_id ) ? $post_id : $post->ID; 188 188 189 //$raised = get_post_meta( $post->ID, 's_camps_amount_raised', true );190 //$raised = !empty( $raised ) ? $raised : 0;191 // $raised = ( $format == false ) ? $raised :number_format( $raised );189 $raised = get_post_meta( $post->ID, 's_camps_amount_raised', true ); 190 $raised = !empty( $raised ) ? $raised : 0; 191 $raised = ( $format == false ) ? '$' . $raised : '$' .number_format( $raised ); 192 192 193 // return isset( $raised ) ? $raised : false; 194 return get_post_meta( $post->ID, 's_camps_amount_raised', true ); 193 return isset( $raised ) ? $raised : false; 195 194 } 196 195 -
simple-campaigns/tags/1.0.3/readme.txt
r989747 r990384 1 1 === Plugin Name === 2 2 Contributors: bryanmonzon 3 Tags: gravityform 3 Tags: gravityform, 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.0 6 Stable tag: 1.0.2 6 Version: 1.0.3 7 Stable tag: 1.0.3 8 7 9 License: GPLv2 or later 10 8 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 12 … … 23 26 24 27 = Sample Form = 25 [Download](http://wpsetup.co/go/simple-campaigns-form) a sample donation form to use on your Donation page. 28 [Download](http://wpsetup.co/go/simple-campaigns-form) a sample donation form to use on your Donation page. (It's a zipped XML export from Gravity Forms). Download it, log into your site and navigate to Forms > Import/Export. Select 'Import' and choose the recently downloaded file. 26 29 27 30 … … 61 64 == Changelog == 62 65 63 = 1.0.4: September 14, 2014 = 66 = 1.0.4: September 15, 2014 = 67 FIX: Output '$0' if no money has been raised 68 69 = 1.0.2: September 14, 2014 = 64 70 Added some nice functions to get campaign data 65 71 -
simple-campaigns/tags/1.0.3/simple-campaigns.php
r987552 r990384 66 66 // Plugin version 67 67 if ( ! defined( 'S_CAMPS_VERSION' ) ) 68 define( 'S_CAMPS_VERSION', '1.0. 1' );68 define( 'S_CAMPS_VERSION', '1.0.3' ); 69 69 70 70 // Plugin Folder Path -
simple-campaigns/trunk/includes/functions.php
r989747 r990384 187 187 $post_id = isset( $post_id ) ? $post_id : $post->ID; 188 188 189 //$raised = get_post_meta( $post->ID, 's_camps_amount_raised', true );190 //$raised = !empty( $raised ) ? $raised : 0;191 // $raised = ( $format == false ) ? $raised :number_format( $raised );189 $raised = get_post_meta( $post->ID, 's_camps_amount_raised', true ); 190 $raised = !empty( $raised ) ? $raised : 0; 191 $raised = ( $format == false ) ? '$' . $raised : '$' .number_format( $raised ); 192 192 193 // return isset( $raised ) ? $raised : false; 194 return get_post_meta( $post->ID, 's_camps_amount_raised', true ); 193 return isset( $raised ) ? $raised : false; 195 194 } 196 195 -
simple-campaigns/trunk/readme.txt
r989747 r990384 1 1 === Plugin Name === 2 2 Contributors: bryanmonzon 3 Tags: gravityform 3 Tags: gravityform, 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.0 6 Stable tag: 1.0.2 6 Version: 1.0.3 7 Stable tag: 1.0.3 8 7 9 License: GPLv2 or later 10 8 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 12 … … 23 26 24 27 = Sample Form = 25 [Download](http://wpsetup.co/go/simple-campaigns-form) a sample donation form to use on your Donation page. 28 [Download](http://wpsetup.co/go/simple-campaigns-form) a sample donation form to use on your Donation page. (It's a zipped XML export from Gravity Forms). Download it, log into your site and navigate to Forms > Import/Export. Select 'Import' and choose the recently downloaded file. 26 29 27 30 … … 61 64 == Changelog == 62 65 63 = 1.0.4: September 14, 2014 = 66 = 1.0.4: September 15, 2014 = 67 FIX: Output '$0' if no money has been raised 68 69 = 1.0.2: September 14, 2014 = 64 70 Added some nice functions to get campaign data 65 71 -
simple-campaigns/trunk/simple-campaigns.php
r987552 r990384 66 66 // Plugin version 67 67 if ( ! defined( 'S_CAMPS_VERSION' ) ) 68 define( 'S_CAMPS_VERSION', '1.0. 1' );68 define( 'S_CAMPS_VERSION', '1.0.3' ); 69 69 70 70 // Plugin Folder Path
Note: See TracChangeset
for help on using the changeset viewer.