GithubHelp home page GithubHelp logo

popupmaker / popupmaker-extension-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 56 KB

A foundation for Popup Maker extension development that aims to provide a standardized guide for building extensions.

Home Page: https://wppopupmaker.com

PHP 100.00%

popupmaker-extension-boilerplate's People

Contributors

danieliser avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

popupmaker-extension-boilerplate's Issues

admin scripts boilerplate simplification

My feeling is that most extensions will not need an extensive setup routine, and even when they do, it'll usually be done at page load. So my suggestion is that the admin boilerplate JS be simplified to just

(function () {
  "use strict";
  jQuery( function ($) {
    if ($('body.post-type-popup form#post').size() === 0) return;
    // do whatever
  });
}());

Full rewrite is in order. Notes inside.

The boilerplate as it is now is not very useful. It is both bloated and lacking at the same time. There is typically a lot of removal of code & extensive file building required after initial setup before a product can even become a reality.

Plans

Build a fully functional multi faceted boilerplate with a little bit of every type of extension we currently have including:

  • Mailing list integration
  • New Triggers
  • Extra Global Settings
  • Extra Theme Settings
  • Extra Popup Metaboxes
  • Extending existing settings
  • Adding additional admin pages to our menus
  • Custom Admin / Site CSS & JS files

Once this is done, a build process will be built to optionally enable/disable each of these items. The build will also collect plugin details and replace prefixes automatically. Once build is finished it will be saved in its own folder with the collected plugins slug. After build is complete the extension will be a raw & ready to add in your customizations. This means that within minutes a new extension can be ready for building, and the focus is only on the new functionality.

@fpcorso Thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.