(.*?)
#i', '\1
', $content);
// $content = preg_replace('#(.*?)#i', '\1', $content);
// $content = preg_replace('#(.*?)#i', '\1
', $content);
// $content = preg_replace('#(.*?)#i', '', $content);
// $content = preg_replace('#(.*?)#i', '\1', $content);
// return $content;
// }
// Add League Table customization fields
if ( function_exists( 'acf_add_local_field_group' ) ) :
acf_add_local_field_group(array(
'key' => 'group_5d14ea0720ba3',
'title' => 'Color Options',
'fields' => array(
array(
'key' => 'field_5d14f14a297be',
'label' => 'Table - Border Color',
'name' => 'league_table_border_color',
'type' => 'color_picker',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
),
array(
'key' => 'field_5d14eb06b90f5',
'label' => 'Table Heading - Background Color',
'name' => 'league_table_heading_background_color',
'type' => 'color_picker',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
),
array(
'key' => 'field_5d14f5214f383',
'label' => 'Table Heading - Side Border Color',
'name' => 'league_table_heading_side_border_color',
'type' => 'color_picker',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
),
array(
'key' => 'field_5d14eb35b90f6',
'label' => 'Table Heading - Font Color',
'name' => 'league_table_heading_font_color',
'type' => 'color_picker',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
),
array(
'key' => 'field_5d14faa88749c',
'label' => 'Table Body - Subheading Font Color',
'name' => 'league_table_body_subheading_color',
'type' => 'color_picker',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
),
array(
'key' => 'field_5d14eb4ab90f7',
'label' => 'Table Body - Font Color',
'name' => 'league_table_body_font_color',
'type' => 'color_picker',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
),
array(
'key' => 'field_5d14f7e673405',
'label' => 'Table Body - Accent Font Color',
'name' => 'league_table_body_accent_font_color',
'type' => 'color_picker',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
),
array(
'key' => 'field_5d14eb66b90f8',
'label' => 'Table Body - Background Color',
'name' => 'league_table_body_background_color',
'type' => 'color_picker',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
),
array(
'key' => 'field_5d1503d184080',
'label' => 'Table Body - Border Color',
'name' => 'league_table_body_border_color',
'type' => 'color_picker',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
),
array(
'key' => 'field_5d14fc49bdf84',
'label' => 'Table Body - Row Highlight Color',
'name' => 'league_table_body_row_highlight_color',
'type' => 'color_picker',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
),
array(
'key' => 'field_5d14eb77b90f9',
'label' => 'Table Body - Row Hover Color',
'name' => 'league_table_body_row_hover_color',
'type' => 'color_picker',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
),
array(
'key' => 'field_5d15028f8b59d',
'label' => 'Table Body - Link Color',
'name' => 'league_table_body_link_color',
'type' => 'color_picker',
'instructions' => '',
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
'width' => '',
'class' => '',
'id' => '',
),
'default_value' => '',
),
),
'location' => array(
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'sp_table',
),
),
array(
array(
'param' => 'post_type',
'operator' => '==',
'value' => 'sp_calendar',
),
),
),
'menu_order' => 99,
'position' => 'normal',
'style' => 'default',
'label_placement' => 'left',
'instruction_placement' => 'label',
'hide_on_screen' => '',
'active' => true,
'description' => '',
));
endif;