hello
Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : chryzalihi ( 621211) PHP Version : 8.3.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Directory : /home/c/h/r/chryzalihi/www/wp-content/languages/themes/the/ |
chryzalihi/www/wp-contentOLD/plugins/contact-form-maker/admin/controllers/FMControllerWidget_fmc.php0000604 00000006504 15244122064 0030725 0 ustar 00 home <?php
class FMControllerWidget_fmc extends WP_Widget {
////////////////////////////////////////////////////////////////////////////////////////
// Events //
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
// Constants //
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
// Variables //
////////////////////////////////////////////////////////////////////////////////////////
private $view;
private $model;
////////////////////////////////////////////////////////////////////////////////////////
// Constructor & Destructor //
////////////////////////////////////////////////////////////////////////////////////////
public function __construct() {
$widget_ops = array(
'classname' => 'form_maker_widget',
'description' => 'Add Form Maker widget.'
);
// Widget Control Settings.
$control_ops = array('id_base' => 'form_maker_widget');
// Create the widget.
parent::__construct('form_maker_widget', 'Contact Form Maker', $widget_ops, $control_ops);
require_once WD_FMC_DIR . "/admin/models/FMModelWidget_fmc.php";
$this->model = new FMModelWidget_fmc();
require_once WD_FMC_DIR . "/admin/views/FMViewWidget_fmc.php";
$this->view = new FMViewWidget_fmc($this->model);
}
////////////////////////////////////////////////////////////////////////////////////////
// Public Methods //
////////////////////////////////////////////////////////////////////////////////////////
public function widget($args, $instance) {
$this->view->widget($args, $instance);
}
public function form( $instance ) {
$this->view->form($instance, parent::get_field_id('title'), parent::get_field_name('title'), parent::get_field_id('form_id'), parent::get_field_name('form_id'));
}
// Update Settings.
public function update($new_instance, $old_instance) {
$instance['title'] = $new_instance['title'];
$instance['form_id'] = $new_instance['form_id'];
return $instance;
}
////////////////////////////////////////////////////////////////////////////////////////
// Getters & Setters //
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
// Private Methods //
////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////
// Listeners //
////////////////////////////////////////////////////////////////////////////////////////
}