function rt_generate_portfolio_box($theGroupID, $theTemplateID, $options, $randomClass) { $boxName = __("Portfolio Posts", "rt_theme_admin"); $contet_type = "portfolio_box"; $theTemplateID = str_replace('_' . $contet_type, '', $theTemplateID); $isNewBox = trim($randomClass) == "" ? false : true; $opacity = 1; $layout = "one passive_module"; $position = $isNewBox ? 'open minus' : 'plus'; $data_position = 'display: none;'; $values = isset($options['values']) ? $options['values'] : array(); $pagination = $item_width = $item_per_page = $portf_list_orderby = $portf_list_order = $pagination = $filterable = $list_order = $categories = $display_descriptions = $display_embedded_titles = $display_titles = ""; extract($values); 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 $this->module_controls($isNewBox); echo '</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("desc" => __("This module displays portfolio list following the settings below.", 'rt_theme_admin'), "hr" => "true", "type" => "info"), array("type" => "table_start"), array("name" => __("Select Portfolio Categories", 'rt_theme_admin'), "desc" => __("Select categories to filter (shorten) the amount of portfolio items presented in the portfolio list. If you don't select and set a category, this module will list all portfolio items.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[values][categories][]", "options" => RTTheme::rt_get_portfolio_categories(), "purpose" => "sidebar", "type" => "selectmultiple", "class" => $randomClass, "default" => $categories), array("name" => __("OrderBy Parameter", 'rt_theme_admin'), "desc" => __("Select and set the sorting order for the portfolio items within the portfolio list by this parameter.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[values][portf_list_orderby]", "options" => array('author' => 'Author', 'date' => 'Date', 'title' => 'Title', 'modified' => 'Modified', 'ID' => 'ID', 'rand' => 'Randomized'), "value" => $portf_list_orderby, "default" => "date", "dont_save" => true, "type" => "select"), array("name" => __("Order", 'rt_theme_admin'), "desc" => __("Select and set the ascending or descending order for the ORDERBY parameter.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[values][portf_list_order]", "options" => array('ASC' => 'Ascending', 'DESC' => 'Descending'), "value" => $portf_list_order, "default" => "DESC", "dont_save" => true, "type" => "select"), array("name" => __("Amount of portfolio item per page", 'rt_theme_admin'), "desc" => __("Set the amount of portfolio items to display at once per page.<br /><strong>Note</strong> : works in conjunction with the pagination settings.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[values][item_per_page]", "min" => "1", "max" => "200", "class" => $randomClass, "value" => $item_per_page, "default" => "9", "dont_save" => true, "type" => "rangeinput"), array("name" => __("Content Layout", 'rt_theme_admin'), "desc" => __('Select and set the column layout for listing the portfolio items. (<strong>Note</strong> : when used in a column module which is f.e. set to a 1/5 column it is better to set the portfolio column layout to a 1/1 layout.)', 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[values][item_width]", "options" => array(5 => "1/5", 4 => "1/4", 3 => "1/3", 2 => "1/2", 1 => "1/1"), "default" => "3", "value" => $item_width, "hr" => "true", "type" => "select"), array("type" => "td_col"), array("name" => __("Pagination", 'rt_theme_admin'), "desc" => __("Enable (if checked) the pagination ability for the portfolio list.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[values][pagination]", "type" => "checkbox2", "class" => $randomClass, "value" => $pagination, "default" => "off", "std" => "false"), array("name" => __("Filter Navigation", 'rt_theme_admin'), "desc" => __("Enable (if checked) toplevel filter navigation for the listed portfolio items.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[values][filterable]", "type" => "checkbox2", "class" => $randomClass, "value" => $filterable, "default" => "off", "std" => "false"), array("name" => __("Display Titles", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[values][display_titles]", "type" => "checkbox2", "class" => $randomClass, "value" => $display_titles, "default" => "on", "std" => "false"), array("name" => __("Display Descriptions", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[values][display_descriptions]", "type" => "checkbox2", "class" => $randomClass, "value" => $display_descriptions, "default" => "on", "std" => "false"), array("name" => __("Display Embedded Titles", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[values][display_embedded_titles]", "type" => "checkbox2", "class" => $randomClass, "value" => $display_embedded_titles, "default" => "on", "std" => "false"), array("type" => "table_end")); echo $this->rt_generate_forms($options); echo '</div></div></div></li>'; }
function rt_generate_portfolio_carousel($theGroupID, $theTemplateID, $options, $randomClass) { $boxName = __("Portfolio Carousel", "rt_theme_admin"); $contet_type = "portfolio_carousel"; $theTemplateID = str_replace('_' . $contet_type, '', $theTemplateID); $isNewBox = trim($randomClass) == "" ? false : true; $opacity = 1; $layout = "one passive_module"; $position = $isNewBox ? 'open minus' : 'plus'; $data_position = 'display: none;'; $values = isset($options['values']) ? $options['values'] : array(); $crop = $display_descriptions = $display_titles = $item_width = $max_item = $list_order = $list_orderby = $categories = $heading_icon = $heading = ""; extract($values); 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 $this->module_controls($isNewBox); echo '</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("desc" => __("This module displays portfolio items as a carousel following the settings below.", 'rt_theme_admin'), "hr" => "true", "type" => "info"), array("type" => "table_start"), array("name" => __("Heading", 'rt_theme_admin'), "desc" => __('Enter a title to be displayed above the portfolio carousel.', 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_carousel[values][heading]", "value" => $heading, "type" => "text"), array("name" => __("Heading Icon", 'rt_theme_admin'), "desc" => __('Select and set a icon to precede the portfolio carousel title.', 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_carousel[values][heading_icon]", "class" => "icon_selection", "value" => $heading_icon, "type" => "text"), array("name" => __("Select Portfolio Categories", 'rt_theme_admin'), "desc" => __("Select and set categories to filter (shorten) the amount of portfolio items presented in the carousel. If you don't select and set a category, this module will list all portfolio items.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_carousel[values][categories][]", "options" => RTTheme::rt_get_portfolio_categories(), "purpose" => "sidebar", "type" => "selectmultiple", "class" => $randomClass, "default" => $categories), array("name" => __("OrderBy Parameter", 'rt_theme_admin'), "desc" => __("Select and set the sorting order for the portfolio items within the carsousel by this parameter.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_carousel[values][list_orderby]", "options" => array('author' => 'Author', 'date' => 'Date', 'title' => 'Title', 'modified' => 'Modified', 'ID' => 'ID', 'rand' => 'Randomized'), "value" => $list_orderby, "default" => "date", "dont_save" => true, "type" => "select"), array("name" => __("Order", 'rt_theme_admin'), "desc" => __("Select and set the ascending or descending order for the ORDERBY parameter.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_carousel[values][list_order]", "options" => array('ASC' => 'Ascending', 'DESC' => 'Descending'), "value" => $list_order, "default" => "DESC", "dont_save" => true, "type" => "select"), array("type" => "td_col"), array("name" => __("Carousel Style", 'rt_theme_admin'), "desc" => __('Select and set the carousel style.', 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_carousel[values][style]", "options" => array("plain_carousel" => "Plain Box", "rounded_carousel" => "With Borders"), "default" => "1", "value" => $item_width, "type" => "select"), array("name" => __("Maximum Items", 'rt_theme_admin'), "desc" => __("Set the amount of portfolio items to be displayed within the carousel.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_carousel[values][max_item]", "min" => "1", "max" => "200", "class" => $randomClass, "value" => $max_item, "default" => "9", "dont_save" => true, "type" => "rangeinput"), array("name" => __("Content Layout", 'rt_theme_admin'), "desc" => __('Select and set the column layout for the carousel.', 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_carousel[values][item_width]", "options" => array(5 => "1/5", 4 => "1/4", 3 => "1/3", 2 => "1/2", 1 => "1/1"), "default" => "1", "value" => $item_width, "hr" => "true", "type" => "select"), array("name" => __("Display Titles. (check to add the portfolio item title to the carousel)", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_carousel[values][display_titles]", "type" => "checkbox2", "class" => $randomClass, "value" => $display_titles, "default" => "on", "std" => "false"), array("name" => __("Display Descriptions. (check to add the portfolio item discription to the carousel)", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_carousel[values][display_descriptions]", "type" => "checkbox2", "class" => $randomClass, "value" => $display_descriptions, "default" => "on", "std" => "false"), array("name" => __("Crop Images. (check to enable cropping the portfolio item image)", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_carousel[values][crop]", "type" => "checkbox2", "class" => $randomClass, "value" => $crop, "default" => "on", "std" => "false"), array("type" => "table_end")); echo $this->rt_generate_forms($options); echo '</div></div></div></li>'; }
function __construct() { // Pages $rt_getpages = RTTheme::rt_get_pages(); // Posts $this->posts = query_posts('posts_per_page=-1&post_type=post&orderby=title&order=ASC'); // Regular Posts $this->products = query_posts('posts_per_page=-1&post_type=products&orderby=title&order=ASC'); // Products $this->portfolios = query_posts('posts_per_page=-1&post_type=portfolio&orderby=title&order=ASC'); // Portfolios $rt_getposts = array(); foreach ($this->posts as $post_list) { // add regular posts to the list $rt_getposts[$post_list->ID] = '[' . $post_list->post_type . '] ' . $post_list->post_title; } foreach ($this->products as $post_list) { // add product posts to the list $rt_getposts[$post_list->ID] = '[' . $post_list->post_type . '] ' . $post_list->post_title; } foreach ($this->portfolios as $post_list) { // add portfolio posts to the list $rt_getposts[$post_list->ID] = '[' . $post_list->post_type . '] ' . $post_list->post_title; } // Categories $rt_getcat = RTTheme::rt_get_categories(); // Product Categories $rt_product_getcat = RTTheme::rt_get_product_categories(); // Portfolio Categories $rt_portfolio_getcat = RTTheme::rt_get_portfolio_categories(); // reset query wp_reset_query(); // get saved values $savedSidebars = get_option('rt_sidebar_options'); // create new sidebar array $savedSidebars_array = array(); // Count Sidebars $savedSidebars_IDs = array(); $sidebar_count = 0; if ($savedSidebars) { foreach ($savedSidebars as $key => $value) { if (!is_array($value)) { if (stristr($key, '_sidebar_name') == TRUE) { array_push($savedSidebars_IDs, $key); $sidebar_count++; } } } } // costruct saved array foreach ($savedSidebars_IDs as $id) { //sidebar $sidebar_name = $savedSidebars[$id]; $sidebar_id = str_replace("_sidebar_name", "", $id); $sidebar_pages = isset($savedSidebars[$sidebar_id . '_pages']) ? $savedSidebars[$sidebar_id . '_pages'] : ""; $sidebar_posts = isset($savedSidebars[$sidebar_id . '_posts']) ? $savedSidebars[$sidebar_id . '_posts'] : ""; $sidebar_categories = isset($savedSidebars[$sidebar_id . '_categories']) ? $savedSidebars[$sidebar_id . '_categories'] : ""; $sidebar_product_categories = isset($savedSidebars[$sidebar_id . '_productcategories']) ? $savedSidebars[$sidebar_id . '_productcategories'] : ""; $sidebar_portfolio_categories = isset($savedSidebars[$sidebar_id . '_portfoliocategories']) ? $savedSidebars[$sidebar_id . '_portfoliocategories'] : ""; //sidebar array array_push($savedSidebars_array, array("name" => $sidebar_name, "id" => $sidebar_id, "options" => array('pages' => $sidebar_pages, 'posts' => $sidebar_posts, 'categories' => $sidebar_categories, 'productcategories' => $sidebar_product_categories, 'portfoliocategories' => $sidebar_portfolio_categories))); } // costruct form arrays $options = array(); //template builder info text array_push($options, array("name" => __("Info", 'rt_theme_admin'), "desc" => __('If you need a new sidebar widget area for specified contents, you can create one by using Sidebar Creator. When you create a sidebar go to Appearence → <a href="widgets.php">Widgets</a> to drag&drop widgets into it.', 'rt_theme_admin'), "hr" => "true", "type" => "info")); foreach ($savedSidebars_array as $sidebar_v) { $sidebarID = $sidebar_v["id"]; //Sidebar Div array_push($options, array("id" => "div_" . $sidebarID, "name" => $sidebar_v["name"], "type" => "div")); //Sidebar Names array_push($options, array("name" => __("Sidebar Name", 'rt_theme_admin'), "value" => $sidebar_v["name"], "id" => $sidebarID . "_sidebar_name", "class" => "sidebar_name saved", "type" => "text")); //For Pages array_push($options, array("name" => __("Select Pages", 'rt_theme_admin'), "id" => $sidebar_v["id"] . "_pages[]", "options" => $rt_getpages, "default" => $sidebar_v["options"]["pages"], "purpose" => "sidebar", "type" => "selectmultiple")); //For Posts array_push($options, array("name" => __("Select Posts", 'rt_theme_admin'), "desc" => __("Regular Posts, Products, Portfolio", 'rt_theme_admin'), "id" => $sidebar_v["id"] . "_posts[]", "options" => $rt_getposts, "default" => $sidebar_v["options"]["posts"], "purpose" => "sidebar", "class" => "postlist", "type" => "selectmultiple")); //For Categories array_push($options, array("name" => __("Select Categories", 'rt_theme_admin'), "id" => $sidebar_v["id"] . "_categories[]", "options" => $rt_getcat, "default" => $sidebar_v["options"]["categories"], "purpose" => "sidebar", "type" => "selectmultiple")); //For Product Categories array_push($options, array("name" => __("Select Product Categories", 'rt_theme_admin'), "id" => $sidebar_v["id"] . "_productcategories[]", "options" => $rt_product_getcat, "default" => $sidebar_v["options"]["productcategories"], "purpose" => "sidebar", "type" => "selectmultiple")); //For Portfolio Categories array_push($options, array("name" => __("Select Portfolio Categories", 'rt_theme_admin'), "id" => $sidebar_v["id"] . "_portfoliocategories[]", "options" => $rt_portfolio_getcat, "default" => $sidebar_v["options"]["portfoliocategories"], "purpose" => "sidebar", "type" => "selectmultiple")); //Button array_push($options, array("name" => __("Delete Sidebar", 'rt_theme_admin'), "id" => $sidebar_v["id"] . "_delete", "class" => "deleteButton", "purpose" => "sidebar", "type" => "button")); //Sidebar Divend array_push($options, array("id" => "", "type" => "divend")); } // New Sidebar $sidebarID = 'sidebarid_' . rand(1, 100000); $sidebarName = $sidebarID . '_sidebar_name'; //Sidebar Div array_push($options, array("name" => __("Create New Sidebar", 'rt_theme_admin'), "id" => "div_" . $sidebarID, "class" => "new_sidebar", "type" => "div")); //Sidebar Names array_push($options, array("name" => __("Sidebar Name", 'rt_theme_admin'), "value" => "", "class" => "sidebar_name", "id" => $sidebarName, "type" => "text")); //For Pages array_push($options, array("name" => __("Select Pages", 'rt_theme_admin'), "id" => $sidebarID . "_pages[]", "options" => $rt_getpages, "default" => "", "purpose" => "sidebar", "type" => "selectmultiple")); //For Posts array_push($options, array("name" => __("Select Posts", 'rt_theme_admin'), "id" => $sidebarID . "_posts[]", "options" => $rt_getposts, "desc" => __("Regular Posts, Products, Portfolio", 'rt_theme_admin'), "default" => "", "class" => "postlist", "purpose" => "sidebar", "type" => "selectmultiple")); //For Categories array_push($options, array("name" => __("Select Categories", 'rt_theme_admin'), "id" => $sidebarID . "_categories[]", "options" => $rt_getcat, "default" => "", "purpose" => "sidebar", "type" => "selectmultiple")); //For Product Categories array_push($options, array("name" => __("Select Product Categories", 'rt_theme_admin'), "id" => $sidebarID . "_productcategories[]", "options" => $rt_product_getcat, "default" => "", "purpose" => "sidebar", "type" => "selectmultiple")); //For Portfolio Categories array_push($options, array("name" => __("Select Portfolio Categories", 'rt_theme_admin'), "id" => $sidebarID . "_portfoliocategories[]", "options" => $rt_portfolio_getcat, "default" => "", "purpose" => "sidebar", "type" => "selectmultiple")); //Send button array_push($options, array("name" => __("Create Sidebar", 'rt_theme_admin'), "id" => $sidebarID . "_send_button", "class" => "create_button sidebarCreate", "purpose" => "page_layouts", "type" => "send_button")); //Sidebar Divend array_push($options, array("id" => "", "type" => "divend")); $this->rt_generate_form_page($options); }
function rt_generate_portfolio_box($theGroupID, $theTemplateID, $options, $randomClass) { $boxName = __("Portfolio Posts", "rt_theme_admin"); $contet_type = "portfolio_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;'; $categories = $isNewBox ? '' : $options['categories']; $pagination = $isNewBox ? '' : $options['pagination']; $filterable = $isNewBox ? '' : $options['filterable']; $item_width = $isNewBox ? '' : $options['item_width']; $portf_list_orderby = $isNewBox ? '' : $options['portf_list_orderby']; $portf_list_order = $isNewBox ? '' : $options['portf_list_order']; $item_per_page = $isNewBox ? '' : $options['item_per_page']; 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="' . $theGroupID . '"><input type="hidden" name="theGroupID_' . $theGroupID . '" value="' . $theGroupID . '"><input type="hidden" name="source_type_' . $theGroupID . '" value="' . $contet_type . '">'; $options = array(array("desc" => __("This module displays portfolio posts according the options below.", 'rt_theme_admin'), "hr" => "true", "type" => "info_text_only"), array("name" => __("Column Width", 'rt_theme_admin'), "desc" => __("Please select a column size for this module.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_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 Portfolio Categories", 'rt_theme_admin'), "desc" => __("You can filter posts by selecting categories from this list. If you don't select one, all portfolio posts will be displayed.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_categories[]", "options" => RTTheme::rt_get_portfolio_categories(), "purpose" => "sidebar", "type" => "selectmultiple", "class" => $randomClass, "default" => $categories), array("name" => __("OrderBy Parameter", 'rt_theme_admin'), "desc" => __("sort the portfolio items by this parameter", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[portf_list_orderby]", "options" => array('author' => 'Author', 'date' => 'Date', 'title' => 'Title', 'modified' => 'Modified', 'ID' => 'ID', 'rand' => 'Randomized'), "hr" => true, "value" => $portf_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 . "_portfolio_box[portf_list_order]", "options" => array('ASC' => 'Ascending', 'DESC' => 'Descending'), "value" => $portf_list_order, "default" => "DESC", "dont_save" => true, "hr" => true, "type" => "select"), array("name" => __("Amount of portfolio item per page", 'rt_theme_admin'), "desc" => __("How many item do you want to display per page?", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[item_per_page]", "min" => "1", "max" => "200", "class" => $randomClass, "value" => $item_per_page, "default" => "9", "dont_save" => true, "hr" => true, "type" => "rangeinput"), array("name" => __("Content Layout", 'rt_theme_admin'), "desc" => __("Please select a layout for the contents that will be displayed in this column.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[]", "options" => array(5 => "1/5", 4 => "1/4", 3 => "1/3", 2 => "1/2", 1 => "1/1"), "default" => "3", "value" => $item_width, "hr" => "true", "type" => "select"), array("name" => __("Pagination", 'rt_theme_admin'), "desc" => __("Adds page navigation under the portfolio posts.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[pagination]", "type" => "checkbox", "class" => $randomClass, "value" => $pagination, "hr" => true, "default" => "off", "std" => "false"), array("name" => __("Filter Navigation", 'rt_theme_admin'), "desc" => __("Adds a filter navigation top of the items.", 'rt_theme_admin'), "id" => $theTemplateID . '_' . $theGroupID . "_portfolio_box[filterable]", "type" => "checkbox", "class" => $randomClass, "value" => $filterable, "hr" => true, "default" => "off", "std" => "false"), 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>'; }