A structured, object oriented foundation to help you quickly navigate your way to making awesome pootle page builder add ons.
Page builder add on boilerplate is structured as mentioned below:
ppb-mobile-editing.php
To tell WordPress that you got a plugin here, Fetches the required files and instantiates main plugin classclass-ppb-mobile-editing.php
Your main plugin class, adds admin and public hooks and initiates admin and public classesREADME.md
The file that you’re currently reading.assets
Contains client side scripts and stylesfront-end.js
jQuery script enqueued on front endfront-end.css
Stylesheet enqueued on front end
inc
Contains server side scripts to includeclass-admin.php
Admin class Adds a sample tab and a sample field in both the panels Row settings panel and Content block panelclass-public.php
Public class Adds sample styles to Row and Content block utilising sample input fields added by admin class
pp-api
The helps integrate with WC API Manager on http://pootlepress.comAPI Integration Files
Help updating paid add ons
- All classes, methods and properties are documented so that you know what you need to be changed.
- All action and filter hooks, admin as well as public, are registered by the main class.
- Demonstration of some pootle page builder actions and filters
- A sample tab added to each panel, row settings panel and content block panel, via
pootlepb_row_settings_tabs
andpootlepb_content_block_tabs
filters. - A sample field added to each panel, row settings panel and content block panel, via
pootlepb_row_settings_fields
andpootlepb_content_block_fields
filter. - Modifying row and content block html attributes via
pootlepb_row_style_attributes
andpootlepb_content_block_attributes
using the sample settings fields.
- A sample tab added to each panel, row settings panel and content block panel, via
The WordPress Plugin Boilerplate is licensed under the GPL v2 or later.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- Change
ppb-mobile-editing.php
andclass-ppb-mobile-editing.php
to something likeyour-awesome-addon.php
andclass-your-awesome-addon.php
- Do following search and replace through your entire project
Search For | Replace With |
---|---|
PPB_Mobile_Editing | Your_Awesome_Addon |
PPB Mobile Editing | Your Awesome Addon |
class-ppb-mobile-editing.php | class-your-awesome-addon.php |
ppb-mobile-editing | ppb-your-awesome-addon |
##Documentation
For pootle page builder developer documentation visit http://pootlepress.com/