Coder Social home page Coder Social logo

i30 / elemental-theme-builder Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 123 KB

An intuitive theme builder for Elementor Page Builder (the free version).

License: GNU General Public License v3.0

JavaScript 12.01% PHP 87.99%
elementor-addon theme-builder header-builder footer-builder

elemental-theme-builder's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

elemental-theme-builder's Issues

What a wonderful plugin

Incredible but true, i developed an addon for Elementor and I was just looking for sources to integrate the features you created.
To consolidate the code I had to make some contributions that I give you here because i don't have a Wordpress account.
Mon site de démonstration: EAC
Of course the download is free (GPLv2+)

Manager.php
Add action 'before_delete_post' to clean the DB

Method 'get_current_page_id'
Replace 'wc_get_current_page_id' by 'wc_get_page_id'

Method 'has_assigned_template'
Added is_category() et is_tag() to check the archive before is_tax()

Method 'update_template_location' check if 'show_on' is set
if ( in_array( $type, array( SiteHeader::TYPE, SiteFooter::TYPE ), true ) && isset( $settings['show_on'] ) ) { ... }
Force add_option autoloaded to 'no'

SiteHeader.php and SiteFooter.php
Export/import not working for importing a model
Method 'get_properties' added new property
'cpt' => [ 'elementor_library' ],

Method 'print_elements_with_wrapper'
Check the "DOM Optimization" experiment feature to avoid loading unnecessary divs
$is_dom_optimization_active = Plugin::$instance->experiments->is_feature_active( 'e_dom_optimization' );

PageLayoutSettings.php
register_post_meta: because $meta_name is empty 'Appearance/Widgets' is broken
Method 'enqueue_scripts' before loading the script i check the screen ID
if ( 'widgets' !== get_current_screen()->id ) {
...
}

Templates/BlankPage.php & SiteHeader.php
Added 'body_open();' after body_class();

Create new file compatibility-themes.php
For twenty of the most popular themes like 'Oceanwp, GeneratePress Hestia Astra Storefront Hello...'
I created actions before and after the header/footer to add the DOM structures corresponding to the current theme.
I'm not sure if this is the right method but...

And finally I test if the current theme is a block based theme to load or not the 'Header and Footer' features
because it doesn't work and I'm not familiar with block themes
if ( function_exists( 'wp_is_block_theme' ) && ! wp_is_block_theme() ) { load component } WP 5.9

I just finished the navigation menu and I still have some functionality to add like site title, logo, page title, breadcrumb...

Thanks again for your superb work.

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.