HEX
Server: LiteSpeed
System: Linux server214.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: bigisxfd (746)
PHP: 8.4.15
Disabled: NONE
Upload Files
File: /home/bigisxfd/public_html/wp-content/themes/flatsome/inc/builder/shortcodes/video_button.php
<?php

add_ux_builder_shortcode( 'video_button', array(
  'name' => __( 'Video Button' ),
  'category' => __( 'Content' ),
  'thumbnail' =>  flatsome_ux_builder_thumbnail( 'play' ),

  'options' => array(
      'video' => array(
        'type' => 'textfield',
        'heading' => 'Video',
        'description' => 'Enter a Youtube or Vimeo video here. Video will open in a lightbox. Example: https://www.youtube.com/watch?v=AoPiLg8DZ3A',
      ),
      'size' => array(
        'type' => 'slider',
        'heading' => __('Size'),
        'unit' => '%',
        'default' => '100',
        'max' => '500',
        'min' => '0',
        'on_change' => array(
	        'selector' => '.video-button-wrapper',
            'style' => 'font-size: {{ value }}%'
        )
      ),
  )
) );