WebDevStudios / WDS-Simple-Page-Builder

Uses existing template parts in the currently-active theme to build a customized page with rearrangeable elements.
GNU General Public License v2.0
136 stars 25 forks source link

add generic wrapper function for all the things - `wds_do_page_builder()` #13

Closed jazzsequence closed 9 years ago

jazzsequence commented 9 years ago

this would be different than wds_page_builder_load_parts but could potentially use that function. usage would look something like this:

wds_do_page_builder( array(
     'section',        // wrapper type, e.g. <div>, <aside>, whatever
     'part-container', // wrapper class or classes
     'layout-name',    // optional, the layout to load or whatever the default is
) ); 
jazzsequence commented 9 years ago

maybe find a better name.

jazzsequence commented 9 years ago

new function is wds_page_builder_wrap

jazzsequence commented 9 years ago

tested, refactored, tested a lot more, working now. :boom: