function section_optionator($settings) { $settings = wp_parse_args($settings, $this->optionator_default); $option_array = array('pagelines_masthead_splash_multi' => array('type' => 'multi_option', 'title' => __('Masthead Splash Options', 'pagelines'), 'shortexp' => __('Enter the options for the masthead splash image. If no options are specified, no image will be shown.', 'pagelines'), 'selectvalues' => array('pagelines_masthead_img' => array('type' => 'image_upload', 'imagepreview' => '270', 'inputlabel' => 'Upload custom image'), 'pagelines_masthead_imgalt' => array('type' => 'text', 'inputlabel' => 'Masthead Image Alt'), 'pagelines_masthead_html' => array('type' => 'textarea', 'inputlabel' => 'Masthead Video (optional, to be used instead of image)'), 'masthead_html_width' => array('type' => 'text_small', 'inputlabel' => 'Maxium width of splash in px (default is full width)')), 'exp' => 'Upload an image to serve as a splash image, or use an embed code for full width video.'), 'pagelines_masthead_text' => array('type' => 'text_multi', 'layout' => 'full', 'inputlabel' => 'Enter text for your masthead banner section', 'title' => $this->name . ' Text', 'selectvalues' => array('pagelines_masthead_title' => array('inputlabel' => 'Title', 'default' => ''), 'pagelines_masthead_tagline' => array('inputlabel' => 'Tagline', 'default' => '')), 'shortexp' => 'The text for the masthead section'), 'masthead_button_multi_1' => array('type' => 'multi_option', 'title' => __('Masthead Action Button 1', 'pagelines'), 'shortexp' => __('Enter the options for the masthead button. If no options are specified, no button will be shown.', 'pagelines'), 'selectvalues' => array('masthead_button_link_1' => array('type' => 'text', 'inputlabel' => 'Enter the link destination (URL - Required)'), 'masthead_button_text_1' => array('type' => 'text', 'inputlabel' => 'Masthead Button Text'), 'masthead_button_target_1' => array('type' => 'check', 'default' => false, 'inputlabel' => 'Open link in new window.'), 'masthead_button_theme_1' => array('type' => 'select', 'default' => false, 'inputlabel' => 'Select Button Color', 'selectvalues' => array('primary' => array('name' => 'Blue'), 'warning' => array('name' => 'Orange'), 'important' => array('name' => 'Red'), 'success' => array('name' => 'Green'), 'info' => array('name' => 'Light Blue'), 'reverse' => array('name' => 'Grey'))))), 'masthead_button_multi_2' => array('type' => 'multi_option', 'title' => __('Masthead Action Button 2', 'pagelines'), 'shortexp' => __('Enter the options for the masthead button. If no options are specified, no button will be shown.', 'pagelines'), 'selectvalues' => array('masthead_button_link_2' => array('type' => 'text', 'inputlabel' => 'Enter the link destination (URL - Required)'), 'masthead_button_text_2' => array('type' => 'text', 'inputlabel' => 'Masthead Button Text'), 'masthead_button_target_2' => array('type' => 'check', 'default' => false, 'inputlabel' => 'Open link in new window.'), 'masthead_button_theme_2' => array('type' => 'select', 'default' => false, 'inputlabel' => 'Select Button Color', 'selectvalues' => array('primary' => array('name' => 'Blue'), 'warning' => array('name' => 'Orange'), 'important' => array('name' => 'Red'), 'success' => array('name' => 'Green'), 'info' => array('name' => 'Light Blue'), 'reverse' => array('name' => 'Grey'))))), 'masthead_menu' => array('shortexp' => __('Choose a Wordpress menu to display (optional)', 'pagelines'), 'type' => 'select_menu', 'title' => 'Masthead Menu', 'inputlabel' => 'Select Masthead Menu'), 'masthead_meta' => array('shortexp' => __('Enter text to be shown on Masthead (optional)', 'pagelines'), 'type' => 'textarea', 'title' => 'Masthead Meta', 'inputlabel' => 'Enter Masthead Meta Text')); $metatab_settings = array('id' => $this->tabID, 'name' => 'Masthead', 'icon' => $this->icon, 'clone_id' => $settings['clone_id'], 'active' => $settings['active']); register_metatab($metatab_settings, $option_array); }
function section_optionator($settings) { $settings = wp_parse_args($settings, $this->optionator_default); $option_array = array('pagelines_herounit_text' => array('type' => 'multi_option', 'inputlabel' => 'Enter text for your Hero section', 'title' => $this->name . ' Text', 'selectvalues' => array('pagelines_herounit_title' => array('type' => 'text', 'inputlabel' => 'Heading'), 'pagelines_herounit_tagline' => array('type' => 'textarea', 'inputlabel' => 'Subtext')), 'shortexp' => 'The text for the Hero section Header and Subtext content.', 'exp' => 'The title is used for the heading, and the subtext is placed directly beneath it.'), 'pagelines_herounit_image' => array('type' => 'image_upload', 'imagepreview' => '270', 'inputlabel' => 'Upload custom image', 'title' => $this->name . ' Image', 'shortexp' => 'Input Full URL to your custom Hero image.', 'exp' => 'Places a custom image to the right of the call to action and text.'), 'pagelines_herounit_cta' => array('type' => 'multi_option', 'title' => __('Hero Action Button', 'pagelines'), 'shortexp' => __('Enter the options for the Hero button', 'pagelines'), 'selectvalues' => array('herounit_button_link' => array('type' => 'text', 'inputlabel' => 'Button link destination (URL - Required)'), 'herounit_button_text' => array('type' => 'text', 'inputlabel' => 'Hero Button Text'), 'herounit_button_target' => array('type' => 'check', 'default' => false, 'inputlabel' => 'Open link in new window.'), 'herounit_button_theme' => array('type' => 'select', 'default' => false, 'inputlabel' => 'Select Button Color', 'selectvalues' => array('primary' => array('name' => 'Blue'), 'warning' => array('name' => 'Orange'), 'important' => array('name' => 'Red'), 'success' => array('name' => 'Green'), 'info' => array('name' => 'Light Blue'), 'reverse' => array('name' => 'Grey'))))), 'pagelines_herounit_widths' => array('type' => 'multi_option', 'title' => __('Content Widths', 'pagelines'), 'shortexp' => __('Select the width of the image and text areas', 'pagelines'), 'selectvalues' => array('herounit_left_width' => array('type' => 'select', 'default' => 'span6', 'inputlabel' => 'Text Area Width', 'selectvalues' => array('span3' => array('name' => '25%'), 'span4' => array('name' => '33%'), 'span6' => array('name' => '50%'), 'span8' => array('name' => '66%'), 'span9' => array('name' => '75%'), 'span7' => array('name' => '90%'))), 'herounit_right_width' => array('type' => 'select', 'default' => 'span6', 'inputlabel' => 'Image Area Width', 'selectvalues' => array('span3' => array('name' => '25%'), 'span4' => array('name' => '33%'), 'span6' => array('name' => '50%'), 'span8' => array('name' => '66%'), 'span9' => array('name' => '75%'), 'span7' => array('name' => '90%')))))); $metatab_settings = array('id' => $this->tabID, 'name' => 'Hero Unit', 'icon' => $this->icon, 'clone_id' => $settings['clone_id'], 'active' => $settings['active']); register_metatab($metatab_settings, $option_array); }
function section_persistent() { /* Create Custom Post Type */ $args = array('label' => __('Banners', 'pagelines'), 'singular_label' => __('Banner', 'pagelines'), 'description' => 'For creating banners in banner section layouts.'); $taxonomies = array("banner-sets" => array("label" => __('Banner Sets', 'pagelines'), "singular_label" => __('Banner Set', 'pagelines'))); $columns = array("cb" => "<input type=\"checkbox\" />", "title" => "Title", "banner-description" => "Text", "banner-media" => "Media", "banner-sets" => "Banner Sets"); $column_value_function = 'banner_column_display'; $this->post_type = new PageLinesPostType($this->id, $args, $taxonomies, $columns, $column_value_function); /* Set default posts if none are present */ $this->post_type->set_default_posts('pagelines_default_banners'); /* Meta Options */ /* Create meta fields for the post type */ $type_meta_array = array('the_banner_image' => array('version' => 'pro', 'type' => 'image_upload', 'title' => 'Banner Media', 'desc' => 'Upload an image for the banner.'), 'the_banner_media' => array('version' => 'pro', 'type' => 'textarea', 'title' => 'Banner Media', 'desc' => 'Add HTML Media for the banner, e.g. Youtube embed code. This option is used if there is no image uploaded.'), 'banner_text_width' => array('version' => 'pro', 'type' => 'text', 'size' => 'small', 'title' => 'Banner Text Width (In %)', 'desc' => 'Set the width of the text area as a percentage of full content width. The media area will fill the rest.'), 'banner_align' => array('version' => 'pro', 'type' => 'select', 'selectvalues' => array('banner_right' => array("name" => "Banner Right"), 'banner_left' => array("name" => "Banner Left")), 'title' => 'Banner Alignment', 'desc' => 'Put the media on the right or the left?'), 'banner_text_padding' => array('version' => 'pro', 'type' => 'text', 'size' => 'small', 'title' => 'Banner Text Padding', 'desc' => '(optional) Set the padding for the text area. Use CSS shorthand, for example:<strong> 25px 30px 25px 35px</strong>; for top, right, bottom, then left padding.')); $post_types = array($this->id); $type_metapanel_settings = array('id' => 'banner-metapanel', 'name' => "Banner Setup Options", 'posttype' => $post_types, 'hide_tabs' => true); $type_meta_panel = new PageLinesMetaPanel($type_metapanel_settings); $type_metatab_settings = array('id' => 'banner-type-metatab', 'name' => "Banner Setup Options", 'icon' => $this->icon); $type_meta_panel->register_tab($type_metatab_settings, $type_meta_array); $metatab_array = array('banner_set' => array('version' => 'pro', 'type' => 'select_taxonomy', 'taxonomy_id' => "banner-sets", 'title' => 'Select Banner Set To Show', 'desc' => 'If you are using the Banner section, select the banner set you would like to show on this page.'), 'banner_items' => array('version' => 'pro', 'type' => 'text', 'size' => 'small', 'title' => 'Max Number of Banners', 'desc' => 'Enter the max number of banners to show on this page. If left blank, the number of posts selected under settings > "reading" will be used.')); $metatab_settings = array('id' => 'banner_page_meta', 'name' => "Banner Section", 'icon' => $this->icon); register_metatab($metatab_settings, $metatab_array); }
/** * * @TODO document * */ function section_optionator($settings) { $settings = wp_parse_args($settings, $this->optionator_default); $page_metatab_array = array('pagelines_callout_text' => array('type' => 'text_multi', 'inputlabel' => 'Enter text for your callout banner section', 'title' => $this->name . ' Text', 'selectvalues' => array('pagelines_callout_header' => array('inputlabel' => 'Callout Header', 'default' => ''), 'pagelines_callout_subheader' => array('inputlabel' => 'Callout Subtext', 'default' => '')), 'shortexp' => 'The text for the callout banner section', 'exp' => 'This text will be used as the title/text for the callout section of the theme.'), 'pagelines_callout_align' => array('type' => 'select', 'inputlabel' => 'Select Alignment', 'title' => 'Callout Alignment', 'shortexp' => 'Aligns the action left or right (defaults right)', 'exp' => 'Default alignment for the callout "action" is on the right.', 'selectvalues' => array('right' => array('name' => 'Align Right'), 'left' => array('name' => 'Align Left'), 'center' => array('name' => 'Align Center'))), 'pagelines_callout_cta' => array('type' => 'multi_option', 'title' => __('Callout Action Button', 'pagelines'), 'shortexp' => __('Enter the options for the Callout button', 'pagelines'), 'selectvalues' => array('pagelines_callout_button_link' => array('type' => 'text', 'inputlabel' => 'Button link destination (URL - Required)'), 'pagelines_callout_button_text' => array('type' => 'text', 'inputlabel' => 'Callout Button Text'), 'pagelines_callout_button_target' => array('type' => 'check', 'default' => false, 'inputlabel' => 'Open link in new window.'), 'pagelines_callout_button_theme' => array('type' => 'select', 'default' => false, 'inputlabel' => 'Select Button Color', 'selectvalues' => array('primary' => array('name' => 'Blue'), 'warning' => array('name' => 'Orange'), 'important' => array('name' => 'Red'), 'success' => array('name' => 'Green'), 'info' => array('name' => 'Light Blue'), 'reverse' => array('name' => 'Grey'))))), 'pagelines_callout_image' => array('type' => 'image_upload', 'imagepreview' => '270', 'inputlabel' => 'Upload custom image', 'title' => $this->name . ' Image', 'shortexp' => 'Input Full URL to your custom header or logo image.', 'exp' => 'Overrides the button output with a custom image.')); $metatab_settings = array('id' => $this->tabID, 'name' => 'Callout', 'icon' => $this->icon, 'clone_id' => $settings['clone_id'], 'active' => $settings['active']); register_metatab($metatab_settings, $page_metatab_array); }
/** * * @TODO document * */ function section_optionator($settings) { $settings = wp_parse_args($settings, $this->optionator_default); $metatab_array = array('banner_items' => array('default' => '5', 'version' => 'pro', 'type' => 'text_small', 'title' => __('Max Number of Banners', 'pagelines'), 'desc' => __('Select the default max number of banners.', 'pagelines'), 'inputlabel' => __('Number of Banners', 'pagelines'), 'exp' => __('This number will be used as the max number of banners to use in this section.', 'pagelines')), 'banner_set' => array('default' => null, 'version' => 'pro', 'type' => 'select_taxonomy', 'taxonomy_id' => $this->taxID, 'desc' => __('Select Default Banner Set', 'pagelines'), 'inputlabel' => __('Select Default Banner Set', 'pagelines'), 'title' => __('Default Banner Set', 'pagelines'), 'shortexp' => __("Select the category (taxonomy) of Banner posts to show", 'pagelines'), 'exp' => __("Select the taxonomy/category of banners to show on this page.", 'pagelines'))); $metatab_settings = array('id' => 'banner_page_meta', 'name' => 'Banners', 'icon' => $this->icon, 'clone_id' => $settings['clone_id'], 'active' => $settings['active']); register_metatab($metatab_settings, $metatab_array); }
/** * * @TODO document * */ function section_optionator($settings) { $settings = wp_parse_args($settings, $this->optionator_default); $tab = array('box_setup' => array('type' => 'multi_option', 'title' => __('Box Setup Options', 'pagelines'), 'shortexp' => __('Basic setup options for handling of boxes.', 'pagelines'), 'selectvalues' => array('box_set' => array('default' => 'default-boxes', 'type' => 'select_taxonomy', 'taxonomy_id' => $this->taxID, 'inputlabel' => __('Box Set To Show', 'pagelines')), 'box_col_number' => array('type' => 'count_select', 'default' => '3', 'count_number' => '5', 'count_start' => '1', 'inputlabel' => __("Boxes Per Row", 'pagelines')), 'box_items' => array('default' => '6', 'type' => 'text_small', 'size' => 'small', 'inputlabel' => __('Maximum Boxes To Show', 'pagelines')))), 'box_image_formatting' => array('type' => 'multi_option', 'title' => __('Box Image Options', 'pagelines'), 'shortexp' => __('Options for formatting box images.', 'pagelines'), 'exp' => __('', 'pagelines'), 'selectvalues' => array('box_thumb_type' => array('type' => 'select', 'default' => 'inline_thumbs', 'selectvalues' => array('inline_thumbs' => array('name' => __('Image At Left', 'pagelines')), 'top_thumbs' => array('name' => __('Image On Top', 'pagelines')), 'only_thumbs' => array('name' => __("Only The Image, No Text", 'pagelines'))), 'inputlabel' => __('Box Thumb Style (optional - defaults to Image At Left)', 'pagelines')), 'box_thumb_size' => array('default' => '64', 'type' => 'text_small', 'size' => 'small', 'inputlabel' => __('Enter the max image size in pixels (optional)', 'pagelines')), 'box_thumb_frame' => array('default' => '64', 'type' => 'check', 'size' => 'small', 'inputlabel' => __('Add A Frame To Images', 'pagelines')))), 'box_ordering' => array('type' => 'multi_option', 'title' => __('Box Ordering Options', 'pagelines'), 'shortexp' => __('Optionally control the ordering of the boxes', 'pagelines'), 'exp' => __('The easiest way to order boxes is using a post type order plugin for WordPress. However, if you would like to do it algorithmically, we have provided these options for you.', 'pagelines'), 'selectvalues' => array('box_orderby' => array('type' => 'select', 'default' => 'ID', 'inputlabel' => 'Order Boxes By (If Not With Post Type Order Plugin)', 'selectvalues' => array('ID' => array('name' => __('Post ID (default)', 'pagelines')), 'title' => array('name' => __('Title', 'pagelines')), 'date' => array('name' => __('Date', 'pagelines')), 'modified' => array('name' => __('Last Modified', 'pagelines')), 'rand' => array('name' => __('Random', 'pagelines')))), 'box_order' => array('default' => 'DESC', 'type' => 'select', 'selectvalues' => array('DESC' => array('name' => __('Descending', 'pagelines')), 'ASC' => array('name' => __('Ascending', 'pagelines'))), 'inputlabel' => __('Select sort order', 'pagelines')))), 'box_more_text' => array('default' => '', 'type' => 'text', 'size' => 'small', 'inputlabel' => __('More Link Text', 'pagelines'), 'title' => __('More Link Text', 'pagelines'), 'shortexp' => __('Enter text for More links on linked box elements for this page.', 'pagelines'), 'exp' => __('If this option is blank (and not set in defaults), no more text will show.<br/><br/> This option can be overridden in individual box settings.', 'pagelines')), 'box_class' => array('default' => '', 'type' => 'text', 'size' => 'small', 'inputlabel' => __('Add custom css class to these boxes', 'pagelines'), 'title' => __('Custom CSS class', 'pagelines'), 'shortexp' => __('Add a custom CSS class to this set of boxes.', 'pagelines'))); $tab_settings = array('id' => 'fboxes_meta', 'name' => 'Boxes', 'icon' => $this->icon, 'clone_id' => $settings['clone_id'], 'active' => $settings['active']); register_metatab($tab_settings, $tab); }
function section_persistent() { /* Create Custom Post Type */ $args = array('label' => __('Features', 'pagelines'), 'singular_label' => __('Feature', 'pagelines'), 'description' => 'For setting slides on the feature page template', 'taxonomies' => array('feature-sets')); $taxonomies = array('feature-sets' => array("label" => __('Feature Sets', 'pagelines'), "singular_label" => __('Feature Set', 'pagelines'))); $columns = array("cb" => "<input type=\"checkbox\" />", "title" => "Title", "feature-description" => "Text", "feature-media" => "Media", "feature-sets" => "Feature Sets"); $column_value_function = 'feature_column_display'; $this->post_type = new PageLinesPostType($this->id, $args, $taxonomies, $columns, $column_value_function); /* Set default posts if none are present */ $this->post_type->set_default_posts('pagelines_default_features'); /* Create meta fields for the post type */ $type_meta_array = array('feature-style' => array('type' => 'select', 'title' => 'Feature Text Position', 'desc' => 'Select the type of feature style you would like to be shown. E.g. show text on left, right, bottom or not at all (full width)...', 'selectvalues' => array('text-left' => 'Text On Left', 'text-right' => 'Text On Right', 'text-bottom' => 'Text On Bottom', 'text-none' => 'Full Width Image or Media - No Text')), 'feature-background-image' => array('desc' => 'Upload an image for the feature background.', 'title' => 'Feature Background Image', 'type' => 'image_upload'), 'feature-design' => array('type' => 'select', 'desc' => 'Select the design style you would like this feature to have (e.g. default background color, text color, overlay? etc...).', 'title' => 'Feature Design Style', 'selectvalues' => array('fstyle-darkbg-overlay' => 'White Text - Dark Feature Background - Transparent Text Overlay (Default)', 'fstyle-lightbg' => 'Black Text - Light Feature Background with Border - No Overlay', 'fstyle-darkbg' => 'White Text - Dark Feature Background - No Overlay', 'fstyle-nobg' => 'Black Text - No Feature Background - No Overlay')), 'feature-media-image' => array('version' => 'pro', 'type' => 'image_upload', 'title' => 'Feature Media Image', 'label' => 'Upload An Image For The Feature Media Area', 'desc' => 'Upload an image of the appropriate size for the feature media area.'), 'feature-media' => array('version' => 'pro', 'type' => 'textarea', 'title' => 'Feature Media HTML (Youtube, Flash etc...)', 'label' => 'Enter HTML For Feature Media Area', 'desc' => 'Feature Page Media HTML or Embed Code.'), 'feature-thumb' => array('desc' => 'Add thumbnails to your post for use in thumb navigation. Create an image 50px wide by 30px tall and upload here.', 'title' => 'Feature Thumb (50px by 30px)', 'label' => 'Upload Feature Thumbnail (Thumbs Mode)', 'type' => 'image_upload'), 'feature-link-url' => array('desc' => 'Adding a URL here will add a link to your feature slide', 'title' => 'Feature Link URL', 'label' => 'Enter Feature Link URL', 'type' => 'text'), 'feature-link-text' => array('default' => 'More', 'desc' => 'Enter the text you would like in your feature link', 'title' => 'Link Text', 'label' => 'Enter Feature Link Text', 'type' => 'text', 'size' => 'small'), 'feature-name' => array('default' => '', 'desc' => 'Enter the title you would like to appear when the feature nav mode is set to feature names', 'title' => 'Navigation Label', 'label' => 'Enter Feature Navigation Text (Names Nav Mode)', 'type' => 'text')); // Add options for correct post type. $post_types = pagelines('feature_source') == 'posts' ? array($this->id, 'post') : array($this->id); $type_metapanel_settings = array('id' => 'feature-metapanel', 'name' => "Feature Setup Options", 'posttype' => $post_types, 'hide_tabs' => true); $type_meta_panel = new PageLinesMetaPanel($type_metapanel_settings); $type_metatab_settings = array('id' => 'feature-type-metatab', 'name' => "Feature Setup Options", 'icon' => $this->icon); $type_meta_panel->register_tab($type_metatab_settings, $type_meta_array); /* Do Page/Post Options */ $page_metatab_array = array('feature_items' => array('version' => 'pro', 'type' => 'text', 'size' => 'small', 'title' => 'Number of Feature Slides', 'desc' => 'Enter the max number of feature slides to show on this page. Note: If left blank, the number of posts selected under reading settings in the admin will be used.'), 'feature_set' => array('version' => 'pro', 'type' => 'select_taxonomy', 'taxonomy_id' => "feature-sets", 'title' => 'Select Feature Set To Show', 'desc' => 'If you are using the feature section, select the feature set you would like to show on this page.')); $metatab_settings = array('id' => 'feature_meta', 'name' => "Feature Slider Section", 'icon' => $this->icon); register_metatab($metatab_settings, $page_metatab_array); }
/** * * @TODO document * */ function section_optionator($settings) { $settings = wp_parse_args($settings, $this->optionator_default); $metatab_array = array('hl_options' => array('version' => 'pro', 'type' => 'multi_option', 'title' => 'Highlight Header Text (Optional)', 'shortexp' => 'Add the main header text for the highlight section.', 'selectvalues' => array('_highlight_head' => array('version' => 'pro', 'type' => 'text', 'size' => 'big', 'inputlabel' => 'Highlight Header Text (Optional)'), '_highlight_subhead' => array('version' => 'pro', 'type' => 'text', 'size' => 'big', 'inputlabel' => 'Highlight Subheader Text (Optional)'), '_highlight_splash' => array('version' => 'pro', 'type' => 'image_upload', 'inputlabel' => 'Upload Splash Image'), '_highlight_splash_position' => array('version' => 'pro', 'type' => 'select', 'inputlabel' => 'Highlight Image Style', 'selectvalues' => array('top' => array('name' => 'Image on top of text'), 'bottom' => array('name' => 'Image on bottom of text'), 'notext' => array('name' => 'No text, just the image'))), '_highlight_image_frame' => array('type' => 'check', 'inputlabel' => 'Add frame to image?')))); $metatab_settings = array('id' => $this->tabID, 'name' => 'Highlight', 'icon' => $this->icon, 'clone_id' => $settings['clone_id'], 'active' => $settings['active']); register_metatab($metatab_settings, $metatab_array); }
function section_persistent() { /* Create Custom Post Type */ $args = array('label' => __('Boxes', 'pagelines'), 'singular_label' => __('Box', 'pagelines'), 'description' => 'For creating boxes in box type layouts.'); $taxonomies = array("box-sets" => array("label" => __('Box Sets', 'pagelines'), "singular_label" => __('Box Set', 'pagelines'))); $columns = array("cb" => "<input type=\"checkbox\" />", "title" => "Title", "bdescription" => "Text", "bmedia" => "Media", "box-sets" => "Box Sets"); $column_value_function = 'box_column_display'; $this->post_type = new PageLinesPostType($this->id, $args, $taxonomies, $columns, $column_value_function); /* Set default posts if none are present */ $this->post_type->set_default_posts('pagelines_default_boxes'); /* Meta Options */ /* Create meta fields for the post type */ $type_meta_array = array('the_box_icon' => array('type' => 'image_upload', 'title' => 'Box Image', 'desc' => 'Upload an image for the box.<br/> Depending on your settings this image will be used as an icon, or splash image; so desired size may vary.'), 'the_box_icon_link' => array('type' => 'text', 'title' => 'Box Link (Optional)', 'desc' => 'Make the box image and title clickable by adding a link here (optional)...')); $post_types = array($this->id); $type_metapanel_settings = array('id' => 'boxes-metapanel', 'name' => THEMENAME . " Box Options", 'posttype' => $post_types); global $boxes_meta_panel; $boxes_meta_panel = new PageLinesMetaPanel($type_metapanel_settings); $type_metatab_settings = array('id' => 'boxes-type-metatab', 'name' => "Box Setup Options", 'icon' => $this->icon); $boxes_meta_panel->register_tab($type_metatab_settings, $type_meta_array); /* Build Ind. Page and Post Options */ $metatab_array = array('box_set' => array('type' => 'select_taxonomy', 'taxonomy_id' => "box-sets", 'title' => 'Select Box Set To Show', 'desc' => 'If you are using the box section, select the box set you would like to show on this page.'), 'box_col_number' => array('type' => 'select_count', 'count_number' => '5', 'count_start' => '2', 'inputlabel' => 'Number of Feature Box Columns', 'title' => 'Box Columns', 'label' => "Select the number of columns to show boxes in.", 'desc' => "The number you select here will be the number of boxes listed in a row on a page. Note: This won't work on the blog page (use the global option)."), 'box_thumb_type' => array('type' => 'select', 'selectvalues' => array('inline_thumbs' => array("name" => "Image At Left"), 'top_thumbs' => array("name" => "Image On Top"), 'only_thumbs' => array("name" => "Only The Image, No Text")), 'title' => 'Box Thumb Position', 'desc' => 'Choose between thumbs on left and thumbs on top of boxes.'), 'box_thumb_size' => array('type' => 'text', 'size' => 'small', 'title' => 'Box Icon Size (in Pixels)', 'label' => "Enter the icon size in pixels", 'desc' => "Select the default icon size in pixels, set the images when creating new boxes."), 'box_items' => array('type' => 'text', 'size' => 'small', 'inputlabel' => 'Maximum Boxes To Show On Page', 'title' => 'Max Number of Boxes', 'desc' => "Select the max number of boxes to show on this page (overrides default).")); $metatab_settings = array('id' => 'fboxes_meta', 'name' => "Boxes Section", 'icon' => $this->icon); register_metatab($metatab_settings, $metatab_array); }
function section_admin(){ $metatab_array = array( 'carousel_items' => array( 'version' => 'pro', 'type' => 'text', 'size' => 'small', 'title' => 'Max Carousel Items (Carousel Page Template)', 'desc' => 'The number of items/thumbnails to show in the carousel.', 'label' => 'Enter the number of carousel items' ), 'carousel_mode' => array( 'version' => 'pro', 'type' => 'select', 'selectvalues'=> array( 'flickr' => 'Flickr (default)', 'posts' => 'Post Thumbnails', 'ngen_gallery' => 'NextGen Gallery', 'hook' => 'Hook: "pagelines_carousel_list"' ), 'title' => 'Carousel Image/Link Mode (Carousel Page Template)', 'desc' => 'Select the mode that the carousel should use for its thumbnails.<br/><br/>' . '<strong>Flickr</strong> - (default) Uses thumbs from FlickrRSS plugin.<br/><strong> Post Thumbnails</strong> - Uses links and thumbnails from posts <br/>' . '<strong>NextGen Gallery</strong> - Uses an image gallery from the NextGen Gallery Plugin' ), 'carousel_ngen_gallery' => array( 'version' => 'pro', 'type' => 'text', 'title' => 'NextGen Gallery ID For Carousel (Carousel Page Template / NextGen Mode)', 'desc' => 'Enter the ID of the NextGen Image gallery for the carousel. <strong>The NextGen Gallery and carousel template must be selected.</strong>' ), 'carousel_post_id' => array( 'version' => 'pro', 'type' => 'text', 'title' => 'Enter Category Slug (Carousel Posts Mode)', 'desc' => 'Enter the name or slug of the category that the carousel should use for its images (posts mode only).' ) ); $metatab_settings = array( 'id' => 'carousel_meta', 'name' => "Carousel Section", 'icon' => $this->icon ); register_metatab($metatab_settings, $metatab_array); }
function section_persistent(){ $type_meta_array = array( // Only for custom post type ); $post_types = array($this->settings['posttype']); global $page_meta_panel; $type_metatab_settings = array( // not needed ); //$page_meta_panel->register_tab( $type_metatab_settings, $type_meta_array ); $metatab_array = array( 'sidebar_position' => array( 'default' => 'left', 'type' => 'select', 'selectvalues'=> array( 'left' => array( 'name' => 'Place The Sidebar At The Left Side' ), 'right' => array( 'name' => 'Place The Sidebar At The Right Side' ), ), 'title' => "Inner Pages Sidebar Position", 'shortexp' => "Inner Pages Sidebar Position", 'inputlabel' => 'Inner Pages Sidebar Position', 'desc' => 'Use this option to select where you want the sidebar. <strong>Note :</strong> you can create your own custom sidebar and replace the default one, use the settings panel below to change the sidebar.' ), ); $metatab_settings = array( 'id' => 'page_meta', 'name' => "Inner Page Settings", 'icon' => $this->icon ); register_metatab($metatab_settings, $metatab_array); }
function section_persistent() { /* Create meta fields for the page template when using the Feature Template */ $metatab_array = array( '_highlight_head' => array( 'type' => 'text', 'size' => 'big', 'title' => 'Highlight Header Text (Optional)', 'desc' => 'Add the main header text for the highlight section.' ), '_highlight_subhead' => array( 'type' => 'text', 'size' => 'big', 'title' => 'Highlight Subheader Text (Optional)', 'desc' => 'Add the main subheader text for the highlight section.' ), '_highlight_splash' => array( 'type' => 'image_upload', 'label' => 'Upload Splash Image', 'title' => 'Highlight Splash Image (Optional)', 'desc' => 'Upload an image to use in the highlight section (if activated)' ), '_highlight_splash_position' => array( 'type' => 'select', 'title' => 'Highlight Image Position', 'desc' => 'Select the position of the highlight image.', 'selectvalues'=> array( 'top' => array( 'name' => 'Top' ), 'bottom' => array( 'name' => 'Bottom' ) ), ), ); $metatab_settings = array( 'id' => 'highlight_meta', 'name' => "Highlight Section", 'icon' => $this->icon ); register_metatab($metatab_settings, $metatab_array); }
function do_global_meta_options() { global $global_meta_options; $metatab_settings = array('id' => 'general_page_meta', 'name' => "General Page Setup", 'icon' => PL_ADMIN_ICONS . '/ileaf.png'); register_metatab($metatab_settings, $global_meta_options, 'top'); }
/** * * Page-by-page options for PostPins * */ function section_optionator($settings) { $settings = wp_parse_args($settings, $this->optionator_default); $array = array(); $array['quick_slides'] = array('type' => 'count_select', 'count_start' => 1, 'count_number' => 10, 'default' => '3', 'inputlabel' => __('Number of Slides to Configure', 'pagelines'), 'title' => __('Number of Slides', 'pagelines'), 'shortexp' => __('Enter the number of QuickSlider slides. <strong>Default is 3</strong>', 'pagelines'), 'exp' => __("This number will be used to generate slides and option setup.", 'pagelines')); $array['quick_transition'] = array('type' => 'select', 'selectvalues' => array('fade' => array('name' => __('Use Fading Transition', 'pagelines')), 'slide_h' => array('name' => __('Use Slide/Horizontal Transition', 'pagelines'))), 'inputlabel' => __('Select Transition Type', 'pagelines'), 'title' => __('Slider Transition Type', 'pagelines'), 'shortexp' => __('Configure the way slides transfer to one another.', 'pagelines'), 'exp' => __("", 'pagelines')); $array['quick_nav'] = array('type' => 'select', 'selectvalues' => array('both' => array('name' => __('Use Both Arrow and Slide Control Navigation', 'pagelines')), 'none' => array('name' => __('No Navigation', 'pagelines')), 'control_only' => array('name' => __('Slide Controls Only', 'pagelines')), 'arrow_only' => array('name' => __('Arrow Navigation Only', 'pagelines'))), 'inputlabel' => __('Slider Navigation', 'pagelines'), 'title' => __('Slider Navigation mode', 'pagelines'), 'shortexp' => __('Configure the navigation for this slider.', 'pagelines'), 'exp' => __("", 'pagelines')); $array['quick_slideshow'] = array('type' => 'check', 'inputlabel' => __('Animate Slideshow Automatically?', 'pagelines'), 'title' => __('Automatic Slideshow?', 'pagelines'), 'shortexp' => __('Autoplay the slides, transitioning every 7 seconds.', 'pagelines'), 'exp' => __("", 'pagelines')); global $post_ID; $oset = array('post_id' => $post_ID, 'clone_id' => $settings['clone_id'], 'type' => $settings['type']); $slides = ploption('quick_slides', $oset) ? ploption('quick_slides', $oset) : $this->default_limit; for ($i = 1; $i <= $slides; $i++) { $array['quick_slide_' . $i] = array('type' => 'multi_option', 'selectvalues' => array('quick_image_' . $i => array('inputlabel' => __('Slide Image', 'pagelines'), 'type' => 'image_upload'), 'quick_img_alt_' . $i => array('inputlabel' => __('Image Alt', 'pagelines'), 'type' => 'text'), 'quick_text_' . $i => array('inputlabel' => __('Slide Text', 'pagelines'), 'type' => 'textarea'), 'quick_link_' . $i => array('inputlabel' => __('Slide Link URL', 'pagelines'), 'type' => 'text'), 'quick_text_location_' . $i => array('inputlabel' => __('Slide Text Location', 'pagelines'), 'type' => 'select', 'selectvalues' => array('right_bottom' => array('name' => 'Right/Bottom'), 'right_top' => array('name' => 'Right/Top'), 'left_bottom' => array('name' => 'Left/Bottom'), 'left_top' => array('name' => 'Left/Top')))), 'title' => __('QuickSlider Slide ', 'pagelines') . $i, 'shortexp' => __('Setup options for slide number ', 'pagelines') . $i, 'exp' => __('For best results all images in the slider should have the same dimensions.', 'pagelines')); } $metatab_settings = array('id' => 'quickslider_options', 'name' => __('QuickSlider', 'pagelines'), 'icon' => $this->icon, 'clone_id' => $settings['clone_id'], 'active' => $settings['active']); register_metatab($metatab_settings, $array); }
function section_persistent(){ /* Meta Options */ /* Create meta fields for the post type */ $type_meta_array = array( '_soapbox_link_1' => array( 'version' => 'pro', 'type' => 'text', 'title' => 'Soapbox Link 1 URL', 'desc' => 'Add a full link URL.' ), '_soapbox_link_1_text' => array( 'type' => 'text', 'size' => 'small', 'title' => $this->name.' Link 1 Text', 'desc' => 'Add text to be used in this link.', ), '_soapbox_link_1_class' => array( 'type' => 'text', 'size' => 'small', 'title' => $this->name.' Link 1 Classes', 'desc' => 'Add CSS classes to add to this link. <strong>Tip:</strong> add <strong>"soapbox_callout"</strong> for a blue link or <strong>"fancybox"</strong> to use with the fancybox plugin.', ), '_soapbox_link_2' => array( 'version' => 'pro', 'type' => 'text', 'title' => 'Soapbox Link 2 URL', 'desc' => 'Add a full link URL.' ), '_soapbox_link_2_text' => array( 'type' => 'text', 'size' => 'small', 'title' => $this->name.' Link 2 Text', 'desc' => 'Add text to be used in this link.', ), '_soapbox_link_2_class' => array( 'type' => 'text', 'size' => 'small', 'title' => $this->name.' Link 2 Classes', 'desc' => 'Add CSS classes to add to this link. <strong>Tip:</strong> add <strong>"soapbox_callout"</strong> for a blue link or <strong>"fancybox"</strong> to use with the fancybox plugin.', ), '_soapbox_link_3' => array( 'version' => 'pro', 'type' => 'text', 'title' => 'Soapbox Link 3 URL', 'desc' => 'Add a full link URL.' ), '_soapbox_link_3_text' => array( 'type' => 'text', 'size' => 'small', 'title' => $this->name.' Link 3 Text', 'desc' => 'Add text to be used in this link.', ), '_soapbox_link_3_class' => array( 'type' => 'text', 'size' => 'small', 'title' => $this->name.' Link 3 Classes', 'desc' => 'Add CSS classes to add to this link. <strong>Tip:</strong> add <strong>"soapbox_callout"</strong> for a blue link or <strong>"fancybox"</strong> to use with the fancybox plugin.', ), ); $post_types = array($this->settings['posttype']); // $type_metapanel_settings = array( // 'id' => 'soapbox-metapanel', // 'name' => "Soapbox Section Options", // 'posttype' => $post_types, // 'hide_tabs' => true // ); // // $type_meta_panel = new PageLinesMetaPanel( $type_metapanel_settings ); global $boxes_meta_panel; $type_metatab_settings = array( 'id' => 'soapbox-type-metatab', 'name' => "Soapbox Setup Options", 'icon' => $this->icon, ); $boxes_meta_panel->register_tab( $type_metatab_settings, $type_meta_array ); $metatab_array = array( '_soapbox_set' => array( 'version' => 'pro', 'type' => 'select_taxonomy', 'taxonomy_id' => "box-sets", 'title' => 'Select Box-Set To Use For Soapbox Section', 'desc' => 'If you are using the soapbox section, select the box-set you would it to use on this page.' ), '_soapbox_items' => array( 'type' => 'text', 'size' => 'small', 'label' => 'Enter max number of soapboxes', 'title' => 'Soapbox Posts Limit', 'desc' => 'Add the limit or soapboxes that can be shown on this page. Default is 10.', ), '_soapbox_height_media' => array( 'version' => 'pro', 'type' => 'text', 'size' => 'small', 'label' => 'Enter height in pixels', 'title' => 'Soapbox Media Height (in Pixels)', 'desc' => 'For the "soapboxes" to line up correctly, the height of the media needs to be set. Add it here in pixels.' ), '_soapbox_link_1_text' => array( 'type' => 'text', 'title' => $this->name.' Link 1 Text', 'desc' => 'Add text to be used in this link. Can be overridden in the box meta options.', ), '_soapbox_link_1_class' => array( 'type' => 'text', 'title' => $this->name.' Link 1 Classes', 'desc' => 'Add CSS classes for this link. <strong>Tip:</strong> add <strong>"soapbox_callout"</strong> for a blue link or <strong>"fancybox"</strong> to use with the fancybox plugin.', ), '_soapbox_link_2_text' => array( 'type' => 'text', 'title' => $this->name.' Link 2 Text', 'desc' => 'Add text to be used in this link. Can be overridden in the box meta options.', ), '_soapbox_link_2_class' => array( 'type' => 'text', 'title' => $this->name.' Link 2 Classes', 'desc' => 'Add CSS classes for this link. <strong>Tip:</strong> add <strong>"soapbox_callout"</strong> for a blue link or <strong>"fancybox"</strong> to use with the fancybox plugin.', ), '_soapbox_link_3_text' => array( 'type' => 'text', 'title' => $this->name.' Link 3 Text - Callout Link', 'desc' => 'Add text to be used in this link. Can be overridden in the box meta options.', ), '_soapbox_link_3_class' => array( 'type' => 'text', 'title' => $this->name.' Link 3 Classes', 'desc' => 'Add CSS classes for this link. <strong>Tip:</strong> add <strong>"soapbox_callout"</strong> for a blue link or <strong>"fancybox"</strong> to use with the fancybox plugin.', ), ); $metatab_settings = array( 'id' => 'soapbox_meta', 'name' => "Soapbox Section", 'icon' => $this->icon ); register_metatab($metatab_settings, $metatab_array); }
/** * * @TODO do * */ function do_global_meta_options($mode = '') { global $global_meta_options; $metatab_settings = array('id' => 'general_page_meta', 'name' => __('Page Setup', 'pagelines'), 'icon' => PL_ADMIN_ICONS . '/ileaf.png'); if ($mode == 'integration') { unset($global_meta_options['_pagelines_layout_mode']); } if ($mode == 'default') { return; } register_metatab($metatab_settings, $global_meta_options, '', 'top'); }
/** * * @TODO document * */ function section_optionator($settings) { $settings = wp_parse_args($settings, $this->optionator_default); $metatab_array = array('carousel_numbers' => array('type' => 'text_multi', 'inputsize' => 'small', 'selectvalues' => array('carousel_items' => array('inputlabel' => __('Total Carousel Items', 'pagelines')), 'carousel_display_items' => array('inputlabel' => __('Displayed Carousel Items', 'pagelines'), 'default' => 7), 'carousel_scroll_items' => array('inputlabel' => __('Scrolled Carousel Items', 'pagelines'), 'default' => 4), 'carousel_animation_speed' => array('inputlabel' => __('Transition Speed (milliseconds)', 'pagelines'), 'default' => 800), 'carousel_scroll_time' => array('inputlabel' => __('Autoscroll Speed (milliseconds)', 'pagelines'), 'default' => 0)), 'title' => __('Carousel Display and Scroll', 'pagelines'), 'shortexp' => __('The total numbers for total, shown and scrolled images', 'pagelines'), 'exp' => __('Use this option to control the number of carousel items, the total shown, and the number scrolled at one time.', 'pagelines')), 'carousel_mode' => array('version' => 'pro', 'type' => 'select', 'default' => 'posts', 'selectvalues' => array('posts' => array('name' => __('Post Thumbnails (posts)', 'pagelines')), 'flickr' => array('name' => __('Flickr', 'pagelines')), 'ngen_gallery' => array('name' => __('NextGen Gallery', 'pagelines')), 'hook' => array('name' => __('Hook: pagelines_carousel_list', 'pagelines'))), 'title' => __('Carousel Image/Link Mode (Carousel Page Template)', 'pagelines'), 'shortexp' => __('Select the mode that the carousel should use for its thumbnails.', 'pagelines'), 'exp' => __('<strong> Post Thumbnails (default)</strong> - Uses links and thumbnails from posts <br/><strong>Flickr</strong> - Uses thumbs from FlickrRSS plugin.<br/><strong>NextGen Gallery</strong> - Uses an image gallery from the NextGen Gallery Plugin', 'pagelines')), 'carousel_image_dimensions' => array('type' => 'text_multi', 'inputsize' => 'small', 'selectvalues' => array('carousel_image_width' => array('inputlabel' => __('Max Image Width (in pixels)', 'pagelines'), 'default' => 64), 'carousel_image_height' => array('inputlabel' => __('Max Image Height (in pixels)', 'pagelines'), 'default' => 64)), 'title' => __('Carousel Image Dimensions (Posts Mode Only)', 'pagelines'), 'shortexp' => __('Control the dimensions of the carousel images', 'pagelines'), 'exp' => __('Use this option to control the max height and width of the images in the carousel. You may have to use this option in conjunction with the scroll items option.<br/><br/> For the FlickrRSS and NextGen Gallery modes, image sizes are set by Flickr thumb sizes and the NextGen Gallery plugin respectively.', 'pagelines')), 'carousel_post_id' => array('default' => '', 'type' => 'select_taxonomy', 'taxonomy_id' => 'category', 'title' => __('Posts Mode - Select Post Category', 'pagelines'), 'shortexp' => __('The category slug to pull posts from', 'pagelines'), 'inputlabel' => __('Select Category for Carousel', 'pagelines'), 'exp' => __('Posts Mode - Select the default category for carousel post images. If not set, the carousel will get the most recent posts.', 'pagelines')), 'carousel_ngen_gallery' => array('version' => 'pro', 'type' => 'text', 'title' => __('NextGen Gallery ID For Carousel (Carousel Page Template / NextGen Mode)', 'pagelines'), 'shortexp' => __('Enter the ID of the NextGen Image gallery for the carousel.', 'pagelines'), 'exp' => __('<strong>Note:</strong>The NextGen Gallery and carousel template must be selected.', 'pagelines'))); $metatab_settings = array('id' => 'carousel_meta', 'name' => 'Carousel', 'icon' => $this->icon, 'clone_id' => $settings['clone_id'], 'active' => $settings['active']); register_metatab($metatab_settings, $metatab_array); }
/** * * @TODO document * */ function section_optionator($settings) { $settings = wp_parse_args($settings, $this->optionator_default); $page_metatab_array = array('feature_setup' => array('type' => 'multi_option', 'title' => __('Feature Section Setup', 'pagelines'), 'shortexp' => __('Basic section setup for features', 'pagelines'), 'docslink' => 'http://www.pagelines.com/docs/feature-slider', 'vidtitle' => __('View Feature Documentation', 'pagelines'), 'selectvalues' => array('feature_set' => array('version' => 'pro', 'default' => 'default-features', 'type' => 'select_taxonomy', 'taxonomy_id' => $this->taxID, 'inputlabel' => __('Select Feature Set', 'pagelines')), 'feature_nav_type' => array('default' => 'thumbs', 'version' => 'pro', 'type' => 'select', 'selectvalues' => array('nonav' => array('name' => __('No Navigation', 'pagelines')), 'dots' => array('name' => __('Squares or Dots', 'pagelines')), 'names' => array('name' => __('Feature Names', 'pagelines')), 'thumbs' => array('name' => __('Feature Thumbs (50px by 30px)', 'pagelines')), 'numbers' => array('name' => __('Numbers', 'pagelines'))), 'inputlabel' => __('Feature Navigation Mode', 'pagelines')), 'feature_items' => array('version' => 'pro', 'default' => 5, 'type' => 'text_small', 'inputlabel' => __('Max number of features to show', 'pagelines')))), 'feature_handling' => array('type' => 'multi_option', 'title' => __('Feature Section Height and Responsive Control', 'pagelines'), 'shortexp' => __('Dimensions and Responsive Handling', 'pagelines'), 'selectvalues' => array('feature_height_mode' => array('default' => 'aspect', 'version' => 'pro', 'type' => 'select', 'selectvalues' => array('static' => array('name' => __('Static Height (Height is always the same)', 'pagelines')), 'aspect' => array('name' => __('Aspect Height (Height based on width)', 'pagelines'))), 'inputlabel' => __('Select Height Mode (The way feature height is managed)', 'pagelines')), 'feature_stage_height' => array('default' => '380', 'version' => 'pro', 'type' => 'text_small', 'inputlabel' => __('Static Mode - Height (In Pixels)', 'pagelines')), 'feature_aspect' => array('default' => '1.77', 'version' => 'pro', 'type' => 'text_small', 'inputlabel' => __('Aspect Mode - Ratio (Width/Height - 16:9 would be 1.777)', 'pagelines')))), 'feature_transitions' => array('type' => 'multi_option', 'title' => __('Feature Transitions and Effects', 'pagelines'), 'shortexp' => __('Options for managing feature transitions', 'pagelines'), 'selectvalues' => array('feffect' => array('default' => 'fade', 'version' => 'pro', 'type' => 'select_same', 'selectvalues' => array('blindX', 'blindY', 'blindZ', 'cover', 'curtainX', 'curtainY', 'fade', 'fadeZoom', 'growX', 'growY', 'none', 'scrollUp', 'scrollDown', 'scrollLeft', 'scrollRight', 'scrollHorz', 'scrollVert', 'shuffle', 'slideX', 'slideY', 'toss', 'turnUp', 'turnDown', 'turnLeft', 'turnRight', 'uncover', 'wipe', 'zoom'), 'inputlabel' => __('Select Transition Effect', 'pagelines')), 'timeout' => array('default' => '0', 'version' => 'pro', 'type' => 'text_small', 'inputlabel' => __('Timeout (ms - 0 means manual transition, 5000 = 5 seconds)', 'pagelines')), 'fspeed' => array('default' => 1500, 'version' => 'pro', 'type' => 'text_small', 'inputlabel' => __('Transition Speed (ms - e.g. 1500 = 1.5 seconds)', 'pagelines')), 'feature_playpause' => array('default' => false, 'version' => 'pro', 'type' => 'check', 'inputlabel' => __('Show play pause button? (Auto Scrolling Only)', 'pagelines')))), 'feature_source' => array('type' => 'multi_option', 'title' => __('Feature Source and Order (Advanced)', 'pagelines'), 'shortexp' => __('Advanced options for feature sources and their order. Important: Enable feature panel under settings > advanced for use with posts.', 'pagelines'), 'selectvalues' => array('feature_source' => array('default' => 'featureposts', 'version' => 'pro', 'type' => 'select', 'selectvalues' => array('featureposts' => array('name' => __('Feature Posts (custom post type)', 'pagelines')), 'posts' => array('name' => __('Use Post Category', 'pagelines')), 'posts_all' => array('name' => __('Use all Posts', 'pagelines'))), 'inputlabel' => __('Select Feature Post Source (Optional - Defaults to Custom Post Type)', 'pagelines')), 'feature_category' => array('default' => 1, 'version' => 'pro', 'type' => 'select', 'selectvalues' => $this->get_cats(), 'inputlabel' => __('Select Post Category (Post category source only)', 'pagelines')), 'feature_orderby' => array('default' => 'ID', 'version' => 'pro', 'type' => 'select', 'selectvalues' => array('ID' => array('name' => __('Post ID (default)', 'pagelines')), 'title' => array('name' => __('Title', 'pagelines')), 'date' => array('name' => __('Date', 'pagelines')), 'modified' => array('name' => __('Last Modified', 'pagelines')), 'rand' => array('name' => __('Random', 'pagelines'))), 'inputlabel' => __('Select sort method (If not using Post Type Order plugin)', 'pagelines')), 'feature_order' => array('default' => 'DESC', 'version' => 'pro', 'type' => 'select', 'selectvalues' => array('DESC' => array('name' => __('Descending', 'pagelines')), 'ASC' => array('name' => __('Ascending', 'pagelines'))), 'inputlabel' => __('Select sort order (If not using Post Type Order plugin)', 'pagelines'))))); $metatab_settings = array('id' => 'feature_meta', 'name' => __('Features', 'pagelines'), 'icon' => $this->icon, 'clone_id' => $settings['clone_id'], 'active' => $settings['active']); register_metatab($metatab_settings, $page_metatab_array); }