├── index.php ├── _config.yml ├── inc ├── page-footer.php ├── page-header.php └── wp_head.php ├── screenshot.png ├── page.php ├── single.php ├── src ├── js │ ├── AjaxDispatcher.jsx │ ├── AppDispatcher.jsx │ ├── Constants.jsx │ ├── Actions │ │ └── ServerActions.jsx │ ├── Components │ │ ├── Page.jsx │ │ ├── Footer.jsx │ │ └── Menu.jsx │ ├── Stores │ │ └── DataStore.jsx │ └── API.jsx ├── index.jsx └── css │ └── main.css ├── .babelrc ├── style.css ├── footer.php ├── page-history.php ├── page-CustomPage1.php ├── LICENSE ├── package.json ├── webpack.dev.config.js ├── webpack.prod.config.js ├── header.php ├── page-history.jsx ├── README.md └── functions.php /index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-architect -------------------------------------------------------------------------------- /inc/page-footer.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zenithtech/wordpress-react/HEAD/screenshot.png -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /single.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/js/AjaxDispatcher.jsx: -------------------------------------------------------------------------------- 1 | import Flux from 'flux'; 2 | 3 | let AjaxDispatcher = new Flux.Dispatcher(); 4 | 5 | export default AjaxDispatcher; -------------------------------------------------------------------------------- /src/js/AppDispatcher.jsx: -------------------------------------------------------------------------------- 1 | import Flux from 'flux'; 2 | 3 | let AppDispatcher = new Flux.Dispatcher(); 4 | 5 | export default AppDispatcher; -------------------------------------------------------------------------------- /inc/page-header.php: -------------------------------------------------------------------------------- 1 | 5 | 6 |
7 | 8 | 9 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "react", 4 | "stage-0", 5 | "es2015" 6 | ], 7 | plugins: [ 8 | [ 9 | 'wildcard', { 10 | 'exts': ["jsx"] 11 | }, 12 | 'include', { 13 | 'nostrip': true 14 | } 15 | ] 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /src/js/Constants.jsx: -------------------------------------------------------------------------------- 1 | export let ActionTypes = { 2 | GET_WP_VARS: 'GET_WP_VARS', 3 | SET_CURRENT_PAGE_ID: 'SET_CURRENT_PAGE_ID', 4 | SET_MENU_TREE: 'SET_MENU_TREE', 5 | GET_PAGE_FROM_CACHE: 'GET_PAGE_FROM_CACHE', 6 | SET_PAGE_IN_CACHE: 'SET_PAGE_IN_CACHE', 7 | CACHE_UPDATED: 'CACHE_UPDATED' 8 | }; 9 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: wp-react 3 | Theme URI: https://zenitht.com 4 | Author: ZENITHTECH, LLC 5 | Author URI: https://zenitht.com 6 | Description: Single-page Wordpress React theme. 7 | Version: 1.0 8 | License: MIT 9 | Tags: react, js, wordpress, single-page, app, zenithtech 10 | Text Domain: wp-react 11 | */ 12 | 13 | /* style entered here will over-ride styles bundled with the app */ 14 | -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |