'', 'variant' => '', ], $atts, 'aldine_page_section' ); return sprintf( '
%2$s%3$s
', ( $atts['variant'] ) ? " page-section--{$atts['variant']}" : '', ( $atts['title'] ) ? "

{$atts['title']}

" : '', $content ); } /** * Shortcode for custom Call to Action. * * @param array $atts * * @return string */ function call_to_action( $atts ) { $atts = shortcode_atts( [ 'link' => '#', 'text' => 'Call To Action', ], $atts, 'aldine_call_to_action' ); return sprintf( '%2$s', $atts['link'], $atts['text'] ); }