Skip to content

APT widget framework based on SiteOrigin-widget-bundle

Notifications You must be signed in to change notification settings

aptarmy/so-widget-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

so-widget-starter

APT widget framework based on SiteOrigin-widget-bundle which adds responsive and prebuild-layout functionalities.

How to use this framework ?

  • First file in root directory can be leave untouched. Change file name and root directory name if necessary.
  • Change widget folder name and main php file name(under the widget folder) if necessary
  • It's imperative that your widget class extends APT_Widget class.

Optional functionalities

Please note that these options are only available if a widget is inserted in either Page Builder editor or widget page.

  • If you want to give users ability to control responsive functionality of widget, append this code $this->get_media_query_id() => $this->get_media_query_options() to $form_options array. it will add responsive functionality to your newly creative widget automatically.
  • If you want to give users ability to float widget in Pagebuilder, append this code $this->get_float_id() => $this->get_float_options() to $form_options array.

Create prebuild-layout

if you want to create prebuild-layout(builde on top of SiteOrigin widget bundle), it's very simple. Please follow these steps.

  • Download prebuild layout from SiteOrigin editor in your wordpress admin page. The downloaded file extension sould be .json
  • capture rendered screen in frontend and name it screenshot. The file extension can be any format like jpg or png
  • Put the two files into a folder and name that folder to anything you want, Front Page etc., this folder name will be used to show as your prebuild-layout name
  • Move that folder to layouts folder, our framework will activate your layouts automatically.
  • That's it!!! havae fun :)

About

APT widget framework based on SiteOrigin-widget-bundle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published