public function mbox() { $mbox = parent::mbox(); $custom = array("delay" => array("label" => __("Delay", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Time in seconds before the slider rotates to next slide.", 'Pixelentity Theme/Plugin'), "options" => PeGlobal::$const->data->delay, "default" => 0), "layout" => array("label" => __("Layout", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "description" => __("Number of items to show simultaneously.", 'Pixelentity Theme/Plugin'), "options" => array(__("1", 'Pixelentity Theme/Plugin') => 1, __("2", 'Pixelentity Theme/Plugin') => 2, __("3", 'Pixelentity Theme/Plugin') => 3, __("4", 'Pixelentity Theme/Plugin') => 4, __("5", 'Pixelentity Theme/Plugin') => 5), "default" => 4), "height" => array("label" => __("Image Height", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Image height.", 'Pixelentity Theme/Plugin'), "default" => 195)); // insert custom fields after 1st one of the parent (delay) $mbox["content"] = $custom; return $mbox; }
public function mbox() { $mbox = parent::mbox(); $content =& $mbox["content"]; unset($content["max"]); $fields = array("filterable" => array("label" => __("Filter by", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Show filters based on the selected criteria.", 'Pixelentity Theme/Plugin'), "options" => peTheme()->view->taxonomiesOptions(), "datatype" => "taxonomies", "default" => ""), "layout" => array("label" => __("Layout", 'Pixelentity Theme/Plugin'), "description" => __("Grid container layout.", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "options" => array(__("Boxed", 'Pixelentity Theme/Plugin') => "boxed", __("Full Width", 'Pixelentity Theme/Plugin') => "fullwidth"), "default" => "boxed"), "width" => array("label" => __("Thumbnail Width", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Image thumbnail width.", 'Pixelentity Theme/Plugin'), "default" => 256), "height" => array("label" => __("Thumbnail Height", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Image thumbnail height, leave empty to avoid image cropping (masonry layout)", 'Pixelentity Theme/Plugin'), "default" => ""), "gx" => array("label" => __("Horizontal Margin", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Horizontal margin between image thumbnails.", 'Pixelentity Theme/Plugin'), "default" => 1), "gy" => array("label" => __("Vertical Margin", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Vertical margin between image thumbnails.", 'Pixelentity Theme/Plugin'), "default" => 1)); $content = array_merge($fields, $content); return $mbox; }
public function mbox() { $mbox = parent::mbox(); unset($mbox["content"]["max"]); return $mbox; }