' . esc_html__( 'Settings', 'shopbuilder' ) . ''; $new_links[] = '' . esc_html__( 'Demo', 'shopbuilder' ) . ''; $new_links[] = '' . esc_html__( 'Documentation', 'shopbuilder' ) . ''; $links = array_merge( $new_links, $links ); $current = time(); // Check if current date is within promotional period (Sept 19 - Jan 5). $start_date = strtotime( '2025-11-12 00:00:00' ); $end_date = strtotime( '2025-12-30 23:59:59' ); $is_promo_period = $start_date <= $current && $current <= $end_date; $text = esc_html__( 'Get Pro', 'shopbuilder' ); if ( $is_promo_period ) { $text = esc_html__( 'Get 60% off', 'shopbuilder' ); } if ( ! rtsb()->has_pro() ) { $links['shopbuilder_pro'] = '' . $text . ''; } return $links; } /** * Plugin links row. * * @param array $links Links. * @param string $file File. * * @return array */ public function plugin_row_meta( $links, $file ) { if ( RTSB_ACTIVE_FILE_NAME === $file ) { $report_url = 'https://www.radiustheme.com/contact/'; $row_meta['issues'] = sprintf( /* translators: %1$s: Report URL, %2$s: Facing issue?, %3$s: Please open a support ticket. */ '%2$s %3$s', esc_url( $report_url ), esc_html__( 'Facing issue?', 'shopbuilder' ), esc_html__( 'Please open a support ticket.', 'shopbuilder' ) ); return array_merge( $links, $row_meta ); } return (array) $links; } /*** * @return mixed */ public function deactivation_popup() { global $pagenow; if ( 'plugins.php' !== $pagenow ) { return; } $this->dialog_box_style(); $this->deactivation_scripts(); ?>