name = esc_html__( 'Template', 'charitable' ); $this->slug = 'template'; $this->icon = 'panel_template.svg'; $this->order = 10; $this->sidebar = false; } /** * Enqueue assets for the template panel. * * @since 1.8.0 */ public function enqueues() { } /** * Output the panel primary content, which is a UI of campaign templates to select. * * @since 1.8.0 * @version 1.8.9.1 * @version 1.8.9.7 */ public function panel_content() { $builder_template = new Charitable_Campaign_Builder_Templates(); // attempt to prefill name and email fields. $current_user = wp_get_current_user(); $name = ( $current_user ) ? charitable_get_creator_data() : false; $email = ! empty( $current_user->user_email ) ? $current_user->user_email : false; ?>
×

* =

campaign_data['template_label'] ) ? esc_attr( $this->campaign_data['template_label'] ) : false; if ( $template_label ) : echo wp_kses_post( sprintf( /* translators: 1: Template ID */ __( 'You are currently using the "%1$s" template. Changing a template now might result in losing fields and data. Proceed carefully.', 'charitable' ), esc_html( $template_label ) ) ); else : echo wp_kses_post( sprintf( /* translators: 1: Site URL */ __( 'To speed up the process you can select from one of our pre-made templates or start from scratch with our simple column templates. Have a suggestion for a new template? We would love to hear it!', 'charitable' ), esc_url( admin_url() ) ) ); endif; echo $builder_template->output_templates_panel(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>