-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:strangerstudios/memberlite-shortcode…
…s into dev
- Loading branch information
Showing
17 changed files
with
403 additions
and
6 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,10 @@ | ||
# Items to ignore when downloading a zip | ||
memberlite-shortcodes-banner.jpg export-ignore | ||
README.md export-ignore | ||
|
||
# Items to ignore when downloading a zip | ||
.gitattributes export-ignore | ||
.github export-ignore | ||
.gitignore export-ignore | ||
|
||
languages/gettext.sh export-ignore |
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,48 @@ | ||
# Contribute to Memberlite Shortcodes | ||
|
||
Memberlite Shortcodes is fully open source. Contributions of all kinds are appreciated. | ||
|
||
When contributing, please follow these guidelines to ensure things work as smoothly as possible. | ||
|
||
__Please Note:__ GitHub is for bug reports and contributions only. If you have a support or customization question, go to the [Memberlite Theme website](https://memberlitetheme.com) instead. | ||
|
||
## Getting Started | ||
|
||
* __Do not report potential security vulnerabilities here. Email them privately to [[email protected]](mailto:[email protected]) with the words "Security Vulnerability" in the subject.__ | ||
* Submit a ticket for your issue, assuming one does not already exist. | ||
* Raise it on our [Issue Tracker](https://github.com/strangerstudios/memberlite-shortcodes/issues) | ||
* Clearly describe the issue including steps to reproduce the bug. | ||
* Make sure you fill in the earliest version that you know has the issue as well as the version of WordPress you're using. | ||
|
||
## Making Changes | ||
|
||
* Fork the repository on GitHub | ||
* For bug fixes, checkout the DEV branch of the Memberlite Shortcodes repository. | ||
* For new features and enhancements, checkout the branch for the version the feature is milestoned for. | ||
* Make sure to pull in any "upstream" changes first. | ||
* Use `git remote add upstream https://github.com/strangerstudios/memberlite-shortcodes.git` to set the upstream repo | ||
* Use `git checkout dev` to get on the development branch. | ||
* Use `git pull upstream dev` to get the latest updates. | ||
* Use `git push` to push those updates to your fork. | ||
* Create a new local branch for each separate bug fix or feature. This will ensure that each pull request is for one issue only and easier to process. | ||
* Use `git checkout -b nameofmybugfixorfeature` to create the new branch | ||
* Make the changes to your local repository. | ||
* Ensure you stick to the [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards). | ||
* If you have an automatic beautifier in your IDE or dev environment, turn it off. Unrelated style changes in your pull requests will make them harder to process. Feel free to message the core development team to ask them to clean up a file you are working on if the inconsitent coding styles is bothering you. | ||
* You can update the readme.txt to include a comment about your fix or feature in the changelog, but if you do not the core team will do it for you. | ||
* When committing, reference your issue (if present) and include a note about the fix in the commit message. | ||
* Push the changes to your fork. | ||
* For bug fixes, submit a pull request to the DEV branch of the Memberlite Shortcodes repository. | ||
* For new features and enhancements, submit a pull request to the version the feature is milestoned for. This will usually be the version number following the current release unless the core dev team has milestoned the feature for a later release. | ||
* We will process all pull requests and make suggestions or changes as soon as possible. Feel free to ping us politely via email or social networks to take a look at your pulls. | ||
|
||
## Code Documentation | ||
|
||
* We would like for every function, filter, class, and class method to be documented using phpDoc standards. | ||
* An example of [how Memberlite Shortcodes uses phpDoc blocks can be found here](https://gist.github.com/sunnyratilal/5308969). | ||
* Please make sure that every function is documented so that when we update our documentation things don't go awry! | ||
* Finally, please use tabs and not spaces. The tab indent size should be 4 for all Memberlite Shortcodes code. | ||
|
||
# Additional Resources | ||
* [General GitHub Documentation](https://help.github.com/) | ||
* [GitHub Pull Request documentation](https://help.github.com/send-pull-requests/) |
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,43 @@ | ||
<!-- This form is for reporting bugs and issues specific to the Memberlite Shortcodes plugin. This is not a support portal. If you need technical support from a human being, please submit a ticket via the helpdesk instead: https://memberlitetheme.com/ --> | ||
|
||
<!-- If you are a developer who needs a new filter/hook raise a PR instead :) --> | ||
|
||
<!-- Please be as descriptive as possible; issues lacking the below details, or for any other reason than to report a bug, may be closed without action. --> | ||
|
||
## Prerequisites | ||
|
||
<!-- MARK COMPLETED ITEMS WITH AN [x] --> | ||
|
||
- [ ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate. | ||
- [ ] The issue still exists against the latest `dev` branch of Memberlite Shortcodes on Github (this is **not** the same version as the public version!) | ||
- [ ] I have attempted to find the simplest possible steps to reproduce the issue. | ||
|
||
## Steps to reproduce the issue | ||
|
||
<!-- We need to be able to reproduce the bug in order to fix it so please be descriptive! --> | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
## Expected/actual behavior | ||
|
||
When I follow those steps, I see... | ||
|
||
I was expecting to see... | ||
|
||
## Isolating the problem | ||
|
||
<!-- MARK COMPLETED ITEMS WITH AN [x] --> | ||
|
||
- [ ] This bug happens with only this plugin is active | ||
- [ ] This bug happens with a default WordPress theme active, or [Memberlite](https://wordpress.org/themes/memberlite/) | ||
- [ ] I can reproduce this bug consistently using the steps above | ||
|
||
## WordPress Environment | ||
|
||
<details> | ||
``` | ||
Please share non-sensitive information about your hosting environment such as WordPress version, PHP version, and any related plugins versions. | ||
``` | ||
</details> |
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 @@ | ||
--- | ||
name: "🐛 Bug Report" | ||
about: Report a bug if something isn't working as expected in Memberlite Shortcodes. | ||
title: '' | ||
labels: 'bug' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. Please be as descriptive as possible; issues lacking detail, or for any other reason than to report a bug, may be closed or left unattended. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Screenshots** | ||
If applicable, please attach a screenshot to make your issue clearer. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Isolating the problem (mark completed items with an [x]):** | ||
- [ ] I have deactivated other plugins and confirmed this bug occurs when only the Memberlite Shortcodes plugin is active. | ||
- [ ] This bug happens with a default WordPress theme active, or [Memberlite](https://wordpress.org/themes/memberlite/). | ||
- [ ] I can reproduce this bug consistently using the steps above. | ||
|
||
**WordPress Environment** | ||
<details> | ||
``` | ||
Please share non-sensitive information about your hosting environment such as WordPress version, PHP version, and any related plugins versions. | ||
``` | ||
</details> |
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,21 @@ | ||
--- | ||
name: "⭐️ Enhancement" | ||
about: If you have an idea to improve an existing feature or need something | ||
for development (such as a new hook) please let us know or submit a Pull Request. | ||
title: '' | ||
labels: 'enhancement' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
If applicable, add any other context or screenshots about the enhancement here. |
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,21 @@ | ||
--- | ||
name: "➕ Feature Request" | ||
about: "Suggest a new feature. We'll consider building it if it receives | ||
sufficient interest!" | ||
title: '' | ||
labels: 'feature request' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
If applicable, add any other context or screenshots about your feature request here. |
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,19 @@ | ||
--- | ||
name: "💬 Support Question" | ||
about: "If you have a question, please see our docs or use our helpdesk." | ||
title: '' | ||
labels: 'Type: support' | ||
assignees: '' | ||
|
||
--- | ||
|
||
We don't offer technical support on GitHub so we recommend using the following: | ||
|
||
**Reading our documentation** | ||
Usage docs can be found here: https://memberlitetheme.com/memberlite-shortcodes/ | ||
|
||
**Advanced Support for Memberlite Support Members** | ||
Submit a ticket on our helpdesk by visiting https://memberlitetheme.com/new-topic/ (Please note that an [active membership](https://memberlitetheme.com/pricing) is required for paid support.) | ||
|
||
**General usage and development questions** | ||
- Website: https://memberlitetheme.com/contact/ |
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,32 @@ | ||
### All Submissions: | ||
|
||
* [ ] Have you followed the [Contributing guideline](https://github.com/strangerstudios/memberlite-shortcodes/blob/dev/.github/CONTRIBUTING.md)? | ||
* [ ] Does your code follow the [WordPress' coding standards](https://make.wordpress.org/core/handbook/best-practices/coding-standards/)? | ||
* [ ] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/strangerstudios/memberlite-shortcodes/pulls/) for the same update/change? | ||
|
||
<!-- Mark completed items with an [x] --> | ||
|
||
<!-- You can erase any parts of this template not applicable to your Pull Request. --> | ||
|
||
### Changes proposed in this Pull Request: | ||
|
||
<!-- Describe the changes made to this Pull Request and the reason for such changes. --> | ||
|
||
Closes Issue: XXX. | ||
|
||
### How to test the changes in this Pull Request: | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
### Other information: | ||
|
||
* [ ] Have you added an explanation of what your changes do and why you'd like us to include them? | ||
* [ ] Have you successfully run tests with your changes locally? | ||
|
||
<!-- Mark completed items with an [x] --> | ||
|
||
### Changelog entry | ||
|
||
> Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted. |
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,19 @@ | ||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Mac stuff | ||
.DS_Store | ||
|
||
# Sublime | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
||
# Temporary files | ||
*~ |
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,39 @@ | ||
 | ||
|
||
# [Memberlite Shortcodes](https://memberlitetheme.com/memberlite-shortcodes/) # | ||
|
||
  | ||
|
||
### Welcome to the Memberlite Shortcodes GitHub Repository | ||
For sites running the [Memberlite Theme](https://memberlitetheme.com/) or a Memberlite Child Theme, this plugin offers several shortcodes to simplify the use of various display elements and enhance the appearance of your site content. | ||
|
||
[Memberlite](https://memberlitetheme.com) is the ideal theme for your membership site - packed with integration for top membership site plugins including [Paid Memberships Pro](https://wordpress.org/plugins/paid-memberships-pro/). It's fully customizable with your logo, colors, fonts, custom sidebars, and more global layout settings. | ||
|
||
For more information please visit [the shortcodes documentation page at the Memberlite Theme website](https://memberlitetheme.com/memberlite-shortcodes/). | ||
|
||
## Installation ## | ||
For detailed installation steps, visit the [documentation](https://memberlitetheme.com/memberlite-shortcodes/) page. | ||
|
||
1. Download the current development ZIP file directly: `https://github.com/strangerstudios/memberlite-shortcodes/archive/dev.zip` | ||
|
||
**Please ensure that once installing this version of the plugin to remove `-dev` from the plugin's folder name.** | ||
|
||
## Bugs ## | ||
If you find an issue/bug, let us know by [creating a detailed GitHub issue](https://github.com/strangerstudios/memberlite-shortcodes/issues/new). | ||
|
||
## Support ## | ||
This is a developer's portal for Memberlite Shortcodes. We do not offer support on this channel. **Any support related questions should be directed to [the Memberlite Theme website](https://memberlitetheme.com/).** | ||
|
||
## Contributing to Memberlite Shortcodes ## | ||
We encourage and welcome any contribution to Memberlite Shortcodes. Please read the [guidelines for contributing](https://github.com/strangerstudios/memberlite-shortcodes/blob/dev/.github/CONTRIBUTING.md) to this repository. | ||
|
||
There are various **ways to help development** of Memberlite Shortcodes: | ||
|
||
1. Report [bugs/issues](https://github.com/strangerstudios/memberlite-shortcodes/issues/new) on GitHub. | ||
2. Work on any issues by submitting a Pull Request. | ||
|
||
Here are some ways for **non-developers to contribute** to Memberlite Shortcodes: | ||
|
||
1. Translate Memberlite Shortcodes into your own [language](https://translate.wordpress.org/projects/wp-plugins/memberlite-shortcodes/). | ||
2. [Purchase a Memberlite Support membership](https://memberlitetheme.com/pricing/) to help fund ongoing development and bug fixes. | ||
3. Leave an honest review for [Memberlite Shortcodes](https://wordpress.org/support/plugin/memberlite-shortcodes/reviews/#new-post). |
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,24 @@ | ||
# Change every instance of memberlite-shortcodes below to match your actual plugin slug | ||
#--------------------------- | ||
# This script generates a new pmpro.pot file for use in translations. | ||
# To generate a new memberlite-shortcodes.pot, cd to the main /memberlite-shortcodes/ directory, | ||
# then execute `languages/gettext.sh` from the command line. | ||
# then fix the header info (helps to have the old pmpro.pot open before running script above) | ||
# then execute `cp languages/memberlite-shortcodes.pot languages/memberlite-shortcodes.po` to copy the .pot to .po | ||
# then execute `msgfmt languages/memberlite-shortcodes.po --output-file languages/memberlite-shortcodes.mo` to generate the .mo | ||
#--------------------------- | ||
echo "Updating memberlite-shortcodes.pot... " | ||
xgettext -j -o languages/memberlite-shortcodes.pot \ | ||
--default-domain=memberlite-shortcodes \ | ||
--language=PHP \ | ||
--keyword=_ \ | ||
--keyword=__ \ | ||
--keyword=_e \ | ||
--keyword=_ex \ | ||
--keyword=_n \ | ||
--keyword=_x \ | ||
--sort-by-file \ | ||
--package-version=1.1 \ | ||
--msgid-bugs-address="[email protected]" \ | ||
$(find . -name "*.php") | ||
echo "Done!" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: [email protected]\n" | ||
"POT-Creation-Date: 2020-09-11 18:01+0200\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"Language: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=CHARSET\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
|
||
#: shortcodes/recent_posts.php:52 | ||
msgid "" | ||
"There was a problem fetching posts for the current user. Please try again " | ||
"later." | ||
msgstr "" | ||
|
||
#: shortcodes/recent_posts.php:65 | ||
msgid "" | ||
"No posts found for this user. Please ensure the author's name/ID is correct." | ||
msgstr "" | ||
|
||
#: shortcodes/signup.php:47 | ||
#, php-format | ||
msgid "" | ||
"You are logged in as <strong>%s</strong>. If you would like to use a " | ||
"different account for this membership, <a href=\"%s\">log out now</a>." | ||
msgstr "" |
Oops, something went wrong.