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":"

Lorem ipsum dolor sit amet

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

","1":"

Lorem ipsum

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.

'; if (isset($_GET['reset']) && $_GET['reset'] == 'reset' ) echo '

Slider settings are reset.

'; } /// include style and scripts for slider page public function web_dorado_slider_page_admin_scripts(){ wp_enqueue_style('color_control_page_main_style',esc_url( get_template_directory_uri() ).'/admin/css/slider_page.css'); wp_enqueue_script('jquery'); wp_enqueue_script( 'common' ); wp_enqueue_script( 'jquery-color' ); wp_print_scripts('editor'); if (function_exists('add_thickbox')) add_thickbox(); wp_print_scripts('media-upload'); wp_admin_css(); wp_enqueue_script('utils'); do_action("admin_print_styles-post-php"); do_action('admin_print_styles'); } //// back end style public function dorado_theme_admin_slider(){ global $best_magazine_admin_helepr_functions,$best_magazine_web_dor; $imgs_url=json_decode ($this->options_slider['imgs_url']['std'],true); $imgs_href=json_decode ( $this->options_slider['imgs_href']['std'],true); $imgs_title=json_decode ($this->options_slider['imgs_title']['std'],true); $imgs_description=json_decode ( $this->options_slider['imgs_description']['std'],true); ?>
User Manual
This section allows you customize the slider. More...

Slider

options_slider['image_height']['name'] ?>[?]

options_slider['animation_speed']['name'] ?> [?]

options_slider['slideshow_interval']['name'] ?> [?]

options_slider['stop_on_hover']['name'] ?> [?]

options_slider['stop_on_hover']['std'], "true"); ?>>

options_slider['effect']['name'] ?> [?]

options_slider['title_position']['name'] ?> [?]

options_slider['title_position']['std'], "left-top"); ?> value="left-top" id="slideshow_title_top-left" name="options_slider['title_position']['var_name'] ?>" > options_slider['title_position']['std'], "center-top"); ?> value="center-top" id="slideshow_title_top-center" name="options_slider['title_position']['var_name'] ?>"> options_slider['title_position']['std'], "right-top"); ?> value="right-top" id="slideshow_title_top-right" name="options_slider['title_position']['var_name'] ?>" checked="">
options_slider['title_position']['std'], "left-middle"); ?> value="left-middle" id="slideshow_title_middle-left" name="options_slider['title_position']['var_name'] ?>"> options_slider['title_position']['std'], "center-middle"); ?> value="center-middle" id="slideshow_title_middle-center" name="options_slider['title_position']['var_name'] ?>"> options_slider['title_position']['std'], "right-middle"); ?> value="right-middle" id="slideshow_title_middle-right" name="options_slider['title_position']['var_name'] ?>">
options_slider['title_position']['std'], "left-bottom"); ?> value="left-bottom" id="slideshow_title_bottom-left" name="options_slider['title_position']['var_name'] ?>"> options_slider['title_position']['std'], "center-bottom"); ?> value="center-bottom" id="slideshow_title_bottom-center" name="options_slider['title_position']['var_name'] ?>"> options_slider['title_position']['std'], "right-bottom"); ?> value="right-bottom" id="slideshow_title_bottom-right" name="options_slider['title_position']['var_name'] ?>">

Description Position [?]

options_slider['description_position']['std'], "left-top"); ?> value="left-top" id="slideshow_title_top-left" name="options_slider['description_position']['var_name'] ?>" > options_slider['description_position']['std'], "center-top"); ?> value="center-top" id="slideshow_title_top-center" name="options_slider['description_position']['var_name'] ?>"> options_slider['description_position']['std'], "right-top"); ?> value="right-top" id="slideshow_title_top-right" name="options_slider['description_position']['var_name'] ?>" checked="">
options_slider['description_position']['std'], "left-middle"); ?> value="left-middle" id="slideshow_title_middle-left" name="options_slider['description_position']['var_name'] ?>"> options_slider['description_position']['std'], "center-middle"); ?> value="center-middle" id="slideshow_title_middle-center" name="options_slider['description_position']['var_name'] ?>"> options_slider['description_position']['std'], "right-middle"); ?> value="right-middle" id="slideshow_title_middle-right" name="options_slider['description_position']['var_name'] ?>">
options_slider['description_position']['std'], "left-bottom"); ?> value="left-bottom" id="slideshow_title_bottom-left" name="options_slider['description_position']['var_name'] ?>"> options_slider['description_position']['std'], "center-bottom"); ?> value="center-bottom" id="slideshow_title_bottom-center" name="options_slider['description_position']['var_name'] ?>"> options_slider['description_position']['std'], "right-bottom"); ?> value="right-bottom" id="slideshow_title_bottom-right" name="options_slider['description_position']['var_name'] ?>">

options_slider['imgs_url']['name'] ?>

Image Href

Image Title

Image Description

Image [?]

' /> ' /> ' /> ' />