<?php

    $fields[] = array(
        'type'        => 'image',
        'settings'     => 'andaman_single_portfolio_image',
        'label' =>    esc_html__( 'Static Top Image', 'andaman' ),
        'section'     => 'andaman_portfolio',
        'priority'    => 10,
    );

    $fields[] = array(
        'type'        => 'text',
        'settings'     => 'andaman_title_portfolio',
        'label'       => __( 'Static Title', 'andaman' ),
        'description' => __( 'You can set up static title for all single portfolio.', 'andaman' ),
        'section'     => 'andaman_portfolio',
        'priority'    => 10,
    );

    $fields[] = array(
        'type'        => 'toggle',
        'settings'    => 'andaman_single_portfolio_vc',
        'label'       => __( 'WPBakery Page Builder', 'andaman' ),
        'description' => __( 'You can use page builder for single portfolio page with a lot of features. Also you need to enable Portfolio in Post Type: <a href="https://dankov-themes.com/extra/single_portfolio_wpb.png" target="_blank">here</a>', 'andaman' ),
        'section'     => 'andaman_portfolio',
        'priority'    => 10,
        'choices'     => array(
            'on'  => esc_attr__( 'Enable', 'andaman' ),
            'off' => esc_attr__( 'Disable', 'andaman' ),
        ),
    );

    $fields[] = array(
        'type'        => 'toggle',
        'settings'    => 'andaman_additional',
        'label'       => __( 'Additional Fields', 'andaman' ),
        'section'     => 'andaman_portfolio',
        'default'     => 'on',
        'priority'    => 10,
        'choices'     => array(
            'on'  => esc_attr__( 'Show', 'andaman' ),
            'off' => esc_attr__( 'Hide', 'andaman' ),
        ),
        'active_callback'  => array(
            array(
                'setting'  => 'andaman_single_portfolio_vc',
                'operator' => '==',
                'value'    => false,
            ),
        ),
    );

    $fields[] = array(
        'type'        => 'text',
        'settings'     => 'andaman_link_portfolio',
        'label'       => __( 'Link to Works', 'andaman' ),
        'description' => __( 'Add link to "All Works"', 'andaman' ),
        'section'     => 'andaman_portfolio',
        'default'     => home_url('/portfolio'),
        'priority'    => 10,
    );


     