HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //home/globfdxw/diasporameetsafrica.com/wp-content/plugins/lavelo-core/kc/library.php
<?php
/**
 * King Composer Library
 * Common Fields
 */
class LaveloLibrary {

	// Get Theme Name
	public static function lavelo_kc_cat_name() {
		return esc_html__( "by Lavelo", 'lavelo-core' );
	}

	// Extra Class
	public static function lavelo_class_option() {
		return array(
		  "type" => "text",
		  "label" => esc_html__( "Extra class name", 'lavelo-core' ),
		  "name" => "class",
		  "description" => esc_html__( "Custom styled class name.", 'lavelo-core')
		);
	}

	// ID
	public static function lavelo_id_option() {
		return array(
		  "type" => "text",
		  "label" => esc_html__( "Element ID", 'lavelo-core' ),
		  "name" => "id",
		  'value' => '',
		  "description" => esc_html__( "Enter your ID for this element. If you want.", 'lavelo-core')
		);
	}

	// Open Link in New Tab
	public static function lavelo_open_link_tab() {
		return array(
			"type" => "toggle",
			"label" => esc_html__( "Open New Tab? (Links)", 'lavelo-core' ),
			"name" => "open_link",
		);
	}

	/**
	 * Carousel Default Options
	 */

	// Loop
	public static function lavelo_carousel_loop() {
		return array(
			"type" => "toggle",
			"label" => esc_html__( "Disable Loop?", 'lavelo-core' ),
			"name" => "carousel_loop",
			"description" => esc_html__( "Continuously moving carousel, if enabled.", 'lavelo-core')
		);
	}
	// Items
	public static function lavelo_carousel_items() {
		return array(
		  "type" => "text",
			"label" => esc_html__( "Items", 'lavelo-core' ),
		  "name" => "carousel_items",
		  "description" => esc_html__( "Enter the numeric value of how many items you want in per slide.", 'lavelo-core')
		);
	}
	// Margin
	public static function lavelo_carousel_margin() {
		return array(
		  "type" => "text",
			"label" => esc_html__( "Margin", 'lavelo-core' ),
		  "name" => "carousel_margin",
		  "description" => esc_html__( "Enter the numeric value of how much space you want between each carousel item.", 'lavelo-core')
		);
	}
	// Dots
	public static function lavelo_carousel_dots() {
		return array(
		  "type" => "toggle",
			"label" => esc_html__( "Dots", 'lavelo-core' ),
		  "name" => "carousel_dots",
		  "description" => esc_html__( "If you want Carousel Dots, enable it.", 'lavelo-core')
		);
	}
	// Nav
	public static function lavelo_carousel_nav() {
		return array(
		  "type" => "toggle",
			"label" => esc_html__( "Navigation", 'lavelo-core' ),
		  "name" => "carousel_nav",
		  "description" => esc_html__( "If you want Carousel Navigation, enable it.", 'lavelo-core')
		);
	}
	// Autoplay Timeout
	public static function lavelo_carousel_autoplay_timeout() {
		return array(
		  "type" => "text",
			"label" => esc_html__( "Autoplay Timeout", 'lavelo-core' ),
		  "group" => esc_html__( "Carousel", 'lavelo-core' ),
		  "name" => "carousel_autoplay_timeout",
		  "description" => esc_html__( "Change carousel Autoplay timing value. Default : 5000. Means 5 seconds.", 'lavelo-core')
		);
	}
	// Autoplay
	public static function lavelo_carousel_autoplay() {
		return array(
		  "type" => "toggle",
			"label" => esc_html__( "Autoplay", 'lavelo-core' ),
		  "name" => "carousel_autoplay",
		  "description" => esc_html__( "If you want to start Carousel automatically, enable it.", 'lavelo-core')
		);
	}
	// Animate Out
	public static function lavelo_carousel_animateout() {
		return array(
		  "type" => "toggle",
			"label" => esc_html__( "Animate Out", 'lavelo-core' ),
		  "name" => "carousel_animate_out",
		  "description" => esc_html__( "CSS3 animation out.", 'lavelo-core')
		);
	}
	// Mouse Drag
	public static function lavelo_carousel_mousedrag() {
		return array(
		  "type" => "toggle",
			"label" => esc_html__( "Disable Mouse Drag?", 'lavelo-core' ),
		  "name" => "carousel_mousedrag",
		  "description" => esc_html__( "If you want to disable Mouse Drag, check it.", 'lavelo-core')
		);
	}
	// Auto Width
	public static function lavelo_carousel_autowidth() {
		return array(
		  "type" => "toggle",
			"label" => esc_html__( "Auto Width", 'lavelo-core' ),
		  "name" => "carousel_autowidth",
		  "description" => esc_html__( "Adjust Auto Width automatically for each carousel items.", 'lavelo-core')
		);
	}
	// Auto Height
	public static function lavelo_carousel_autoheight() {
		return array(
		  "type" => "toggle",
			"label" => esc_html__( "Auto Height", 'lavelo-core' ),
		  "name" => "carousel_autoheight",
		  "description" => esc_html__( "Adjust Auto Height automatically for each carousel items.", 'lavelo-core')
		);
	}
	// Tablet
	public static function lavelo_carousel_tablet() {
		return array(
		  "type" => "text",
			"label" => esc_html__( "Tablet", 'lavelo-core' ),
		  "name" => "carousel_tablet",
		  "description" => esc_html__( "Enter number of items to show in tablet.", 'lavelo-core')
		);
	}
	// Mobile
	public static function lavelo_carousel_mobile() {
		return array(
		  "type" => "text",
			"label" => esc_html__( "Mobile", 'lavelo-core' ),
		  "name" => "carousel_mobile",
		  "description" => esc_html__( "Enter number of items to show in mobile.", 'lavelo-core')
		);
	}
	// Small Mobile
	public static function lavelo_carousel_small_mobile() {
		return array(
		  "type" => "text",
			"label" => esc_html__( "Small Mobile", 'lavelo-core' ),
		  "name" => "carousel_small_mobile",
		  "description" => esc_html__( "Enter number of items to show in small mobile.", 'lavelo-core')
		);
	}
}