Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
= 0.9.5 beta =
Browse files Browse the repository at this point in the history
* New: [give_profile_editor] shortcode that enables donors to customize their account information on the frontend #130 impress-org/givewp#130
* New: Uninstall.php file which deletes ALL data if the user chooses to do so under Settings > Advanced
* New: composer.json file for developers
* New: Dynamic sidebar for singular Give Donation Forms. The sidebar will appear under Appearances > Widgets if you have not disabled Give's singular post type in Give > Settings > Display Options. You can add widgets of your choosing to this section and they will display to the left of your forms, below the main form featured image.
* New: Offline Donation enhancements including customizable donation instructions email sent to user upon form completion. See: impress-org/givewp#124
* New: Goals for Donation Forms. Thanks @ibndawood https://github.com/ibndawood @see impress-org/givewp#42
* New: Admin CSS improvement - Now conditional fields are indicated with a slight gray background color
* New: Script Optimization - Give now only loads one minified JS script and one CSS file to keep load times fast and minimize footprint
* New: Using Grunt to generate POT file now for much more timely and accurate translations
* New: Give now has Composer support @see: https://packagist.org/packages/wordimpress/give thanks @michaelbeil
* Fix: Admin Logs CSS: impress-org/givewp#127
* Fix: Incorrect amount formatting when currency separators set to "," for both thousands and decimals. @see: impress-org/givewp#150
* Fix: Broken "lock" image that appears above donation fields for SSL sites @see: impress-org/givewp#128
* Fix: Updated Magnific class to prevent conflicts with other Magnific modals

git-svn-id: https://plugins.svn.wordpress.org/give/trunk@1174736 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
dlocc committed Jun 4, 2015
1 parent e19ca6d commit 9245af1
Show file tree
Hide file tree
Showing 85 changed files with 6,136 additions and 5,227 deletions.
36 changes: 36 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Contributing to Give

Contributions to Give are more than welcome.

## License

By contributing code to Give, you agree to license your contribution under the [GPL License](license.txt).

## Before reporting a bug

Search our [issue tracker](https://github.com/WordImpress/Give/issues) for similar issues.

## How to report a bug

1. Specify the version number for Give.
2. Describe the problem in detail. Explain what happened, and what you expected would happen.
3. If helpful, include a screenshot. Annotate the screenshot for clarity.

## How to contribute to Give

If you would like to submit a pull request, please follow the steps below:

* Make sure you have a GitHub account
* Fork the repository on GitHub
* Make changes to your fork of the repository
* Ensure you stick to the [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards)
* When committing, reference your issue (if present) and include a note about the fix
* Push the changes to your fork and [submit a pull request](https://help.github.com/articles/creating-a-pull-request) to the 'master' branch of the Give repository

## Code Documentation

* We ensure that every Give function is documented well and follows the standards set by phpDoc
* If you're adding/editing a function in a class, make sure to add `@access {private|public|protected}`
* Finally, please use tabs and not spaces. The tab indent size should be 4 for all Give code.

At this point you're waiting on us to merge your pull request. We'll review all pull requests, and make suggestions and changes if necessary.
128 changes: 128 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
module.exports = function ( grunt ) {

// Load multiple grunt tasks using globbing patterns
require( 'load-grunt-tasks' )( grunt );

// Project configuration.
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),

checktextdomain: {
options: {
text_domain : 'give',
create_report_file: true,
keywords : [
'__:1,2d',
'_e:1,2d',
'_x:1,2c,3d',
'esc_html__:1,2d',
'esc_html_e:1,2d',
'esc_html_x:1,2c,3d',
'esc_attr__:1,2d',
'esc_attr_e:1,2d',
'esc_attr_x:1,2c,3d',
'_ex:1,2c,3d',
'_n:1,2,3,4d',
'_nx:1,2,4c,5d',
'_n_noop:1,2,3d',
'_nx_noop:1,2,3c,4d',
' __ngettext:1,2,3d',
'__ngettext_noop:1,2,3d',
'_c:1,2d',
'_nc:1,2,4c,5d'
]
},
files : {
src : [
'**/*.php', // Include all files
'!node_modules/**', // Exclude node_modules/
'!build/.*'// Exclude build/
],
expand: true
}
},

makepot: {
target: {
options: {
domainPath : '/languages/', // Where to save the POT file.
exclude : ['includes/libraries/.*', '.js'],
mainFile : 'give.php', // Main project file.
potFilename : 'give.pot', // Name of the POT file.
potHeaders : {
poedit : true, // Includes common Poedit headers.
'x-poedit-keywordslist': true // Include a list of all possible gettext functions.
},
type : 'wp-plugin', // Type of project (wp-plugin or wp-theme).
updateTimestamp: true, // Whether the POT-Creation-Date should be updated without other changes.
processPot : function ( pot, options ) {
pot.headers['report-msgid-bugs-to'] = 'https://givewp.com/';
pot.headers['last-translator'] = 'WP-Translations (http://wp-translations.org/)';
pot.headers['language-team'] = 'WP-Translations <wpt@wp-translations.org>';
pot.headers['language'] = 'en_US';
var translation, // Exclude meta data from pot.
excluded_meta = [
'Plugin Name of the plugin/theme',
'Plugin URI of the plugin/theme',
'Author of the plugin/theme',
'Author URI of the plugin/theme'
];
for ( translation in pot.translations[''] ) {
if ( 'undefined' !== typeof pot.translations[''][translation].comments.extracted ) {
if ( excluded_meta.indexOf( pot.translations[''][translation].comments.extracted ) >= 0 ) {
console.log( 'Excluded meta: ' + pot.translations[''][translation].comments.extracted );
delete pot.translations[''][translation];
}
}
}
return pot;
}
}
}
},

exec: {
txpull : { // Pull Transifex translation - grunt exec:txpull
cmd: 'tx pull -a -f --minimum-perc=1' // Change the percentage with --minimum-perc=yourvalue
},
txpush_s: { // Push pot to Transifex - grunt exec:txpush_s
cmd: 'tx push -s'
}
},

dirs: {
lang: 'languages'
},

potomo: {
dist: {
options: {
poDel: true
},
files : [{
expand: true,
cwd : '<%= dirs.lang %>',
src : ['*.po'],
dest : '<%= dirs.lang %>',
ext : '.mo',
nonull: true
}]
}
}


} );

