-
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
Showing
8 changed files
with
94 additions
and
108 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ vendor/ | |
dist/ | ||
.DS_Store | ||
*.code-workspace | ||
.idea |
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 |
---|---|---|
@@ -1,16 +1 @@ | ||
<h3 align="center">WordPress Plugin Template</h3> | ||
<h4>Included:</h4> | ||
|
||
- OOP architecture | ||
|
||
- Build pipeline | ||
|
||
- PSR-4 Autoloading | ||
|
||
- GitHub workflows for: | ||
|
||
- Building release asset | ||
|
||
- PR labeler | ||
|
||
- Release drafter | ||
<h3 align="center">Pantheon Content Cloud for WordPress</h3> |
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
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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
{ | ||
"name": "crowdfavorite/tips", | ||
"name": "pantheon/pcc-for-wordpress", | ||
"type": "wordpress-plugin", | ||
"description": "TIPS is plugin scaffolding", | ||
"description": "Publish WordPress content from Google Docs with Pantheon Content Cloud.", | ||
"keywords": [ | ||
"wordpress", | ||
"plugin" | ||
"wordpress", | ||
"plugin" | ||
], | ||
"support": { | ||
"email": "alexn@crowdfavorite.com" | ||
"email": "contact@pantheon.io" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Al Esc", | ||
"email": "alexn@crowdfavorite.com", | ||
"homepage": "https://crowfavorite.com" | ||
} | ||
{ | ||
"name": "Pantheon", | ||
"email": "contact@pantheon.io", | ||
"homepage": "https://pantheon.io" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"Tips\\": "app/" | ||
} | ||
"psr-4": { | ||
"PCC\\": "app/" | ||
} | ||
}, | ||
"require": { | ||
"php": ">=7.0.0" | ||
"php": ">=8.3" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
{ | ||
"name": "tips", | ||
"name": "pcc-for-wordpress", | ||
"version": "0.0.1", | ||
"description": "TIPS is plugin scaffolding.", | ||
"description": "Publish WordPress content from Google Docs with Pantheon Content Cloud.", | ||
"scripts": { | ||
"dev": "NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | ||
"watch": "NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | ||
"hot": "NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", | ||
"prod": "NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" | ||
"dev": "NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | ||
"watch": "NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", | ||
"hot": "NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", | ||
"prod": "NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" | ||
}, | ||
"author": "Al Esc", | ||
"private": "true", | ||
"devDependencies": { | ||
"laravel-mix": "^5.0.9", | ||
"resolve-url-loader": "^3.1.2", | ||
"sass": "^1.29.0", | ||
"sass-loader": "^8.0.2", | ||
"vue-template-compiler": "^2.6.12" | ||
"laravel-mix": "^5.0.9", | ||
"resolve-url-loader": "^3.1.2", | ||
"sass": "^1.29.0", | ||
"sass-loader": "^8.0.2", | ||
"vue-template-compiler": "^2.6.12" | ||
} | ||
} |
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 @@ | ||
<?php //phpcs:disable Files.SideEffects.FoundWithSymbols | ||
|
||
/** | ||
* Plugin Name: Pantheon Content Cloud for WordPress | ||
* Description: Publish WordPress content from Google Docs with Pantheon Content Cloud. | ||
* Plugin URI: https://pantheon.io | ||
* Author: Pantheon | ||
* Author URI: https://pantheon.io | ||
* Version: 0.0.1 | ||
* | ||
* @package pantheon\pcc-for-wordpress | ||
*/ | ||
|
||
namespace PCC; | ||
|
||
// Exit if accessed directly. | ||
if (!defined('ABSPATH')) { | ||
exit; | ||
} | ||
|
||
// Constant Definitions. | ||
define('PCC_PLUGIN_FILE', __FILE__); | ||
define('PCC_PLUGIN_DIR', plugin_dir_path(PCC_PLUGIN_FILE)); | ||
define('PCC_BASENAME', plugin_basename(PCC_PLUGIN_FILE)); | ||
define('PCC_PLUGIN_DIR_URL', plugin_dir_url(PCC_PLUGIN_FILE)); | ||
define('PCC_HANDLE', 'pcc'); | ||
|
||
// Only require the autoload.php file if it exists. | ||
// If it does not, assume that it is the root project's responsibility to load the necessary files. | ||
call_user_func(static function ($rootPath) { | ||
$autoload = "{$rootPath}vendor/autoload.php"; | ||
if (is_readable($autoload)) { | ||
require_once $autoload; | ||
} | ||
add_action('plugins_loaded', ['PCC\Plugin', 'getInstance'], -10); | ||
}, PCC_PLUGIN_DIR); |