Astra_Get_Sidebar_Style::execute( array $args )

Execute the ability.


Description


Parameters

$args

(array) (Required) Input arguments.


Return

(array) Result array.


Source

File: inc/abilities/customizer/general/sidebar/class-astra-get-sidebar-style.php

	public function execute( $args ) {
		$style = astra_get_option( 'site-sidebar-style', 'unboxed' );

		$style_labels = array(
			'unboxed' => 'Unboxed',
			'boxed'   => 'Boxed',
		);

		return Astra_Abilities_Response::success(
			__( 'Retrieved sidebar style successfully.', 'astra' ),
			array(
				'style'            => $style,
				'style_label'      => isset( $style_labels[ $style ] ) ? $style_labels[ $style ] : $style,
				'available_styles' => $style_labels,
			)
		);
	}


User Contributed Notes

You must log in before being able to contribute a note or feedback.