Skip to content

Instantly share code, notes, and snippets.

@danyj
Created December 14, 2017 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save danyj/6a97d703d9083d3a3b9685b97fc49c2e to your computer and use it in GitHub Desktop.
Save danyj/6a97d703d9083d3a3b9685b97fc49c2e to your computer and use it in GitHub Desktop.
Unyson wp-shortcode bug check
<?php if ( ! defined( 'FW' ) ) {
die( 'Forbidden' );
}
/**
* Framework options
*
* @var array $options Fill this array with options to generate framework settings form in backend
*/
$options = array(
'main' => array(
'title' => false,
'type' => 'box',
'options' => array(
'test-addable-vc' => array(
'type' => 'addable-popup',
'value' => array(),
'label' => __('Addable Popup', '{domain}'),
'template' => '{{- option_1 }}',
'popup-title' => null,
'size' => 'small', // small, medium, large
'limit' => 0, // limit the number of popup`s that can be added
'add-button-text' => __('Add', '{domain}'),
'sortable' => true,
'popup-options' => array(
'scale' => array(
'type' => 'multi-picker',
'label' => false,
'desc' => false,
'picker' => array(
'picked' => array(
'label' => __('Select', 'creatus'),
'desc' => __('Select', 'creatus'),
'type' => 'short-select',
'value' => 'input',
'choices' => array(
'editor' => __('editor', 'creatus'),
'input' => __('input', 'creatus')
)
)
),
'choices' => array(
'editor' => array(
'option_1' => array(
'type' => 'wp-editor',
'size' => 'large',
'editor_height' => 200,
'shortcodes' => true,
'editor_type' => 'tinymce',
'wpautop' => false,
'label' => __('Content', 'creatus'),
'desc' => esc_html__('Enter some content for this text block', 'creatus'),
'value' => 'Praesent ut accumsan est. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras volutpat, ligula quis mollis elementum, ex nisi interdum ante, eu posuere sem sem et tortor.'
)
),
'input' => array(
'title' => array(
'type' => 'text',
'label' => __('Title', 'fw'),
'desc' => __('Icon title', 'fw')
)
)
)
),
),
)
),
),
//fw()->theme->get_options( 'general-settings' ),
//fw()->theme->get_options( 'demo-box' ),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment