slug] = $term->name; } // End taxonomy call $meta_boxes = array(); $mb = new Response_Metabox('pages', $ec_themenamefull.' Page Options', array('pages' => array('page'))); $mb ->tab("Page Options") ->image_select($ec_themeslug.'_page_sidebar', 'Select Page Layout', '', array('options' => array(TEMPLATE_URL . '/images/options/right.png' , TEMPLATE_URL . '/images/options/left.png', TEMPLATE_URL . '/images/options/rightleft.png', TEMPLATE_URL . '/images/options/tworight.png', TEMPLATE_URL . '/images/options/none.png'))) ->checkbox($ec_themeslug.'_hide_page_title', 'Page Title', '', array('std' => 'on')) ->section_order($ec_themeslug.'_page_section_order', 'Page Elements', '', array('options' => array( 'page_section' => 'Page', 'breadcrumbs' => 'Breadcrumbs', 'page_slider' => 'Feature Slider', 'portfolio_element' => 'Portfolio', 'recent_posts_element' => 'Recent Posts', 'twitterbar_section' => 'Twitter Bar' ), 'std' => 'page_section,breadcrumbs' )) ->pagehelp('', 'Need Help?', '') ->tab($ec_themenamefull." Slider Options") ->single_image($ec_themeslug.'_page_slide_one_image', 'Slide One Image', '', array('std' => TEMPLATE_URL . '/images/sliderdefault.jpg')) ->text($ec_themeslug.'_page_slide_one_url', 'Slide One Link', '', array('std' => 'http://wordpress.org')) ->single_image($ec_themeslug.'_page_slide_two_image', 'Slide Two Image', '', array('std' => TEMPLATE_URL . '/images/slide2.jpg')) ->text($ec_themeslug.'_page_slide_two_url', 'Slide Two Link', '', array('std' => 'http://wordpress.org')) ->single_image($ec_themeslug.'_page_slide_three_image', 'Slide Three Image', '', array('std' => TEMPLATE_URL . '/images/slide3.jpg')) ->text($ec_themeslug.'_page_slide_three_url', 'Slide Three Link', '', array('std' => 'http://wordpress.org')) ->tab("Recent Posts Options") ->checkbox($ec_themeslug.'_recent_posts_title_toggle', 'Title', '') ->text($ec_themeslug.'_recent_posts_title', '', '') ->select($ec_themeslug.'_recent_posts_category', 'Post Category', '', array('options' => $blogoptions, 'all') ) ->checkbox($ec_themeslug.'_recent_posts_images_toggle', 'Images', '') ->tab("Portfolio Options") ->single_image($ec_themeslug.'_page_portfolio_image_one', 'First Portfolio Image', '', array('std' => TEMPLATE_URL . '/images/portfolio.jpg')) ->text($ec_themeslug.'_page_portfolio_image_one_caption', 'First Portfolio Image Caption', '', array('std' => 'Image 1')) ->single_image($ec_themeslug.'_page_portfolio_image_two', 'Second Portfolio Image', '', array('std' => TEMPLATE_URL . '/images/portfolio.jpg')) ->text($ec_themeslug.'_page_portfolio_image_two_caption', 'Second Portfolio Image Caption', '', array('std' => 'Image 2')) ->single_image($ec_themeslug.'_page_portfolio_image_three', 'Third Portfolio Image', '', array('std' => TEMPLATE_URL . '/images/portfolio.jpg')) ->text($ec_themeslug.'_page_portfolio_image_three_caption', 'Third Portfolio Image Caption', '', array('std' => 'Image 3')) ->single_image($ec_themeslug.'_page_portfolio_image_four', 'Fourth Portfolio Image', '', array('std' => TEMPLATE_URL . '/images/portfolio.jpg')) ->text($ec_themeslug.'_page_portfolio_image_four_caption', 'Fourth Portfolio Image Caption', '', array('std' => 'Image 4')) ->checkbox($ec_themeslug.'_portfolio_title_toggle', 'Portfolio Title', '') ->text($ec_themeslug.'_portfolio_title', 'Title', '', array('std' => 'Portfolio')) ->tab("Twitter Options") ->text($ec_themeslug.'_twitter_handle', 'Twitter Handle', '') ->checkbox('twitter_reply', 'Show @ Replies', '') ->tab("SEO Options") ->text($ec_themeslug.'_seo_title', 'SEO Title', '') ->textarea($ec_themeslug.'_seo_description', 'SEO Description', '') ->textarea($ec_themeslug.'_seo_keywords', 'SEO Keywords', '') ->pagehelp('', 'Need help?', '') ->end(); foreach ($meta_boxes as $meta_box) { $my_box = new RW_Meta_Box_Taxonomy($meta_box); } }