예제 #1
0
 /**
  * Defining Constants for Use in Plugin
  * @since 1.0.0
  */
 public function framework()
 {
     // Loading Skip
     include FBFPI_FOLDER . '/includes/skip/loader.php';
     skip\start();
 }
예제 #2
0
Plugin Name: Skip Example Plugin
Plugin URI: http://rheinschmiede.de
Description: Faster WordPress Developement with Skip WordPress Tools
Author: Sven Wagener
Author URI: http://rheinschmiede.de
Version: 1.0.0 alpha
Text Domain: skip
Network: false
License: GNU GENERAL PUBLIC LICENSE 3.0 http://www.gnu.org/licenses/gpl.txt
*/
/**
 * Initializing Skip
 */
require 'skip/loader.php';
use skip\v1_0_0 as skip;
skip\start();
function skip_test()
{
    echo '<div class="wrap">';
    echo '<h2>Check</h2>';
    echo '<p>Wir testen die Formularfunktionen.</p>';
    skip\form_start('testform');
    skip\textfield('name', 'Name');
    skip\textarea('description', 'Describe you a bit');
    skip\color('color', 'Choose your favourite color');
    skip\checkbox('checkthis', 'yes', 'Check This!');
    skip\radio('radioval', '1', 'Eins');
    skip\radio('radioval', '2', 'Zwei');
    skip\radio('radioval', '3', 'Drei');
    skip\select('selectval', 'Eins,Zwei,Drei', 'Wähl mal');
    skip\autocomplete('completeit', 'Car,House,Fish,Meal', 'Autocomplete');