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 Saved Layout as Builder Part #64

Open fauzie opened 8 years ago

fauzie commented 8 years ago

Hi,

I just tried to append saved layout to builder, its looks like: http://prntscr.com/c481j1 Select dropdown populated from query post type wds_pb_layouts In template part i just add get_saved_page_builder_layout_by_slug( $select_layout ) But the function returned error, undefined variable $area. I think it was on class-wds-page-builder-areas.php#L131 maybe add this: $area = $this->get_current_area();