芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/fluentform/app/Modules/Widgets/SidebarWidgets.php
esc_html__('Add your form by Fluent Forms', 'fluentform'), ] ); } public function widget($args, $instance) { $selectedForm = empty($instance['allforms']) ? '' : intval($instance['allforms']); if (!$selectedForm) { return; } echo $args['before_widget']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped if (!empty($instance['title'])) { echo $args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped } if ('' != $selectedForm) { $shortcode = "[fluentform id='$selectedForm']"; echo do_shortcode($shortcode); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped } echo $args['after_widget']; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped } public function form($instance) { $selectedForm = empty($instance['allforms']) ? '' : $instance['allforms']; if (isset($instance['title'])) { $title = $instance['title']; } else { $title = __('', 'fluentform'); } // Widget admin form ?>
orderBy('id', 'DESC') ->get(); ?>
Select a form:
id == $selectedForm) { echo 'selected'; } ?> value='id); ?>'> title); ?> (id); ?>)