This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
85 changed files
with
6,136 additions
and
5,227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] ); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.