Astra_Builder_Footer::__call( string $func, array $params )
Callback when method not exists.
Description
Parameters
- $func
-
(string) (Required) function name.
- $params
-
(array) (Required) function parameters.
Source
File: inc/builder/markup/class-astra-builder-footer.php
public function __call( $func, $params ) { if ( in_array( $func, self::$methods, true ) ) { if ( 0 === strpos( $func, 'footer_html_' ) ) { Astra_Builder_UI_Controller::render_html_markup( str_replace( '_', '-', $func ) ); } elseif ( 0 === strpos( $func, 'button_' ) ) { $index = (int) substr( $func, strrpos( $func, '_' ) + 1 ); if ( $index ) { Astra_Builder_UI_Controller::render_button( $index, 'footer' ); } } elseif ( 0 === strpos( $func, 'footer_social_' ) ) { $index = (int) substr( $func, strrpos( $func, '_' ) + 1 ); if ( $index ) { Astra_Builder_UI_Controller::render_social_icon( $index, 'footer' ); } } } }
Expand full source code Collapse full source code View on Trac