Exemplo n.º 1
0
 function theme_options()
 {
     $options = array();
     $options['pl_theme_config'] = array('pos' => 50, 'name' => __('PageLines Child Theme', 'pl-starter-theme'), 'icon' => 'icon-rocket', 'opts' => array(array('type' => 'template', 'title' => __('Welcome to My Theme', 'pl-starter-theme'), 'template' => $this->welcome()), array('type' => 'color', 'title' => __('Sample Color', 'pl-starter-theme'), 'key' => 'my_custom_color', 'label' => __('Sample Color', 'pl-starter-theme'), 'default' => '#FFFFFF')));
     pl_add_theme_tab($options);
 }
Exemplo n.º 2
0
 function theme_options()
 {
     $options = array();
     $options[] = array('pos' => 20, 'key' => 'fotos_skins_setup', 'name' => __('Fotos - Skins', 'fotos'), 'icon' => 'icon-bullseye', 'type' => 'multi', 'opts' => array(array('key' => 'fotos_theme_skins', 'type' => 'template', 'template' => $this->skins_screen(), 'title' => 'Available Skins')), 'help' => __('Choose a skin for your site.', 'fotos'));
     $options[] = array('name' => __('Fotos - Nav Options', 'fotos'), 'icon' => 'icon-bullseye', 'type' => 'multi', 'pos' => 21, 'opts' => array(array('title' => __('Site Logo', 'fotos'), 'type' => 'image_upload', 'key' => 'ba_fotos_global_logo', 'help' => __('This shows when you use the logo box, and in some nav sections.', 'fotos')), array('title' => __('Navigation Design', 'fotos'), 'key' => 'ba_fotos_nav_colors', 'type' => 'multi', 'opts' => array(array('key' => 'ba_fotos_nav_font_color', 'title' => __('Font Color', 'fotos'), 'type' => 'color', 'default' => '#F8F8F8', 'help' => __('Set a font color.', 'fotos')), array('key' => 'ba_fotos_nav_base_color', 'title' => __('Base Color', 'fotos'), 'type' => 'color', 'default' => '#333', 'help' => __('Set a base color.', 'fotos')), array('key' => 'ba_fotos_nav_minimal', 'title' => __('Minimal Nav Style', 'fotos'), 'type' => 'check', 'help' => __('By default the navigation has a background color and active page colors. Toggling this will remove most of the colors (except the dropdowns).', 'fotos')), array('key' => 'ba_fotos_nav_bg_img', 'title' => __('Background Pattern (optional)', 'fotos'), 'type' => 'image_upload', 'help' => __('Upload a pattern or texture to use on the nav.', 'fotos')))), array('title' => __('Nav Font Options', 'fotos'), 'key' => 'ba_fotos_nav_options', 'type' => 'multi', 'opts' => array(array('key' => 'ba_fotos_nav_font_size', 'title' => __('Font Size', 'fotos'), 'type' => 'text', 'help' => __('Set a font size.', 'fotos')), array('key' => 'ba_fotos_nav_font_family', 'title' => __('Font Family', 'fotos'), 'default' => 'open_sans', 'type' => 'type', 'help' => __('Set a base color.', 'fotos')))), array('title' => __('Nav Placement Options', 'fotos'), 'key' => 'ba_fotos_nav_options', 'type' => 'multi', 'opts' => array(array('key' => 'ba_fotos_nav_margin', 'title' => __('Navigation Margin', 'fotos'), 'type' => 'text', 'help' => __('Optionally set a margin for the nav. Enter using css shorthand like <em>20px 10px 5px 10px</em>.', 'fotos'))))));
     $options[] = array('name' => __('Fotos - Post Header', 'fotos'), 'icon' => 'icon-bullseye', 'type' => 'multi', 'pos' => 22, 'opts' => array(array('title' => __('Post Header Layout', 'fotos'), 'type' => 'select', 'key' => 'ba_fotos_post_header_layout', 'default' => 'title-left', 'opts' => array('title-left' => array('name' => __('Title Left - Date Right', 'fotos')), 'title-right' => array('name' => __('Date Left - Title Right', 'fotos')), 'title-center' => array('name' => __('Title & Date Centered', 'fotos')))), array('key' => 'ba_fotos_post_title_col', 'type' => 'count_select', 'count_start' => 1, 'count_number' => 99, 'default' => 85, 'suffix' => '%', 'label' => __('Post Title Width', 'fotos'), 'help' => __('How wide should the title column be?', 'fotos')), array('key' => 'ba_fotos_post_title_align', 'type' => 'select', 'default' => 'align-left', 'title' => __('Post Title Alignment', 'fotos'), 'opts' => array('align-left' => array('name' => __('Align Left', 'fotos')), 'align-right' => array('name' => __('Align Right', 'fotos')), 'center' => array('name' => __('Centered', 'fotos')))), array('key' => 'ba_fotos_post_date_col', 'type' => 'count_select', 'count_start' => 1, 'count_number' => 99, 'default' => 15, 'suffix' => '%', 'label' => __('Post Date Width', 'fotos'), 'help' => __('How wide should the date column be?', 'fotos')), array('key' => 'ba_fotos_post_date_align', 'type' => 'select', 'default' => '', 'title' => __('Post Date Alignment', 'fotos'), 'opts' => array('pull-left' => array('name' => __('Align Left', 'fotos')), 'pull-right' => array('name' => __('Align Right', 'fotos')), 'center' => array('name' => __('Centered', 'fotos')))), array('key' => 'ba_fotos_post_date_margin', 'type' => 'text', 'title' => __('Post Date Margin Top', 'fotos'), 'help' => __('Acceptable values include 20px or 20%.', 'fotos')), array('key' => 'ba_fotos_post_date_bg_img', 'type' => 'image_upload', 'title' => __('Post Date Background Image', 'fotos')), array('title' => __('Post Date Format', 'fotos'), 'type' => 'select', 'key' => 'ba_fotos_post_date_style', 'default' => 'fotos-date-default', 'opts' => array('fotos-date-default' => array('name' => __('Full Date', 'fotos')), 'fotos-date-block' => array('name' => __('Block Style Date', 'fotos')), 'fotos-date-stacked' => array('name' => __('Stacked', 'fotos')), 'fotos-date-minimal' => array('name' => __('Minimal Style Date', 'fotos')))), array('title' => __('Post Categories Text', 'fotos'), 'type' => 'text', 'key' => 'ba_fotos_post_cat_text', 'help' => __('Here you can replace the text underneath the post title. By default it says <em>Filed under</em>, but you can change that here.', 'fotos')), array('title' => __('Post Tags Text', 'fotos'), 'type' => 'text', 'key' => 'ba_fotos_post_tag_text', 'help' => __('Here you can replace the text underneath the post title. By default it says <em>Tagged with</em>, but you can change that here.', 'fotos')), array('title' => __('Post Header Border', 'fotos'), 'type' => 'check', 'key' => 'ba_fotos_post_header_border', 'help' => __('Add a border below the post title and date.', 'fotos')), array('title' => __('Post Header All Caps', 'fotos'), 'type' => 'check', 'key' => 'ba_fotos_post_header_caps', 'help' => __('Put the post title in all caps.', 'fotos'))));
     $options[] = array('name' => __('Fotos - Post Content', 'fotos'), 'icon' => 'icon-bullseye', 'type' => 'multi', 'pos' => 23, 'opts' => array(array('title' => __('Content Shadow', 'fotos'), 'type' => 'check', 'key' => 'ba_fotos_content_shadow', 'help' => __('Add a shadow to the boxed wrap area.', 'fotos')), array('title' => __('Article Separator', 'fotos'), 'type' => 'textarea', 'key' => 'ba_fotos_art_sep', 'help' => __('Whatever you put here will be placed in between the articles on the home page of the posts. You can enter HTML here as well.', 'fotos'))));
     $options[] = array('name' => __('Fotos - Post Comments', 'fotos'), 'icon' => 'icon-bullseye', 'type' => 'multi', 'pos' => 24, 'opts' => array(array('title' => __('Comments Text', 'fotos'), 'type' => 'text', 'key' => 'ba_fotos_post_comm_custom_txt', 'help' => __('By default this reads "Comment" but you can change this here. Fotos will automatically apply the plural version for you.', 'fotos')), array('title' => __('Show Comments Text', 'fotos'), 'type' => 'text', 'key' => 'ba_fotos_post_comment_text', 'help' => __('By default this reads "Show Comments" but you can change this here.', 'fotos')), array('title' => __('No Comments Found Text', 'fotos'), 'type' => 'text', 'key' => 'ba_fotos_post_no_comment_text', 'help' => __('By default this reads "No comments found." but you can change this here.', 'fotos')), array('title' => __('Add Comment Bar Borders', 'fotos'), 'type' => 'check', 'key' => 'ba_fotos_post_comm_border', 'help' => __('Add a border to the top and bottom of the comment bar.', 'fotos'))));
     $options[] = array('pos' => 25, 'name' => __('Fotos - Post Social', 'fotos'), 'icon' => 'icon-bullseye', 'type' => 'multi', 'opts' => array(array('title' => __('Social Links Mode', 'fotos'), 'type' => 'select', 'key' => 'ba_fotos_social_mode', 'default' => 'icon', 'opts' => array('icon' => array('name' => __('Icons', 'fotos')), 'image' => array('name' => __('Custom Image', 'fotos')), 'plain' => array('name' => __('Plain Button', 'fotos')), 'text' => array('name' => __('Plain Text', 'fotos')))), array('title' => __('Social Links Alignment', 'fotos'), 'type' => 'select', 'key' => 'ba_fotos_social_align', 'opts' => array('tal' => array('name' => __('Align Left', 'fotos')), 'center' => array('name' => __('Centered', 'fotos')), 'tar' => array('name' => __('Align Right', 'fotos')))), array('title' => __('Separator Images (optional)', 'fotos'), 'type' => 'image_upload', 'key' => 'ba_fotos_social_separator', 'help' => __('This will be placed between the social sharing links.', 'fotos')), array('title' => __('Social Sharing Text', 'fotos'), 'type' => 'text', 'key' => 'ba_fotos_social_share_txt', 'help' => __('Use this option to add some text before the sharing icons. Maybe something like "share this post" would be fitting ya? You can also use an image instead. Check out the next option over!', 'fotos')), array('title' => __('Social Sharing Image (instead of text)', 'fotos'), 'type' => 'image_upload', 'key' => 'ba_fotos_social_share_img', 'help' => __('Upload an image to use <strong>in place</strong> of the text that reads "Share Post."', 'fotos')), array('title' => __('Custom Social Images', 'fotos'), 'type' => 'multi', 'key' => 'ba_fotos_custom_social', 'opts' => array(array('type' => 'image_upload', 'key' => 'ba_fotos_twitter_img', 'title' => __('Custom Twitter Button', 'fotos')), array('type' => 'image_upload', 'key' => 'ba_fotos_fb_img', 'title' => __('Custom Facebook Button', 'fotos')), array('type' => 'image_upload', 'key' => 'ba_fotos_pinterest_img', 'title' => __('Custom Pinterest Button', 'fotos'))))), 'help' => '');
     $options[] = array('pos' => 26, 'name' => __('Fotos - Contact Form', 'fotos'), 'icon' => 'icon-bullseye', 'type' => 'multi', 'opts' => array(array('key' => 'ba_fotos_contact_email', 'type' => 'text', 'label' => __('Default email send address', 'fotos'), 'help' => __('Email address to send for To. Leave blank to use admin email', 'fotos')), array('key' => 'ba_fotos_contact_enable_extra', 'type' => 'check', 'default' => false, 'label' => __('Enable extra custom field', 'fotos')), array('key' => 'ba_fotos_contact_extra_field', 'type' => 'text', 'default' => '', 'label' => __('Extra field text', 'fotos')), array('key' => 'ba_fotos_contact_enable_captcha', 'type' => 'check', 'default' => true, 'label' => __('Enable simple antispam question', 'fotos')), array('key' => 'ba_fotos_contact_captcha_question', 'type' => 'text', 'default' => '2 + 5', 'label' => __('Antispam question', 'fotos')), array('key' => 'ba_fotos_contact_captcha_answer', 'type' => 'text', 'default' => '7', 'label' => __('Antispam answer', 'fotos')), array('key' => 'ba_fotos_contact_email_layout', 'type' => 'text', 'label' => __('Format for email subject. Possible values: %name% %blog%<br />Defaults: [%blog%] New message from %name%.', 'fotos'))));
     $options[] = array('pos' => 27, 'name' => __('Fotos - Design', 'fotos'), 'icon' => 'icon-bullseye', 'type' => 'multi', 'opts' => array(array('title' => __('Post Title', 'fotos'), 'type' => 'color', 'default' => '#333', 'key' => 'ba_fotos_post_title_color', 'help' => __('This controls the color for the post title. By default, it uses the same color you have set under Global Options-->Color & Style', 'fotos')), array('title' => __('Post Meta', 'fotos'), 'type' => 'color', 'default' => '#777', 'key' => 'ba_fotos_post_meta_color', 'help' => __('This is the text that shows what categories the post is in.', 'fotos')), array('title' => __('Post Date', 'fotos'), 'type' => 'color', 'default' => '#333', 'key' => 'ba_fotos_post_date_color', 'help' => __('Optionally change the color of the post date. By default it will match the color you have chosen under Global Options-->Color & Style.', 'fotos')), array('title' => __('Post Header Background', 'fotos'), 'type' => 'color', 'default' => '#FFF', 'key' => 'ba_fotos_post_header_bg_color', 'help' => __('Controls the background color of the post header.', 'fotos')), array('title' => __('Post Header Background Image', 'fotos'), 'type' => 'image_upload', 'key' => 'ba_fotos_post_header_bg_img', 'help' => __('Use a background image for the post header, instead of teh color above.', 'fotos')), array('title' => __('Post Social Text', 'fotos'), 'type' => 'color', 'default' => '#333', 'key' => 'ba_fotos_post_social_txt_color', 'help' => __('Applies color to the social text or icons. Does not apply if you are using images in place of icons or text for social sharing.', 'fotos')), array('title' => __('Post Comments Bar', 'fotos'), 'type' => 'color', 'default' => '#fff', 'key' => 'ba_fotos_post_comm_bg', 'help' => __('Optionally set a background color for the post comments bar. By default it will take whatever Base color you have chosen under Global Options-->Color & Style.', 'fotos')), array('title' => __('Post Comments Drawer', 'fotos'), 'type' => 'color', 'default' => '#fff', 'key' => 'ba_fotos_post_comm_drawer_bg', 'help' => __('Optionally set a background color for the post comments drawer. By default it will take whatever Base color you have chosen under Global Options-->Color & Style.', 'fotos')), array('title' => __('Post Comments Text', 'fotos'), 'type' => 'color', 'default' => '#333', 'key' => 'ba_fotos_post_comm_txt', 'help' => __('Optionally change the color of the text for teh post comments. By default it will match the color you have chosen under Global Options-->Color & Style.', 'fotos')), array('title' => __('Content Shadow Color', 'fotos'), 'type' => 'color', 'default' => '#111', 'key' => 'ba_fotos_box_shadow_color', 'help' => __('Optionally change the color of the box shadow around the main content column. This only takes effect if you have the option checked under Fotos-->Post Content.', 'fotos')), array('title' => __('Widget Title Color', 'fotos'), 'type' => 'color', 'default' => '#333', 'key' => 'ba_fotos_widget_title_color', 'help' => __('Optionally change the color of the Widget Titles. Hint: change the font family under Fotos - Typography', 'fotos'))), 'help' => '');
     $options[] = array('pos' => 28, 'name' => __('Fotos - Typography', 'fotos'), 'icon' => 'icon-bullseye', 'type' => 'multi', 'opts' => array(array('title' => __('Widget Headings', 'fotos'), 'type' => 'fonts', 'default' => 'open_sans', 'key' => 'ba_fotos_widget_font', 'help' => __('This controls the font family for Widget headings.', 'fotos')), array('title' => __('Post Comments Bar', 'fotos'), 'type' => 'fonts', 'default' => 'open_sans', 'key' => 'ba_fotos_comm_bar_font', 'help' => __('This controls the font family for comments bar (not the comments in the drawer).', 'fotos'))), 'help' => '');
     pl_add_theme_tab($options);
 }