array(
'content' => array(
array(
'id' => 'general_help',
'title' => 'Documentation',
'content' => '
First, a friendly warning: Please remember that the "Reset Options" button resets ALL options. That means, if you reset your styling options, all your custom sidebars and other settings will be reset as well.
Frequently Asked Questions:
Q: Styling options do not work, why? — A: Make sure that the dynamic.css file has server permissions set to chmod 0777, so that it is writable. You may also need to empty cache.
'
)
)
),
/* Admin panel sections
/* ------------------------------------ */
'sections' => array(
array(
'id' => 'general',
'title' => 'General'
),
array(
'id' => 'blog',
'title' => 'Blog'
),
array(
'id' => 'header',
'title' => 'Header'
),
array(
'id' => 'footer',
'title' => 'Footer'
),
array(
'id' => 'layout',
'title' => 'Layout'
),
array(
'id' => 'sidebars',
'title' => 'Sidebars'
),
array(
'id' => 'social-links',
'title' => 'Social Links'
),
array(
'id' => 'styling',
'title' => 'Styling'
),
),
/* Theme options
/* ------------------------------------ */
'settings' => array(
// General: Responsive Layout
array(
'id' => 'responsive',
'label' => 'Responsive Layout',
'desc' => 'Disable mobile and tablet optimizations [ responsive.css ]',
'type' => 'checkbox',
'section' => 'general',
'choices' => array(
array(
'value' => '1',
'label' => 'Disable'
)
)
),
// General: Mobile Sidebar
array(
'id' => 'mobile-sidebar-hide',
'label' => 'Mobile Sidebar Content',
'desc' => 'Hide sidebar content on low-resolution mobile devices (320px)',
'type' => 'checkbox',
'section' => 'general',
'choices' => array(
array(
'value' => '1',
'label' => 'Hide'
)
)
),
// General: Favicon
array(
'id' => 'favicon',
'label' => 'Favicon',
'desc' => 'Upload a 16x16px Png/Gif image that will be your favicon',
'type' => 'upload',
'section' => 'general'
),
// General: RSS Feed
array(
'id' => 'rss-feed',
'label' => 'FeedBurner URL',
'desc' => 'Enter your full FeedBurner URL (or any other preferred feed URL) if you wish to use FeedBurner over the standard WordPress feed e.g. http://feeds.feedburner.com/yoururlhere ',
'type' => 'text',
'section' => 'general'
),
// General: Comments
array(
'id' => 'page-comments',
'label' => 'Comments',
'desc' => '',
'type' => 'checkbox',
'section' => 'general',
'choices' => array(
array(
'value' => '1',
'label' => 'Enable comments on pages',
'std' => '1'
)
)
),
// Blog: Single - Content or Excerpt
array(
'id' => 'post-text',
'label' => 'Content or Excerpt',
'desc' => 'More link appears at the bottom of both excerpt and content',
'std' => 'excerpt',
'type' => 'radio',
'section' => 'blog',
'choices' => array(
array(
'value' => 'excerpt',
'label' => 'Show Excerpt'
),
array(
'value' => 'content',
'label' => 'Show Content'
)
)
),
// Blog: Excerpt Length
array(
'id' => 'excerpt-length',
'label' => 'Excerpt Length',
'desc' => 'Max number of words',
'std' => '34',
'type' => 'numeric-slider',
'section' => 'blog',
'min_max_step' => '0,100,1'
),
// Blog: Single - Authorbox
array(
'id' => 'author-bio',
'label' => 'Single — Author Bio',
'desc' => 'Shows post author description, if it exists',
'type' => 'checkbox',
'section' => 'blog',
'choices' => array(
array(
'value' => '1',
'label' => 'Disable'
)
)
),
// Blog: Single - Post Navigation
array(
'id' => 'post-nav',
'label' => 'Single — Post Navigation',
'desc' => 'Shows links to the next and previous article',
'std' => 'content',
'type' => 'radio',
'section' => 'blog',
'choices' => array(
array(
'value' => '1',
'label' => 'Disable'
),
array(
'value' => 'content',
'label' => 'Below content'
)
)
),
// Header: Custom Logo
array(
'id' => 'custom-logo',
'label' => 'Custom Logo',
'desc' => 'Upload your custom logo image. Set logo max-height in styling options.',
'type' => 'upload',
'section' => 'header'
),
// Header: Site Description
array(
'id' => 'site-description',
'label' => 'Site Description',
'desc' => 'The description that appears next to your logo',
'type' => 'checkbox',
'section' => 'header',
'choices' => array(
array(
'value' => '1',
'label' => 'Disable'
)
)
),
// Footer: Widget Columns
array(
'id' => 'footer-widgets',
'label' => 'Footer Widget Columns',
'desc' => 'Select columns to enable footer widgets
Recommended number: 3',
'std' => '0',
'type' => 'radio-image',
'section' => 'footer',
'class' => '',
'choices' => array(
array(
'value' => '0',
'label' => 'Disable',
'src' => get_template_directory_uri() . '/functions/images/layout-off.png'
),
array(
'value' => '1',
'label' => '1 Column',
'src' => get_template_directory_uri() . '/functions/images/footer-widgets-1.png'
),
array(
'value' => '2',
'label' => '2 Columns',
'src' => get_template_directory_uri() . '/functions/images/footer-widgets-2.png'
),
array(
'value' => '3',
'label' => '3 Columns',
'src' => get_template_directory_uri() . '/functions/images/footer-widgets-3.png'
),
array(
'value' => '4',
'label' => '4 Columns',
'src' => get_template_directory_uri() . '/functions/images/footer-widgets-4.png'
)
)
),
// Footer: Custom Logo
array(
'id' => 'footer-logo',
'label' => 'Footer Logo',
'desc' => 'Upload your custom logo image',
'type' => 'upload',
'section' => 'footer'
),
// Footer: Copyright
array(
'id' => 'copyright',
'label' => 'Footer Copyright',
'desc' => 'Replace the footer copyright text',
'type' => 'text',
'section' => 'footer'
),
// Footer: Credit
array(
'id' => 'credit',
'label' => 'Footer Credit',
'desc' => 'Disable footer credit text :-(',
'std' => '',
'type' => 'checkbox',
'section' => 'footer',
'choices' => array(
array(
'value' => '1',
'label' => 'Disable'
)
)
),
// Layout : Global
array(
'id' => 'layout-global',
'label' => 'Global Layout',
'desc' => 'Other layouts will override this option if they are set',
'std' => 'col-2cl',
'type' => 'radio-image',
'section' => 'layout',
'choices' => array(
array(
'value' => 'col-1c',
'label' => '1 Column',
'src' => get_template_directory_uri() . '/functions/images/col-1c.png'
),
array(
'value' => 'col-2cl',
'label' => '2 Column Left',
'src' => get_template_directory_uri() . '/functions/images/col-2cl.png'
),
array(
'value' => 'col-2cr',
'label' => '2 Column Right',
'src' => get_template_directory_uri() . '/functions/images/col-2cr.png'
)
)
),
// Layout : Home
array(
'id' => 'layout-home',
'label' => 'Posts Home',
'desc' => '[ is_home ] Posts homepage layout',
'std' => 'inherit',
'type' => 'radio-image',
'section' => 'layout',
'choices' => array(
array(
'value' => 'inherit',
'label' => 'Inherit Global Layout',
'src' => get_template_directory_uri() . '/functions/images/layout-off.png'
),
array(
'value' => 'col-1c',
'label' => '1 Column',
'src' => get_template_directory_uri() . '/functions/images/col-1c.png'
),
array(
'value' => 'col-2cl',
'label' => '2 Column Left',
'src' => get_template_directory_uri() . '/functions/images/col-2cl.png'
),
array(
'value' => 'col-2cr',
'label' => '2 Column Right',
'src' => get_template_directory_uri() . '/functions/images/col-2cr.png'
)
)
),
// Layout : Single
array(
'id' => 'layout-single',
'label' => 'Single',
'desc' => '[ is_single ] Single post layout - If a post has a set layout, it will override this.',
'std' => 'inherit',
'type' => 'radio-image',
'section' => 'layout',
'choices' => array(
array(
'value' => 'inherit',
'label' => 'Inherit Global Layout',
'src' => get_template_directory_uri() . '/functions/images/layout-off.png'
),
array(
'value' => 'col-1c',
'label' => '1 Column',
'src' => get_template_directory_uri() . '/functions/images/col-1c.png'
),
array(
'value' => 'col-2cl',
'label' => '2 Column Left',
'src' => get_template_directory_uri() . '/functions/images/col-2cl.png'
),
array(
'value' => 'col-2cr',
'label' => '2 Column Right',
'src' => get_template_directory_uri() . '/functions/images/col-2cr.png'
)
)
),
// Layout : Archive
array(
'id' => 'layout-archive',
'label' => 'Archive',
'desc' => '[ is_archive ] Category, date, tag and author archive layout',
'std' => 'inherit',
'type' => 'radio-image',
'section' => 'layout',
'choices' => array(
array(
'value' => 'inherit',
'label' => 'Inherit Global Layout',
'src' => get_template_directory_uri() . '/functions/images/layout-off.png'
),
array(
'value' => 'col-1c',
'label' => '1 Column',
'src' => get_template_directory_uri() . '/functions/images/col-1c.png'
),
array(
'value' => 'col-2cl',
'label' => '2 Column Left',
'src' => get_template_directory_uri() . '/functions/images/col-2cl.png'
),
array(
'value' => 'col-2cr',
'label' => '2 Column Right',
'src' => get_template_directory_uri() . '/functions/images/col-2cr.png'
)
)
),
// Layout : Archive - Category
array(
'id' => 'layout-archive-category',
'label' => 'Archive — Category',
'desc' => '[ is_category ] Category archive layout',
'std' => 'inherit',
'type' => 'radio-image',
'section' => 'layout',
'choices' => array(
array(
'value' => 'inherit',
'label' => 'Inherit Global Layout',
'src' => get_template_directory_uri() . '/functions/images/layout-off.png'
),
array(
'value' => 'col-1c',
'label' => '1 Column',
'src' => get_template_directory_uri() . '/functions/images/col-1c.png'
),
array(
'value' => 'col-2cl',
'label' => '2 Column Left',
'src' => get_template_directory_uri() . '/functions/images/col-2cl.png'
),
array(
'value' => 'col-2cr',
'label' => '2 Column Right',
'src' => get_template_directory_uri() . '/functions/images/col-2cr.png'
)
)
),
// Layout : Search
array(
'id' => 'layout-search',
'label' => 'Search',
'desc' => '[ is_search ] Search page layout',
'std' => 'inherit',
'type' => 'radio-image',
'section' => 'layout',
'choices' => array(
array(
'value' => 'inherit',
'label' => 'Inherit Global Layout',
'src' => get_template_directory_uri() . '/functions/images/layout-off.png'
),
array(
'value' => 'col-1c',
'label' => '1 Column',
'src' => get_template_directory_uri() . '/functions/images/col-1c.png'
),
array(
'value' => 'col-2cl',
'label' => '2 Column Left',
'src' => get_template_directory_uri() . '/functions/images/col-2cl.png'
),
array(
'value' => 'col-2cr',
'label' => '2 Column Right',
'src' => get_template_directory_uri() . '/functions/images/col-2cr.png'
)
)
),
// Layout : Error 404
array(
'id' => 'layout-404',
'label' => 'Error 404',
'desc' => '[ is_404 ] Error 404 page layout',
'std' => 'inherit',
'type' => 'radio-image',
'section' => 'layout',
'choices' => array(
array(
'value' => 'inherit',
'label' => 'Inherit Global Layout',
'src' => get_template_directory_uri() . '/functions/images/layout-off.png'
),
array(
'value' => 'col-1c',
'label' => '1 Column',
'src' => get_template_directory_uri() . '/functions/images/col-1c.png'
),
array(
'value' => 'col-2cl',
'label' => '2 Column Left',
'src' => get_template_directory_uri() . '/functions/images/col-2cl.png'
),
array(
'value' => 'col-2cr',
'label' => '2 Column Right',
'src' => get_template_directory_uri() . '/functions/images/col-2cr.png'
)
)
),
// Layout : Default Page
array(
'id' => 'layout-page',
'label' => 'Default Page',
'desc' => '[ is_page ] Default page layout - If a page has a set layout, it will override this.',
'std' => 'inherit',
'type' => 'radio-image',
'section' => 'layout',
'choices' => array(
array(
'value' => 'inherit',
'label' => 'Inherit Global Layout',
'src' => get_template_directory_uri() . '/functions/images/layout-off.png'
),
array(
'value' => 'col-1c',
'label' => '1 Column',
'src' => get_template_directory_uri() . '/functions/images/col-1c.png'
),
array(
'value' => 'col-2cl',
'label' => '2 Column Left',
'src' => get_template_directory_uri() . '/functions/images/col-2cl.png'
),
array(
'value' => 'col-2cr',
'label' => '2 Column Right',
'src' => get_template_directory_uri() . '/functions/images/col-2cr.png'
)
)
),
// Sidebars: Create Areas
array(
'id' => 'sidebar-areas',
'label' => 'Create Sidebars',
'desc' => 'You must save changes for the new areas to appear below.
Warning: Make sure each area has a unique ID.',
'type' => 'list-item',
'section' => 'sidebars',
'choices' => array(),
'settings' => array(
array(
'id' => 'id',
'label' => 'Sidebar ID',
'desc' => 'This ID must be unique, for example "sidebar-about"',
'std' => 'sidebar-',
'type' => 'text',
'choices' => array()
)
)
),
// Sidebar 1 & 2
array(
'id' => 's1-home',
'label' => 'Home',
'desc' => '[ is_home ]',
'type' => 'sidebar-select',
'section' => 'sidebars'
),
array(
'id' => 's1-single',
'label' => 'Single',
'desc' => '[ is_single ] If a single post has a unique sidebar, it will override this.',
'type' => 'sidebar-select',
'section' => 'sidebars'
),
array(
'id' => 's1-archive',
'label' => 'Archive',
'desc' => '[ is_archive ]',
'type' => 'sidebar-select',
'section' => 'sidebars'
),
array(
'id' => 's1-archive-category',
'label' => 'Archive — Category',
'desc' => '[ is_category ]',
'type' => 'sidebar-select',
'section' => 'sidebars'
),
array(
'id' => 's1-search',
'label' => 'Search',
'desc' => '[ is_search ]',
'type' => 'sidebar-select',
'section' => 'sidebars'
),
array(
'id' => 's1-404',
'label' => 'Error 404',
'desc' => '[ is_404 ]',
'type' => 'sidebar-select',
'section' => 'sidebars'
),
array(
'id' => 's1-page',
'label' => 'Default Page',
'desc' => '[ is_page ] If a page has a unique sidebar, it will override this.',
'type' => 'sidebar-select',
'section' => 'sidebars'
),
// Social Links : List
array(
'id' => 'social-links',
'label' => 'Social Links',
'desc' => 'Create and organize your social links',
'type' => 'list-item',
'section' => 'social-links',
'choices' => array(),
'settings' => array(
array(
'id' => 'social-icon',
'label' => 'Icon Name',
'desc' => 'Font Awesome icon names [View all] ',
'std' => 'fa-',
'type' => 'text',
'choices' => array()
),
array(
'id' => 'social-link',
'label' => 'Link',
'desc' => 'Enter the full url for your icon button',
'std' => 'http://',
'type' => 'text',
'choices' => array()
),
array(
'id' => 'social-color',
'label' => 'Icon Color',
'desc' => 'Set a unique color for your icon (optional)',
'std' => '',
'type' => 'colorpicker',
'section' => 'styling'
),
array(
'id' => 'social-target',
'label' => 'Link Options',
'desc' => '',
'std' => '',
'type' => 'checkbox',
'choices' => array(
array(
'value' => '_blank',
'label' => 'Open in new window'
)
)
)
)
),
// Styling: Container Width
array(
'id' => 'container-width',
'label' => 'Website Max-width',
'desc' => 'Max-width of the container.
Note: For 680px media, 600px content (default) use 1080px with sidebar active. If you use no sidebars anywhere, use 740px (or more).',
'std' => '1080',
'type' => 'numeric-slider',
'section' => 'styling',
'min_max_step' => '740,1600,1'
),
// Styling: Primary Color
array(
'id' => 'color-accent',
'label' => 'Primary Accent Color',
'desc' => 'Set the primary accent color of your theme
Default: #e8554e',
'std' => '#e8554e',
'type' => 'colorpicker',
'section' => 'styling'
),
// Styling: Topbar Color
array(
'id' => 'color-topbar',
'label' => 'Topbar Color',
'desc' => 'Topbar menu and search
Default: #222222',
'std' => '#222222',
'type' => 'colorpicker',
'section' => 'styling'
),
// Styling: Header Color
array(
'id' => 'color-header',
'label' => 'Header Color',
'desc' => 'Header background
Default: #f2f2f2',
'std' => '#f2f2f2',
'type' => 'colorpicker',
'section' => 'styling'
),
array(
'id' => 'light-header-text',
'label' => 'Header Text Color',
'desc' => '',
'std' => '',
'type' => 'checkbox',
'section' => 'styling',
'choices' => array(
array(
'value' => '1',
'label' => 'Use light header text'
)
)
),
// Styling: Header Logo Max-height
array(
'id' => 'logo-max-height',
'label' => 'Header Logo Image Max-height',
'desc' => 'When you upload your logo image it should have the double height of this to be high resolution.',
'std' => '80',
'type' => 'numeric-slider',
'section' => 'styling',
'min_max_step' => '40,120,1'
),
// Styling: Footer Color
array(
'id' => 'color-footer',
'label' => 'Footer Color',
'desc' => 'Footer background
Default: #222222',
'std' => '#222222',
'type' => 'colorpicker',
'section' => 'styling'
),
// Styling: Footer Color
array(
'id' => 'color-footer-toplink',
'label' => 'Footer Toplink Color',
'desc' => 'Suggestion - use the same color as your primary accent color
Default: #333333',
'std' => '#333333',
'type' => 'colorpicker',
'section' => 'styling'
),
// Styling: Formats
array(
'id' => 'color-audio',
'label' => 'Format: Audio',
'desc' => 'Default: #69bac8',
'std' => '#69bac8',
'type' => 'colorpicker',
'section' => 'styling'
),
array(
'id' => 'color-chat',
'label' => 'Format: Chat',
'desc' => 'Default: #69bac8',
'std' => '#69bac8',
'type' => 'colorpicker',
'section' => 'styling'
),
array(
'id' => 'color-gallery',
'label' => 'Format: Gallery',
'desc' => 'Default: #7eb66f',
'std' => '#7eb66f',
'type' => 'colorpicker',
'section' => 'styling'
),
array(
'id' => 'color-image',
'label' => 'Format: Image',
'desc' => 'Default: #7eb66f',
'std' => '#7eb66f',
'type' => 'colorpicker',
'section' => 'styling'
),
array(
'id' => 'color-link',
'label' => 'Format: Link',
'desc' => 'Default: #e8554e',
'std' => '#e8554e',
'type' => 'colorpicker',
'section' => 'styling'
),
array(
'id' => 'color-quote',
'label' => 'Format: Quote',
'desc' => 'Default: #e7ba3a',
'std' => '#e7ba3a',
'type' => 'colorpicker',
'section' => 'styling'
),
array(
'id' => 'color-status',
'label' => 'Format: Status',
'desc' => 'Default: #ffa500',
'std' => '#ffa500',
'type' => 'colorpicker',
'section' => 'styling'
),
array(
'id' => 'color-video',
'label' => 'Format: Video',
'desc' => 'Default: #e8554e',
'std' => '#e8554e',
'type' => 'colorpicker',
'section' => 'styling'
),
// Styling: CSS Output
array(
'id' => 'dynamic-output',
'label' => 'Dynamic CSS',
'desc' => 'This auto-generated CSS code is added to the [ dynamic.css ] file
Warning: Do not remove, change or edit this code in any way. Just let it be :-)',
'type' => 'css',
'section' => 'styling',
'rows' => '2',
'std' => '
.container { max-width: {{container-width}}px; }
.site-title a img { max-height: {{logo-max-height}}px; }
.site-description { line-height: {{logo-max-height}}px; }
::selection { background-color: {{color-accent}}; }
::-moz-selection { background-color: {{color-accent}}; }
.search-expand,
#nav-topbar.nav-container { background-color: {{color-topbar}}; }
@media only screen and (min-width: 720px) {
#nav-topbar .nav ul { background-color: {{color-topbar}}; }
}
#header { background-color: {{color-header}}; }
#footer-bottom { background-color: {{color-footer}}; }
#footer-bottom #back-to-top { background: {{color-footer-toplink}}; }
#footer-bottom #back-to-top:before,
#footer-bottom #back-to-top:after { border-color: {{color-footer-toplink}} transparent; }
#footer-bottom { border-color: {{color-footer-toplink}}; }
.format-audio .hex,
.format-audio .post-deco,
.jp-play-bar,
.jp-volume-bar-value { background-color: {{color-audio}}; }
.format-chat .hex,
.format-chat .post-deco { background-color: {{color-chat}}; }
.format-chat .format-container { background: {{color-chat}} url(img/styling/opacity-75-light.png) repeat; }
.format-gallery .hex,
.format-gallery .post-deco { background-color: {{color-gallery}}; }
.format-image .hex,
.format-image .post-deco { background-color: {{color-image}}; }
.format-link .hex,
.format-link .post-deco { background-color: {{color-link}}; }
.format-link .post-format a { color: {{color-link}}; }
.format-link .format-container { background: {{color-link}} url(img/styling/opacity-75-light.png) repeat; }
.format-quote .hex,
.format-quote .post-deco { background-color: {{color-quote}}; }
.format-quote .format-container { background: {{color-quote}} url(img/styling/opacity-75-light.png) repeat; }
.format-status .hex,
.format-status .post-deco { background-color: {{color-status}}; }
.format-video .hex,
.format-video .post-deco { background-color: {{color-video}}; }
a,
.themeform label .required,
.post-title a:hover,
.post-meta a:hover,
.author-bio .bio-name a:hover,
.post-nav li a:hover span,
.widget_rss ul li a,
.widget_calendar a,
.alx-tab .tab-item-category a,
.alx-posts .post-item-category a,
.alx-tab li:hover .tab-item-title a,
.alx-tab li:hover .tab-item-comment a,
.alx-posts li:hover .post-item-title a,
#footer .widget_rss ul li a,
#footer .widget_calendar a,
#footer .alx-tab .tab-item-category a,
#footer .alx-posts .post-item-category a,
.comment-tabs li.active a,
.comment-awaiting-moderation,
.child-menu a:hover,
.child-menu .current_page_item > a,
.wp-pagenavi a { color: {{color-accent}}; }
.themeform input[type="submit"],
.themeform button[type="submit"],
.s1 .sidebar-toggle,
.more-link,
.post-tags a:hover,
.author-bio .bio-avatar:after,
.widget_calendar caption,
.commentlist li.bypostauthor > .comment-body:after { background-color: {{color-accent}}; }
.alx-tabs-nav li.active a,
.wp-pagenavi a:hover,
.wp-pagenavi a:active,
.wp-pagenavi span.current { border-bottom-color: {{color-accent}}!important; }
.themeform input[type="text"]:focus,
.themeform input[type="password"]:focus,
.themeform input[type="email"]:focus,
.themeform textarea:focus,
.comment-tabs li.active a { border-color: {{color-accent}}; }
'
),
// Styling: Custom CSS
array(
'id' => 'custom-output',
'label' => 'Custom CSS',
'desc' => 'Add your custom CSS styles here. It will be added to the [ dynamic.css ] file',
'type' => 'css',
'section' => 'styling',
'std' => '
/* Add your custom CSS below */
'
)
)
);
/* Settings are not the same? Update the DB
/* ------------------------------------ */
if ( $saved_settings !== $custom_settings ) {
update_option( 'option_tree_settings', $custom_settings );
}
}