' . esc_html__( 'Settings', 'cpod-kit' ) . '', '' . esc_html__( 'Modules', 'cpod-kit' ) . '' ); return $links; } /** Explain modules paused because the old plugin is still active. */ public function paused_notice() { // Only on the Plugins screen and the plugin's own screens. if ( ! current_user_can( 'activate_plugins' ) || ( 'plugins.php' !== ( isset( $GLOBALS['pagenow'] ) ? $GLOBALS['pagenow'] : '' ) && 0 !== strpos( TopBar::current_page(), 'cpod' ) ) ) { return; } $paused = array(); foreach ( Modules::all() as $id => $module ) { if ( 'paused' === Modules::state( $id ) ) { $paused[ Modules::conflict( $id ) ][] = $module['name']; } } foreach ( $paused as $plugin => $names ) { echo '
' . esc_html( sprintf( /* translators: 1: old plugin name, 2: module names */ __( '%1$s is still active, so cPOD Kit has paused: %2$s. Deactivate %1$s to use cPOD Kit instead; its settings are copied and never changed.', 'cpod-kit' ), $plugin, implode( ', ', $names ) ) ) . ' ' . esc_html__( 'Plugins', 'cpod-kit' ) . '
$url ) { $out[] = '' . esc_html( $label ) . ''; } echo implode( ' ยท ', $out ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>