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",'left-top'); $value_of_std[6]=get_theme_mod($this->shortslider."_description_position",'center-middle'); $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":"

NEW BUSINESS THEME

Praesent dapibus, neque id cursus faucibus, tortor neque egestas.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante.Praesent dapibus, neque id cursus faucibus, tortor neque egestas.","1":"

NEW BUSINESS THEME

Praesent dapibus, neque id cursus faucibus, tortor neque egestas.
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."}'); $value_of_std[11]=get_theme_mod($this->shortslider."_hide_slider",''); $value_of_std[12]=get_theme_mod($this->shortslider."_page_image_height",'280'); $value_of_std[13]=get_theme_mod($this->shortslider."_slider_in_home",''); $this->options_slider = array( "image_height" => array( "name" => "Slider height for homepage", "sanitize_type" => "sanitize_text_field", "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] ), "page_image_height" => array( "name" => "Slider height for other pages", "sanitize_type" => "sanitize_text_field", "description" => "The height of the slider can be customized. You need to specify the height in the box provided.", "var_name" => "page_image_height", "id" => $this->shortslider."_page_image_height", "std" => $value_of_std[12] ), "slider_in_home" => array( "name" => "Show Slider only in homepage ", "sanitize_type" => "sanitize_text_field", "description" => "Using this option, you can show slider only in homepage.", "var_name" => "slider_in_home", "id" => $this->shortslider."_slider_in_home", "std" => $value_of_std[13] ), "animation_speed" => array( "name" => "Animation Speed", "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.", "var_name" => "animation_speed", "id" => $this->shortslider."_animation_speed", "std" => $value_of_std[1] ), "slideshow_interval" => array( "name" => "Pause Time", "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.", "var_name" => "slideshow_interval", "id" => $this->shortslider."_slideshow_interval", "std" => $value_of_std[2] ), "stop_on_hover" => array( "name" => "Stop animation while hovering", "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.", "var_name" => "stop_on_hover", "id" => $this->shortslider."_stop_on_hover", "std" => $value_of_std[3] ), "effect" => array( "name" => "Effect", "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.", "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", "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.", "var_name" => "title_position", "id" => $this->shortslider."_title_position", "std" => $value_of_std[5] ), "description_position" => array( "name" => "Description Position", "sanitize_type" => "sanitize_text_field", "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] ), "hide_slider" => array( "name" => "Hide Slider", "description" => "Check the box to hide the slider.", "var_name" => "hide_slider", "id" => $this->shortslider."_hide_slider", "std" => $value_of_std[11] ), ); } /// 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" && isset( $_POST['web_dorado_theme_nonce'] ) && wp_verify_nonce( $_POST['web_dorado_theme_nonce'], 'web_dorado_theme_nonce' ) ) { if (isset($_REQUEST['action']) && $_REQUEST['action']=='save' ) { foreach ($this->options_slider as $value) { if (isset($_REQUEST[$value['var_name']])) { if(isset($value['sanitize_type']) && $value['sanitize_type']){ $sanitize_type=$value['sanitize_type']; set_theme_mod($value['id'], $sanitize_type($_REQUEST[$value['var_name']])); }else 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=slider_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=slider_page&reset=true"); die; } } } } /// print massage after save private function web_dor_print_massage(){ if (isset($_GET['saved']) && $_GET['saved'] =='true' ) echo '

Slider settings are saved.

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

Slider settings are reset.

'; } /// include style and scripts for slider page public function web_dorado_slider_page_admin_scripts(){ wp_enqueue_style('home_page_main_style',get_template_directory_uri().'/admin/css/home_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,$business_world_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['hide_slider']['name'] ?> [?]

options_slider['hide_slider']['std'], "on"); ?>>

options_slider['slider_in_home']['name'] ?> [?]

options_slider['slider_in_home']['std'], "on"); ?>>

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

options_slider['page_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'] ?>">
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'] ?>" >
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 [?]

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