Skip to content

Commit

Permalink
Tweak ACF bug with default template showing content campaign template
Browse files Browse the repository at this point in the history
  • Loading branch information
brown-a2 committed Aug 5, 2019
1 parent b4b2ee1 commit 92ee172
Showing 1 changed file with 26 additions and 118 deletions.
144 changes: 26 additions & 118 deletions wp-content/themes/clarity/inc/admin/acf-field-group.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1522831257,
));
Expand Down Expand Up @@ -197,9 +197,8 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1482920545,
));

acf_add_local_field_group(array(
Expand Down Expand Up @@ -241,7 +240,7 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1512052715,
));
Expand Down Expand Up @@ -283,7 +282,7 @@
array(
'param' => 'page_template',
'operator' => '==',
'value' => 'default',
'value' => 'page_campaign_content.php',
),
),
),
Expand All @@ -293,9 +292,8 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1528465392,
));

acf_add_local_field_group(array(
Expand Down Expand Up @@ -429,7 +427,7 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1524131934,
));
Expand Down Expand Up @@ -479,7 +477,7 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1530105536,
));
Expand Down Expand Up @@ -531,7 +529,7 @@
'hide_on_screen' => array(
0 => 'the_content',
),
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1530105524,
));
Expand Down Expand Up @@ -786,7 +784,7 @@
'hide_on_screen' => array(
0 => 'the_content',
),
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1475244500,
));
Expand Down Expand Up @@ -1397,7 +1395,7 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
));

Expand Down Expand Up @@ -1572,10 +1570,8 @@
),
'admin_only' => 0,
'choices' => array(
'emergency' => 'Emergency (red border)',
'service' => 'Service update (orange border)',
'summary' => 'Summary (blue border)',
'information' => 'Information (black border)',
'emergency' => 'Emergency (red banner)',
'service' => 'Service update (orange banner)',
),
'allow_null' => 0,
'other_choice' => 0,
Expand Down Expand Up @@ -3917,7 +3913,7 @@
'label' => 'Banner image',
'name' => 'homepage_sidebar_banner_image',
'type' => 'image',
'instructions' => 'Recommended that the banner should be in a 3:2 or 1:1 ratio to fit best in space.',
'instructions' => 'Recommended that the banner should be in a 3:2 or 1:1 ratio to fit best in space. Upload at the largest size possible.',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
Expand All @@ -3926,7 +3922,7 @@
'id' => '',
),
'admin_only' => 0,
'return_format' => 'array',
'return_format' => 'url',
'preview_size' => 'thumbnail',
'library' => 'all',
'min_width' => '',
Expand Down Expand Up @@ -4212,7 +4208,7 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
));

Expand Down Expand Up @@ -4478,6 +4474,8 @@
'mime_types' => '',
'insert' => 'append',
'admin_only' => 0,
'return_format' => 'array',
'preview_size' => 'medium',
),
),
'min' => '',
Expand Down Expand Up @@ -4505,7 +4503,7 @@
1 => 'custom_fields',
2 => 'send-trackbacks',
),
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1532687154,
));
Expand Down Expand Up @@ -4646,7 +4644,7 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1473410733,
));
Expand Down Expand Up @@ -4729,7 +4727,7 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1471269042,
));
Expand Down Expand Up @@ -4870,7 +4868,7 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1524581824,
));
Expand Down Expand Up @@ -4943,7 +4941,7 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1524055135,
));
Expand Down Expand Up @@ -5013,7 +5011,7 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1480330391,
));
Expand Down Expand Up @@ -5057,93 +5055,11 @@
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1474898497,
));

acf_add_local_field_group(array(
'key' => 'group_58bd431b4c6a4',
'title' => 'My Work Links Menu',
'fields' => array(
array(
'key' => 'field_58bd431b4f6ac',
'label' => 'My work',
'name' => 'my_work_links',
'type' => 'repeater',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'admin_only' => 0,
'collapsed' => '',
'min' => 0,
'max' => 0,
'layout' => 'table',
'button_label' => 'Add Link',
'sub_fields' => array(
array(
'key' => 'field_58bd431b50d8c',
'label' => 'Title',
'name' => 'my_work_link_title',
'type' => 'text',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'maxlength' => '',
),
array(
'key' => 'field_58bd431b50d9a',
'label' => 'URL',
'name' => 'my_work_link_url',
'type' => 'url',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
'placeholder' => '',
),
),
),
),
'location' => array(
array(
array(
'param' => 'options_page',
'operator' => '==',
'value' => 'my-work-links-settings',
),
),
),
'menu_order' => 2,
'position' => 'normal',
'style' => 'default',
'label_placement' => 'top',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => 1,
'description' => '',
'modified' => 1535628206,
));

acf_add_local_field_group(array(
'key' => 'group_5876479a23cba',
'title' => 'Page Details',
Expand Down Expand Up @@ -5238,13 +5154,6 @@
'value' => 'page_campaign_content.php',
),
),
array(
array(
'param' => 'page_template',
'operator' => '==',
'value' => 'default',
),
),
),
'menu_order' => 10,
'position' => 'normal',
Expand All @@ -5254,9 +5163,8 @@
'hide_on_screen' => array(
0 => 'excerpt',
),
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1528465406,
));

acf_add_local_field_group(array(
Expand Down Expand Up @@ -5344,7 +5252,7 @@
0 => 'the_content',
1 => 'excerpt',
),
'active' => 1,
'active' => true,
'description' => '',
'modified' => 1528463923,
));
Expand Down

0 comments on commit 92ee172

Please sign in to comment.