<?php
if(function_exists("register_field_group"))
{
    //plan
    register_field_group(array (
        'id' => 'acf_plan',
        'title' => 'Plan',
        'fields' => array (
            array (
                'key' => 'field_52d9a3be307d9',
                'label' => 'Subtitle',
                'name' => 'subtitle',
                'type' => 'text',
                'default_value' => '',
                'formatting' => 'html',
                'maxlength' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
            ),
            array (
                'key' => 'field_52d9a3c9307da',
                'label' => 'Price',
                'name' => 'price',
                'type' => 'text',
                'default_value' => '',
                'formatting' => 'html',
                'maxlength' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
            ),
            array (
                'key' => 'field_52d9a3d6307db',
                'label' => 'Frequency',
                'name' => 'frequency',
                'type' => 'select',
                'multiple' => 0,
                'allow_null' => 0,
                'choices' => array (
                    'Daily' => 'Daily',
                    'Monthly' => 'Monthly',
                    'Yearly' => 'Yearly',
                ),
                'default_value' => 'Monthly : Monthly',
            ),
            array (
                'key' => 'field_52d9a65102dfd',
                'label' => 'Options',
                'name' => 'options',
                'type' => 'repeater',
                'sub_fields' => array (
                    array (
                        'key' => 'field_52d9a68d02dff',
                        'label' => 'Icon',
                        'name' => 'icon',
                        'type' => 'wysiwyg',
                        'column_width' => '',
                        'default_value' => '',
                        'toolbar' => 'full',
                        'media_upload' => 'yes',
                    ),
                    array (
                        'key' => 'field_52d9a69902e00',
                        'label' => 'Descripotion',
                        'name' => 'descripotion',
                        'type' => 'textarea',
                        'column_width' => '',
                        'default_value' => '',
                        'formatting' => 'br',
                        'maxlength' => '',
                        'placeholder' => '',
                    ),
                ),
                'row_min' => 0,
                'row_limit' => '',
                'layout' => 'table',
                'button_label' => 'Add Row',
            ),
            array (
                'key' => 'field_52d9a46d307df',
                'label' => 'Button Title',
                'name' => 'btn_title',
                'type' => 'text',
                'default_value' => '',
                'formatting' => 'html',
                'maxlength' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
            ),
            array (
                'key' => 'field_52d9a47f307e0',
                'label' => 'Button Link',
                'name' => 'btn_link',
                'type' => 'text',
                'default_value' => '',
                'formatting' => 'html',
                'maxlength' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
            ),
            array (
                'key' => 'field_52d9ba8104904',
                'label' => 'Categoria',
                'name' => 'categoria',
                'type' => 'select',
                'multiple' => 0,
                'allow_null' => 0,
                'choices' => array (
                    'Plan1' => 'Plan1',
                    'Plan2' => 'Plan2',
                    'Plan3' => 'Plan3',
                    'Plan4' => 'Plan4',
                ),
                'default_value' => '',
            ),
        ),
        'location' => array (
            array (
                array (
                    'param' => 'post_type',
                    'operator' => '==',
                    'value' => 'plan',
                    'order_no' => 0,
                    'group_no' => 0,
                ),
            ),
        ),
        'options' => array (
            'position' => 'normal',
            'layout' => 'default',
            'hide_on_screen' => array (
                0 => 'the_content',
                1 => 'custom_fields',
                2 => 'tags',
            ),
        ),
        'menu_order' => 0,
    ));
    
    //price-inner
    register_field_group(array (
        'id' => 'acf_price-inner',
        'title' => 'Price Inner',
        'fields' => array (
            array (
                'key' => 'field_52d9a5d4e886b',
                'label' => 'Title',
                'name' => 'title',
                'type' => 'text',
                'default_value' => '',
                'formatting' => 'html',
                'maxlength' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
            ),
            array (
                'key' => 'field_52d9a5dae886c',
                'label' => 'Subtitle',
                'name' => 'subtitle',
                'type' => 'text',
                'default_value' => '',
                'formatting' => 'html',
                'maxlength' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
            ),
            array (
                'key' => 'field_52d9a5e2e886d',
                'label' => 'Description',
                'name' => 'description',
                'type' => 'textarea',
                'default_value' => '',
                'formatting' => 'br',
                'maxlength' => '',
                'placeholder' => '',
            ),
            array (
                'key' => 'field_52d9e3feb6e26',
                'label' => 'Colum Left',
                'name' => 'c_left',
                'type' => 'repeater',
                'sub_fields' => array (
                    array (
                        'key' => 'field_52d9e417b6e27',
                        'label' => 'Icon',
                        'name' => 'icon',
                        'type' => 'wysiwyg',
                        'column_width' => '',
                        'default_value' => '',
                        'toolbar' => 'full',
                        'media_upload' => 'yes',
                    ),
                    array (
                        'key' => 'field_52d9e428b6e28',
                        'label' => 'Description',
                        'name' => 'description',
                        'type' => 'textarea',
                        'column_width' => '',
                        'default_value' => '',
                        'placeholder' => '',
                        'maxlength' => '',
                        'formatting' => 'br',
                    ),
                ),
                'row_min' => 0,
                'row_limit' => '',
                'layout' => 'table',
                'button_label' => 'Add Row',
            ),
            array (
                'key' => 'field_52d9e436b6e29',
                'label' => 'Colum_Right',
                'name' => 'c_right',
                'type' => 'repeater',
                'sub_fields' => array (
                    array (
                        'key' => 'field_52d9e44ab6e2a',
                        'label' => 'Icon',
                        'name' => 'icon',
                        'type' => 'wysiwyg',
                        'column_width' => '',
                        'default_value' => '',
                        'toolbar' => 'full',
                        'media_upload' => 'yes',
                    ),
                    array (
                        'key' => 'field_52d9e452b6e2b',
                        'label' => 'Description',
                        'name' => 'description',
                        'type' => 'textarea',
                        'column_width' => '',
                        'default_value' => '',
                        'placeholder' => '',
                        'maxlength' => '',
                        'formatting' => 'br',
                    ),
                ),
                'row_min' => 0,
                'row_limit' => '',
                'layout' => 'table',
                'button_label' => 'Add Row',
            ),              
        ),
        'location' => array (
            array (
                array (
                    'param' => 'post_type',
                    'operator' => '==',
                    'value' => 'price',
                    'order_no' => 0,
                    'group_no' => 0,
                ),
            ),
        ),
        'options' => array (
            'position' => 'normal',
            'layout' => 'default',
            'hide_on_screen' => array (
                0 => 'the_content',
                1 => 'custom_fields',
                2 => 'tags',
            ),
        ),
        'menu_order' => 0,
    ));
    
    //price
    register_field_group(array (
        'id' => 'acf_price',
        'title' => 'price',
        'fields' => array (
            array (
                'key' => 'field_52d9a4e6980de',
                'label' => 'Logo',
                'name' => 'logo',
                'type' => 'wysiwyg',
                'default_value' => '',
                'toolbar' => 'full',
                'media_upload' => 'yes',
            ),
            array (
                'key' => 'field_52d9a55b980df',
                'label' => 'Title',
                'name' => 'title',
                'type' => 'text',
                'default_value' => '',
                'formatting' => 'html',
                'maxlength' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
            ),
            array (
                'key' => 'field_52d9a565980e0',
                'label' => 'Price',
                'name' => 'price',
                'type' => 'text',
                'default_value' => '',
                'formatting' => 'html',
                'maxlength' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
            ),
            array (
                'key' => 'field_52d9a56f980e1',
                'label' => 'Button Title',
                'name' => 'btn_title',
                'type' => 'text',
                'default_value' => '',
                'formatting' => 'html',
                'maxlength' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
            ),
            array (
                'key' => 'field_52d9a57c980e2',
                'label' => 'Button Link',
                'name' => 'btn_link',
                'type' => 'text',
                'default_value' => '',
                'formatting' => 'html',
                'maxlength' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
            ),
        ),
        'location' => array (
            array (
                array (
                    'param' => 'post_type',
                    'operator' => '==',
                    'value' => 'price',
                    'order_no' => 0,
                    'group_no' => 0,
                ),
            ),
        ),
        'options' => array (
            'position' => 'normal',
            'layout' => 'default',
            'hide_on_screen' => array (
                0 => 'the_content',
                1 => 'custom_fields',
                2 => 'tags',
            ),
        ),
        'menu_order' => 0,
    ));
    
    //standar-service
    register_field_group(array (
        'id' => 'acf_standar-services',
        'title' => 'Standar Services',
        'fields' => array (
            array (
                'key' => 'field_52daa182f8863',
                'label' => 'Icon',
                'name' => 'stdicon',
                'type' => 'wysiwyg',
                'default_value' => '',
                'toolbar' => 'full',
                'media_upload' => 'yes',
            ),
            array (
                'key' => 'field_52daa1abf8864',
                'label' => 'Subtitle',
                'name' => 'subtitle',
                'type' => 'textarea',
                'default_value' => '',
                'placeholder' => '',
                'maxlength' => '',
                'formatting' => 'br',
            ),
            array (
                'key' => 'field_52daa1c3f8865',
                'label' => 'Description',
                'name' => 'description',
                'type' => 'textarea',
                'default_value' => '',
                'placeholder' => '',
                'maxlength' => '',
                'formatting' => 'br',
            ),
            array (
                'key' => 'field_52daa226f8867',
                'label' => 'Button Title',
                'name' => 'btn_title',
                'type' => 'text',
                'default_value' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
                'formatting' => 'html',
                'maxlength' => '',
            ),
            array (
                'key' => 'field_52daa266f8868',
                'label' => 'Button Link',
                'name' => 'btn_link',
                'type' => 'text',
                'default_value' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
                'formatting' => 'html',
                'maxlength' => '',
            ),
        ),
        'location' => array (
            array (
                array (
                    'param' => 'post_type',
                    'operator' => '==',
                    'value' => 'std_serv',
                    'order_no' => 0,
                    'group_no' => 0,
                ),
            ),
        ),
        'options' => array (
            'position' => 'normal',
            'layout' => 'default',
            'hide_on_screen' => array (
                0 => 'the_content',
                1 => 'custom_fields',
                2 => 'tags',
            ),
        ),
        'menu_order' => 0,
    ));
    
    //service
    register_field_group(array (
        'id' => 'acf_services',
        'title' => 'Services',
        'fields' => array (
            array (
                'key' => 'field_52dab3885b964',
                'label' => 'Icon',
                'name' => 'srvicon',
                'type' => 'wysiwyg',
                'default_value' => '',
                'toolbar' => 'full',
                'media_upload' => 'yes',
            ),
            array (
                'key' => 'field_52dab3965b965',
                'label' => 'Price',
                'name' => 'price',
                'type' => 'text',
                'default_value' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
                'formatting' => 'html',
                'maxlength' => '',
            ),
            array (
                'key' => 'field_52dab39d5b966',
                'label' => 'Title',
                'name' => 'title',
                'type' => 'text',
                'default_value' => '',
                'placeholder' => '',
                'prepend' => '',
                'append' => '',
                'formatting' => 'html',
                'maxlength' => '',
            ),
            array (
                'key' => 'field_52dab3a65b967',
                'label' => 'Subtitle',
                'name' => 'subtitle',
                'type' => 'textarea',
                'default_value' => '',
                'placeholder' => '',
                'maxlength' => '',
                'formatting' => 'br',
            ),
            array (
                'key' => 'field_52dab3bf5b968',
                'label' => 'Description',
                'name' => 'description',
                'type' => 'textarea',
                'default_value' => '',
                'placeholder' => '',
                'maxlength' => '',
                'formatting' => 'br',
            ),
        ),
        'location' => array (
            array (
                array (
                    'param' => 'post_type',
                    'operator' => '==',
                    'value' => 'serv',
                    'order_no' => 0,
                    'group_no' => 0,
                ),
            ),
        ),
        'options' => array (
            'position' => 'normal',
            'layout' => 'default',
            'hide_on_screen' => array (
                0 => 'the_content',
                1 => 'custom_fields',
                2 => 'tags',
            ),
        ),
        'menu_order' => 0,
    ));
}   
?>
