function rt_generate_homepage_box($theGroupID, $theTemplateID, $options, $randomClass)
 {
     $boxName = __("Home Page Post", "rt_theme_admin");
     $contet_type = "home_page_content";
     $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;';
     $content_id = $isNewBox ? '' : $options['content_id'];
     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("name" => __("Select Box Size", 'rt_theme_admin'), "desc" => __("Please select a box size for the content.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_home_page_box[]", "options" => array("one" => "Full Width", "two" => "1:2 - One Second", "three" => "1:3 - One Third", "four" => "1:4 - One Fourth", "five" => "1:5 - One Fifth", "two-three" => "2:3 - Second Third", "three-four" => "3:4 - Third Fourth", "four-five" => "4:5 - Four Fifth"), "default" => "one", "value" => $layout, "class" => "layout_selector", "hr" => "true", "type" => "select"), array("name" => __("Select Box Content", 'rt_theme_admin'), "desc" => __("Please select a home page post for this box.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_home_page_box[]", "options" => RTTheme::rt_get_homecontents(), "class" => $randomClass, "value" => $content_id, "hr" => "true", "type" => "select"), array("name" => __("delete", 'rt_theme_admin'), "id" => "_delete", "class" => "deleteButton template_box_delete", "purpose" => "page_template", "type" => "button"), array("name" => __("close", 'rt_theme_admin'), "id" => "_close", "class" => "closeButton template_box_close", "purpose" => "page_template", "type" => "button"));
     echo $this->rt_generate_forms($options);
     echo '</div></div></div></li>';
 }