This repository has been archived by the owner on Nov 25, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5e12bc0
Showing
23 changed files
with
3,355 additions
and
0 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,3 @@ | ||
{ | ||
"directory": "assets/vendor" | ||
} |
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 @@ | ||
# WordPress Coding Standards | ||
# http://make.wordpress.org/core/handbook/coding-standards/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
tab_width = 4 | ||
indent_style = tab | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.txt] | ||
trim_trailing_whitespace = false | ||
|
||
[*.json] | ||
insert_final_newline = false | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[.*rc] | ||
insert_final_newline = false | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.yml] | ||
insert_final_newline = false | ||
indent_style = space | ||
indent_size = 2 |
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,59 @@ | ||
# folders and files to be ignored by git | ||
|
||
############ | ||
## IDEs | ||
############ | ||
|
||
*.pydevproject | ||
.project | ||
.metadata | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.classpath | ||
.settings/ | ||
.loadpath | ||
.externalToolBuilders/ | ||
*.launch | ||
.cproject | ||
.buildpath | ||
nbproject/ | ||
node_modules/* | ||
|
||
############ | ||
## Vendor | ||
############ | ||
|
||
vendor/ | ||
!assets/vendor/ | ||
|
||
############ | ||
## OSes | ||
############ | ||
|
||
[Tt]humbs.db | ||
[Dd]esktop.ini | ||
*.DS_store | ||
.DS_store? | ||
|
||
############ | ||
## Misc | ||
############ | ||
|
||
bin/ | ||
tmp/ | ||
*.tmp | ||
*.bak | ||
*.log | ||
*.lock | ||
*.[Cc]ache | ||
*.cpr | ||
*.orig | ||
*.php.in | ||
.idea/ | ||
.sass-cache/* | ||
temp/ | ||
._* | ||
.Trashes | ||
|
||
.svn |
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,106 @@ | ||
'use strict'; | ||
module.exports = function(grunt) { | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
pluginheader: '/*\n' + | ||
'Plugin Name: Post Types Definitely\n' + | ||
'Plugin URI: <%= pkg.homepage %>\n' + | ||
'Description: <%= pkg.description %>\n' + | ||
'Version: <%= pkg.version %>\n' + | ||
'Author: <%= pkg.author.name %>\n' + | ||
'Author URI: <%= pkg.author.url %>\n' + | ||
'License: <%= pkg.license.name %>\n' + | ||
'License URI: <%= pkg.license.url %>\n' + | ||
'Text Domain: wpptd\n' + | ||
'Domain Path: /languages/\n' + | ||
'Tags: wordpress, plugin, framework, library, developer, post-types, taxonomies, meta, admin, backend, ui\n' + | ||
'*/', | ||
fileheader: '/**\n' + | ||
' * @package WPPTD\n' + | ||
' * @version <%= pkg.version %>\n' + | ||
' * @author <%= pkg.author.name %> <<%= pkg.author.email %>>\n' + | ||
' */', | ||
|
||
clean: { | ||
translation: [ | ||
'languages/wpptd.pot' | ||
] | ||
}, | ||
|
||
replace: { | ||
header: { | ||
src: [ | ||
'post-types-definitely.php' | ||
], | ||
overwrite: true, | ||
replacements: [{ | ||
from: /((?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:\/\/.*))/, | ||
to: '<%= pluginheader %>' | ||
}] | ||
}, | ||
version: { | ||
src: [ | ||
'post-types-definitely.php', | ||
'inc/**/*.php' | ||
], | ||
overwrite: true, | ||
replacements: [{ | ||
from: /\/\*\*\s+\*\s@package\s[^*]+\s+\*\s@version\s[^*]+\s+\*\s@author\s[^*]+\s\*\//, | ||
to: '<%= fileheader %>' | ||
}] | ||
} | ||
}, | ||
|
||
makepot: { | ||
translation: { | ||
options: { | ||
mainFile: 'post-types-definitely.php', | ||
domainPath: '/languages', | ||
exclude: [ 'vendor/.*' ], | ||
potComments: 'Copyright (c) 2015-<%= grunt.template.today("yyyy") %> <%= pkg.author.name %>', | ||
potFilename: 'wpptd.pot', | ||
potHeaders: { | ||
'language-team': '<%= pkg.author.name %> <<%= pkg.author.email %>>', | ||
'last-translator': '<%= pkg.author.name %> <<%= pkg.author.email %>>', | ||
'project-id-version': '<%= pkg.name %> <%= pkg.version %>', | ||
'report-msgid-bugs-to': '<%= pkg.homepage %>', | ||
'x-generator': 'grunt-wp-i18n 0.5.3', | ||
'x-poedit-basepath': '.', | ||
'x-poedit-language': 'English', | ||
'x-poedit-country': 'UNITED STATES', | ||
'x-poedit-sourcecharset': 'uft-8', | ||
'x-poedit-keywordslist': '__;_e;_x:1,2c;_ex:1,2c;_n:1,2; _nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__; esc_html__;esc_attr_e; esc_html_e;esc_attr_x:1,2c; esc_html_x:1,2c;', | ||
'x-poedit-bookmars': '', | ||
'x-poedit-searchpath-0': '.', | ||
'x-textdomain-support': 'yes' | ||
}, | ||
type: 'wp-plugin' | ||
} | ||
} | ||
} | ||
|
||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-text-replace'); | ||
grunt.loadNpmTasks('grunt-wp-i18n'); | ||
|
||
grunt.registerTask('translation', [ | ||
'clean:translation', | ||
'makepot:translation' | ||
]); | ||
|
||
grunt.registerTask('plugin', [ | ||
'replace:version', | ||
'replace:header' | ||
]); | ||
|
||
grunt.registerTask('default', [ | ||
'translation' | ||
]); | ||
|
||
grunt.registerTask('build', [ | ||
'translation', | ||
'plugin' | ||
]); | ||
}; |
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,13 @@ | ||
Post Types Definitely | ||
===================== | ||
|
||
This framework plugin makes adding post types with taxonomies and meta to WordPress very simple, yet flexible. It all works using a single action and an array. | ||
|
||
You can download the latest version from the [WordPress plugin repository](http://wordpress.org/plugins/post-types-definitely/). If you prefer to install it from Github, make sure to run `composer install` before using it in order to download the necessary dependencies. | ||
|
||
For a detailed guide and reference on how to use this framework, please read the [Wiki on Github](https://github.com/felixarntz/post-types-definitely/wiki). Once you get familiar with the options you have, you will be able to create complex post type interfaces with taxonomies and meta fields in just a few minutes. | ||
|
||
Contributions and Bugs | ||
---------------------- | ||
|
||
If you have ideas on how to improve the plugin or if you discover a bug, I would appreciate if you shared them with me, right here on Github. In either case, please open a new issue [here](https://github.com/felixarntz/post-types-definitely/issues/new)! |
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,27 @@ | ||
{ | ||
"name": "post-types-definitely", | ||
"version": "0.5.0", | ||
"description": "This framework plugin makes adding post types with taxonomies and meta to WordPress very simple, yet flexible. It all works using a single action and an array.", | ||
"keywords": [ | ||
"wordpress", | ||
"plugin", | ||
"framework", | ||
"library", | ||
"developer", | ||
"post-types", | ||
"taxonomies", | ||
"meta", | ||
"admin", | ||
"backend", | ||
"ui" | ||
], | ||
"homepage": "http://wordpress.org/plugins/post-types-definitely/", | ||
"authors": [ | ||
{ | ||
"name": "Felix Arntz", | ||
"email": "felix-arntz@leaves-and-love.net", | ||
"homepage": "http://leaves-and-love.net" | ||
} | ||
], | ||
"dependencies": {} | ||
} |
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,4 @@ | ||
== Changelog == | ||
|
||
= 0.5.0 = | ||
* First stable version |
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,49 @@ | ||
{ | ||
"name": "felixarntz/post-types-definitely", | ||
"description": "This framework plugin makes adding post types with taxonomies and meta to WordPress very simple, yet flexible. It all works using a single action and an array.", | ||
"version": "0.5.0", | ||
"license": "GPL-2.0", | ||
"type": "wordpress-plugin", | ||
"keywords": [ | ||
"wordpress", | ||
"plugin", | ||
"framework", | ||
"library", | ||
"developer", | ||
"post-types", | ||
"taxonomies", | ||
"meta", | ||
"admin", | ||
"backend", | ||
"ui" | ||
], | ||
"homepage": "http://wordpress.org/plugins/post-types-definitely/", | ||
"authors": [ | ||
{ | ||
"name": "Felix Arntz", | ||
"email": "felix-arntz@leaves-and-love.net", | ||
"homepage": "http://leaves-and-love.net", | ||
"role": "Developer" | ||
} | ||
], | ||
"support": { | ||
"email": "felix-arntz@leaves-and-love.net", | ||
"issues": "https://github.com/felixarntz/post-types-definitely/issues" | ||
}, | ||
"config": { | ||
"preferred-install": "dist" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"WPPTD\\": "inc/WPPTD/" | ||
}, | ||
"files": [ | ||
"inc/functions.php" | ||
] | ||
}, | ||
"require": { | ||
"composer/installers": "~1.0", | ||
"felixarntz/wpdlib": "dev-master", | ||
"felixarntz/leavesandlove-wp-plugin-util": "~1.6.0" | ||
} | ||
} |
Oops, something went wrong.