/** * Constructor * * @mvc Controller */ protected function __construct() { // GET OPTS & flattern array self::$OSmedia_options = self::get_settings(); $this->register_hook_callbacks(); $this->modules = array('OSmedia_Settings' => OSmedia_Settings::get_instance(), 'OSmedia_Post_Admin' => OSmedia_Post_Admin::get_instance(), 'OSmedia_Post_Frontend' => OSmedia_Post_Frontend::get_instance(), 'OSmedia_Version_Vars' => OSmedia_Version_Vars::get_instance()); }
/** * Defines the parameters for the postmeta fields with default values: * NOTE: if exists a parameters with same key of OPTIONS, this parameters values PREVALE over that OPTIONS array values. * If the post/page are new and NOT exists OPTIONS with same key, take the below default data value. * * Qui devono esservi solo quei parametri necessari in ogni singolo post per generare il player e i cui valori PREVALGONO sulle Options generali * (es. 'autoplay') e NON devono esseri parametri generali validi per tutti i player del sito (es. 'skin'). * [vedi metodo 'data_model'] * NOTA: da sostituire con i metodi magici __get __set * * @mvc Model * */ public static function get_metabox_params() { self::$OSmedia_postmeta = array('OSmedia_feat' => '', 'OSmedia_file' => '', 'OSmedia_fileurl' => '', 'OSmedia_mp4' => '', 'OSmedia_webm' => '', 'OSmedia_ogg' => '', 'OSmedia_img' => '', 'OSmedia_youtube' => '', 'OSmedia_vimeo' => '', 'OSmedia_width' => '', 'OSmedia_height' => '', 'OSmedia_start_m' => '', 'OSmedia_start_s' => '', 'OSmedia_class' => '', 'OSmedia_autoplay' => '', 'OSmedia_loop' => '', 'OSmedia_preload' => '', 'OSmedia_responsive' => '', 'OSmedia_yt_https' => '', 'OSmedia_yt_info' => '', 'OSmedia_yt_related' => '', 'OSmedia_controls' => ''); }
/** * Initializes variables * * @mvc Controller */ public function init() { OSmedia_Post_Admin::get_metabox_params(); }