Title: Kwik Framework
Author: kevinchappell
Published: <strong>18. Dezember 2014</strong>
Last modified: 20. Januar 2016

---

Plugins suchen

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

![](https://s.w.org/plugins/geopattern-icon/kwik-framework.svg)

# Kwik Framework

 Von [kevinchappell](https://profiles.wordpress.org/kevinchappell/)

[Herunterladen](https://downloads.wordpress.org/plugin/kwik-framework.zip)

 * [Details](https://de.wordpress.org/plugins/kwik-framework/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/kwik-framework/#reviews)
 * [Entwicklung](https://de.wordpress.org/plugins/kwik-framework/#developers)

 [Support](https://wordpress.org/support/plugin/kwik-framework/)

## Beschreibung

Kwik Framework is a framework for **rapid** development of WordPress themes and 
Plugins. It lets you quickly create option pages with dynamic error handling, programmatically
generate markup where needed and provides custom inputs for your theme or plugin.

### Verwendung

Simply installing the plugin provides a robust API that lets you quickly create 
settings pages for you plugin or theme.

#### Generating Setting Page

    ```
    add_action( 'admin_menu', 'my_plugin_add_admin_menu' );
    add_action( 'admin_init', 'my_plugin_settings_init' );

    function my_plugin_add_admin_menu() {
     // add_submenu_page( 'edit.php?post_type=kwik-framework', __('Kwik Framework Settings', 'kwik'), __('Settings', 'kwik'), 'manage_options', 'kwik_framework', 'my-plugin' );
     add_options_page('Kwik Framework Settings', 'Kwik Framework', 'manage_options', 'my-plugin', 'my-plugin'.'_settings');
    }

    function my_plugin_settings_init() {
     $kwik_settings = new KwikSettings();
     $defaultSettings = my_plugin_default_options();
     $kwik_settings->settings_init(MyPlugin, 'my-plugin', $defaultSettings);
    }

    function kwik_framework_settings() {
     $settings = my_plugin_get_options();
     echo '<div class="wrap">';
       echo KwikInputs::markup('h2', __('Framework Settings', 'kwik'));
       echo KwikInputs::markup('p', __('Set the API keys and other options for your website. Kwik Framework needs these settings to connect to Google fonts and other APIs.','kwik'));
       echo '<form action="options.php" method="post">';
         settings_fields('my-plugin');
         echo KwikSettings::settings_sections('my-plugin', $settings);
       echo '</form>';
     echo '</div>';
    }

    function my_plugin_get_options() {
     return get_option('my-plugin', my_plugin_default_options());
    }

    function my_plugin_default_options() {
     $my_plugin_default_options = array(
       'section_1' => array(
         'section_title' => __('Section One', 'kwik'),
         'section_desc' => __('This is the description for section one.', 'kwik'),
         'settings' => array(
           'sec_1_first_option' => array(
             'type' => 'text',
             'title' => __('First Option', 'kwik'),
             'value' => ''
           ),
           'sec_2_second_option' => array(
             'type' => 'text',
             'title' => __('Second Option', 'kwik'),
             'value' => ''
           )
         )
       ),
       'section_2' => array(
         'section_title' => __('Section Two', 'kwik'),
         'section_desc' => __('This is the description for section two.', 'kwik'),
         'settings' => array(
           'sec_2_first_option' => array(
             'type' => 'text',
             'title' => __('Option One Title', 'kwik'),
             'value' => ''
           ),
           'sec_2_second_option' => array(
             'type' => 'text',
             'title' => __('Option Two Title', 'kwik'),
             'value' => ''
           )
         )
       )
     );

     return apply_filters('my_plugin_default_options', $kf_default_options);
    }
    ```

That’s it. The above code block will add a new options page to your theme or plugin
with automatic field validation. In this example, options are added to the `my_plugin_default_options`
multi-dimensional array. Type is defined as the input type to be used such as `text`
and `select` but Kwik Framework also provides the following custom types `img`, `
font`, `toggle`, `color`, `link`, `spinner` and `nonce`. The custom inputs can be
easily extended using the `input` or `multi` types and supplying your own attributes.

#### Generating markup

    ```
    $inputs = new KwikInputs();

    $link = $inputs->markup('a', "This is a link", array("class" => "test_link", href="http://test-site.com", "title" => "Test Title"));

    echo $link;
    ```

### Widgets

#### Neueste Beiträge

Displays a list of posts. Features:

 * Filter by category and tag
 * date and read more formatting
 * numerous options

## Rezensionen

Zu diesem Plugin liegen noch keine Rezensionen vor.

## Mitwirkende und Entwickler

„Kwik Framework“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin
mitgewirkt:

Mitwirkende

 *   [ kevinchappell ](https://profiles.wordpress.org/kevinchappell/)

[Übersetze „Kwik Framework“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/kwik-framework)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/kwik-framework/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/kwik-framework/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/kwik-framework/)
per [RSS](https://plugins.trac.wordpress.org/log/kwik-framework/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **0.5.7**
 *  Zuletzt aktualisiert **vor 11 Jahren**
 *  Aktive Installationen **weniger als 10**
 *  WordPress-Version ** 3.8 oder höher **
 *  Getestet bis **4.4.34**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/kwik-framework/)
 * Schlagwörter
 * [common](https://de.wordpress.org/plugins/tags/common/)[framework](https://de.wordpress.org/plugins/tags/framework/)
   [options](https://de.wordpress.org/plugins/tags/options/)[settings](https://de.wordpress.org/plugins/tags/settings/)
   [widgets](https://de.wordpress.org/plugins/tags/widgets/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/kwik-framework/advanced/)

## Bewertungen

Es wurden noch keine Rezensionen eingereicht.

[Your review](https://wordpress.org/support/plugin/kwik-framework/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/kwik-framework/reviews/)

## Mitwirkende

 *   [ kevinchappell ](https://profiles.wordpress.org/kevinchappell/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/kwik-framework/)