[], 'disabled' => [], 'pro_data' => [], 'class_name' => '', 'multiple' => false, // Select2 library options 'select2options' => [], // the lockedOptions array can be passed option keys. The passed option keys will be non-deletable. 'lockedOptions' => [], ]; } public function enqueue() { Plugin::enqueue_style( 'sweetalert2', 'assets/dist/css/libraries/sweetalert2', [], ABSOLUTE_ADDONS_VERSION ); Plugin::enqueue_script( 'sweetalert2', 'assets/dist/js/libraries/sweetalert2', [], ABSOLUTE_ADDONS_VERSION, true ); Plugin::enqueue_script( 'absp_select2-control', '/assets/dist/js/absp-styles', [ 'sweetalert2' ], ABSOLUTE_ADDONS_VERSION, true ); wp_localize_script( 'absp_select2-control', 'AbspSelect2', [ 'title' => __( 'Meet the Pro Feature', 'absolute-addons' ), 'body' => __( 'Get Pro and experience all of our exciting features and widgets. You will also get world class support from our dedicated team, 24/7.', 'absolute-addons' ), 'promo_logo' => absp_plugin_url( 'assets/images/absolute-addons-promo.svg', false ), 'crown' => absp_plugin_url( 'assets/images/crown.svg', false ), ] ); } public function content_template() { $control_uid = $this->get_control_uid(); ?>
<# if ( data.label ) {#> <# } #>
<# var multiple = ( data.multiple ) ? 'multiple' : ''; #>
<# if ( data.description ) { #>
{{{ data.description }}}
<# } #>