/home/crealab/pueblito.brainware.com.co/wp-content/plugins/scroll_magic/includes/functions.php
<?php
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

if(!function_exists('wpsg_shortcode_custom_css_class')) {
	function wpsg_shortcode_custom_css_class($rules, $class = '', $prefix = '', $suffix = ''){
		global $wpsg_inline_css;
		if($class == '') {
			$class = uniqid('wpsg_custom_');
		}
		$css = wpsg_shortcode_custom_css($rules);
		$wpsg_inline_css .= ($prefix . '.' . $class . '{' . $css . '}' . $suffix . ' ' );
		return $class;
	}
}
if (!function_exists('wpsg_shortcode_custom_css_selector')) {
	function wpsg_shortcode_custom_css_selector($rules, $class = '', $prefix = '', $suffix = '')
	{
		global $wpsg_inline_css;
		if ($class == '') {
			$class = uniqid('wpsg_custom_');
		}
		$css = wpsg_shortcode_custom_css($rules);
		if(trim($css) != '') {
			$wpsg_inline_css .= ($prefix . $class . '{' . $css . '}' . $suffix . ' ');
		}
		return $class;
	}
}
if(!function_exists('wpsg_shortcode_custom_css')) {
	function wpsg_shortcode_custom_css($rules, $indent = 0){
		global $wpsg_add_important_css;
		$css = '';
		$prefix = str_repeat('  ', $indent);
		if(!is_array($rules) || count($rules) <= 0) {
			return;
		}
		foreach ($rules as $key => $value) {
			$property = wpsg_convert_css_property($key);
			if(empty($value) || is_null($value) || $value == 'null') {
				if ($value!=='0') {
					continue;
				}
			}
			if($property == 'background-image') {
				$value = 'url('.$value.')';
			} else if(is_numeric($value)) {
				if(!in_array($property, array('font-weight', 'line-height', 'opacity', 'z-index'))) {
					$value = $value . 'px';
				}
			}
			$important = "";
			if($wpsg_add_important_css != 'no') {
				$important = "!important";
			}
			$css .= $prefix . "$property: $value $important;";
			
			// !importtant
		}
		return $css;
	}
}
if(!function_exists('wpsg_convert_css_property')) {
	function wpsg_convert_css_property($input) {
		preg_match_all('!([A-Z][A-Z0-9]*(?=$|[A-Z][a-z0-9])|[A-Za-z][a-z0-9]*)!', $input, $matches);
		$ret = $matches[0];
		foreach ($ret as &$match) {
			$match = $match == strtoupper($match) ? strtolower($match) : lcfirst($match);
		}
		return implode('-', $ret);
	}
}
if(!function_exists('wpsg_add_font')) {
	function wpsg_add_font($font){
		global $wpsg_font;

		$local_fonts = explode('|', 'Arial|Helvetica+Neue|Courier+New|Times+New+Roman|Comic+Sans+MS|Impact');
		if (!empty($font) && in_array( $font, $local_fonts)) {
			return;
		}
		$wpsg_font .= '<link type="text/css" rel="stylesheet" href="//fonts.googleapis.com/css?family='.$font.'" />';
	}
}
if(!function_exists('custom_excerpt_length')) {
	function custom_excerpt_length( $length ) {
        return 15;
    }
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
}

if(!function_exists('wpsg_get_font')) {
	function wpsg_get_font($font){
		$font = str_replace( "+", " ", $font);
		$font = explode(":", $font);
        return $font[0];
	}
}
if(!function_exists('wpsg_get_str')) {
	function wpsg_get_str($value){
		if(preg_match('/\{/i', $value)) {
			$tmp = unserialize($value);
			if(is_array($tmp) && isset($tmp[0])) {
				return $tmp[0];
			}
		}
        return $value;
	}
}


if(!function_exists('wpsg_visual_scrollmagic_toolbar_links')) {
	function wpsg_visual_scrollmagic_toolbar_links($wp_admin_bar)
	{
		$scrollmagic_id = apply_filters('wpsg_id_scrollmagic', 0);
		if($scrollmagic_id <= 0) {
			return;
		}
	    $wp_admin_bar->add_node(array(
	        'id' => 'wpsg_visual_scrollmagic_builder',
	        'title' => 'Scene Editor',
	        'href' => admin_url('admin.php?page='.WPSG_ADD_SCROLL_SLUG.'&ID='.$scrollmagic_id),
	        'meta' => array('class' => 'vh_builder'),
	    ));

	    $wp_admin_bar->remove_node('admin');
	}
	add_action('admin_bar_menu', 'wpsg_visual_scrollmagic_toolbar_links', 105);
}

