Skip to content
This repository has been archived by the owner on Nov 25, 2017. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Aug 15, 2015
0 parents commit 5e12bc0
Show file tree
Hide file tree
Showing 23 changed files with 3,355 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "assets/vendor"
}
36 changes: 36 additions & 0 deletions .editorconfig
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
59 changes: 59 additions & 0 deletions .gitignore
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
106 changes: 106 additions & 0 deletions Gruntfile.js
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'
]);
};
13 changes: 13 additions & 0 deletions README.md
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)!
27 changes: 27 additions & 0 deletions bower.json
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": {}
}
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
== Changelog ==

= 0.5.0 =
* First stable version
49 changes: 49 additions & 0 deletions composer.json
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"
}
}
Loading

0 comments on commit 5e12bc0

Please sign in to comment.