Updated pib_render_button function to check for widgets and shortcodes also