Your IP : 216.73.216.138


Current Path : /home/ereika83/public_html/wp-content/plugins/project-panorama/lib/pro/fields/
Upload File :
Current File : /home/ereika83/public_html/wp-content/plugins/project-panorama/lib/pro/fields/phases.php

<?php
		
	// Load the fields for phases
	
    register_field_group(array (
        'id' => 'acf_phases',
        'title' => __('Phases','psp_projects'),
        'fields' => array (
            array (
                'key' => 'field_5436e7cae06b2',
                'label' => __('Phases','psp_projects'),
                'name' => '',
                'type' => 'tab',
            ),
            array (
                'key' => 'field_527d5dc12fa29',
                'label' => __('Phases','psp_projects'),
                'name' => 'phases',
                'type' => 'repeater',
                'sub_fields' => array (
                    array (
                        'key' => 'field_527d5dd02fa2a',
                        'label' => __('Title','psp_projects'),
                        'name' => 'title',
                        'type' => 'text',
                        'column_width' => '',
                        'default_value' => '',
                        'placeholder' => '',
                        'prepend' => '',
                        'append' => '',
                        'formatting' => 'none',
                        'maxlength' => '',
                    ),
                    array (
                        'key' => 'field_52c46f3fcf957',
                        'label' => __('Automatic Progress','psp_projects'),
                        'name' => 'auto_progress',
                        'type' => 'checkbox',
                        'instructions' => __('Automatically calculate percentage complete based on tasks','psp_projects'),
                        'column_width' => '',
                        'choices' => array (
                            'Yes' => __('Yes','psp_projects'),
                        ),
                        'default_value' => '',
                        'layout' => 'vertical',
                    ),
                    array (
                        'key' => 'field_53207efc069cb',
                        'label' => __('Weight','psp_projects'),
                        'name' => 'weight',
                        'type' => 'select',
                        'instructions' => __('Specify how much shorter this phase is compared to the rest, i.e. selecting 95% will reduce this phases contribution to the total completion by 5%','psp_projects'),
                        'required' => 1,
                        'conditional_logic' => array (
                            'status' => 1,
                            'rules' => array (
                                array (
                                    'field' => 'field_5436e7f4e06b4',
                                    'operator' => '==',
                                    'value' => 'Yes',
                                ),
                                array (
                                    'field' => 'field_5436e85ee06b5',
                                    'operator' => '==',
                                    'value' => 'Weighting',
                                ),
                            ),
                            'allorany' => 'all',
                        ),
                        'column_width' => '',
                        'choices' => array (
                            '1'   => '1',
                            '.95' => '.95',
                            '.90' => '.90',
                            '.85' => '.85',
                            '.80' => '.80',
                            '.75' => '.75',
                            '.70' => '.70',
                            '.65' => '.65',
                            '.60' => '.60',
                            '.55' => '.55',
                            '.50' => '.50',
                            '.45' => '.45',
                            '.40' => '.40',
                            '.35' => '.35',
                            '.30' => '.30',
                            '.25' => '.25',
                            '.20' => '.20',
                            '.15' => '.15',
                            '.10' => '.10',
                            '.05' => '.05',
                        ),
                        'default_value' => '',
                        'allow_null' => 0,
                        'multiple' => 0,
                    ),
                    array (
                        'key' => 'field_5436eab7a2238',
                        'label' => __('Hours','psp_projects'),
                        'name' => 'hours',
                        'type' => 'text',
                        'instructions' => __('Enter the total number of hours this phase will take','psp_projects'),
                        'required' => 1,
                        'conditional_logic' => array (
                            'status' => 1,
                            'rules' => array (
                                array (
                                    'field' => 'field_5436e7f4e06b4',
                                    'operator' => '==',
                                    'value' => 'Yes',
                                ),
                                array (
                                    'field' => 'field_5436e85ee06b5',
                                    'operator' => '==',
                                    'value' => 'Hours',
                                ),
                            ),
                            'allorany' => 'all',
                        ),
                        'column_width' => '',
                        'default_value' => '',
                        'placeholder' => '',
                        'prepend' => '',
                        'append' => '',
                        'formatting' => 'none',
                        'maxlength' => '',
                    ),
                    array (
                        'key' => 'field_527d5dd82fa2b',
                        'label' => __('Percent Complete','psp_projects'),
                        'name' => 'percent_complete',
                        'type' => 'select',
                        'conditional_logic' => array (
                            'status' => 1,
                            'rules' => array (
                                array (
                                    'field' => 'field_5436e7f4e06b4',
                                    'operator' => '!=',
                                    'value' => 'Yes',
                                ),
                            ),
                            'allorany' => 'all',
                        ),
                        'column_width' => '',
                        'choices' => array (
                            0 => '0%',
                            5 => '5%',
                            10 => '10%',
                            15 => '15%',
                            20 => '20%',
                            25 => '25%',
                            30 => '30%',
                            35 => '35%',
                            40 => '40%',
                            45 => '45%',
                            50 => '50%',
                            55 => '55%',
                            60 => '60%',
                            65 => '65%',
                            70 => '70%',
                            75 => '75%',
                            80 => '80%',
                            85 => '85%',
                            90 => '90%',
                            95 => '95%',
                            100 => '100%',
                        ),
                        'default_value' => '',
                        'allow_null' => 0,
                        'multiple' => 0,
                    ),
                    array (
                        'key' => 'field_527d5dea2fa2c',
                        'label' => __('Description','psp_projects'),
                        'name' => 'description',
                        'type' => 'wysiwyg',
                        'column_width' => '90',
                        'default_value' => '',
                        'toolbar' => 'full',
                        'media_upload' => 'no',
                    ),
                    array (
                        'key' => 'field_527d5dfd2fa2d',
                        'label' => __('Tasks','psp_projects'),
                        'name' => 'tasks',
                        'type' => 'repeater',
                        'column_width' => '',
                        'sub_fields' => array (
                            array (
                                'key' => 'field_527d5e072fa2e',
                                'label' => __('Task','psp_projects'),
                                'name' => 'task',
                                'type' => 'text',
                                'column_width' => '',
                                'default_value' => '',
                                'placeholder' => '',
                                'prepend' => '',
                                'append' => '',
                                'formatting' => 'html',
                                'maxlength' => '',
                            ),
							array (
								'key' => 'field_532b8da69c46e',
								'label' => __('Assigned to','psp_projects'),
								'name' => 'assigned',
								'type' => 'project_users',
								'column_width' => '',
								'role' => array (
									0 => 'all',
								),
								'field_type' => 'select',
								'allow_null' => 1,
					            'conditional_logic' => array (
					                'status' => 1,
					                'rules' => array (
					                    array (
					                        'field' => 'field_532b8d759c46a',
					                        'operator' => '==',
					                        'value' => 'Yes',
					                    ),
					                ),
					                'allorany' => 'all',
					            ),
							),
                            array (
                                'key' => 'field_527d5e0e2fa2f',
                                'label' => __('Completion','psp_projects'),
                                'name' => 'status',
                                'type' => 'select',
                                'column_width' => '10',
                                'choices' => array (
                                    0 => '0%',
                                    10 => '10%',
                                    15 => '15%',
                                    20 => '20%',
                                    25 => '25%',
                                    30 => '35%',
                                    40 => '40%',
                                    45 => '45%',
                                    50 => '50%',
                                    55 => '55%',
                                    60 => '60%',
                                    65 => '65%',
                                    70 => '70%',
                                    75 => '75%',
                                    80 => '80%',
                                    85 => '85%',
                                    90 => '90%',
                                    95 => '95%',
                                    100 => '100%',
                                ),
                                'default_value' => '',
                                'allow_null' => 0,
                                'multiple' => 0,
                            ),
                        ),
                        'row_min' => '',
                        'row_limit' => '',
                        'layout' => 'table',
                        'button_label' => __('Add Task','psp_projects'),
                    ),
                ),
                'row_min' => '',
                'row_limit' => '',
                'layout' => 'row',
                'button_label' => __('Add Phase','psp_projects'),
            ),
        ),
        'location' => array (
            array (
                array (
                    'param' => 'post_type',
                    'operator' => '==',
                    'value' => 'psp_projects',
                    'order_no' => 0,
                    'group_no' => 0,
                ),
            ),
        ),
        'options' => array (
            'position' => 'normal',
            'layout' => 'no_box',
            'hide_on_screen' => array (
            ),
        ),
        'menu_order' => 3,
    ));
	
?>