'; printf( '

%s

', esc_html__( 'Pro', 'boardit' ) ); printf( '

%s

', esc_html__( 'Everything in the free version stays free, with as many courts as you like. BoardIt Pro adds:', 'boardit' ) ); echo ''; self::render_actions(); echo ''; } /** * Knoppen om Pro te proberen of te kopen (of "binnenkort beschikbaar"). */ private static function render_actions() { $url = self::upgrade_url(); $trial = self::trial_url(); if ( '' !== $url ) { echo '

'; if ( '' !== $trial ) { printf( '%2$s ', esc_url( $trial ), esc_html__( 'Start free trial', 'boardit' ) ); } printf( '%3$s', esc_attr( '' !== $trial ? '' : ' button-primary' ), esc_url( $url ), esc_html__( 'Upgrade to BoardIt Pro', 'boardit' ) ); echo '

'; } else { printf( '

%s

', esc_html__( 'BoardIt Pro will be available soon.', 'boardit' ) ); } } /** * Pagina Statistieken zonder Pro: wat de pagina laat zien, met de knoppen naar Pro. */ public function render_stats_preview() { $this->render_feature_preview( 'stats', __( 'Statistics', 'boardit' ), __( 'See how your courts are used, so you can plan lessons, competitions and maintenance at the right moments.', 'boardit' ), array( __( 'Busiest days', 'boardit' ), __( 'Busiest times', 'boardit' ), __( 'Court occupancy', 'boardit' ), __( 'Monthly trend', 'boardit' ), __( 'Top 10 users', 'boardit' ), __( 'Top 10 cancellations', 'boardit' ), ) ); } /** * Pagina Vaste reserveringen zonder Pro: wat de pagina doet, met de knoppen naar Pro. */ public function render_fixed_preview() { $this->render_feature_preview( 'fixed_reservations', __( 'Fixed reservations', 'boardit' ), __( 'Block courts for lessons, competitions, social evenings or maintenance. Members see these blocks on the board and cannot book those courts.', 'boardit' ), array( __( 'One-time', 'boardit' ), __( 'Weekly recurring', 'boardit' ), __( 'Several courts at once', 'boardit' ), __( 'Your own description on the board, for example "Youth lesson"', 'boardit' ), ) ); } /** * Voorproefje van een Pro-pagina: alleen uitleg, geen formulieren of gegevens (geen trialware). * * @param string $feature Naam uit Boardit_Features::all(). * @param string $title Titel van de pagina. * @param string $intro Wat de functie doet. * @param string[] $points Onderdelen van de functie. */ private function render_feature_preview( $feature, $title, $intro, array $points ) { if ( ! current_user_can( 'manage_options' ) ) { return; } printf( '
', esc_attr( $feature ) ); printf( '

%1$s %2$s

', esc_html( $title ), esc_html__( 'Pro', 'boardit' ) ); printf( '

%s

', esc_html__( 'This feature is part of BoardIt Pro.', 'boardit' ) ); printf( '

%s

', esc_html( $intro ) ); echo ''; self::render_actions(); printf( '

%2$s

', esc_url( Boardit_Features::upgrade_page_url() ), esc_html__( 'See all Pro features', 'boardit' ) ); echo '
'; } /** * Link "Available in BoardIt Pro" naar deze pagina. */ public static function render_preview_link() { printf( '%2$s', esc_url( Boardit_Features::upgrade_page_url() ), esc_html__( 'Available in BoardIt Pro', 'boardit' ) ); } }