'; printf( '
%s
', esc_html__( 'Everything in the free version stays free, with as many courts as you like. BoardIt Pro adds:', 'boardit' ) ); 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( '%s
', esc_html__( 'This feature is part of BoardIt Pro.', 'boardit' ) ); printf( '%s
', esc_html( $intro ) ); echo '