Astra_Get_Footer_Builder_Design::configure()

Configure the ability.


Description


Source

File: inc/abilities/customizer/footer/class-astra-get-footer-builder-design.php

	public function configure() {
		$this->id          = 'astra/get-footer-builder-design';
		$this->label       = __( 'Get Astra Footer Builder Design Options', 'astra' );
		$this->description = __( 'Retrieves design options for Astra footer builder sections (above, primary, below) including background, border color, border size, padding and margin.', 'astra' );
		$this->category    = 'astra';

		$this->meta = array(
			'tool_type'   => 'read',
			'constraints' => array(
				'usage_hints' => array(
					'section'               => 'Optional. Specify "above", "primary", or "below" to get design for specific section. If omitted, returns all sections. When user says "footer design" without specifying section, omit this parameter to show all sections. When user says "primary footer design" or clearly wants one section, use that specific section.',
					'background'            => 'Responsive background object with desktop/tablet/mobile keys. Each device contains: background-color (CSS color), background-image (URL), background-repeat (repeat/no-repeat/repeat-x/repeat-y), background-position (CSS position), background-size (auto/cover/contain), background-attachment (scroll/fixed), background-media (media ID), background-type (color/image/gradient), overlay-type (color/gradient), overlay-color (CSS color), overlay-gradient (CSS gradient).',
					'border_color'          => 'Top border color in CSS color format (hex, rgba, color name, or empty string if not set). Adds visual separation between footer section and content above it.',
					'border_size'           => 'Top border thickness in pixels (0-600). Value of 0 means no border. Commonly used values: 1-5px for subtle separation.',
					'padding'               => 'Responsive spacing object with desktop/tablet/mobile keys, each containing top/right/bottom/left values (numeric with unit), plus desktop-unit/tablet-unit/mobile-unit (px/em/rem/%). Controls internal spacing of the footer section.',
					'margin'                => 'Responsive spacing object with desktop/tablet/mobile keys, each containing top/right/bottom/left values (numeric with unit), plus desktop-unit/tablet-unit/mobile-unit (px/em/rem/%). Controls external spacing around the footer section.',
					'response_presentation' => 'When presenting results to user, provide a clear summary of the design settings for the requested section(s). Include: 1) Background settings (color/image/gradient if set), 2) Border configuration (color and size if present), 3) Padding values (desktop at minimum), 4) Margin values if set. Mention which sections were retrieved. Example: "Primary footer has white background (#ffffff), 1px gray border on top, 60px top/bottom padding on desktop. Above footer has no border, gradient background."',
				),
			),
		);
	}

User Contributed Notes

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