shortcode_name = 'adminz_mfp_hide_button'; $___->shortcode_title = 'Mfp Hide button'; $___->shortcode_icon = 'text'; $___->options = array_merge( [ 'text' => array( 'type' => 'textfield', 'heading' => 'text', 'default' => 'close', ), 'icon' => array( 'type' => 'select', 'heading' => 'icon', 'default' => 'close', 'options' => adminz_get_list_icons(), ), 'icon_pos' => array( 'type' => 'select', 'heading' => 'icon_pos', 'default' => 'left', 'options' => [ 'left' => 'left', 'right' => 'right', ], ), ], [ 'advanced_options' => require(get_template_directory() . '/inc/builder/shortcodes/commons/advanced.php') ] ); $___->shortcode_callback = function ($atts, $content = null) { extract(shortcode_atts(array( 'text' => 'close', 'icon' => 'close', 'icon_pos' => "left", 'class' => '', 'visibility' => '', ), $atts)); if ($visibility == 'hiden') return; $classes = ['adminz_mfp_button', 'adminz_mfp_hide_button', $class, $visibility]; ob_start(); ?>
general_element();