File "acf.php"
Full Path: /home/flipjqml/onlinebetsolution.com/wp-content/themes/cyarb/inc/acf.php
File size: 18.56 KB
MIME-type: text/x-php
Charset: utf-8
<?php
if( function_exists('acf_add_local_field_group') ):
// Page Option
acf_add_local_field_group(array(
'key' => 'group_5e0c6851b0a0b',
'title' => esc_html__('Page Option', 'cyarb'),
'fields' => array(
array(
'key' => 'field_5e0c685e71de2',
'label' => esc_html__('Hide Page Banner', 'cyarb'),
'name' => 'enable_page_banner',
'type' => 'true_false',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'message' => '',
'default_value' => 0,
'ui' => 0,
'ui_on_text' => '',
'ui_off_text' => '',
),
array(
'key' => 'field_5e0c689071de3',
'label' => esc_html__('Hide Breadcrumb', 'cyarb'),
'name' => 'hide_breadcrumb',
'type' => 'true_false',
'instructions' => '',
'required' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'field_5e0c685e71de2',
'operator' => '!=',
'value' => '1',
),
),
),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'message' => '',
'default_value' => 0,
'ui' => 0,
'ui_on_text' => '',
'ui_off_text' => '',
),
array(
'key' => 'field_6072a8ab3c107',
'label' => esc_html__('Page Banner Title', 'cyarb'),
'name' => 'page_banner_title',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => array(
array(
array(
'field' => 'field_5e0c685e71de2',
'operator' => '!=',
'value' => '1',
),
),
),
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
),
),
'location' => array(
array(
array(
'param' => 'page_template',
'operator' => '==',
'value' => 'default',
),
),
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'product',
),
),
),
'menu_order' => 0,
'position' => 'side',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
));
// Banner Background Image
acf_add_local_field_group(array(
'key' => 'group_5ec2f1d566678',
'title' => esc_html__('Banner Background Image', 'cyarb'),
'fields' => array(
array(
'key' => 'field_5ec2f1faa5ec9',
'label' => esc_html__('Banner Background Image','cyarb'),
'name' => 'banner_background_image',
'type' => 'image',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'url',
'preview_size' => 'medium',
'library' => 'all',
'min_width' => '',
'min_height' => '',
'min_size' => '',
'max_width' => '',
'max_height' => '',
'max_size' => '',
'mime_types' => '',
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'post',
),
),
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'case',
),
),
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'service',
),
),
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'product',
),
),
),
'menu_order' => 0,
'position' => 'side',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
));
// Header Style
acf_add_local_field_group(array(
'key' => 'group_5ec50fbea1205',
'title' => esc_html__('Header Style', 'cyarb'),
'fields' => array(
array(
'key' => 'field_5ec50fc77bef8',
'label' => esc_html__('Choose Header Style', 'cyarb'),
'name' => 'choose_header_style',
'type' => 'radio',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(
1 => 'Header Style One',
2 => 'Header Style Two',
3 => 'Header Style Three',
4 => 'Header Style Four',
),
'allow_null' => 0,
'other_choice' => 0,
'default_value' => 3,
'layout' => 'vertical',
'return_format' => 'value',
'save_other_choice' => 0,
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'post',
),
),
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'case',
),
),
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'service',
),
),
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'page',
),
),
),
'menu_order' => 0,
'position' => 'side',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
));
// Footer Style
acf_add_local_field_group(array(
'key' => 'group_5ec50fbea1206',
'title' => esc_html__('Footer Style', 'cyarb'),
'fields' => array(
array(
'key' => 'field_5ec50fc77bef9',
'label' => esc_html__('Choose Footer Style', 'cyarb'),
'name' => 'choose_footer_style',
'type' => 'radio',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(
1 => 'Footer Style One',
2 => 'Footer Style Two',
3 => 'Footer Style Three',
),
'allow_null' => 0,
'other_choice' => 0,
'default_value' => 3,
'layout' => 'vertical',
'return_format' => 'value',
'save_other_choice' => 0,
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'post',
),
),
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'case',
),
),
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'service',
),
),
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'page',
),
),
),
'menu_order' => 0,
'position' => 'side',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
));
// Partner Logo
acf_add_local_field_group(array(
'key' => 'group_610f61194418a',
'title' => esc_html__('Partner Logo', 'cyarb'),
'fields' => array(
array(
'key' => 'field_610f612cd9606',
'label' => esc_html__('Partner Title', 'cyarb'),
'name' => 'partner_title',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
),
array(
'key' => 'field_610f6150d9607',
'label' => esc_html__('Partner Image', 'cyarb'),
'name' => 'partner_image',
'type' => 'repeater',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'collapsed' => '',
'min' => 0,
'max' => 0,
'layout' => 'table',
'button_label' => '',
'sub_fields' => array(
array(
'key' => 'field_610f616dd9608',
'label' => esc_html__('Partner Logos', 'cyarb'),
'name' => 'partner_logos',
'type' => 'image',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'url',
'preview_size' => 'medium',
'library' => 'all',
'min_width' => '',
'min_height' => '',
'min_size' => '',
'max_width' => '',
'max_height' => '',
'max_size' => '',
'mime_types' => '',
),
array(
'key' => 'field_610f6186d9609',
'label' => esc_html__('Partner Logo URL', 'cyarb'),
'name' => 'partner_logo_url',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
),
),
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'post',
),
),
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'case',
),
),
),
'menu_order' => 0,
'position' => 'normal',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
));
// Service Image
acf_add_local_field_group(array(
'key' => 'group_60e487b347103',
'title' => esc_html__('Service Icon Meta', 'cyarb'),
'fields' => array(
array(
'key' => 'field_60e487c332495',
'label' => esc_html__('Service Icon Image', 'cyarb'),
'name' => 'service_icon_image',
'type' => 'image',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'return_format' => 'url',
'preview_size' => 'medium',
'library' => 'all',
'min_width' => '',
'min_height' => '',
'min_size' => '',
'max_width' => '',
'max_height' => '',
'max_size' => '',
'mime_types' => '',
),
array(
'key' => 'field_60e487c332496',
'label' => 'Service Icon Class',
'name' => 'service_icon',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'service',
),
),
),
'menu_order' => 0,
'position' => 'normal',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
));
// WooCommerce
acf_add_local_field_group(array(
'key' => 'group_5f3c1424a7c3e',
'title' => 'Product Type',
'fields' => array(
array(
'key' => 'field_5f3c14421caee',
'label' => 'Product Type Title',
'name' => 'product_type_title',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
),
array(
'key' => 'field_5c4fea89283cd',
'label' => esc_html__( 'Choose single product style', 'cyarb'),
'name' => 'single_pro_style',
'type' => 'select',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'choices' => array(
'image_style' => esc_html__( 'Simple Product', 'cyarb'),
'thumb_style' => esc_html__( 'Thumb Product', 'cyarb'),
),
'default_value' => array(
),
'allow_null' => 0,
'multiple' => 0,
'ui' => 0,
'return_format' => 'value',
'ajax' => 0,
'placeholder' => '',
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'product',
),
),
),
'menu_order' => 0,
'position' => 'side',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
));
endif;