if(!function_exists('wpsg_echo_svg')) {
	function wpsg_echo_svg($type = 'elements') {
		if ($type == 'elements') {
			?>
			<svg class="bb-sorthandle" ng-if="item.name.toLowerCase()=='text'" xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 96 960 960" width="20"><path d="M449.694 846.306v-480h-192v-60.612h444.612v60.612h-192v480h-60.612Z"/></svg>
			<svg class="bb-sorthandle" ng-if="item.name.toLowerCase()=='image'" xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 96 960 960" width="20"><path d="M250.001 904.999q-41.186 0-70.093-28.907-28.907-28.907-28.907-70.093V346.001q0-41.186 28.907-70.093 28.907-28.907 70.093-28.907h459.998q41.186 0 70.093 28.907 28.907 28.907 28.907 70.093v459.998q0 41.186-28.907 70.093-28.907 28.907-70.093 28.907H250.001Zm0-53.999h459.998q18.722 0 31.861-13.14Q755 824.721 755 805.999V346.001q0-18.722-13.14-31.861Q728.721 301 709.999 301H250.001q-18.722 0-31.861 13.14Q205 327.279 205 346.001v459.998q0 18.722 13.14 31.861Q231.279 851 250.001 851Zm31.232-90.001L413 629.231 472.769 689 547 595.154l131.229 165.845H281.233Zm64.555-254q-31.303 0-53.045-21.954t-21.742-53.257q0-31.304 21.954-53.046 21.954-21.741 53.258-21.741 31.304 0 53.045 21.954Q421 400.909 421 432.212q0 31.304-21.954 53.046-21.954 21.741-53.258 21.741Z"/></svg>
			<svg class="bb-sorthandle" ng-if="item.name.toLowerCase()=='button'" xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 96 960 960" width="20"><path d="M240.615 898q-35.04 0-58.828-23.787Q158 850.425 158 815.385v-478.77q0-35.04 23.787-58.828Q205.575 254 240.615 254h478.77q35.04 0 58.828 23.787Q802 301.575 802 336.615v478.77q0 35.04-23.787 58.828Q754.425 898 719.385 898h-478.77Zm0-58h478.77q9.23 0 16.923-7.692Q744 824.615 744 815.385v-478.77q0-9.23-7.692-16.923Q728.615 312 719.385 312h-478.77q-9.23 0-16.923 7.692Q216 327.385 216 336.615v478.77q0 9.23 7.692 16.923Q231.385 840 240.615 840ZM216 312v528-528Zm263.789 462q12.596 0 22.788-9.982t10.192-22.577q0-12.595-9.982-22.787-9.981-10.193-22.576-10.193-12.596 0-22.788 9.982t-10.192 22.577q0 12.595 9.982 22.788Q467.194 774 479.789 774Zm-156 0q12.596 0 22.788-9.982t10.192-22.577q0-12.595-9.982-22.787-9.981-10.193-22.576-10.193-12.596 0-22.788 9.982t-10.192 22.577q0 12.595 9.982 22.788Q311.194 774 323.789 774Zm312 0q12.596 0 22.788-9.982t10.192-22.577q0-12.595-9.982-22.787-9.981-10.193-22.576-10.193-12.596 0-22.788 9.982t-10.192 22.577q0 12.595 9.982 22.788Q623.194 774 635.789 774Z"/></svg>
			<svg class="bb-sorthandle" ng-if="item.name.toLowerCase()=='shape'" xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 96 960 960" width="20"><path d="M590.769 686.769Zm-237 96.769q4.064 1.231 8.224 1.347 4.161.115 7.238.115 9.923 0 20.607-1.115 10.685-1.116 21.931-3.347v60.616q0 10.769 6.923 17.692t17.693 6.923h308.769q10.769 0 17.692-6.923t6.923-17.692V532.385q0-10.77-6.923-17.693-6.923-6.923-17.692-6.923h-60.616q2.231-11.246 3.347-21.931Q689 475.154 689 465.231q0-3.077-.115-7.238-.116-4.16-1.347-8.224h57.616q35.354 0 58.985 23.631t23.631 58.985v308.769q0 35.354-23.631 58.985t-58.985 23.631H436.385q-35.354 0-58.985-23.631t-23.631-58.985v-57.616Zm15.831-81.307q-98.878 0-168.124-68.877Q132.23 564.478 132.23 465.6q0-98.878 68.877-168.124t167.755-69.246q98.878 0 168.123 68.877 69.246 68.877 69.246 167.755t-68.877 168.123q-68.876 69.246-167.754 69.246Zm-.143-58q74.379 0 126.576-52.424 52.198-52.424 52.198-126.802 0-74.379-52.424-126.577-52.424-52.197-126.802-52.197-74.379 0-126.577 52.423-52.197 52.424-52.197 126.803 0 74.379 52.423 126.576 52.424 52.198 126.803 52.198Zm-.226-179Z"/></svg>
			<svg class="bb-sorthandle" ng-if="item.name.toLowerCase()=='sequence'" xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 96 960 960" width="20"><path d="M358.154 670.692h371.692l-98.307-158.154-114.154 159.077-87.539-103.384-71.692 102.461ZM325.615 806q-35.04 0-58.828-23.787Q243 758.425 243 723.385v-438.77q0-35.04 23.787-58.828Q290.575 202 325.615 202h438.77q35.04 0 58.828 23.787Q847 249.575 847 284.615v438.77q0 35.04-23.787 58.828Q799.425 806 764.385 806h-438.77Zm0-58h438.77q9.231 0 16.923-7.692Q789 732.615 789 723.385v-438.77q0-9.23-7.692-16.923Q773.616 260 764.385 260h-438.77q-9.23 0-16.923 7.692Q301 275.385 301 284.615v438.77q0 9.23 7.692 16.923Q316.385 748 325.615 748Zm-130 188q-35.04 0-58.828-23.787Q113 888.425 113 853.385v-496.77h58v496.77q0 9.231 7.692 16.923Q186.384 878 195.615 878h496.77v58h-496.77ZM301 260v488-488Z"/></svg>
			<svg class="bb-sorthandle" ng-if="item.name.toLowerCase()=='video'" xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 96 960 960" width="20"><path d="M383.385 733.077 630.462 576 383.385 418.923v314.154ZM240.615 898q-35.04 0-58.828-23.787Q158 850.425 158 815.385v-478.77q0-35.04 23.787-58.828Q205.575 254 240.615 254h478.77q35.04 0 58.828 23.787Q802 301.575 802 336.615v478.77q0 35.04-23.787 58.828Q754.425 898 719.385 898h-478.77Zm0-58h478.77q9.23 0 16.923-7.692Q744 824.615 744 815.385v-478.77q0-9.23-7.692-16.923Q728.615 312 719.385 312h-478.77q-9.23 0-16.923 7.692Q216 327.385 216 336.615v478.77q0 9.23 7.692 16.923Q231.385 840 240.615 840ZM216 312v528-528Z"/></svg>
			<svg class="bb-sorthandle" ng-if="item.name.toLowerCase()=='audio'" xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 96 960 960" width="20"><path d="M626.091 832q-48.63 0-83.36-34.39Q508 763.219 508 714.09q0-48.629 34.417-84.359Q576.833 594 626 594q16.268 0 31.057 6.346 14.789 6.346 30.943 17.038V268h188v79.538H746V714q0 49.167-35.64 83.583Q674.719 832 626.091 832ZM140 652v-58h266v58H140Zm0-162v-58h410v58H140Zm0-164v-58h410v58H140Z"/></svg>
			<svg class="bb-sorthandle" ng-if="item.name.toLowerCase()=='svg'" xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 96 960 960" width="20"><path d="M342.154 934H192q-29.225 0-49.613-20.387Q122 893.225 122 864V726.846q41.154-10 65.077-44.307Q211 648.231 211 605t-23.923-77.539Q163.154 493.154 122 483.154V342q0-29.225 20.387-49.613Q162.775 272 192 272h146q10.769-42.308 41.346-66.846 30.577-24.539 72.654-24.539t72.654 24.539Q555.231 229.692 566 272h148q29.225 0 49.613 20.387Q784 312.775 784 342v149q42.308 10.769 66.846 41.346 24.539 30.577 24.539 72.654t-24.539 72.654Q826.308 708.231 784 719v145q0 29.225-20.387 49.613Q743.225 934 714 934H561.846q-4.769-46.154-36.807-77.577Q493 825 452 825t-73.039 31.423Q346.923 887.846 342.154 934ZM192 864h97.923q18.077-39.846 58.269-74.423Q388.385 755 452 755q63.615 0 104.808 34.577Q598 824.154 616.077 864H714V665.615h38.462q27.769-4.615 40.346-22.192 12.577-17.577 12.577-38.423t-12.577-38.423Q780.231 549 752.462 544.385H714V342H512.615v-38.462q-4.615-27.769-22.192-40.346-17.577-12.577-38.423-12.577t-38.423 12.577Q396 275.769 391.385 303.538V342H192v93.077q40.077 34.692 64.539 77.769Q281 555.923 281 605.241q0 50.91-24.961 92.335Q231.077 739 192 772.923V864Zm306.692-306.692Z"/></svg>
			<?php
		}
	}
}

