get_sections(); $charitable_sub_sections = 'marketing' === $charitable_active_tab ? charitable_get_admin_settings()->get_sub_sections_marketing() : array(); $charitable_newsletter_addon_active = class_exists( 'Charitable_Newsletter_Connect' ); $charitable_show_return = $charitable_group !== $charitable_active_tab; $charitable_css = ''; // Resolve the effective sub_tab for routing. Marketing always has a sub_tab; default to newsletters. if ( 'marketing' === $charitable_active_tab && '' === $charitable_active_sub_tab ) { $charitable_active_sub_tab = 'newsletters'; } if ( $charitable_show_return ) { /** * Filter the return link text. * * @since 1.6.19 * * @param string $default The default return link text. * @param string $active_tab The active tab. * @param string $group The current group. */ $charitable_return_tab_text = apply_filters( 'charitable_settings_return_tab_text', sprintf( /* translators: %s: tab name */ __( '← Return to %s', 'charitable' ), $charitable_active_tab ), $charitable_active_tab, $charitable_group ); /** * Filter the return link URL. * * @since 1.6.19 * * @param string $default The default return link URL * @param string $active_tab The active tab. * @param string $group The current group. */ $charitable_return_tab_url = apply_filters( 'charitable_settings_return_tab_url', add_query_arg( array( 'tab' => $charitable_active_tab ), admin_url( 'admin.php?page=charitable-settings' ) ), $charitable_active_tab, $charitable_group ); } ob_start(); ?>