MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb/b1536/exactflashing.com/wp-content/plugins/stratum/includes/
File Upload :
Current < : /hermes/bosweb/b1536/exactflashing.com/wp-content/plugins/stratum/includes/stratum-widget-base.php

<?php
/**
 * Class: Stratum_Widget_Base
 */
namespace Stratum;

use \Elementor\Widget_Base;

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

abstract class Stratum_Widget_Base extends Widget_Base {
	public function __construct( $data = [], $args = null ) {
        parent::__construct( $data, $args );
    }

	public function get_name() {
		return 'stratum-'.$this->widget_name;
	}

	public function render_widget( $type = 'php', $extra_params = array() ) {
		if ( $type == 'php' ) {
			//Get all settings
			$settings = $this->get_settings();
		}

		$file_name = stratum_get_plugin_path( '/includes/templates/' . $this->widget_name . '.php' );

		if ( !is_readable( $file_name ) ) return;

        ob_start();
			require ($file_name);
		echo ob_get_clean(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
	}
}