get_shortcode_manager_instance()->render( $atts ); } /** * Callback function for rendering amazon_textlink shortcode * * * @since 1.4 * * @param array $atts Shortcode attributes and values. * * @return HTML HTML for displaying the templates. */ public function amazon_textlink_shortcode_callback( $atts ) { return $this->get_shortcode_manager_instance()->render( $atts ); } /** * Create only a single instance of the Aalb Shortcode manager. * No need to create an instance for rendering each shortcode. * * @since 1.5.0 * @return Shortcode_Manager The instance of Aalb_Shortcode. */ public function get_shortcode_manager_instance() { if ( is_null( $this->shortcode_manager ) ) { $this->shortcode_manager = new Shortcode_Manager(); } return $this->shortcode_manager; } } ?>