__( 'Related', 'acc-conditional-typo' ),
'icon' => 'fa fa-random',
'fields' => array(
array(
'id' => 'gpacc_root_options_group',
'type' => 'group',
'button_title' => __( 'Add New Condition', 'acc-conditional-typo' ),
'fields' => array(
array(
'id' => 'acc_group_title',
'type' => 'text',
'title' => __( 'Group Name', 'acc-conditional-typo' ),
'desc' => __( 'Type a group name that you can identify or remember the next time.', 'acc-conditional-typo' ),
),
array(
'id' => 'acc_is_template',
'type' => 'select',
'title' => __( 'Code Applying On', 'acc-conditional-typo' ),
'subtitle' => __( 'To apply your CSS on every template, WordPress already has an option,
Appearance » Customize » Additional CSS', 'acc-conditional-typo' ),
'class' => 'acc--conditional-tag-list',
'placeholder' => __( 'Select a Template', 'acc-conditional-typo' ),
'options' => array(
'WordPress' => array(
'is_home' => __( 'Home Page', 'acc-conditional-typo' ),
'is_front_page' => __( 'Static Page', 'acc-conditional-typo' ),
'is_single' => __( 'Single Post', 'acc-conditional-typo' ),
'is_page' => __( 'Single Page', 'acc-conditional-typo' ),
'is_search' => __( 'Search Result Page', 'acc-conditional-typo' ),
'is_404' => __( '404 Not Found Page', 'acc-conditional-typo' ),
),
'WooCommerce' => array(
'is_shop' => __( 'Shop Page', 'acc-conditional-typo' ),
'is_product' => __( 'Product Page', 'acc-conditional-typo' ),
'is_cart' => __( 'Cart Page', 'acc-conditional-typo' ),
'is_checkout' => __( 'Checkout Page', 'acc-conditional-typo' ),
'is_account_page' => __( 'Account Page', 'acc-conditional-typo' ),
),
),
),
//
// Notice: iF not meet with any condition.
//
array(
'type' => 'notice',
'style' => 'warning',
'content' => __( ' Required to Select a Template where apply options below.', 'acc-conditional-typo' ),
'class' => 'clear acc--notice-warning',
'dependency' => array( 'acc_is_template', '==', '' ),
),
//
// Start Template Details Help Text.
//
array(
'type' => 'content',
'content' => __( '', 'acc-conditional-typo' ),
'dependency' => array( 'acc_is_template', '==', 'is_home' ),
),
array(
'type' => 'content',
'content' => __( '', 'acc-conditional-typo' ),
'dependency' => array( 'acc_is_template', '==', 'is_front_page' ),
),
array(
'type' => 'content',
'content' => __( '', 'acc-conditional-typo' ),
'dependency' => array( 'acc_is_template', '==', 'is_single' ),
),
array(
'type' => 'content',
'content' => __( '', 'acc-conditional-typo' ),
'dependency' => array( 'acc_is_template', '==', 'is_page' ),
),
array(
'type' => 'content',
'content' => __( '', 'acc-conditional-typo' ),
'dependency' => array( 'acc_is_template', '==', 'is_search' ),
),
array(
'type' => 'content',
'content' => __( '', 'acc-conditional-typo' ),
'dependency' => array( 'acc_is_template', '==', 'is_404' ),
),
array(
'type' => 'content',
'content' => __( '', 'acc-conditional-typo' ),
'dependency' => array( 'acc_is_template', '==', 'is_shop' ),
),
array(
'type' => 'content',
'content' => __( '', 'acc-conditional-typo' ),
'dependency' => array( 'acc_is_template', '==', 'is_product' ),
),
array(
'type' => 'content',
'content' => __( '', 'acc-conditional-typo' ),
'dependency' => array( 'acc_is_template', '==', 'is_cart' ),
),
array(
'type' => 'content',
'content' => __( '', 'acc-conditional-typo' ),
'dependency' => array( 'acc_is_template', '==', 'is_checkout' ),
),
array(
'type' => 'content',
'content' => __( '', 'acc-conditional-typo' ),
'dependency' => array( 'acc_is_template', '==', 'is_account_page' ),
),
//
// End of Template Details Help Text.
//
array(
'id' => 'acc_specific_posts_select',
'type' => 'select',
'title' => __( 'Select with specific posts', 'acc-conditional-typo' ),
'desc' => __( 'Leave this field empty if you want every single posts of your entire website.', 'acc-conditional-typo' ),
'placeholder' => __( 'Select posts', 'acc-conditional-typo' ),
'chosen' => true,
'ajax' => true,
'multiple' => true,
'sortable' => true,
'options' => 'posts',
'dependency' => array( 'acc_is_template', '==', 'is_single' ),
),
array(
'id' => 'acc_specific_pages_select',
'type' => 'select',
'title' => __( 'Select with specific pages', 'acc-conditional-typo' ),
'desc' => __( 'Leave this field empty if you want every single posts of your entire website.', 'acc-conditional-typo' ),
'placeholder' => __( 'Select pages', 'acc-conditional-typo' ),
'chosen' => true,
'ajax' => true,
'multiple' => true,
'sortable' => true,
'options' => 'pages',
'dependency' => array( 'acc_is_template', '==', 'is_page' ),
),
array(
'id' => 'acc_specific_product_select',
'type' => 'select',
'title' => __( 'Select Specific Products', 'acc-conditional-typo' ),
'desc' => __( 'Leave this field empty if you want every single products of your entire website.', 'acc-conditional-typo' ),
'placeholder' => __( 'Select a product', 'acc-conditional-typo' ),
'chosen' => true,
'ajax' => true,
'multiple' => true,
'options' => 'posts',
'query_args' => array(
'post_type' => 'product',
),
'dependency' => array( 'acc_is_template', '==', 'is_product' ),
),
array(
'id' => 'gpacc_option_tab',
'type' => 'tabbed',
'class' => 'acc--option-tab-list',
'tabs' => array(
//
// Tab 1.
//
array(
'title' => 'Selector',
'icon' => 'fa fa-crosshairs',
'fields' => array(
array(
'type' => 'content',
'content' => '