Astra_Builder_Footer::__construct()

Constructor


Description


Source

File: inc/builder/markup/class-astra-builder-footer.php

		public function __construct() {

			if ( true === Astra_Builder_Helper::$is_header_footer_builder_active ) {

				$this->remove_existing_actions();

				// Footer Builder.
				add_action( 'astra_footer', array( $this, 'footer_markup' ), 10 );

				add_action( 'astra_above_footer', array( $this, 'above_footer' ), 10 );
				add_action( 'astra_primary_footer', array( $this, 'primary_footer' ), 10 );
				add_action( 'astra_below_footer', array( $this, 'below_footer' ), 10 );

				add_action( 'astra_render_footer_column', array( $this, 'render_column' ), 10, 2 );

				// Core Components.
				add_action( 'astra_footer_copyright', array( $this, 'footer_copyright' ), 10 );

				for ( $index = 1; $index <= Astra_Builder_Helper::$component_limit; $index++ ) {

					// Buttons.
					add_action( 'astra_footer_button_' . $index, array( $this, 'button_' . $index ) );
					self::$methods[] = 'button_' . $index;

					// Htmls.
					add_action( 'astra_footer_html_' . $index, array( $this, 'footer_html_' . $index ) );
					self::$methods[] = 'footer_html_' . $index;

					// Social Icons.
					add_action( 'astra_footer_social_' . $index, array( $this, 'footer_social_' . $index ) );
					self::$methods[] = 'footer_social_' . $index;

				}

				// Navigation menu.
				add_action( 'astra_footer_menu', array( $this, 'footer_menu' ) );
			}
		}


User Contributed Notes

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