shortcode_name = 'adminz_countdown'; $___->shortcode_title = 'Countdown custom'; $___->shortcode_icon = 'text'; $___->options = [ 'id' => array( 'type' => 'textfield', 'heading' => 'ID', 'default' => "adminz_" . wp_rand(), ), 'text_days' => array( 'type' => 'textfield', 'heading' => 'Days', 'default' => 'Days', ), 'text_hours' => array( 'type' => 'textfield', 'heading' => 'Hours', 'default' => 'Hours', ), 'text_minutes' => array( 'type' => 'textfield', 'heading' => 'Minutes', 'default' => 'Minutes', ), 'text_seconds' => array( 'type' => 'textfield', 'heading' => 'Secconds', 'default' => 'Secconds', ), 'rowspacing' => array( 'type' => 'select', 'heading' => 'Row spacing', 'default' => 'small', 'options' => [ 'small' => 'small', 'large' => 'large', 'collapse' => 'collapse', ], ), 'padding' => array( 'type' => 'slider', 'unit' => 'px', 'min' => 0, 'max' => 100, 'heading' => 'Row padding', 'default' => '15', ), 'timeleft' => array( 'heading' => "Time left", 'type' => 'slider', 'default' => 30, 'unit' => "minutes", 'min' => 1, 'max' => 10080, ), ]; $___->shortcode_callback = function ($atts, $content = null) { extract(shortcode_atts(array( 'id' => '', 'padding' => '15', 'rowspacing' => 'small', 'text_days' => 'Days', 'text_hours' => 'Hours', 'text_minutes' => 'Minutes', 'text_seconds' => 'Secconds', 'timeleft' => 30, ), $atts)); ob_start(); ?>