'description' => esc_attr__( 'Controls the text color of tlVA -WsÒϾl => '', 'default' => $fusion_settings->get( 'flip_boxes_front_text' ), 'group' => esc_attr__( 'Design', 'fusion-builder' ), ], [ 'type' => 'colorpickeralpha', 'heading' l־l -WsO@ܾltr__( 'Controls the background color of the backside. IMPORTANT: Flip boxes must have background colors to work correctly in all browsers.', 'fusion-builder' ), 'param_name' => 'background_color_back', 'value' l ;HAlcAI1VA`lzʒR;HAl|VA$ƾl.W|WAȆl|rR6TA esc_attr__( 'Background Image Backside', 'fusion-builder' ), dhle*ldhlBW1`*l)lIcdhlack', 'value' => '', 'group' => esc_attr__( 'Design', 'fusion-builder' ), ], [ 'type' => 'textfield', 'head8dhleվl`)lBW1Q>l)lIc`dhlPBFA1VAPBFA wVA 'value' => '', 'hidden' => true, 'group' => esc_attr__( 'DesHchlel@lBW1Hl RHlIcpchlPBFA1VAPBFA wVAlor of the backside. ', 'fusion-builder' ), 'param_name' => 'title_back_color', 'valRHl ;HAlcAI1VAlzʒR;HA#l|VAPBFA wVA => 'colorpickeralpha', 'heading' => esc_attr__( 'Text Color Backside', 'fusionahle{llBW1UlklIcahl@ l1VAml wVAet( 'flip_boxes_back_text' ), 'preview' => $hover_preview, 'group' => esc_PBFA˪?g`hlgl+i 6l llވSVAjl1VA0rl wVA 'param_name' => 'border_size', 'value' => '', 'min' => '0', chleվlSHlBW1el`:lIcchll ], [ 'type' => 'colorpickeralpha', 'heading' => esc_attr__( 'Border Color', 'fusion-builder' )`,l˪?g(`hl,lJwP`hl0,l3g}wx`hlA`hl+{5`hl' ), 'dependency' => [ [ 'element' => 'border_size', 'value' =l@lxlllSl1 wVAusion-builder' ), 'description' => esc_attr__( 'Controls the flip box border radius. In pi^hleDlDlBW1)߾l@DlIc^hlPBFA1VAo embed events anywhere on your site.', 'wpforms-lite' ), esc_attr( $step['button_class'] ), esc_url( $step['button_url'] ), esc_html( $step['button_text'] ) ); } /** * Generate and output footer section HTML. * * @since 1.9.8.6 */ protected function output_section_footer(): void { printf( '

%s

', esc_html__( 'From the same team trusted by over 6 million sites.', 'wpforms-lite' ) ); } /** * Step 'Result' data. * * @since 1.9.8.6 * * @return array Step data. */ protected function get_data_step_result(): array { $step = $this->get_default_step_data(); $plugin_license_level = $this->get_plugin_license_level(); if ( $plugin_license_level === 'lite' ) { $this->apply_lite_step_data( $step ); } elseif ( $plugin_license_level === 'pro' ) { $this->apply_pro_step_data( $step ); } return $step; } /** * Whether the plugin is finished setup or not. * * @since 1.9.8.6 */ protected function is_plugin_finished_setup(): bool { if ( ! $this->is_plugin_configured() ) { return false; } return $this->get_plugin_license_level() === 'pro'; } /** * Get default step data. * * @since 1.9.8.6 * * @return array Default step data. */ private function get_default_step_data(): array { return [ 'icon' => 'step-3.svg', 'section_class' => $this->output_data['plugin_setup'] ? '' : 'grey', 'button_text' => esc_html__( 'Learn More', 'wpforms-lite' ), 'button_class' => 'grey disabled', 'button_url' => '', ]; } /** * Get plugin license level. * * @since 1.9.8.6 * * @return string License level ('lite', 'pro') or false if not activated. */ private function get_plugin_license_level(): string { if ( ! function_exists( 'sugar_calendar' ) ) { return 'lite'; } $sugar_calendar = sugar_calendar(); return $sugar_calendar->__get( 'is_pro' ) ? 'pro' : 'lite'; } /** * Apply lite version step data. * * @since 1.9.8.6 * * @param array $step Step data array (passed by reference). */ private function apply_lite_step_data( array &$step ): void { $step['button_url'] = $this->config['sugar-calendar_addon_page']; $step['button_class'] = $this->output_data['plugin_setup'] ? 'button-primary' : 'grey disabled'; } /** * Apply pro version step data. * * @since 1.9.8.6 * * @param array $step Step data array (passed by reference). */ private function apply_pro_step_data( array &$step ): void { $addon_installed = array_key_exists( $this->config['sugar-calendar_addon'], $this->output_data['all_plugins'] ); $configured = $this->is_plugin_configured(); $step['button_text'] = $addon_installed && $configured ? esc_html__( 'Sugar Calendar Pro Installed & Activated', 'wpforms-lite' ) : esc_html__( 'Install Now', 'wpforms-lite' ); $step['button_class'] = $this->output_data['plugin_setup'] || ! $configured ? 'grey disabled' : 'button-primary'; $step['icon'] = $addon_installed && $configured ? 'step-complete.svg' : 'step-3.svg'; } /** * Whether a plugin is configured or not. * * @since 1.9.8.6 * * @return bool True if plugin is configured properly. */ protected function is_plugin_configured(): bool { if ( ! $this->is_plugin_activated() ) { return false; } $events = get_posts( [ 'post_type' => 'sc_event', 'post_status' => 'any', 'posts_per_page' => 1, 'fields' => 'ids', ] ); return ! empty( $events ); } /** * Whether a plugin is active or not. * * @since 1.9.8.6 * * @return bool True if the plugin is active. */ protected function is_plugin_activated(): bool { return ( ( function_exists( 'sugar_calendar' ) || class_exists( 'Sugar_Calendar\Plugin' ) ) && ( is_plugin_active( $this->config['lite_plugin'] ) || is_plugin_active( $this->config['pro_plugin'] ) ) ); } /** * Whether a plugin is available (class/function exists). * * @since 1.9.8.6 * * @return bool True if plugin is available. */ protected function is_plugin_available(): bool { return class_exists( 'Sugar_Calendar\Plugin' ) || function_exists( 'sugar_calendar' ); } /** * Whether pro version is active. * * @since 1.9.8.6 * * @return bool True if pro version is active. */ protected function is_pro_active(): bool { if ( ! function_exists( 'sugar_calendar' ) ) { return false; } return sugar_calendar()->is_pro(); } /** * Get the heading for the install step. * * @since 1.9.8.6 * * @return string Install step heading. */ protected function get_install_heading(): string { return esc_html__( 'Install and Activate Sugar Calendar', 'wpforms-lite' ); } /** * Get the description for the install step. * * @since 1.9.8.6 * * @return string Install step description. */ protected function get_install_description(): string { return esc_html__( 'Bring your forms to life. Install Sugar Calendar and start creating events.', 'wpforms-lite' ); } /** * Get the plugin title. * * @since 1.9.8.6 * * @return string Plugin title. */ protected function get_plugin_title(): string { return esc_html__( 'Sugar Calendar', 'wpforms-lite' ); } /** * Get the install button text. * * @since 1.9.8.6 * * @return string Install button text. */ protected function get_install_button_text(): string { return esc_html__( 'Install Sugar Calendar', 'wpforms-lite' ); } /** * Get the text when a plugin is installed and activated. * * @since 1.9.8.6 * * @return string Installed & activated text. */ protected function get_installed_activated_text(): string { return esc_html__( 'Sugar Calendar Installed & Activated', 'wpforms-lite' ); } /** * Get the activate button text. * * @since 1.9.8.6 * * @return string Activate button text. */ protected function get_activate_text(): string { return esc_html__( 'Activate Sugar Calendar', 'wpforms-lite' ); } /** * Get the heading for the setup step. * * @since 1.9.8.6 * * @return string Setup step heading. */ protected function get_setup_heading(): string { return esc_html__( 'Create Your First Event', 'wpforms-lite' ); } /** * Get the description for the setup step. * * @since 1.9.8.6 * * @return string Setup step description. */ protected function get_setup_description(): string { return esc_html__( 'Add your first booking or class to your calendar in seconds. Clean, simple, and built right into WordPress.', 'wpforms-lite' ); } /** * Get the setup button text. * * @since 1.9.8.6 * * @return string Setup button text. */ protected function get_setup_button_text(): string { return esc_html__( 'Add First Event', 'wpforms-lite' ); } /** * Get the text when setup is completed. * * @since 1.9.8.6 * * @return string Setup completed text. */ protected function get_setup_completed_text(): string { return esc_html__( 'Event Created', 'wpforms-lite' ); } /** * Get the text when a pro-version is installed and activated. * * @since 1.9.8.6 * * @return string Pro installed and activated text. */ protected function get_pro_installed_activated_text(): string { return esc_html__( 'Sugar Calendar Pro Installed & Activated', 'wpforms-lite' ); } } 3000 Euro Inflationsprämie Archive - Bürger & Geld

Stand:

3000 Euro Inflationsprämie