| Name | Size | Mode | Actions |
|---|---|---|---|
| class-give-forms-query.php | 3546 | 0644 | editdlrm |
| functions.php | 39639 | 0644 | editdlrm |
| template.php | 78562 | 0644 | editdlrm |
| widget.php | 23090 | 0644 | editdlrm |
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/forms/widget.php (23090B)
%1$s
', $instance['introduction_text'] ); } } echo give_form_shortcode( $instance ); echo $args['after_widget']; // XSS ok. /** * Fires after widget settings form in the admin area. * * @param integer $form_id Form ID. * * @since 1.0 */ do_action( 'give_after_forms_widget', $form_id ); } /** * Output the settings update form. * * @param array $instance Current settings. */ public function form( $instance ) { $defaults = [ 'title' => '', 'id' => 0, 'float_labels' => 'global', 'display_style' => 'modal', 'show_content' => 'none', 'continue_button_title' => __( 'Continue', 'give' ), 'introduction_text' => __( 'Help our organization by donating today! All donations go directly to making a difference for our cause.', 'give' ), 'button_text' => __( 'Donate Now', 'give' ), 'button_color' => '#28C77B', // These settings are aliases for shortcode setting which prevent conflict when saving and showing setting. Later we will use them to set original settings. 'tmp_display_style' => 'button', 'tmp_continue_button_title' => __( 'Continue', 'give' ), ]; $instance = wp_parse_args( (array) $instance, $defaults ); // Backward compatibility: Set float labels as default if, it was set as empty previous. $instance['float_labels'] = empty( $instance['float_labels'] ) ? 'global' : $instance['float_labels']; $this->getScriptForBuilders(); ?> self ); } /** * Update the widget * * @param array $new_instance The new options. * @param array $old_instance The previous options. * * @return array */ public function update( $new_instance, $old_instance ) { $this->flush_widget_cache(); return $new_instance; } /** * Flush widget cache * * @return void */ public function flush_widget_cache() { wp_cache_delete( $this->self, 'widget' ); } /** * Get inline script for widget to add support for widget in page builder like Divi, Elementor and Beaver Builder. * * @since 2.7.0 */ private function getScriptForBuilders() { global $pagenow; // Do not output inline script if admin widget script already printed. if ( wp_script_is( "{$this->scriptHandle}-js", 'done' ) || in_array( $pagenow, [ 'widgets.php', 'customize.php' ] ) ) { return; } $this->widgetIdentifier = uniqid(); $containerId = $this->widgetIdPrefix . $this->widgetIdentifier; ?>