Git Product home page Git Product logo

zerobase-platform's People

Contributors

rdeeb avatar

Watchers

 avatar  avatar

zerobase-platform's Issues

Create an option builder class

Create a class that will allow a developer to create an option page for a theme or a plugin and allow them to:

  • Define the position of the page
  • Create sub pages
  • Create sections on the sub pages

The class should handle the save logic for the options, and consume the forms sub framework.

Settings & Customiser YML loader

Allow the end user to create a Yaml file where he can create settings pages, and add options to them.
Also allow them to create a Yaml file for the customiser options allowing easily adding of the theme customiser configurations.

Fix bug on validators

Certain validators sends a warning when they are instantiated, research and resolve.

Create a widget base class

Create a base widget class that will allow:

  • Fast widget option pages creation using the form sub framework
  • Fast widget front end creation by specifying the widget template

Create a cache storage

Create a cache storage that will help speed up performance on module loading tasks.

The main Idea behind this task is to store in local files the actual tasks run by the YML importer. Re-running this tasks on every request will hurt performance, while importing the cache files will speed up the framework bootstrap time.

The cache file is also required by the widget loader

Create a validation sub framework

Create a validation subframework that will:

  • Integrate with the form sub framework
  • Validate in the front end and backend
  • Work in different sections (Meta boxes, widgets, front-end)

[Solved] Remove eval, write loadable php files

in library/modules/ZB_ModuleLoader.php, line 73

eval() is very dangerous because it allows execution of arbitrary PHP code. Avoid using it, especially when including user input.

    {
        $cache_bag = ZB_FileCache::getInstance()->createCache( 'config' );
        $cache_eval = $cache_bag->retreive( 'cached_' . $cache );
        if ( $cache_eval == false )
        {
            $loaded_post_types = eval( $cache_eval );
            if ( !empty( $loaded_post_types ) )
            {
                foreach( $loaded_post_types as $post_type_name )
                {
                    $cache_bag = ZB_FileCache::getInstance()->createCache( $cache );

Posted from SensioLabsInsight

Create a user extender class

Create a class that will allow the user to extend the default wp user information, by adding new fields on the user edit page.

Leverage the form sub framework like in the meta box class.

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.