if(!function_exists('wpsg_get_groups')) {
	function wpsg_get_groups(){
		return array(
			"anime" => esc_html__( "Anime", "bestbug" ),
			"background" => esc_html__( "Background", "bestbug" ),
			"overlay" => esc_html__( "Overlay", "bestbug" ),
			"padding" => esc_html__( "Padding", "bestbug" ),
			"margin" => esc_html__( "Margin", "bestbug" ),
			"marginplus" => esc_html__( "Margin Plus", "bestbug" ),
			"border" => esc_html__( "Border", "bestbug" ),
			"extended" => esc_html__( "Extended", "bestbug" ),
			"effect" => esc_html__( "Effect", "bestbug" ),
			"attributes" => esc_html__( "Attributes", "bestbug" ),
			"action" => esc_html__( "Action", "bestbug" ),
			"easing" => esc_html__( "Easing", "bestbug" ),
			"custom_css" => esc_html__( "Custom CSS", "bestbug" ),
			"htmltag" => esc_html__( "HTML Tag", "bestbug" ),
		);
	}
}

if(!function_exists('wpsg_get_fields')) {
	function wpsg_get_fields($height = '', $width = '', $ratio = ''){
		return array(
			'distance' => array(
				'delay' => array(
					"type" => "textfield",
					"heading" => esc_html__( "Delay", "bestbug" ),
					"value" => '0',
				),
				'duration' => array(
					"type" => "textfield",
					"heading" => esc_html__( "Distance", "bestbug" ),
					"value" => '0',
				),
			),
			'general' => array(
				'base' => array(
					"type" => "basic",
					"heading" => "",
					"value" => array(
						'alignX' => "",
						'alignY' => "",
						'x' => "",
						'y' => "",
						'width' => $width,
						'height' => $height,
						'ratio' => $ratio,
						'rotate' => "",
					),
					"class" => "layout-1",
				),
			),
			'overlay' => array(
				'background' => array(
					"type" => "colorpicker",
					"heading" => esc_html__( "Background", "bestbug" ),
					"value" => '',
				),
			),
			'background' => array(
				'image' => array(
					"type" => "image",
					"heading" => esc_html__( "Image", "bestbug" ),
					"value" => '',
				),
				'color' => array(
					"type" => "colorpicker",
					"heading" => esc_html__( "Color", "bestbug" ),
					"value" => '',
				),
				'size' => array(
					"type" => "dropdown",
					"heading" => esc_html__("Size", "bestbug"),
					"value" => '',
					"options" => array(
						'' => esc_html__("Default", "bestbug"),
						'auto' => esc_html__("Auto", "bestbug"),
						'contain' => esc_html__("Contain", "bestbug"),
						'cover' => esc_html__("Cover", "bestbug"),
					),
				),
				'position' => array(
					"type" => "dropdown",
					"heading" => esc_html__("Position", "bestbug"),
					"value" => '',
					"options" => array(
						'' => esc_html__("Default", "bestbug"),
						'left top' => esc_html__("Left - Top", "bestbug"),
						'left center' => esc_html__("Left - Center", "bestbug"),
						'left bottom' => esc_html__("Left - Bottom", "bestbug"),
						'right top' => esc_html__("Right - Top", "bestbug"),
						'right center' => esc_html__("Right - Center", "bestbug"),
						'right bottom' => esc_html__("Right - Bottom", "bestbug"),
						'center top' => esc_html__("Center - Top", "bestbug"),
						'center center' => esc_html__("Center - Center", "bestbug"),
						'center bottom' => esc_html__("Center - Bottom", "bestbug"),
					),
				),
				'repeat' => array(
					"type" => "dropdown",
					"heading" => esc_html__("Repeat", "bestbug"),
					"value" => '',
					"options" => array(
						'' => esc_html__("Default", "bestbug"),
						'no-repeat' => esc_html__("No-repeat", "bestbug"),
						'repeat' => esc_html__("Repeat", "bestbug"),
						'repeat-x' => esc_html__("Repeat X", "bestbug"),
						'repeat-y' => esc_html__("Repeat Y", "bestbug"),
					),
				),
			),
			'custom_css' => array(
				'css' => array(
					"type" => "code",
					"value" => "",
					"class" => "layout-1",
				),
			),
			'padding' => array(
				'padding' => array(
					"type" => "trbl",
					"value" => array(
						'top' => "",
						'left' => "",
						'bottom' => "",
						'right' => "",
					),
					'class' => 'layout-1'
				),
			),
			'margin' => array(
				'margin' => array(
					"type" => "trbl",
					"value" => array(
						'top' => "",
						'left' => "",
						'bottom' => "",
						'right' => "",
					),
					'class' => 'layout-1'
				),
			),
			'marginplus' => array(
				'no_marginleft' => array(
					"type" => "toggle",
					"heading" => esc_html__( "No Margin-left", "bestbug" ),
					"value" => 'false',
				),
				'no_margintop' => array(
					"type" => "toggle",
					"heading" => esc_html__( "No Margin-top", "bestbug" ),
					"value" => 'false',
				),
			),
			'border' => array(
				'color' => array(
					"type" => "colorpicker",
					"heading" => esc_html__( "Color", "bestbug" ),
					"value" => '',
				),
				'stl' => array(
					"type" => "dropdown",
					"heading" => esc_html__("Style", "bestbug"),
					"value" => '',
					"options" => array(
						'' => esc_html__("Default", "bestbug"),
						'solid' => esc_html__("Solid", "bestbug"),
						'dashed' => esc_html__("Dashed", "bestbug"),
						'dotted' => esc_html__("Dotted", "bestbug"),
						'double' => esc_html__("Double", "bestbug"),
						'groove' => esc_html__("Groove", "bestbug"),
						'inset' => esc_html__("Inset", "bestbug"),
						'outset' => esc_html__("Outset", "bestbug"),
						'ridge' => esc_html__("Ridge", "bestbug"),
					),
				),
				'width' => array(
					"type" => "trbl",
					"heading" => esc_html__( "Width", "bestbug" ),
					"value" => array(
						'top' => "",
						'left' => "",
						'bottom' => "",
						'right' => "",
					),
					'class' => 'layout-1'
				),
				'radius' => array(
					"type" => "radius",
					"heading" => esc_html__( "Radius", "bestbug" ),
					"value" => array(
						'topleft' => "",
						'topright' => "",
						'bottomright' => "",
						'bottomleft' => "",
					),
					'class' => 'layout-1'
				),
			),
			'extended' => array(
				'zoom' => array(
					"type" => "number",
					"heading" => esc_html__( "Zoom", "bestbug" ),
					'min' => '1',
					'step' => '0.1',
				),
				'opacity' => array(
					"type" => "number",
					"heading" => esc_html__( "Opacity", "bestbug" ),
					'min' => '0',
					'max' => '1',
					'step' => '0.1',
				),
				'blur' => array(
					"type" => "number",
					"heading" => esc_html__( "Blur", "bestbug" ),
					'min' => '0',
					'step' => '1',
				),
			),
			'effect' => array(
				'type' => array(
					"type" => "dropdown",
					"heading" => esc_html__("Type", "bestbug"),
					"value" => '',
					"options" => bb_get_cssclasses(),
				),
				'delay' => array(
					"type" => "dropdown",
					"heading" => esc_html__("Delay", "bestbug"),
					"value" => '',
					"options" => array(
						'' => esc_html__("None", "bestbug"),
						'animate__delay-1s' => esc_html__("1s", "bestbug"),
						'animate__delay-2s' => esc_html__("2s", "bestbug"),
						'animate__delay-3s' => esc_html__("3s", "bestbug"),
						'animate__delay-4s' => esc_html__("4s", "bestbug"),
						'animate__delay-5s' => esc_html__("5s", "bestbug"),
					),
				),
				'speed' => array(
					"type" => "dropdown",
					"heading" => esc_html__("Speed", "bestbug"),
					"value" => '',
					"options" => array(
						'' => esc_html__("Normal", "bestbug"),
						'animate__slow' => esc_html__("Slow", "bestbug"),
						'animate__slower' => esc_html__("Slower", "bestbug"),
						'animate__fast' => esc_html__("Fast", "bestbug"),
						'animate__faster' => esc_html__("Faster", "bestbug"),
					),
				),
				'repeat' => array(
					"type" => "dropdown",
					"heading" => esc_html__("Repeat", "bestbug"),
					"value" => '',
					"options" => array(
						'' => esc_html__("Default", "bestbug"),
						'animate__repeat-1' => esc_html__("1", "bestbug"),
						'animate__repeat-2' => esc_html__("2", "bestbug"),
						'animate__repeat-3' => esc_html__("3", "bestbug"),
						'animate__infinite' => esc_html__("Infinite", "bestbug"),
					),
				),
			),
			'action' => array(
				'type' => array(
					"type" => "dropdown",
					"heading" => esc_html__( "Type", "bestbug" ),
					"value" => '',
					"options" => array(
						'' => esc_html__( "Default", "bestbug" ),
						'js' => esc_html__("Javscript Triggered", "bestbug"),
						'tag' => esc_html__("Tag Link", "bestbug"),
						'scrollto' => esc_html__("Scroll To", "bestbug"),
						'image' => esc_html__("Image", "bestbug"),
						'youtube' => esc_html__("Youtube", "bestbug"),
						'vimeo' => esc_html__("Vimeo", "bestbug"),
						'ggmap' => esc_html__("Google Map", "bestbug"),
						'iframe' => esc_html__("Iframe", "bestbug"),
					),
				),
				'url' => array(
					"type" => "textfield",
					"heading" => esc_html__( "Link", "bestbug" ),
					"value" => "",
				),
				'target' => array(
					"type" => "dropdown",
					"heading" => esc_html__( "Target", "bestbug" ),
					"value" => '',
					"options" => array(
						'' => esc_html__( "Default", "bestbug" ),
						'_blank' => esc_html__( "New Window", "bestbug" ),
						'_self' => esc_html__( "Same Window", "bestbug" ),
					),
					'dependency' => array('element' => 'type', 'value' => array('js', 'tag')),
				),
			),
			'attributes' => array(
				'cst_class' => array(
					"type" => "textfield",
					"heading" => esc_html__( ".class", "bestbug" ),
					"value" => "",
				),
				'cst_id' => array(
					"type" => "textfield",
					"heading" => esc_html__( "#id", "bestbug" ),
					"value" => "",
				),
			),
			'easing' => array(
				'name' => array(
					"type" => "dropdown",
					"heading" => esc_html__( "Easing", "bestbug" ),
					"value" => 'linear',
					"options" => array(
						'linear' => 'linear',
						'easeInQuad' => 'easeInQuad',
						'easeInCubic' => 'easeInCubic',
						'easeInQuart' => 'easeInQuart',
						'easeInQuint' => 'easeInQuint',
						'easeInSine' => 'easeInSine',
						'easeInExpo' => 'easeInExpo',
						'easeInCirc' => 'easeInCirc',
						'easeInBack' => 'easeInBack',
						'easeInBounce' => 'easeInBounce',
						'easeOutQuad' => 'easeOutQuad',
						'easeOutCubic' => 'easeOutCubic',
						'easeOutQuart' => 'easeOutQuart',
						'easeOutQuint' => 'easeOutQuint',
						'easeOutSine' => 'easeOutSine',
						'easeOutExpo' => 'easeOutExpo',
						'easeOutCirc' => 'easeOutCirc',
						'easeOutBack' => 'easeOutBack',
						'easeOutBounce' => 'easeOutBounce',
						'easeInOutQuad' => 'easeInOutQuad',
						'easeInOutCubic' => 'easeInOutCubic',
						'easeInOutQuart' => 'easeInOutQuart',
						'easeInOutQuint' => 'easeInOutQuint',
						'easeInOutSine' => 'easeInOutSine',
						'easeInOutExpo' => 'easeInOutExpo',
						'easeInOutCirc' => 'easeInOutCirc',
						'easeInOutBack' => 'easeInOutBack',
						'easeInOutBounce' => 'easeInOutBounce',
						'easeOutInQuad' => 'easeOutInQuad',
						'easeOutInCubic' => 'easeOutInCubic',
						'easeOutInQuart' => 'easeOutInQuart',
						'easeOutInQuint' => 'easeOutInQuint',
						'easeOutInSine' => 'easeOutInSine',
						'easeOutInExpo' => 'easeOutInExpo',
						'easeOutInCirc' => 'easeOutInCirc',
						'easeOutInBack' => 'easeOutInBack',
						'easeOutInBounce' => 'easeOutInBounce',
					),
				),
			),
			'htmltag' => array(
				'tag' => array(
					"type" => "dropdown",
					"heading" => esc_html__( "Wrapping Tag", "bestbug" ),
					"value" => '',
					"options" => array(
						'' => esc_html__( "Default", "bestbug" ),
						'div' => '<div>',
						'span' => '<span>',
						'p' => '<p>',
						'h1' => '<h1>',
						'h2' => '<h2>',
						'h3' => '<h3>',
						'h4' => '<h4>',
						'h5' => '<h5>',
						'h6' => '<h6>',
						'a' => '<a>',
						'label' => '<label>',
					),
				),
			),
			'anime' => array(
				'action' => array(
					"type" => "dropdown",
					"heading" => esc_html__( "Action", "bestbug" ),
					"value" => 'scrollmagic',
					"options" => array(
						'scrollmagic' => esc_html__( "Follow scroll", "bestbug" ),
						'scroll' => esc_html__( "Scroll trigger", "bestbug" ),
						'autoplay' => esc_html__( "Autoplay", "bestbug" ),
					),
				),
				'direction' => array(
					"type" => "dropdown",
					"heading" => esc_html__( "Direction", "bestbug" ),
					"value" => 'normal',
					"options" => array(
						'' => esc_html__( "Default", "bestbug" ),
						'normal' => esc_html__( "Normal", "bestbug" ),
						'reverse' => esc_html__( "Reverse", "bestbug" ),
						'alternate' => esc_html__( "Alternate", "bestbug" ),
					),
					'dependency' => array('element' => 'action', 'value' => array('scroll', 'autoplay')),
				),
				'loop' => array(
					"type" => "number",
					"heading" => esc_html__( "Loop", "bestbug" ),
					'min' => -1,
					'step' => 1,
					"value" => 0,
					'dependency' => array('element' => 'action', 'value' => array('scroll', 'autoplay')),
				),
				// 'm_duration' => array(
				// 	"type" => "number",
				// 	"heading" => esc_html__( "Multiply time", "bestbug" ),
				// 	'min' => 1,
				// 	'step' => 0.1,
				// 	"value" => 1,
				// 	'dependency' => array('element' => 'action', 'value' => array('scroll', 'autoplay')),
				// ),
			),
			
		);
	}
}

