|
User Manual This section allows you customize the slider. More... |
|
Slider |
homepage = "Homepage"; $this->shortslider = ""; $value_of_std[0]=get_theme_mod($this->shortslider."_image_height",'450'); $value_of_std[1]=get_theme_mod($this->shortslider."_animation_speed",'800'); $value_of_std[2]=get_theme_mod($this->shortslider."_slideshow_interval",'5000'); $value_of_std[3]=get_theme_mod($this->shortslider."_stop_on_hover",''); $value_of_std[4]=get_theme_mod($this->shortslider."_effect",'random'); $value_of_std[5]=get_theme_mod($this->shortslider."_title_position",'right-top'); $value_of_std[6]=get_theme_mod($this->shortslider."_description_position",'right-bottom'); $value_of_std[7]=get_theme_mod($this->shortslider."_imgs_url",'{"0":"'.get_template_directory_uri("template_url").'/images/slide_1.jpg","1":"'.get_template_directory_uri("template_url").'/images/slide_2.jpg"}'); $value_of_std[8]=get_theme_mod($this->shortslider."_imgs_href",''); $value_of_std[9]=get_theme_mod($this->shortslider."_imgs_title",''); $value_of_std[10]=get_theme_mod($this->shortslider."_imgs_description",'{"0":"
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
","1":"Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.
"}'); $this->options_slider = array( "image_height" => array( "name" => "Slider Height", "description" => "The height of the slider can be customized. You need to specify the height in the box provided.", "var_name" => "image_height", "id" => $this->shortslider."_image_height", "std" => $value_of_std[0] ), "animation_speed" => array( "name" => "Animation Speed", "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.", "var_name" => "animation_speed", "id" => $this->shortslider."_animation_speed", "std" => $value_of_std[1] ), "slideshow_interval" => array( "name" => "Pause Time", "description" => "The timing for the slider animation can be customized. You can adjust it providing timing in the corresponding box.", "var_name" => "slideshow_interval", "id" => $this->shortslider."_slideshow_interval", "std" => $value_of_std[2] ), "stop_on_hover" => array( "name" => "Stop animation while hovering", "description" => "By default slider animation is constant. However you can choose it to stop while hovering, checking the box for this option.", "var_name" => "stop_on_hover", "id" => $this->shortslider."_stop_on_hover", "std" => $value_of_std[3] ), "effect" => array( "name" => "Effect", "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.", "var_name" => "effect", "all_values" => 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" ), "id" => $this->shortslider."_effect", "std" => $value_of_std[4] ), "title_position" => array( "name" => "Title Position", "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.", "var_name" => "title_position", "id" => $this->shortslider."_title_position", "std" => $value_of_std[5] ), "description_position" => array( "name" => "Description Position", "description" => "????????????????????? esqn vaxt sxal a grac exel", "var_name" => "description_position", "id" => $this->shortslider."_description_position", "std" => $value_of_std[6] ), "imgs_url" => array( "name" => "", "all_values" => '', "description" => "", "var_name" => "imgs_url", "id" => $this->shortslider."_imgs_url", "std" => $value_of_std[7] ), "imgs_href" => array( "name" => "", "description" => "Specify the number of content posts which will be displayed in the homepage.", "var_name" => "imgs_href", "id" => $this->shortslider."_imgs_href", "std" => $value_of_std[8] ), "imgs_title" => array( "name" => "", "description" => "", "var_name" => "imgs_title", "id" => $this->shortslider."_imgs_title", "std" => $value_of_std[9] ), "imgs_description" => array( "name" => "", "description" => "", "var_name" => "imgs_description", "id" => $this->shortslider."_imgs_description", "std" => $value_of_std[10] ), ); } /// save changes or reset options public function web_dorado_theme_update_slider(){ if (isset($_GET['page']) && $_GET['page'] == "web_dorado_theme" && isset($_GET['controller']) && $_GET['controller'] == "slider_page") { if (isset($_REQUEST['action']) && $_REQUEST['action']=='save' ) { foreach ($this->options_slider as $value) { if(isset($_REQUEST[$value['var_name']])) set_theme_mod($value['id'], stripslashes($_REQUEST[$value['var_name']])); } foreach ($this->options_slider as $value) { if (isset($_REQUEST[$value['var_name']])) { set_theme_mod($value['id'], stripslashes($_REQUEST[$value['var_name']])); } else { remove_theme_mod($value['id']); } } header("Location: themes.php?page=web_dorado_theme&controller=home_page&saved=true"); die; } else { if (isset($_REQUEST['action']) && $_REQUEST['action']=='reset') { foreach ($this->options_slider as $value) { remove_theme_mod($value['id']); } header("Location: themes.php?page=web_dorado_theme&controller=home_page&reset=true"); die; } } } } /// print massage after save private function web_dor_print_massage(){ if (isset($_GET['saved']) && $_GET['saved'] =='saved' ) echo 'Slider settings are saved.
Slider settings are reset.
|
User Manual This section allows you customize the slider. More... |
|
Slider |