fastlinemedia / customizer-export-import

Adds a settings export/import section to the WordPress customizer.
43 stars 13 forks source link

Listing "built in" import settings for quick import/reverting of settings. #5

Open BoweFrankema opened 9 years ago

BoweFrankema commented 9 years ago

I love this plugin and it's a huge time saver for theme developers! I was looking at the solution you posted in relation to automatically importing a theme preset on activation (sweet idea).

I was wondering if it would also be possible to bundle a theme with a few pre-made option settings AND the option to optionally import/export/revert to those setting.

Here's a simple mock-up of what I had in mind:

screenshot 2015-08-11 18 03 58

It might need to be a custom control where you'd specify the included layouts and their path.. like:

    $fields[] = array(
        'section'     => 'wf_plus_header',
        'type'        => 'radio',
        'settings'    => 'wf_plus_header_fixed',
        'label'       => __( 'Standard Settings', 'kirki' ),
        'description' => __( 'Choose a standard layout', 'kirki' ),
        'priority'    => 10,
        'choices'     => array(
            'assets/stylekit-1.dat' => __( 'Minimal Layout', 'kirki' ),
            'assets/stylekit-2.dat' => __( 'Dark Layout', 'kirki' ),
        ),
    );

Maybe this goes outside the scope of the plugin, but I think it would be a cool feature. Any help or pointers on how this could be done would be awesome!

fastlinemedia commented 9 years ago

That's a pretty cool idea! I'm really swamped at the moment, so it's not something that I could do right now, but I'm happy to point you in the right direction if you want to submit a pull request. Let me know.

ghost commented 9 years ago

Now that is an awesome idea.

BoweFrankema commented 9 years ago

@fastlinemedia thanks for your reply! I'll ask one of our developers to take a look and see if he can extend your plugin to make this happen :+1:

bryanchalker commented 7 years ago

This would be so perfect. Love the concept and execution of the current build, but this functionality would be incredibly helpful. Some clients and scared to death to "import" anything.