options = array( 'hide_slider' => array( 'name' => 'hide_slider', 'title' => __( 'Specify where slider should be shown.', 'business-world' ), 'type' => 'select', 'valid_options' => array( "Only on Homepage" => __("Only on Homepage", 'business-world' ), "On all the pages and posts" => __("On all the pages and posts", 'business-world' ), "Hide Slider" => __("Hide Slider", 'business-world' ), ), 'description' => '', 'section' => 'slider_main', 'tab' => 'slider', 'default' => array('On all the pages and posts'), 'customizer' => array() ), "image_height" => array( "name" => "image_height", "title" => __("Slider Height on home page", 'business-world' ), 'type' => 'text', "sanitize_type" => "sanitize_text_field", "description" => __("The height of the slider can be customized. You need to specify the height in the box provided.", 'business-world' ), 'section' => 'slider_main', 'tab' => 'slider', 'default' => '400', 'customizer' => array() ), "image_height_pages" => array( "name" => "image_height_pages", "title" => __("Slider Height on all pages and posts", 'business-world' ), 'type' => 'text', "sanitize_type" => "sanitize_text_field", "description" => __("The height of the slider can be customized. You need to specify the height in the box provided.", 'business-world' ), 'section' => 'slider_main', 'tab' => 'slider', 'default' => '280', 'customizer' => array() ), "animation_speed" => array( "name" => "animation_speed", "title" => __("Animation Speed", 'business-world' ), 'type' => 'text', "sanitize_type" => "sanitize_text_field", "description" => __("When using an animation for the slider, you can control its speed. You can use the provided box to fill in the optimal speed.", 'business-world' ), 'section' => 'slider_main', 'tab' => 'slider', 'default' => '800', 'customizer' => array() ), "slideshow_interval" => array( "name" => "slideshow_interval", "title" => __("Pause Time", 'business-world' ), 'type' => 'text', "sanitize_type" => "sanitize_text_field", "description" => __("The timing for the slider animation can be customized. You can adjust it providing timing in the corresponding box.", 'business-world' ), 'section' => 'slider_main', 'tab' => 'slider', 'default' => '5000', 'customizer' => array() ), "stop_on_hover" => array( "name" => "stop_on_hover", "title" => __("Stop animation while hovering", 'business-world' ), 'type' => 'checkbox', "sanitize_type" => "sanitize_text_field", "description" =>__( "By default slider animation is constant. However you can choose it to stop while hovering, checking the box for this option.", 'business-world' ), 'section' => 'slider_main', 'tab' => 'slider', 'default' => false, 'customizer' => array() ) ); $this->options["effect"] = array( "name" => "effect", "title" => __("Effect", 'business-world' ), 'type' => 'select', "sanitize_type" => "sanitize_text_field", "description" => __("The animation of the slider can be customized with the help of various effects. You can choose the slider animation effect from the list included below.", 'business-world' ), "valid_options" => array( "none" => "None", "cubeH" => "Cube Horizontal", "cubeV" => "Cube Vertical", "fade" => "Fade", "sliceH" => "Slice Horizontal", "sliceV" => "Slice Vertical", "slideH" => "Slide Horizontal", "slideV" => "Slide Vertical", "scaleOut" => "Scale Out", "scaleIn" => "Scale In", "blockScale" => "Block Scale", "kaleidoscope" => "Kaleidoscope", "fan" => "Fan", "blindH" => "Blind Horizontal", "blindV" => "Blind Vertical", "random" => "Random", ), 'disabled'=> array("cubeH", "cubeV", "sliceH", "sliceV","slideH", "slideV", "scaleOut", "scaleIn", "blockScale", "kaleidoscope", "fan", "blindH", "blindV", "random" ), 'section' => 'slider_main', 'tab' => 'slider', 'default' => array('fade'), 'customizer' => array() ); $this->options["title_position"] = array( "name" => "title_position", "title" => __("Title Position", 'business-world' ), 'type' => 'select', "description" => "", "valid_options" => array( "left-top" => "left-top", "left-middle" => "left-middle", "left-bottom" => "left-bottom", "center-top" => "center-top", "center-middle" => "center-middle", "center-bottom" => "center-bottom", "right-top" => "right-top", "right-middle" => "right-middle", "right-bottom" => "right-bottom" ), 'section' => 'slider_main', 'tab' => 'slider', 'default' => array('right-top'), 'customizer' => array() ); $this->options["description_position"] = array( "name" => "description_position", "title" => __("Description Position", 'business-world' ), 'type' => 'select', "description" => "", "valid_options" => array( "left-top" => "left-top", "left-middle" => "left-middle", "left-bottom" => "left-bottom", "center-top" => "center-top", "center-middle" => "center-middle", "center-bottom" => "center-bottom", "right-top" => "right-top", "right-middle" => "right-middle", "right-bottom" => "right-bottom" ), 'section' => 'slider_main', 'tab' => 'slider', 'default' => array('center-middle'), 'customizer' => array() ); $this->options["slider_head"] = array( "name" => "slider_head", "title" => "", 'type' => 'upload_multiple', "sanitize_type" => "esc_url_raw", "option" => array( "imgs_href" => "slider_head_href", "imgs_title" => "slider_head_title", "imgs_description" => "slider_head_desc" ), "description" => "", 'section' => 'slider_imgs', 'tab' => 'slider', 'default' => WDWT_IMG."slide_3.jpg" . $this->get_delimiter(). WDWT_IMG."slide_4.jpg", 'customizer' => array() ); $this->options["slider_head_href"] = array( "name" => "slider_head_href", "title" => "", 'type' => 'text_slider', "sanitize_type" => "esc_url_raw", "description" => "", 'section' => 'slider_imgs', 'tab' => 'slider', 'default' => $this->get_delimiter(), 'customizer' => array() ); $this->options["slider_head_title"] = array( "name" => "slider_head_title", "title" => "", 'type' => 'text_slider', "sanitize_type" => "sanitize_text_field", "description" => "", 'section' => 'slider_imgs', 'tab' => 'slider', 'default' => $this->get_delimiter(), 'customizer' => array() ); $this->options["slider_head_desc"] = array( "name" => "slider_head_desc", "title" => "", 'type' => 'textarea_slider', "sanitize_type" => "sanitize_html_field", "description" => "", 'section' => 'slider_imgs', 'tab' => 'slider', 'default' => "

NEW BUSINESS THEME

LOREM IPSUM IS SIMPLY DUMMY TEXT OF THE PRINTING INDUSTRY.
Responsive theme to create news websites with structured content and easy navigation.Minimum coding knowledge is required for customizing almost every detail that shows up in the front-end.". $this->get_delimiter(). "

NEW BUSINESS THEME

LOREM IPSUM IS SIMPLY DUMMY TEXT OF THE PRINTING INDUSTRY.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.", 'customizer' => array() ); } private function get_delimiter(){ return "||wd||"; } }