function rt_generate_slider_box($theGroupID, $theTemplateID, $options, $randomClass)
 {
     $boxName = __("Slider", "rt_theme_admin");
     $contet_type = "slider_box";
     $theTemplateID = str_replace('_' . $contet_type, '', $theTemplateID);
     $isNewBox = trim($randomClass) == "" ? false : true;
     $opacity = 1;
     $layout = $isNewBox ? 'full expanded"' : $options['layout'];
     $position = $isNewBox ? 'open minus' : 'plus';
     $data_position = $isNewBox ? '' : 'display: none;';
     echo '<li class="ui-state-default ' . $layout . '" style="opacity:' . $opacity . ';">';
     echo '<div class="box_shadow"><div class="Itemholder"> <div class="Itemheader"><h5>' . $boxName . '</h5>';
     echo '<div class="expand ' . $position . '"></div><div class="move"></div></div> <div class="ItemData" style="' . $data_position . '">';
     echo '<input type="hidden" name="theTemplateID_' . $theGroupID . '" value="' . $theTemplateID . '"><input type="hidden" name="theGroupID_' . $theGroupID . '" value="' . $theGroupID . '"><input type="hidden" name="source_type_' . $theGroupID . '" value="' . $contet_type . '">';
     $options = array(array("value" => "one", "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[layout]", "type" => "hidden"), array("desc" => __("This module displays a slider.", 'rt_theme_admin'), "hr" => "true", "type" => "info_text_only"), array("name" => __("Select Slider Script", 'rt_theme_admin'), "desc" => __("Select a slider script for your home page", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[slider_script]", "options" => array("flex" => "Flex Slider", "nivo" => "Nivo Slider"), "default" => "fl", "value" => @$options["slider_script"], "hr" => "true", "dont_save" => true, "type" => "select"), array("name" => __("Select Slides", 'rt_theme_admin'), "desc" => __("Select the slides which you want to use with this slider. If you don't select one, all slides will be displayed.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[content_id][]", "options" => RTTheme::rt_get_slidercontents(), "purpose" => "sidebar", "type" => "selectmultiple", "class" => $randomClass, "hr" => true, "default" => @$options["content_id"]), array("name" => __("Transition Timeout (seconds)", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[slider_timeout]", "desc" => __("The speed of the slideshow cycling", 'rt_theme_admin'), "hr" => "true", "min" => "1", "max" => "120", "default" => "8", "hr" => true, "dont_save" => true, "value" => @$options["slider_timeout"], "class" => $randomClass, "type" => "rangeinput"), array("name" => __("Slider Height (px)", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[slider_height]", "desc" => __("The max. height value of the slider", 'rt_theme_admin'), "min" => "100", "max" => "1000", "default" => "300", "dont_save" => true, "value" => @$options["slider_height"], "class" => $randomClass, "type" => "rangeinput"), array("name" => __("Order Slides", 'rt_theme_admin'), "type" => "heading"), array("name" => __("OrderBy Parameter", 'rt_theme_admin'), "desc" => __("sort the slides by this parameter", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[list_orderby]", "options" => array('author' => 'Author', 'date' => 'Date', 'title' => 'Title', 'modified' => 'Modified', 'ID' => 'ID', 'rand' => 'Randomized'), "hr" => true, "value" => @$options["list_orderby"], "default" => "date", "dont_save" => true, "type" => "select"), array("name" => __("Order", 'rt_theme_admin'), "desc" => __("Designates the ascending or descending order of the ORDERBY parameter", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[list_order]", "options" => array('ASC' => 'Ascending', 'DESC' => 'Descending'), "value" => @$options["list_order"], "default" => "DESC", "dont_save" => true, "hr" => true, "type" => "select"), array("desc" => __("FOLLOWING OPTIONS ARE ONLY FOR THE FLEX SLIDER", 'rt_theme_admin'), "type" => "info_text_only"), array("name" => __("Slide Images", 'rt_theme_admin'), "type" => "heading"), array("name" => __("Resize Slider Images.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[image_resize]", "desc" => __("Turn ON this option to automatically resize the slider images to fit your content width and the slider height", 'rt_theme_admin'), "class" => $randomClass, "value" => $isNewBox ? "on" : $options["image_resize"], "hr" => true, "type" => "checkbox"), array("name" => __("Crop Slider Images.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[image_crop]", "desc" => __("If you turn on the crop feature, the image will be cropped as the height value above. Resize feature must be ON.", 'rt_theme_admin'), "class" => $randomClass, "value" => $isNewBox ? "on" : $options["image_crop"], "hr" => "true", "type" => "checkbox"), array("name" => __("Transition Effect", 'rt_theme_admin'), "desc" => __("Choose an effect for this slider", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[slider_effect]", "options" => array("fade" => "fade", "slide" => "slide"), "class" => $randomClass, "value" => @$options["slider_effect"], "default" => "scrollUp", "dont_save" => "true", "type" => "select"), array("name" => __("Slider Navigation Items", 'rt_theme_admin'), "type" => "heading"), array("name" => __("Pager Style", 'rt_theme_admin'), "desc" => __("Select a pager style for this slider", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[slider_buttons]", "class" => $randomClass, "options" => array("no_pager" => "No Pager", "on" => "Button Pager", "thumbnails" => "Thumbnail Pager", "headings" => "Heading Pager"), "value" => $isNewBox ? "on" : (!$options["slider_buttons"] ? "no_pager" : $options["slider_buttons"]), "type" => "radio"), array("name" => __("Heading & Thumbnail Pager Options", 'rt_theme_admin'), "type" => "heading"), array("name" => __("Pager Box Widths (px)", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[thumbs_width]", "desc" => __("Set width value for the thumbnails or headings tabs", 'rt_theme_admin'), "hr" => "true", "min" => "40", "max" => "920", "default" => "200", "hr" => true, "dont_save" => true, "value" => @$options["thumbs_width"], "class" => $randomClass, "type" => "rangeinput"), array("name" => __("Pager Box Heights (px)", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_slider_box[thumbs_height]", "desc" => __("Set height value for the thumbnails or headings tabs", 'rt_theme_admin'), "min" => "20", "max" => "1000", "default" => "80", "dont_save" => true, "value" => @$options["thumbs_height"], "class" => $randomClass, "hr" => "true", "type" => "rangeinput"), array("name" => __("delete", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . '_' . "_delete", "class" => "deleteButton template_box_delete", "purpose" => "page_template", "type" => "button"), array("name" => __("close", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . '_' . "_close", "class" => "closeButton template_box_close", "purpose" => "page_template", "type" => "button"));
     echo $this->rt_generate_forms($options);
     echo '</div></div></div></li>';
 }