REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 3.55 KB
Close
/home/certprox/zang.certproxywizard.com/wp/wp-content/plugins/fluentform/app/Modules/Widgets/SidebarWidgets.php
Text
Base64
<?php namespace FluentForm\App\Modules\Widgets; use FluentForm\App\Models\Form; class SidebarWidgets extends \WP_Widget { public function __construct() { parent::__construct( 'fluentform_widget', esc_html__('Fluent Forms Widget', 'fluentform'), ['description' => esc_html__('Add your form by Fluent Forms', 'fluentform'), ] ); } public function widget($args, $instance) { $selectedForm = empty($instance['allforms']) ? '' : intval($instance['allforms']); if (!$selectedForm) { return; } // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $args['before_widget'] is provided by WordPress core echo $args['before_widget']; if (!empty($instance['title'])) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $args['before_title'], $args['after_title'] are provided by WordPress core, widget_title filter is expected to return safe HTML echo $args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title']; } if ('' != $selectedForm) { $shortcode = "[fluentform id='$selectedForm']"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- do_shortcode() output is safe echo do_shortcode($shortcode); } // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $args['after_widget'] is provided by WordPress core echo $args['after_widget']; } public function form($instance) { $selectedForm = empty($instance['allforms']) ? '' : $instance['allforms']; if (isset($instance['title'])) { $title = $instance['title']; } else { $title = ''; } // Widget admin form ?> <p> <label for="<?php echo esc_attr($this->get_field_id('title')); ?>"><?php esc_html_e('Title (optional):', 'fluentform'); ?></label> <input class="widefat" id="<?php echo esc_attr($this->get_field_id('title')); ?>" name="<?php echo esc_attr($this->get_field_name('title')); ?>" type="text" value="<?php echo esc_attr($title); ?>" /> </p> <?php $forms = Form::select(['id', 'title']) ->orderBy('id', 'DESC') ->get(); ?> <label for="<?php echo esc_attr($this->get_field_id('allforms')); ?>">Select a form: <select style="margin-bottom: 12px;" class='widefat' id="<?php echo esc_attr($this->get_field_id('allforms')); ?>" name="<?php echo esc_attr($this->get_field_name('allforms')); ?>" type="text"> <?php foreach ($forms as $item) { ?> <option <?php if ($item->id == $selectedForm) { echo 'selected'; } ?> value='<?php echo esc_attr($item->id); ?>'> <?php echo esc_html($item->title); ?> (<?php echo esc_attr($item->id); ?>) </option> <?php } ?> </select> </label> <?php } public function update($new_instance, $old_instance) { $instance = []; $instance['title'] = (!empty($new_instance['title'])) ? wp_strip_all_tags($new_instance['title']) : ''; $instance['allforms'] = intval($new_instance['allforms']); return $instance; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
ElementorWidget.php
1.10 KB
lrw-r--r--
2026-03-30 10:23:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
FluentFormWidget.php
93.24 KB
lrw-r--r--
2026-03-30 10:23:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
OxyFluentFormWidget.php
35.55 KB
lrw-r--r--
2026-03-30 10:23:21
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
OxygenEl.php
786 B
lrw-r--r--
2026-03-30 10:23:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
OxygenWidget.php
1.40 KB
lrw-r--r--
2026-03-30 10:23:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SidebarWidgets.php
3.55 KB
lrw-r--r--
2026-03-30 10:23:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).