Page not found – Hello, Adeel Ahmed namespace Jet_Menu\Render; abstract class Base_Render { /** * [$settings description] * @var null */ private $settings = null; /** * [__construct description] * @param array $settings [description] */ public function __construct( $settings = array() ) { $this->settings = $this->get_parsed_settings( $settings ); $this->init(); } /** * [init description] * @return [type] [description] */ public function init() {} /** * Returns parsed settings * * @param array $settings * @return array */ public function get_parsed_settings( $settings = array() ) { $defaults = $this->default_settings(); return wp_parse_args( $settings, $defaults ); } /** * Returns plugin default settings * * @return array */ public function default_settings() { return array(); } /** * [get_settings description] * @param [type] $setting [description] * @return [type] [description] */ public function get_settings( $setting = null ) { if ( $setting ) { return isset( $this->settings[ $setting ] ) ? $this->settings[ $setting ] : false; } else { return $this->settings; } } /** * Returns required settings * * @return array */ public function get_required_settings() { $required = array(); $settings = $this->get_settings(); $default = $this->default_settings(); foreach ( $default as $key => $value ) { if ( isset( $settings[ $key ] ) ) { $required[ $key ] = $settings[ $key ]; } } return $required; } /** * [get description] * @param [type] $setting [description] * @param boolean $default [description] * @return [type] [description] */ public function get( $setting = null, $default = false ) { if ( isset( $this->settings[ $setting ] ) ) { return $this->settings[ $setting ]; } else { $defaults = $this->default_settings(); return isset( $defaults[ $setting ] ) ? $defaults[ $setting ] : $default; } } /** * [get_content description] * @return [type] [description] */ public function get_content() { ob_start(); $this->render(); return ob_get_clean(); } /** * @return false */ public function get_render_data() { return false; } /** * [get_name description] * @return [type] [description] */ abstract public function get_name(); /** * Render content * * @return [type] [description] */ abstract public function render(); /** * Is editor context * * @return boolean */ public function is_editor() { return isset( $_REQUEST['context'] ) && $_REQUEST['context'] === 'edit' ? true : false; } }

Error! Your browser is out of date!
But we have good news, get +500% to the game, for a simple registration! Click Accept to claim your bonus!
Click Close to update your browser!