// Default task. - grunt makepot
grunt.registerTask( 'default', 'makepot' );

// Makepot and push it on Transifex task(s).
grunt.registerTask( 'tx-push', ['makepot', 'exec:txpush_s'] );

// Pull from Transifex and create .mo task(s).
grunt.registerTask( 'tx-pull', ['exec:txpull', 'potomo'] );

// Build task(s).
// grunt.registerTask( 'build', ['clean', 'copy', 'compress'] );

};
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Announcing: Give. The most flexible, robust, and easy to use WordPress plugin fo

### Why Give? ###

Prior to Give there's was no single go-to solution for accepting donations on WordPress. Sure, Gravity Forms and WooCommerce are great plugins but they're not developed to work specifically for donations. This can often lead to your users being confused by unnecessary cart systems, incorrect terminology, or lack of flexibility. As an admin, you may have wrestled with the various other WordPress donation plugins. Dealing with the lack of documentation and unreliable support can be an all too common occurrence and a real pain.
Prior to Give there was no single go-to solution for accepting donations on WordPress. Sure, Gravity Forms and WooCommerce are great plugins but they're not developed to work specifically for donations. This can often lead to your users being confused by unnecessary cart systems, incorrect terminology, or lack of flexibility. As an admin, you may have wrestled with the various other WordPress donation plugins. Dealing with the lack of documentation and unreliable support can be an all too common occurrence and a real pain.

There's a better way. Now you have Give.

Expand Down Expand Up @@ -39,11 +39,11 @@ Stay in touch with us for important plugin news and updates:

### Contribute to Give ###

This is a WordPress plugin and therefore is GPL / open source. We are always looking for more contributors. Whether you know another language, can code like no ones business, or just have an idea, we would love your help and input. To contribute to Give please head over to our website or view/fork/watch this GitHub repository to learn more about what issues we're tackling and how the project is progressing.
This is a WordPress plugin and therefore is GPL / open source. We are always looking for more contributors. Whether you know another language, can code like no one's business, or just have an idea, we would love your help and input. To contribute to Give, please review our [contributing guidelines](CONTRIBUTING.md). Feel free to view/fork/watch this GitHub repository to learn more about what issues we're tackling and how the project is progressing.

## Installation ##

The easiest way to install the plugin is through the [WordPress.org plugin repository](http://wordpress.org/plugins/give "Give on the WordPress.org plugin repository").
The easiest way to install the plugin is through the [WordPress.org plugin repository](http://wordpress.org/plugins/give "Give on the WordPress.org plugin repository").

### Minimum Requirements ###

Expand Down
116 changes: 82 additions & 34 deletions assets/css/give-admin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/give-admin.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions assets/css/give-admin.min.css

Large diffs are not rendered by default.

Binary file modified assets/fonts/icomoon.eot
Binary file not shown.
1 change: 1 addition & 0 deletions assets/fonts/icomoon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/fonts/icomoon.ttf
Binary file not shown.
Binary file modified assets/fonts/icomoon.woff
Binary file not shown.
20 changes: 20 additions & 0 deletions assets/js/admin/admin-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,34 @@ jQuery.noConflict();
}
} ).change();

//Goals
var goal_option = $( '.cmb2-id--give-goal-option' );
goal_option.on( 'change', function () {
var goal_option = $( '.cmb2-id--give-goal-option input:radio:checked' ).val();
if ( goal_option === 'no' ) {

$( '.cmb2-id--give-set-goal' ).hide();
$( '.cmb2-id--give-goal-color' ).hide();
} else {
$( '.cmb2-id--give-set-goal' ).show();
$( '.cmb2-id--give-goal-color' ).show();
}
} ).change();

//Offline Donations
var offline_customization_option = $( '.cmb2-id--give-customize-offline-donations input:radio' );
offline_customization_option.on( 'change', function () {
var offline_customization_option_val = $( '.cmb2-id--give-customize-offline-donations input:radio:checked' ).val();
if ( offline_customization_option_val === 'no' ) {
$( '.cmb2-id--give-offline-checkout-notes' ).hide();
$( '.cmb2-id--give-offline-donation-enable-billing-fields-single' ).hide();
$( '.cmb2-id--give-offline-donation-subject' ).hide();
$( '.cmb2-id--give-offline-donation-email' ).hide();
} else {
$( '.cmb2-id--give-offline-checkout-notes' ).show();
$( '.cmb2-id--give-offline-donation-enable-billing-fields-single' ).show();
$( '.cmb2-id--give-offline-donation-subject' ).show();
$( '.cmb2-id--give-offline-donation-email' ).show();
}
} ).change();
};
Expand Down
Loading

0 comments on commit 9245af1

Please sign in to comment.