function bb_get_cssclasses(){
	return array(
		'' => esc_html__("None", "bestbug"),
		'bounce' => esc_html__("bounce", "bestbug"),
		'flash' => esc_html__("flash", "bestbug"),
		'pulse' => esc_html__("pulse", "bestbug"),
		'rubberBand' => esc_html__("rubberBand", "bestbug"),
		'shakeX' => esc_html__("shakeX", "bestbug"),
		'shakeY' => esc_html__("shakeY", "bestbug"),
		'swing' => esc_html__("swing", "bestbug"),
		'tada' => esc_html__("tada", "bestbug"),
		'wobble' => esc_html__("wobble", "bestbug"),
		'jello' => esc_html__("jello", "bestbug"),
		'bounceIn' => esc_html__("bounceIn", "bestbug"),
		'bounceInDown' => esc_html__("bounceInDown", "bestbug"),
		'bounceInLeft' => esc_html__("bounceInLeft", "bestbug"),
		'bounceInRight' => esc_html__("bounceInRight", "bestbug"),
		'bounceInUp' => esc_html__("bounceInUp", "bestbug"),
		'bounceOut' => esc_html__("bounceOut", "bestbug"),
		'bounceOutDown' => esc_html__("bounceOutDown", "bestbug"),
		'bounceOutLeft' => esc_html__("bounceOutLeft", "bestbug"),
		'bounceOutRight' => esc_html__("bounceOutRight", "bestbug"),
		'bounceOutUp' => esc_html__("bounceOutUp", "bestbug"),
		'fadeIn' => esc_html__("fadeIn", "bestbug"),
		'fadeInDown' => esc_html__("fadeInDown", "bestbug"),
		'fadeInDownBig' => esc_html__("fadeInDownBig", "bestbug"),
		'fadeInLeft' => esc_html__("fadeInLeft", "bestbug"),
		'fadeInLeftBig' => esc_html__("fadeInLeftBig", "bestbug"),
		'fadeInRight' => esc_html__("fadeInRight", "bestbug"),
		'fadeInRightBig' => esc_html__("fadeInRightBig", "bestbug"),
		'fadeInUp' => esc_html__("fadeInUp", "bestbug"),
		'fadeInUpBig' => esc_html__("fadeInUpBig", "bestbug"),
		'fadeOut' => esc_html__("fadeOut", "bestbug"),
		'fadeOutDown' => esc_html__("fadeOutDown", "bestbug"),
		'fadeOutDownBig' => esc_html__("fadeOutDownBig", "bestbug"),
		'fadeOutLeft' => esc_html__("fadeOutLeft", "bestbug"),
		'fadeOutLeftBig' => esc_html__("fadeOutLeftBig", "bestbug"),
		'fadeOutRight' => esc_html__("fadeOutRight", "bestbug"),
		'fadeOutRightBig' => esc_html__("fadeOutRightBig", "bestbug"),
		'fadeOutUp' => esc_html__("No", "bestbug"),
		'fadeOutUpBig' => esc_html__("fadeOutUpBig", "bestbug"),
		'flip' => esc_html__("flip", "bestbug"),
		'flipInX' => esc_html__("flipInX", "bestbug"),
		'flipInY' => esc_html__("flipInY", "bestbug"),
		'flipOutX' => esc_html__("flipOutX", "bestbug"),
		'flipOutY' => esc_html__("flipOutY", "bestbug"),
		'lightSpeedIn' => esc_html__("lightSpeedIn", "bestbug"),
		'lightSpeedOut' => esc_html__("lightSpeedOut", "bestbug"),
		'rotateIn' => esc_html__("rotateIn", "bestbug"),
		'rotateInDownLeft' => esc_html__("rotateInDownLeft", "bestbug"),
		'rotateInDownRight' => esc_html__("rotateInDownRight", "bestbug"),
		'rotateInUpLeft' => esc_html__("rotateInUpLeft", "bestbug"),
		'rotateInUpRight' => esc_html__("rotateInUpRight", "bestbug"),
		'rotateOut' => esc_html__("rotateOut", "bestbug"),
		'rotateOutDownLeft' => esc_html__("rotateOutDownLeft", "bestbug"),
		'rotateOutDownRight' => esc_html__("rotateOutDownRight", "bestbug"),
		'rotateOutUpLeft' => esc_html__("rotateOutUpLeft", "bestbug"),
		'rotateOutUpRight' => esc_html__("rotateOutUpRight", "bestbug"),
		'slideInUp' => esc_html__("slideInUp", "bestbug"),
		'slideInDown' => esc_html__("slideInDown", "bestbug"),
		'slideInLeft' => esc_html__("slideInLeft", "bestbug"),
		'slideInRight' => esc_html__("slideInRight", "bestbug"),
		'slideOutUp' => esc_html__("slideOutUp", "bestbug"),
		'slideOutDown' => esc_html__("slideOutDown", "bestbug"),
		'slideOutLeft' => esc_html__("slideOutLeft", "bestbug"),
		'slideOutRight' => esc_html__("slideOutRight", "bestbug"),
		'zoomIn' => esc_html__("zoomIn", "bestbug"),
		'zoomInDown' => esc_html__("zoomInDown", "bestbug"),
		'zoomInLeft' => esc_html__("zoomInLeft", "bestbug"),
		'zoomInRight' => esc_html__("zoomInRight", "bestbug"),
		'zoomInUp' => esc_html__("zoomInUp", "bestbug"),
		'zoomOut' => esc_html__("zoomOut", "bestbug"),
		'zoomOutDown' => esc_html__("zoomOutDown", "bestbug"),
		'zoomOutLeft' => esc_html__("zoomOutLeft", "bestbug"),
		'zoomOutRight' => esc_html__("zoomOutRight", "bestbug"),
		'zoomOutUp' => esc_html__("zoomOutUp", "bestbug"),
		'hinge' => esc_html__("hinge", "bestbug"),
		'rollIn' => esc_html__("rollIn", "bestbug"),
		'rollOut' => esc_html__("rollOut", "bestbug"),
		'leaf' => esc_html__("leaf", "bestbug"),
		'spin' => esc_html__("spin", "bestbug"),
		'carrot' => esc_html__("carrot", "bestbug"),
	);
}