HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/hanode/public_html/wp-content/plugins/carousel-slider/modules/HeroCarousel/Helper.php
<?php

namespace CarouselSlider\Modules\HeroCarousel;

defined( 'ABSPATH' ) || exit;

/**
 * Helper class
 *
 * @package Modules/HeroCarousel
 */
class Helper {
	/**
	 * Get background size
	 *
	 * @return array
	 */
	public static function background_size(): array {
		return [
			'auto'      => 'auto',
			'contain'   => 'contain',
			'cover'     => 'cover',
			'100% 100%' => '100%',
			'100% auto' => '100% width',
			'auto 100%' => '100% height',
		];
	}

	/**
	 * Get background positions
	 *
	 * @return array
	 */
	public static function background_position(): array {
		return [
			'left top'      => 'left top',
			'left center'   => 'left center',
			'left bottom'   => 'left bottom',
			'center top'    => 'center top',
			'center center' => 'center',
			'center bottom' => 'center bottom',
			'right top'     => 'right top',
			'right center'  => 'right center',
			'right bottom'  => 'right bottom',
		];
	}

	/**
	 * Get animations
	 *
	 * @return array
	 */
	public static function animations(): array {
		return [
			''            => esc_html__( 'None', 'carousel-slider' ),
			'fadeInDown'  => esc_html__( 'Fade In Down', 'carousel-slider' ),
			'fadeInUp'    => esc_html__( 'Fade In Up', 'carousel-slider' ),
			'fadeInRight' => esc_html__( 'Fade In Right', 'carousel-slider' ),
			'fadeInLeft'  => esc_html__( 'Fade In Left', 'carousel-slider' ),
			'zoomIn'      => esc_html__( 'Zoom In', 'carousel-slider' ),
		];
	}

	/**
	 * Get text alignment
	 *
	 * @return string[]
	 */
	public static function text_alignment(): array {
		return [
			'left'   => 'left',
			'center' => 'center',
			'right'  => 'right',
		];
	}

	/**
	 * Get link type
	 *
	 * @return array
	 */
	public static function link_type(): array {
		return [
			'none'   => esc_html__( 'No Link', 'carousel-slider' ),
			'full'   => esc_html__( 'Full Slide', 'carousel-slider' ),
			'button' => esc_html__( 'Button', 'carousel-slider' ),
		];
	}

	/**
	 * Link target
	 *
	 * @return string[]
	 */
	public static function link_target(): array {
		return [
			'_blank' => __( 'New window', 'carousel-slider' ),
			'_self'  => __( 'Same window', 'carousel-slider' ),
		];
	}

	/**
	 * Ken burns effects
	 *
	 * @return array
	 */
	public static function ken_burns_effects(): array {
		return [
			''         => __( 'None', 'carousel-slider' ),
			'zoom-in'  => __( 'Zoom In', 'carousel-slider' ),
			'zoom-out' => __( 'Zoom Out', 'carousel-slider' ),
		];
	}

	/**
	 * Button size
	 *
	 * @return array
	 */
	public static function button_size(): array {
		return [
			'large'  => esc_html__( 'Large', 'carousel-slider' ),
			'medium' => esc_html__( 'Medium', 'carousel-slider' ),
			'small'  => esc_html__( 'Small', 'carousel-slider' ),
		];
	}

	/**
	 * Button type
	 *
	 * @return array
	 */
	public static function button_type(): array {
		return [
			'normal' => esc_html__( 'Normal', 'carousel-slider' ),
			'stroke' => esc_html__( 'Stroke', 'carousel-slider' ),
		];
	}
}