public function mbox()
 {
     $mbox = parent::mbox();
     $custom = array("transition" => array("label" => __("Transition", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Transition type.", 'Pixelentity Theme/Plugin'), "options" => array(__("Pan / Zoom", 'Pixelentity Theme/Plugin') => "pz", __("Fade", 'Pixelentity Theme/Plugin') => "fade"), "default" => "pz"), "fade" => array("label" => __("Fade Duration", 'Pixelentity Theme/Plugin'), "type" => "Number", "step" => "0.1", "description" => __("Duration (in seconds) of the crossfade transition.", 'Pixelentity Theme/Plugin'), "default" => "2"), "speed" => array("label" => __("Animation Time", 'Pixelentity Theme/Plugin'), "type" => "Number", "description" => __("Duration (in seconds) of the pan/zoom animation, lower values increase animation speed. ", 'Pixelentity Theme/Plugin'), "default" => "10"));
     // insert custom fields after 1st one of the parent (delay)
     $mbox["content"] = array_merge($custom, $mbox["content"]);
     return $mbox;
 }
Пример #2
0
 public function mbox()
 {
     $mbox = parent::mbox();
     $custom = array("transition" => array("label" => __("Transition", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Transition type", 'Pixelentity Theme/Plugin'), "options" => array(__("Fade", 'Pixelentity Theme/Plugin') => "fade", __("Random", 'Pixelentity Theme/Plugin') => "random", __("Block Fade", 'Pixelentity Theme/Plugin') => "blockfade", __("Fall", 'Pixelentity Theme/Plugin') => "fall", __("Domino", 'Pixelentity Theme/Plugin') => "domino", __("Flip", 'Pixelentity Theme/Plugin') => "flip", __("Reveal Right", 'Pixelentity Theme/Plugin') => "revealR", __("Reveal Left", 'Pixelentity Theme/Plugin') => "revealL", __("Reveal Bottom", 'Pixelentity Theme/Plugin') => "revealB", __("Reveal Top", 'Pixelentity Theme/Plugin') => "revealT", __("Saw", 'Pixelentity Theme/Plugin') => "saw", __("Scale", 'Pixelentity Theme/Plugin') => "scale", __("Bars", 'Pixelentity Theme/Plugin') => "bars", __("Zoom", 'Pixelentity Theme/Plugin') => "zoom", __("Drop", 'Pixelentity Theme/Plugin') => "drop"), "default" => "fade"), "bg" => array("label" => __("Background", 'Pixelentity Theme/Plugin'), "description" => __("Whether to use  slide images as background or a video.", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "options" => array(__("Images", 'Pixelentity Theme/Plugin') => "images", __("Video", 'Pixelentity Theme/Plugin') => "video"), "default" => "images"), "video" => array("label" => __("Video", 'Pixelentity Theme/Plugin'), "type" => "UploadLink", "description" => __("The video must be available in both ogv and mp4 formats, for instance, if the video is called 'background.mp4', then 'background.ogv' must also be uploaded.", 'Pixelentity Theme/Plugin'), "default" => ""), "loop" => array("label" => __("Loop", 'Pixelentity Theme/Plugin'), "description" => __("Restart video once playback ends.", 'Pixelentity Theme/Plugin'), "type" => "RadioUI", "options" => array(__("Enabled", 'Pixelentity Theme/Plugin') => "enabled", __("Disabled", 'Pixelentity Theme/Plugin') => ""), "default" => ""), "fallback" => array("label" => __("Fallback", 'Pixelentity Theme/Plugin'), "type" => "Upload", "description" => __("When a background video is set, the fallback image will be shown in browsers that lack native video support (like older version of MSIE).", 'Pixelentity Theme/Plugin'), "default" => ""));
     // insert custom fields after 1st one of the parent (delay)
     $mbox["content"] = array_merge($custom, $mbox["content"]);
     return $mbox;
 }
Пример #3
0
 public function mbox()
 {
     $mbox = parent::mbox();
     $mbox["content"]["transition"] = array("label" => __("Transition", 'Pixelentity Theme/Plugin'), "type" => "Select", "description" => __("Transition type", 'Pixelentity Theme/Plugin'), "options" => array(__("Random", 'Pixelentity Theme/Plugin') => "random", __("Cube Horizontal", 'Pixelentity Theme/Plugin') => "cubeH", __("Cube Vertical", 'Pixelentity Theme/Plugin') => "cubeV", __("Fade", 'Pixelentity Theme/Plugin') => "fade", __("Slice Horizontal", 'Pixelentity Theme/Plugin') => "sliceH", __("Slice Vertical", 'Pixelentity Theme/Plugin') => "sliceV", __("Slide Horizontal", 'Pixelentity Theme/Plugin') => "slideH", __("Slide Vertical", 'Pixelentity Theme/Plugin') => "slideV", __("Scale", 'Pixelentity Theme/Plugin') => "scale", __("Block scale", 'Pixelentity Theme/Plugin') => "blockScale", __("Kaleidoscope", 'Pixelentity Theme/Plugin') => "kaleidoscope", __("Fan", 'Pixelentity Theme/Plugin') => "fan", __("Blind Horizontal", 'Pixelentity Theme/Plugin') => "blindH", __("Blind Vertical", 'Pixelentity Theme/Plugin') => "blindV"), "default" => "random");
     return $mbox;
 }