first commit
This commit is contained in:
@@ -0,0 +1,679 @@
|
||||
<?php if ( ! defined( 'FW' ) ) {
|
||||
die( 'Forbidden' );
|
||||
}
|
||||
/**
|
||||
* Framework options
|
||||
*
|
||||
* @var array $options Fill this array with options to generate framework settings form in WordPress customizer
|
||||
*/
|
||||
|
||||
//find fw_ext
|
||||
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
||||
$header_social_icons = array();
|
||||
if ( ! empty( $shortcodes_extension ) ) {
|
||||
$header_social_icons = $shortcodes_extension->get_shortcode( 'icons_social' )->get_options();
|
||||
}
|
||||
|
||||
$slider_extension = fw()->extensions->get( 'slider' );
|
||||
$choices = '';
|
||||
if ( ! empty ( $slider_extension ) ) {
|
||||
$choices = $slider_extension->get_populated_sliders_choices();
|
||||
}
|
||||
|
||||
//adding empty value to disable slider
|
||||
$choices['0'] = esc_html__( 'No Slider', 'solarify' );
|
||||
|
||||
$icon = fw_ext( 'shortcodes' )->get_shortcode( 'icon' ) -> get_options();
|
||||
|
||||
$options = array(
|
||||
'logo_section' => array(
|
||||
'title' => esc_html__( 'Site Logo', 'solarify' ),
|
||||
'options' => array(
|
||||
'logo_image' => array(
|
||||
'type' => 'upload',
|
||||
'value' => array(),
|
||||
'attr' => array( 'class' => 'logo_image-class', 'data-logo_image' => 'logo_image' ),
|
||||
'label' => esc_html__( 'Main logo image that appears in header', 'solarify' ),
|
||||
'desc' => esc_html__( 'Select your logo', 'solarify' ),
|
||||
'help' => esc_html__( 'Choose image to display as a site logo', 'solarify' ),
|
||||
'images_only' => true,
|
||||
'files_ext' => array( 'png', 'jpg', 'jpeg', 'gif' ),
|
||||
),
|
||||
'logo_text' => array(
|
||||
'type' => 'text',
|
||||
'value' => 'Solarify',
|
||||
'attr' => array( 'class' => 'logo_text-class', 'data-logo_text' => 'logo_text' ),
|
||||
'label' => esc_html__( 'Logo Text', 'solarify' ),
|
||||
'desc' => esc_html__( 'Text that appears if logo image not set', 'solarify' ),
|
||||
'help' => esc_html__( 'Type your text to show it in logo', 'solarify' ),
|
||||
),
|
||||
'logo_image_light' => array(
|
||||
'type' => 'upload',
|
||||
'value' => array(),
|
||||
'attr' => array( 'class' => 'logo_image-class', 'data-logo_image' => 'logo_image' ),
|
||||
'label' => esc_html__( 'Logo image that appears in header with light background', 'solarify' ),
|
||||
'desc' => esc_html__( 'Select your logo', 'solarify' ),
|
||||
'help' => esc_html__( 'Choose image to display as a site logo', 'solarify' ),
|
||||
'images_only' => true,
|
||||
'files_ext' => array( 'png', 'jpg', 'jpeg', 'gif' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'layout' => array(
|
||||
'title' => esc_html__( 'Theme Layout', 'solarify' ),
|
||||
'options' => array(
|
||||
'layout' => array(
|
||||
'type' => 'multi-picker',
|
||||
'value' => 'wide',
|
||||
'attr' => array( 'class' => 'theme-layout-class', 'data-theme-layout' => 'layout' ),
|
||||
'label' => esc_html__( 'Theme layout', 'solarify' ),
|
||||
'desc' => esc_html__( 'Wide or Boxed layout', 'solarify' ),
|
||||
'picker' => array(
|
||||
'boxed' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '',
|
||||
'label' => false,
|
||||
'desc' => false,
|
||||
'left-choice' => array(
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Wide', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => 'boxed_options',
|
||||
'label' => esc_html__( 'Boxed', 'solarify' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'choices' => array(
|
||||
'boxed_options' => array(
|
||||
'body_background_image' => array(
|
||||
'type' => 'upload',
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Body background image', 'solarify' ),
|
||||
'help' => esc_html__( 'Choose body background image if needed.', 'solarify' ),
|
||||
'images_only' => true,
|
||||
),
|
||||
'body_cover' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Parallax background', 'solarify' ),
|
||||
'desc' => esc_html__( 'Enable full width background for body', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'No', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => 'yes',
|
||||
'label' => esc_html__( 'Yes', 'solarify' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
),
|
||||
),
|
||||
),
|
||||
'blog_posts' => array(
|
||||
'title' => esc_html__( 'Theme Blog', 'solarify' ),
|
||||
'options' => array(
|
||||
'blog_slider_switch' => array(
|
||||
'type' => 'multi-picker',
|
||||
'label' => false,
|
||||
'desc' => false,
|
||||
'picker' => array(
|
||||
'blog_slider_enabled' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Post slider', 'solarify' ),
|
||||
'desc' => esc_html__( 'Enable slider on blog page', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'No', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => 'yes',
|
||||
'label' => esc_html__( 'Yes', 'solarify' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'choices' => array(
|
||||
'yes' => array(
|
||||
'slider_id' => array(
|
||||
'type' => 'select',
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Select Slider', 'solarify' ),
|
||||
'choices' => $choices
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
'toplogo' => array(
|
||||
'title' => esc_html__( 'Theme Top logo', 'solarify' ),
|
||||
'options' => array(
|
||||
'toplogo_teasers' => array(
|
||||
'type' => 'addable-box',
|
||||
'label' => esc_html__('Top logo teasers', 'solarify'),
|
||||
'desc' => esc_html__('Chose icon and enter teaser text', 'solarify'),
|
||||
'template' => '{{=teaser_text}}',
|
||||
'box-options' => array(
|
||||
'teaser_icon' => array(
|
||||
'type' => 'icon-v2',
|
||||
'label' => esc_html__( 'Icon', 'solarify' ),
|
||||
),
|
||||
'teaser_text' => array(
|
||||
'type' => 'text',
|
||||
'label' => esc_html__( 'Teaser text' , 'solarify' ),
|
||||
),
|
||||
'teaser_text_link' => array(
|
||||
'type' => 'text',
|
||||
'label' => esc_html__( 'Teaser link' , 'solarify' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
),
|
||||
'headers' => array(
|
||||
'title' => esc_html__( 'Theme Header', 'solarify' ),
|
||||
'options' => array(
|
||||
|
||||
'header' => array(
|
||||
'type' => 'image-picker',
|
||||
'value' => '1',
|
||||
'attr' => array(
|
||||
'class' => 'header-thumbnail',
|
||||
'data-foo' => 'header',
|
||||
),
|
||||
'label' => esc_html__( 'Template Header', 'solarify' ),
|
||||
'desc' => esc_html__( 'Select one of predefined theme headers', 'solarify' ),
|
||||
'help' => esc_html__( 'You can select one of predefined theme headers', 'solarify' ),
|
||||
'choices' => array(
|
||||
'1' => SOLARIFY_THEME_URI . '/img/theme-options/header1.png',
|
||||
'2' => SOLARIFY_THEME_URI . '/img/theme-options/header2.png',
|
||||
'3' => SOLARIFY_THEME_URI . '/img/theme-options/header3.png',
|
||||
'4' => SOLARIFY_THEME_URI . '/img/theme-options/header4.png',
|
||||
'10' => SOLARIFY_THEME_URI . '/img/theme-options/header10.png',
|
||||
'21' => SOLARIFY_THEME_URI . '/img/theme-options/header21.png',
|
||||
'22' => SOLARIFY_THEME_URI . '/img/theme-options/header22.png',
|
||||
'23' => SOLARIFY_THEME_URI . '/img/theme-options/header23.png',
|
||||
'24' => SOLARIFY_THEME_URI . '/img/theme-options/header24.png',
|
||||
),
|
||||
'blank' => false, // (optional) if true, image can be deselected
|
||||
),
|
||||
'header_phone' => array(
|
||||
'type' => 'text',
|
||||
'value' => esc_html__( '1(800)555-12-34', 'solarify' ),
|
||||
'label' => esc_html__( 'Phone number', 'solarify' ),
|
||||
'desc' => esc_html__( 'Number to appear in header', 'solarify' ),
|
||||
'help' => esc_html__( 'Not all headers display this info', 'solarify' ),
|
||||
),
|
||||
'header_email' => array(
|
||||
'type' => 'text',
|
||||
'value' => esc_html__( 'info@company.com', 'solarify' ),
|
||||
'label' => esc_html__( 'Email', 'solarify' ),
|
||||
'desc' => esc_html__( 'Email to appear in header', 'solarify' ),
|
||||
'help' => esc_html__( 'Not all headers display this info', 'solarify' ),
|
||||
),
|
||||
$header_social_icons
|
||||
),
|
||||
),
|
||||
'breadcrumbs' => array(
|
||||
'title' => esc_html__( 'Theme Title Section', 'solarify' ),
|
||||
'options' => array(
|
||||
|
||||
'breadcrumbs' => array(
|
||||
'type' => 'image-picker',
|
||||
'value' => '1',
|
||||
'attr' => array(
|
||||
'class' => 'breadcrumbs-thumbnail',
|
||||
'data-foo' => 'breadcrumbs',
|
||||
),
|
||||
'label' => esc_html__( 'Page title sections with optional breadcrumbs', 'solarify' ),
|
||||
'desc' => esc_html__( 'Select one of predefined page title sections. Install Unyson Breadcrumbs extension to display breadcrumbs', 'solarify' ),
|
||||
'help' => esc_html__( 'You can select one of predefined theme title sections', 'solarify' ),
|
||||
'choices' => array(
|
||||
'1' => SOLARIFY_THEME_URI . '/img/theme-options/breadcrumbs1.png',
|
||||
'2' => SOLARIFY_THEME_URI . '/img/theme-options/breadcrumbs2.png',
|
||||
'3' => SOLARIFY_THEME_URI . '/img/theme-options/breadcrumbs3.png',
|
||||
'4' => SOLARIFY_THEME_URI . '/img/theme-options/breadcrumbs4.png',
|
||||
'5' => SOLARIFY_THEME_URI . '/img/theme-options/breadcrumbs5.png',
|
||||
),
|
||||
'blank' => false, // (optional) if true, image can be deselected
|
||||
),
|
||||
|
||||
'breadcrumbs_background_image' => array(
|
||||
'type' => 'upload',
|
||||
'value' => array(),
|
||||
'attr' => array( 'class' => 'logo_image-class', 'data-logo_image' => 'logo_image' ),
|
||||
'label' => esc_html__( 'Background Image', 'solarify' ),
|
||||
'images_only' => true,
|
||||
'files_ext' => array( 'png', 'jpg', 'jpeg', 'gif' ),
|
||||
),
|
||||
|
||||
),
|
||||
),
|
||||
'footer' => array(
|
||||
'title' => esc_html__( 'Theme Footer', 'solarify' ),
|
||||
'options' => array(
|
||||
|
||||
'footer_variant' => array(
|
||||
'title' => esc_html__( 'Footer Variant', 'solarify' ),
|
||||
'options' => array(
|
||||
'footer' => array(
|
||||
'type' => 'image-picker',
|
||||
'value' => '1',
|
||||
'attr' => array(
|
||||
'class' => 'footer-thumbnail',
|
||||
'data-foo' => 'footer',
|
||||
),
|
||||
'label' => esc_html__( 'Page footer', 'solarify' ),
|
||||
'desc' => esc_html__( 'Select one of predefined page footers.', 'solarify' ),
|
||||
'help' => esc_html__( 'You can select one of predefined theme footers', 'solarify' ),
|
||||
'choices' => array(
|
||||
'1' => SOLARIFY_THEME_URI . '/img/theme-options/footer1.png',
|
||||
'2' => SOLARIFY_THEME_URI . '/img/theme-options/footer2.png',
|
||||
),
|
||||
'blank' => false, // (optional) if true, image can be deselected
|
||||
),
|
||||
)
|
||||
),
|
||||
'footer_first_teaser' => array(
|
||||
'title' => esc_html__( 'Footer Contact Teaser 1', 'solarify' ),
|
||||
'options' => array(
|
||||
'first_teaser_icon' => array(
|
||||
'type' => 'icon-v2',
|
||||
'label' => esc_html__( 'Icon', 'solarify' ),
|
||||
),
|
||||
'first_teaser_text' => array(
|
||||
'type' => 'text',
|
||||
'label' => esc_html__( 'Teaser text' , 'solarify' ),
|
||||
),
|
||||
'first_teaser_link' => array(
|
||||
'type' => 'text',
|
||||
'label' => esc_html__( 'Teaser link' , 'solarify' ),
|
||||
),
|
||||
)
|
||||
),
|
||||
'footer_second_teaser' => array(
|
||||
'title' => esc_html__( 'Footer Contact Teaser 2', 'solarify' ),
|
||||
'options' => array(
|
||||
'second_teaser_icon' => array(
|
||||
'type' => 'icon-v2',
|
||||
'label' => esc_html__( 'Icon', 'solarify' ),
|
||||
),
|
||||
'second_teaser_text' => array(
|
||||
'type' => 'text',
|
||||
'label' => esc_html__( 'Teaser text' , 'solarify' ),
|
||||
),
|
||||
'second_teaser_link' => array(
|
||||
'type' => 'text',
|
||||
'label' => esc_html__( 'Teaser link' , 'solarify' ),
|
||||
),
|
||||
)
|
||||
),
|
||||
'footer_third_teaser' => array(
|
||||
'title' => esc_html__( 'Footer Contact Teaser 3', 'solarify' ),
|
||||
'options' => array(
|
||||
'third_teaser_icon' => array(
|
||||
'type' => 'icon-v2',
|
||||
'label' => esc_html__( 'Icon', 'solarify' ),
|
||||
),
|
||||
'third_teaser_text' => array(
|
||||
'type' => 'text',
|
||||
'label' => esc_html__( 'Teaser text' , 'solarify' ),
|
||||
),
|
||||
'third_teaser_link' => array(
|
||||
'type' => 'text',
|
||||
'label' => esc_html__( 'Teaser link' , 'solarify' ),
|
||||
),
|
||||
)
|
||||
),
|
||||
'footer_social' => array(
|
||||
'title' => esc_html__( 'Footer Social', 'solarify' ),
|
||||
'options' => array(
|
||||
'footer_social_icons' => array(
|
||||
'type' => 'addable-box',
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Social Buttons', 'solarify' ),
|
||||
'desc' => esc_html__( 'Optional social buttons', 'solarify' ),
|
||||
'template' => '{{=icon}}',
|
||||
'box-options' => array(
|
||||
'icon' => array(
|
||||
'type' => 'icon',
|
||||
'label' => esc_html__( 'Social Icon', 'solarify' ),
|
||||
'set' => 'social-icons',
|
||||
),
|
||||
'icon_class' => array(
|
||||
'type' => 'select',
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Icon type', 'solarify' ),
|
||||
'desc' => esc_html__( 'Select one of predefined social button types', 'solarify' ),
|
||||
'choices' => array(
|
||||
'' => esc_html__( 'Default', 'solarify' ),
|
||||
'border-icon' => esc_html__( 'Simple Bordered Icon', 'solarify' ),
|
||||
'border-icon rounded-icon' => esc_html__( 'Rounded Bordered Icon', 'solarify' ),
|
||||
'bg-icon' => esc_html__( 'Simple Background Icon', 'solarify' ),
|
||||
'bg-icon rounded-icon' => esc_html__( 'Rounded Background Icon', 'solarify' ),
|
||||
'color-icon bg-icon' => esc_html__( 'Color Light Background Icon', 'solarify' ),
|
||||
'color-icon bg-icon rounded-icon' => esc_html__( 'Color Light Background Rounded Icon', 'solarify' ),
|
||||
'color-icon' => esc_html__( 'Color Icon', 'solarify' ),
|
||||
'color-icon border-icon' => esc_html__( 'Color Bordered Icon', 'solarify' ),
|
||||
'color-icon border-icon rounded-icon' => esc_html__( 'Rounded Color Bordered Icon', 'solarify' ),
|
||||
'color-bg-icon' => esc_html__( 'Color Background Icon', 'solarify' ),
|
||||
'color-bg-icon rounded-icon' => esc_html__( 'Rounded Color Background Icon', 'solarify' ),
|
||||
|
||||
),
|
||||
/**
|
||||
* Allow save not existing choices
|
||||
* Useful when you use the select to populate it dynamically from js
|
||||
*/
|
||||
'no-validate' => false,
|
||||
),
|
||||
'icon_url' => array(
|
||||
'type' => 'text',
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Icon Link', 'solarify' ),
|
||||
'desc' => esc_html__( 'Provide a URL to your icon', 'solarify' ),
|
||||
)
|
||||
),
|
||||
'limit' => 0, // limit the number of boxes that can be added
|
||||
'add-button-text' => esc_html__( 'Add', 'solarify' ),
|
||||
'sortable' => true,
|
||||
),
|
||||
)
|
||||
),
|
||||
),
|
||||
),
|
||||
'copyrights' => array(
|
||||
'title' => esc_html__( 'Theme Copyrights', 'solarify' ),
|
||||
'options' => array(
|
||||
|
||||
'copyrights' => array(
|
||||
'type' => 'image-picker',
|
||||
'value' => '1',
|
||||
'attr' => array(
|
||||
'class' => 'copyrights-thumbnail',
|
||||
'data-foo' => 'copyrights',
|
||||
),
|
||||
'label' => esc_html__( 'Page copyrights', 'solarify' ),
|
||||
'desc' => esc_html__( 'Select one of predefined page copyrights.', 'solarify' ),
|
||||
'help' => esc_html__( 'You can select one of predefined theme copyrights', 'solarify' ),
|
||||
'choices' => array(
|
||||
'1' => SOLARIFY_THEME_URI . '/img/theme-options/copyrights1.png',
|
||||
'2' => SOLARIFY_THEME_URI . '/img/theme-options/copyrights2.png',
|
||||
),
|
||||
'blank' => false, // (optional) if true, image can be deselected
|
||||
),
|
||||
'copyrights_text' => array(
|
||||
'type' => 'textarea',
|
||||
'value' => '© Copyright 2017 All Rights Reserved',
|
||||
'label' => esc_html__( 'Copyrights text', 'solarify' ),
|
||||
'desc' => esc_html__( 'Please type your copyrights text', 'solarify' ),
|
||||
)
|
||||
|
||||
),
|
||||
),
|
||||
'not_found_page' => array(
|
||||
'title' => esc_html__( 'Theme 404 page', 'solarify' ),
|
||||
'options' => array(
|
||||
'404_background_image' => array(
|
||||
'type' => 'upload',
|
||||
'value' => array(),
|
||||
'attr' => array( 'class' => 'logo_image-class', 'data-logo_image' => 'logo_image' ),
|
||||
'label' => esc_html__( 'Background Image', 'solarify' ),
|
||||
'images_only' => true,
|
||||
'files_ext' => array( 'png', 'jpg', 'jpeg', 'gif' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'fonts_panel' => array(
|
||||
'title' => esc_html__( 'Theme Fonts', 'solarify' ),
|
||||
'options' => array(
|
||||
'body_fonts_section' => array(
|
||||
'title' => esc_html__( 'Font for body', 'solarify' ),
|
||||
'options' => array(
|
||||
'body_font_picker_switch' => array(
|
||||
'type' => 'multi-picker',
|
||||
'label' => false,
|
||||
'desc' => false,
|
||||
'picker' => array(
|
||||
'main_font_enabled' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Enable', 'solarify' ),
|
||||
'desc' => esc_html__( 'Enable custom body font', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Disabled', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => 'main_font_options',
|
||||
'label' => esc_html__( 'Enabled', 'solarify' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'choices' => array(
|
||||
'main_font_options' => array(
|
||||
'main_font' => array(
|
||||
'type' => 'typography-v2',
|
||||
'value' => array(
|
||||
'family' => 'Roboto',
|
||||
// For standard fonts, instead of subset and variation you should set 'style' and 'weight'.
|
||||
// 'style' => 'italic',
|
||||
// 'weight' => 700,
|
||||
'subset' => 'latin-ext',
|
||||
'variation' => 'regular',
|
||||
'size' => 14,
|
||||
'line-height' => 24,
|
||||
'letter-spacing' => 0,
|
||||
'color' => '#0000ff'
|
||||
),
|
||||
'components' => array(
|
||||
'family' => true,
|
||||
// 'style', 'weight', 'subset', 'variation' will appear and disappear along with 'family'
|
||||
'size' => true,
|
||||
'line-height' => true,
|
||||
'letter-spacing' => true,
|
||||
'color' => false
|
||||
),
|
||||
'attr' => array( 'class' => 'custom-class', 'data-foo' => 'bar' ),
|
||||
'label' => esc_html__( 'Custom font', 'solarify' ),
|
||||
'desc' => esc_html__( 'Select custom font for headings', 'solarify' ),
|
||||
'help' => esc_html__( 'You should enable using custom heading fonts above at first', 'solarify' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
'headings_fonts_section' => array(
|
||||
'title' => esc_html__( 'Font for headings', 'solarify' ),
|
||||
'options' => array(
|
||||
'h_font_picker_switch' => array(
|
||||
'type' => 'multi-picker',
|
||||
'label' => false,
|
||||
'desc' => false,
|
||||
'picker' => array(
|
||||
'h_font_enabled' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Enable', 'solarify' ),
|
||||
'desc' => esc_html__( 'Enable custom heading font', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Disabled', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => 'h_font_options',
|
||||
'label' => esc_html__( 'Enabled', 'solarify' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
'choices' => array(
|
||||
'h_font_options' => array(
|
||||
'h_font' => array(
|
||||
'type' => 'typography-v2',
|
||||
'value' => array(
|
||||
'family' => 'Roboto',
|
||||
// For standard fonts, instead of subset and variation you should set 'style' and 'weight'.
|
||||
// 'style' => 'italic',
|
||||
// 'weight' => 700,
|
||||
'subset' => 'latin-ext',
|
||||
'variation' => 'regular',
|
||||
'size' => 28,
|
||||
'line-height' => '100%',
|
||||
'letter-spacing' => 0,
|
||||
'color' => '#0000ff'
|
||||
),
|
||||
'components' => array(
|
||||
'family' => true,
|
||||
// 'style', 'weight', 'subset', 'variation' will appear and disappear along with 'family'
|
||||
'size' => false,
|
||||
'line-height' => false,
|
||||
'letter-spacing' => true,
|
||||
'color' => false
|
||||
),
|
||||
'attr' => array( 'class' => 'custom-class', 'data-foo' => 'bar' ),
|
||||
'label' => esc_html__( 'Custom font', 'solarify' ),
|
||||
'desc' => esc_html__( 'Select custom font for headings', 'solarify' ),
|
||||
'help' => esc_html__( 'You should enable using custom heading fonts above at first', 'solarify' ),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
),
|
||||
),
|
||||
'preloader_panel' => array(
|
||||
'title' => esc_html__( 'Theme Preloader', 'solarify' ),
|
||||
|
||||
'options' => array(
|
||||
'preloader_enabled' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enable Preloader', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enabled', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => '0',
|
||||
'label' => esc_html__( 'Disabled', 'solarify' ),
|
||||
),
|
||||
),
|
||||
|
||||
'preloader_image' => array(
|
||||
'type' => 'upload',
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Custom preloader image', 'solarify' ),
|
||||
'help' => esc_html__( 'GIF image recommended. Recommended maximum preloader width 150px, maximum preloader height 150px.', 'solarify' ),
|
||||
'images_only' => true,
|
||||
),
|
||||
|
||||
|
||||
),
|
||||
),
|
||||
'share_buttons' => array(
|
||||
'title' => esc_html__( 'Theme Share Buttons', 'solarify' ),
|
||||
|
||||
'options' => array(
|
||||
'share_facebook' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enable Facebook Share Button', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enabled', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => '0',
|
||||
'label' => esc_html__( 'Disabled', 'solarify' ),
|
||||
),
|
||||
),
|
||||
'share_twitter' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enable Twitter Share Button', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enabled', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => '0',
|
||||
'label' => esc_html__( 'Disabled', 'solarify' ),
|
||||
),
|
||||
),
|
||||
'share_google_plus' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enable Google+ Share Button', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enabled', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => '0',
|
||||
'label' => esc_html__( 'Disabled', 'solarify' ),
|
||||
),
|
||||
),
|
||||
'share_pinterest' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enable Pinterest Share Button', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enabled', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => '0',
|
||||
'label' => esc_html__( 'Disabled', 'solarify' ),
|
||||
),
|
||||
),
|
||||
'share_linkedin' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enable LinkedIn Share Button', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enabled', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => '0',
|
||||
'label' => esc_html__( 'Disabled', 'solarify' ),
|
||||
),
|
||||
),
|
||||
'share_tumblr' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enable Tumblr Share Button', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enabled', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => '0',
|
||||
'label' => esc_html__( 'Disabled', 'solarify' ),
|
||||
),
|
||||
),
|
||||
'share_reddit' => array(
|
||||
'type' => 'switch',
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enable Reddit Share Button', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => '1',
|
||||
'label' => esc_html__( 'Enabled', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => '0',
|
||||
'label' => esc_html__( 'Disabled', 'solarify' ),
|
||||
),
|
||||
),
|
||||
|
||||
),
|
||||
),
|
||||
|
||||
);
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php if ( ! defined( 'FW' ) ) {
|
||||
die( 'Forbidden' );
|
||||
}
|
||||
|
||||
$options = array(
|
||||
'post-featured-gallery-section' => array(
|
||||
'title' => esc_html__( 'Featured Gallery', 'solarify' ),
|
||||
'type' => 'box',
|
||||
'context' => 'side',
|
||||
|
||||
'options' => array(
|
||||
'post-featured-gallery' => array(
|
||||
'type' => 'multi-upload',
|
||||
'value' => array(),
|
||||
'label' => esc_html__('Images for featured gallery', 'solarify'),
|
||||
'desc' => esc_html__('Display gallery carousel on single event', 'solarify'),
|
||||
/**
|
||||
* If set to `true`, the option will allow to upload only images, and display a thumb of the selected one.
|
||||
* If set to `false`, the option will allow to upload any file from the media library.
|
||||
*/
|
||||
'images_only' => true,
|
||||
/**
|
||||
* An array with allowed files extensions what will filter the media library and the upload files.
|
||||
*/
|
||||
// 'files_ext' => array( 'doc', 'pdf', 'zip' ),
|
||||
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
@@ -0,0 +1,129 @@
|
||||
<?php if ( ! defined( 'FW' ) ) {
|
||||
die( 'Forbidden' );
|
||||
}
|
||||
|
||||
//custom template parts
|
||||
|
||||
//header that already chosen in customizer
|
||||
$header_from_customizer = '1';
|
||||
if ( function_exists( 'fw_get_db_customizer_option' ) ) {
|
||||
$header_from_customizer = fw_get_db_customizer_option( 'header' );
|
||||
if ( empty ( $header_from_customizer ) ) {
|
||||
$header_from_customizer = '1';
|
||||
}
|
||||
} else {
|
||||
$header_from_customizer = '1';
|
||||
}
|
||||
|
||||
|
||||
$options = array(
|
||||
'page-options-section' => array(
|
||||
'title' => esc_html__( 'Featured Additional Options', 'solarify' ),
|
||||
'type' => 'box',
|
||||
'context' => 'normal',
|
||||
'options' => array(
|
||||
'hide_breadcrumbs' => array(
|
||||
'type' => 'switch',
|
||||
'value' => false,
|
||||
'label' => esc_html__('Hide Title section', 'solarify'),
|
||||
'desc' => esc_html__('You can hide title section with breadcrumbs', 'solarify'),
|
||||
'left-choice' => array(
|
||||
'value' => false,
|
||||
'label' => esc_html__('Show', 'solarify'),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => true,
|
||||
'label' => esc_html__('Hide', 'solarify'),
|
||||
),
|
||||
),
|
||||
|
||||
'header' => array(
|
||||
'type' => 'image-picker',
|
||||
'value' => $header_from_customizer,
|
||||
'attr' => array(
|
||||
'class' => 'header-thumbnail',
|
||||
'data-foo' => 'header',
|
||||
),
|
||||
'label' => esc_html__( 'Template Header', 'solarify' ),
|
||||
'desc' => esc_html__( 'Select one of predefined theme headers for this page', 'solarify' ),
|
||||
'help' => esc_html__( 'You can override chosen header from customizer here', 'solarify' ),
|
||||
'choices' => array(
|
||||
'1' => SOLARIFY_THEME_URI . '/img/theme-options/header1.png',
|
||||
'2' => SOLARIFY_THEME_URI . '/img/theme-options/header2.png',
|
||||
'3' => SOLARIFY_THEME_URI . '/img/theme-options/header3.png',
|
||||
'4' => SOLARIFY_THEME_URI . '/img/theme-options/header4.png',
|
||||
'5' => SOLARIFY_THEME_URI . '/img/theme-options/header5.png',
|
||||
'10' => SOLARIFY_THEME_URI . '/img/theme-options/header10.png',
|
||||
'21' => SOLARIFY_THEME_URI . '/img/theme-options/header21.png',
|
||||
'22' => SOLARIFY_THEME_URI . '/img/theme-options/header22.png',
|
||||
'23' => SOLARIFY_THEME_URI . '/img/theme-options/header23.png',
|
||||
'24' => SOLARIFY_THEME_URI . '/img/theme-options/header24.png',
|
||||
),
|
||||
'blank' => false, // (optional) if true, image can be deselected
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
);
|
||||
|
||||
|
||||
//page slider
|
||||
$slider_extension = fw()->extensions->get( 'slider' );
|
||||
//returning if no slider - only options for page is slider options
|
||||
if ( empty ( $slider_extension ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$choices = '';
|
||||
if ( ! empty ( $slider_extension ) ) {
|
||||
$choices = $slider_extension->get_populated_sliders_choices();
|
||||
}
|
||||
|
||||
if ( ! empty( $choices ) ) {
|
||||
//adding empty value to disable slider
|
||||
$choices['0'] = esc_html__( 'No Slider', 'solarify' );
|
||||
|
||||
array_push( $options['page-options-section']['options'], array(
|
||||
'slider_id' => array(
|
||||
'type' => 'select',
|
||||
'value' => '0',
|
||||
'label' => esc_html__( 'Select Slider', 'solarify' ),
|
||||
'choices' => $choices
|
||||
),
|
||||
)
|
||||
);
|
||||
} else {
|
||||
array_push( $options['page-options-section']['options'], array(
|
||||
'slider_id' => array( // make sure it exists to prevent notices when try to get ['slider_id'] somewhere in the code
|
||||
'type' => 'hidden',
|
||||
),
|
||||
'no-forms' => array(
|
||||
'type' => 'html-full',
|
||||
'label' => false,
|
||||
'desc' => false,
|
||||
'html' =>
|
||||
'<div>' .
|
||||
'<h1 style="font-weight:100; text-align:center;">' . esc_html__( 'No Sliders Available', 'solarify' ) . '</h1>' .
|
||||
'<p style="text-align:center">' .
|
||||
'<em>' .
|
||||
str_replace(
|
||||
array(
|
||||
'{br}',
|
||||
'{add_slider_link}'
|
||||
),
|
||||
array(
|
||||
'<br/>',
|
||||
fw_html_tag( 'a', array(
|
||||
'href' => admin_url( 'post-new.php?post_type=' . fw()->extensions->get( 'slider' )->get_post_type() ),
|
||||
'target' => '_blank',
|
||||
), esc_html__( 'create a new Slider', 'solarify' ) )
|
||||
),
|
||||
esc_html__( 'No Sliders created yet. Please go to the {br}Sliders page and {add_slider_link}.', 'solarify' )
|
||||
) .
|
||||
'</em>' .
|
||||
'</p>' .
|
||||
'</div>'
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php if ( ! defined( 'FW' ) ) {
|
||||
die( 'Forbidden' );
|
||||
}
|
||||
|
||||
$options = array(
|
||||
'post-layout-section' => array(
|
||||
'title' => esc_html__( 'Featured Image Position', 'solarify' ),
|
||||
'type' => 'box',
|
||||
'context' => 'side',
|
||||
'options' => array(
|
||||
'post-layout' => array(
|
||||
'type' => 'image-picker',
|
||||
'value' => 'post-layout-standard',
|
||||
'label' => esc_html__( 'Post layout in blog feed', 'solarify' ),
|
||||
'desc' => esc_html__( 'Position of image in blog feed', 'solarify' ),
|
||||
'help' => esc_html__( 'Standard position of image at the top of the post. Or small image at the left of the post. Works only if featured image chosen.', 'solarify' ),
|
||||
'choices' => array(
|
||||
'post-layout-standard' => SOLARIFY_THEME_URI . '/img/theme-options/post-layout-standard.png',
|
||||
'post-layout-small' => SOLARIFY_THEME_URI . '/img/theme-options/post-layout-small.png',
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
'post-featured-video-section' => array(
|
||||
'title' => esc_html__( 'Post Featured Video', 'solarify' ),
|
||||
'type' => 'box',
|
||||
'context' => 'side',
|
||||
|
||||
'options' => array(
|
||||
'post-featured-video' => array(
|
||||
'type' => 'oembed',
|
||||
'value' => '',
|
||||
'label' => esc_html__( 'Featured Video', 'solarify' ),
|
||||
'desc' => esc_html__( 'Adds featured video', 'solarify' ),
|
||||
'help' => esc_html__( 'Leave blank if no needed', 'solarify' ),
|
||||
'preview' => array(
|
||||
'width' => 278, // optional, if you want to set the fixed width to iframe
|
||||
'height' => 185, // optional, if you want to set the fixed height to iframe
|
||||
/**
|
||||
* if is set to false it will force to fit the dimensions,
|
||||
* because some widgets return iframe with aspect ratio and ignore applied dimensions
|
||||
*/
|
||||
'keep_ratio' => true
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
);
|
||||
@@ -0,0 +1,126 @@
|
||||
<?php if ( ! defined( 'FW' ) ) {
|
||||
die( 'Forbidden' );
|
||||
}
|
||||
|
||||
$options = array(
|
||||
'box_id' => array(
|
||||
'type' => 'box',
|
||||
'title' => esc_html__( 'Options for child categories', 'solarify' ),
|
||||
'options' => array(
|
||||
'layout' => array(
|
||||
'label' => esc_html__( 'Portfolio Layout', 'solarify' ),
|
||||
'desc' => esc_html__( 'Choose projects layout', 'solarify' ),
|
||||
'value' => 'isotope',
|
||||
'type' => 'select',
|
||||
'choices' => array(
|
||||
'carousel' => esc_html__( 'Carousel', 'solarify' ),
|
||||
'isotope' => esc_html__( 'Masonry Grid', 'solarify' ),
|
||||
)
|
||||
),
|
||||
'item_layout' => array(
|
||||
'label' => esc_html__( 'Item layout', 'solarify' ),
|
||||
'desc' => esc_html__( 'Choose Item layout', 'solarify' ),
|
||||
'value' => 'item-regular',
|
||||
'type' => 'select',
|
||||
'choices' => array(
|
||||
'item-regular' => esc_html__( 'Regular (just image)', 'solarify' ),
|
||||
'item-title' => esc_html__( 'Image with title', 'solarify' ),
|
||||
'item-extended' => esc_html__( 'Image with title and excerpt', 'solarify' ),
|
||||
)
|
||||
),
|
||||
'full_width' => array(
|
||||
'type' => 'switch',
|
||||
'value' => false,
|
||||
'label' => esc_html__( 'Full width gallery', 'solarify' ),
|
||||
'desc' => esc_html__( 'Enable full width container for gallery', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => false,
|
||||
'label' => esc_html__( 'No', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => true,
|
||||
'label' => esc_html__( 'Yes', 'solarify' ),
|
||||
),
|
||||
),
|
||||
'margin' => array(
|
||||
'label' => esc_html__( 'Horizontal item margin (px)', 'solarify' ),
|
||||
'desc' => esc_html__( 'Select horizontal item margin', 'solarify' ),
|
||||
'value' => '30',
|
||||
'type' => 'select',
|
||||
'choices' => array(
|
||||
'0' => esc_html__( '0', 'solarify' ),
|
||||
'1' => esc_html__( '1px', 'solarify' ),
|
||||
'2' => esc_html__( '2px', 'solarify' ),
|
||||
'10' => esc_html__( '10px', 'solarify' ),
|
||||
'30' => esc_html__( '30px', 'solarify' ),
|
||||
)
|
||||
),
|
||||
'responsive_lg' => array(
|
||||
'label' => esc_html__( 'Columns on large screens', 'solarify' ),
|
||||
'desc' => __( 'Select items number on wide screens (>1200px)', 'solarify' ),
|
||||
'value' => '4',
|
||||
'type' => 'select',
|
||||
'choices' => array(
|
||||
'1' => esc_html__( '1', 'solarify' ),
|
||||
'2' => esc_html__( '2', 'solarify' ),
|
||||
'3' => esc_html__( '3', 'solarify' ),
|
||||
'4' => esc_html__( '4', 'solarify' ),
|
||||
'6' => esc_html__( '6', 'solarify' ),
|
||||
)
|
||||
),
|
||||
'responsive_md' => array(
|
||||
'label' => esc_html__( 'Columns on middle screens', 'solarify' ),
|
||||
'desc' => __( 'Select items number on middle screens (>992px)', 'solarify' ),
|
||||
'value' => '3',
|
||||
'type' => 'select',
|
||||
'choices' => array(
|
||||
'1' => esc_html__( '1', 'solarify' ),
|
||||
'2' => esc_html__( '2', 'solarify' ),
|
||||
'3' => esc_html__( '3', 'solarify' ),
|
||||
'4' => esc_html__( '4', 'solarify' ),
|
||||
'6' => esc_html__( '6', 'solarify' ),
|
||||
)
|
||||
),
|
||||
'responsive_sm' => array(
|
||||
'label' => esc_html__( 'Columns on small screens', 'solarify' ),
|
||||
'desc' => __( 'Select items number on small screens (>768px)', 'solarify' ),
|
||||
'value' => '2',
|
||||
'type' => 'select',
|
||||
'choices' => array(
|
||||
'1' => esc_html__( '1', 'solarify' ),
|
||||
'2' => esc_html__( '2', 'solarify' ),
|
||||
'3' => esc_html__( '3', 'solarify' ),
|
||||
'4' => esc_html__( '4', 'solarify' ),
|
||||
'6' => esc_html__( '6', 'solarify' ),
|
||||
)
|
||||
),
|
||||
'responsive_xs' => array(
|
||||
'label' => esc_html__( 'Columns on extra small screens', 'solarify' ),
|
||||
'desc' => esc_html__( 'Select items number on extra small screens (<767px)', 'solarify' ),
|
||||
'value' => '1',
|
||||
'type' => 'select',
|
||||
'choices' => array(
|
||||
'1' => esc_html__( '1', 'solarify' ),
|
||||
'2' => esc_html__( '2', 'solarify' ),
|
||||
'3' => esc_html__( '3', 'solarify' ),
|
||||
'4' => esc_html__( '4', 'solarify' ),
|
||||
'6' => esc_html__( '6', 'solarify' ),
|
||||
)
|
||||
),
|
||||
'show_filters' => array(
|
||||
'type' => 'switch',
|
||||
'value' => false,
|
||||
'label' => esc_html__( 'Show filters', 'solarify' ),
|
||||
'desc' => esc_html__( 'Hide or show categories filters', 'solarify' ),
|
||||
'left-choice' => array(
|
||||
'value' => false,
|
||||
'label' => esc_html__( 'No', 'solarify' ),
|
||||
),
|
||||
'right-choice' => array(
|
||||
'value' => true,
|
||||
'label' => esc_html__( 'Yes', 'solarify' ),
|
||||
),
|
||||
),
|
||||
)
|
||||
)
|
||||
);
|
||||
Reference in New Issue
Block a user