block with connection info and disconnect action. * Receives a fully-resolved $view_data array — no decision logic here. */ class ContaiPublisuitesConnectedSection { private array $view_data; public function __construct(array $view_data) { $this->view_data = $view_data; } public function render(): void { $config = $this->view_data['config']; $confirm_message = esc_js( __('Are you sure you want to disconnect from the marketplace? You will need to reconnect later.', '1platform-content-ai') ); ?>
✓
view_data['site_url']); ?>
view_data['secondary_cta_action'])) : ?>
view_data['nonce_action'], $this->view_data['nonce_field']); ?>
view_data['nonce_action'], $this->view_data['nonce_field']); ?>
format(get_option('date_format') . ' ' . get_option('time_format')); } catch (Exception $e) { return $dateString; } } }