'', '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' => '#', 'url' => false, 'text' => 'Call To Action', ], $atts, 'aldine_call_to_action' ); // Fallback for shortcodes using the old url attribute if ( $atts['link'] === '#' && $atts['url'] ) { $atts['link'] = $atts['url']; } return sprintf( '%2$s', $atts['link'], $atts['text'] ); }