Image_Alignment_Setting

Class Image_Alignment_Setting.


Source

File: src/Tickets_Wallet_Plus/Passes/Pdf/Settings/Image_Alignment_Setting.php

class Image_Alignment_Setting extends Dropdown_Setting_Abstract {
	/**
	 * @inheritDoc
	 */
	public function get_slug(): string {
		return 'tec_tickets_wallet_plus_pdf_header_image_alignment';
	}

	/**
	 * @inheritDoc
	 */
	public function get_label(): string {
		return esc_html__( 'Image alignment', 'event-tickets-wallet-plus' );
	}

	/**
	 * @inheritDoc
	 */
	public function get_key(): string {
		return 'tec-tickets-wallet-plus-pdf-header-image-alignment';
	}

	/**
	 * @inheritDoc
	 */
	public function get_default(): string {
		$default_value = tribe_get_option( Email_Settings::$option_header_image_alignment, 'left' );
		return $default_value;
	}

	/**
	 * @inheritDoc
	 */
	public function get_options(): array {
		return [
			'left'   => esc_html__( 'Left', 'event-tickets-wallet-plus' ),
			'center' => esc_html__( 'Center', 'event-tickets-wallet-plus' ),
			'right'  => esc_html__( 'Right', 'event-tickets-wallet-plus' ),
		];
	}
}

Top ↑

Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

Methods