Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
Changed styling and export acf field groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas committed Jan 26, 2018
1 parent 98f487b commit 3ad2c9a
Show file tree
Hide file tree
Showing 17 changed files with 506 additions and 127 deletions.
5 changes: 2 additions & 3 deletions config-default.yml
Expand Up @@ -8,9 +8,8 @@ COMPATIBILITY:
- "last 2 versions"
- "ie >= 9"
- "ios >= 7"

# Set to true if you want static asset revisioning, helpful for cache busting
REVISIONING: false
REVISIONING: false

# Gulp will reference these paths when it copies files
PATHS:
Expand Down Expand Up @@ -46,4 +45,4 @@ PATHS:
phpcs:
- "**/*.php"
- "!wpcs"
- "!wpcs/**"
- "!wpcs/**"
1 change: 0 additions & 1 deletion footer.php
Expand Up @@ -18,7 +18,6 @@
<?php if ( get_theme_mod( 'wpt_mobile_menu_layout' ) === 'offcanvas' ) : ?>
</div><!-- Close off-canvas content -->
<?php endif; ?>

<?php wp_footer(); ?>
<script id="__bs_script__">//<![CDATA[
document.write("<script async src='http://HOST:3000/browser-sync/browser-sync-client.js?v=2.18.13'><\/script>".replace("HOST", location.hostname));
Expand Down
304 changes: 304 additions & 0 deletions functions.php
Expand Up @@ -55,3 +55,307 @@

/** If your site requires protocol relative url's for theme assets, uncomment the line below */
// require_once( 'library/class-foundationpress-protocol-relative-theme-assets.php' );

if(function_exists("register_field_group"))
{
register_field_group(array (
'id' => 'acf_hero-field',
'title' => 'Hero Field',
'fields' => array (
array (
'key' => 'field_5a182cca2a479',
'label' => 'Hero Text',
'name' => 'hero_text',
'type' => 'textarea',
'required' => 1,
'default_value' => '',
'placeholder' => '',
'maxlength' => '',
'rows' => '',
'formatting' => 'br',
),
array (
'key' => 'field_5a182cf22a47a',
'label' => 'Hero Button Url',
'name' => 'hero_button_url',
'type' => 'text',
'default_value' => '',
'placeholder' => 'URL',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
),
'location' => array (
array (
array (
'param' => 'page_template',
'operator' => '==',
'value' => 'page-templates/front.php',
'order_no' => 0,
'group_no' => 0,
),
),
),
'options' => array (
'position' => 'acf_after_title',
'layout' => 'no_box',
'hide_on_screen' => array (
0 => 'the_content',
),
),
'menu_order' => 1,
));
register_field_group(array (
'id' => 'acf_about',
'title' => 'About',
'fields' => array (
array (
'key' => 'field_5a2a682c706d5',
'label' => 'About Headline',
'name' => 'about_headline',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_5a2a6846706d6',
'label' => 'About Subheadline',
'name' => 'about_subheadline',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_5a2a687d1c323',
'label' => 'About Textfield',
'name' => 'about_textfield',
'type' => 'wysiwyg',
'default_value' => '',
'toolbar' => 'basic',
'media_upload' => 'no',
),
array (
'key' => 'field_5a2a68981c324',
'label' => 'About Mediainput',
'name' => 'about_mediainput',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
),
'location' => array (
array (
array (
'param' => 'page',
'operator' => '==',
'value' => '8',
'order_no' => 0,
'group_no' => 0,
),
),
),
'options' => array (
'position' => 'acf_after_title',
'layout' => 'no_box',
'hide_on_screen' => array (
),
),
'menu_order' => 2,
));
register_field_group(array (
'id' => 'acf_recent-projects',
'title' => 'Recent Projects',
'fields' => array (
array (
'key' => 'field_5a2170d4c3a15',
'label' => 'Recent Projects Headline',
'name' => 'recent_projects_headline',
'type' => 'text',
'required' => 1,
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'none',
'maxlength' => '',
),
array (
'key' => 'field_5a21710dc3a17',
'label' => 'Recent Projects Subheadline',
'name' => 'recent_projects_subheadline',
'type' => 'text',
'required' => 1,
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'none',
'maxlength' => '',
),
),
'location' => array (
array (
array (
'param' => 'page',
'operator' => '==',
'value' => '8',
'order_no' => 0,
'group_no' => 0,
),
),
),
'options' => array (
'position' => 'acf_after_title',
'layout' => 'no_box',
'hide_on_screen' => array (
),
),
'menu_order' => 3,
));
register_field_group(array (
'id' => 'acf_sponsoring',
'title' => 'Sponsoring',
'fields' => array (
array (
'key' => 'field_5a2a74f87f041',
'label' => 'Sponsoring Headline',
'name' => 'sponsoring_headline',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_5a2a750c7f042',
'label' => 'Sponsoring Subheadline',
'name' => 'sponsoring_subheadline',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_5a2a75977f047',
'label' => 'Sponsor Image Primary ',
'name' => 'sponsor_image_primary',
'type' => 'image',
'save_format' => 'url',
'preview_size' => 'thumbnail',
'library' => 'all',
),
array (
'key' => 'field_5a2a75427f043',
'label' => 'Sponsor Link Primary',
'name' => 'sponsor_link_primary',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_5a2a7757d9162',
'label' => 'Sponsor Image Secondary',
'name' => 'sponsor_image_secondary',
'type' => 'image',
'save_format' => 'url',
'preview_size' => 'thumbnail',
'library' => 'all',
),
array (
'key' => 'field_5a2a75577f044',
'label' => 'Sponsor Link Secondary',
'name' => 'sponsor_link_secondary',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_5a2a75b97f049',
'label' => 'Sponsor Image Tertiary',
'name' => 'sponsor_image_tertiary',
'type' => 'image',
'save_format' => 'url',
'preview_size' => 'thumbnail',
'library' => 'all',
),
array (
'key' => 'field_5a2a75637f045',
'label' => 'Sponsor Link Tertiary',
'name' => 'sponsor_link_tertiary',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_5a2a75c37f04a',
'label' => 'Sponsor Image Quadrary',
'name' => 'sponsor_image_quadrary',
'type' => 'image',
'save_format' => 'url',
'preview_size' => 'thumbnail',
'library' => 'all',
),
array (
'key' => 'field_5a2a756e7f046',
'label' => 'Sponsor Link Quadrary',
'name' => 'sponsor_link_quadrary',
'type' => 'text',
'default_value' => '',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
),
'location' => array (
array (
array (
'param' => 'page',
'operator' => '==',
'value' => '8',
'order_no' => 0,
'group_no' => 0,
),
),
),
'options' => array (
'position' => 'acf_after_title',
'layout' => 'no_box',
'hide_on_screen' => array (
),
),
'menu_order' => 4,
));
}
2 changes: 1 addition & 1 deletion header.php
Expand Up @@ -23,7 +23,7 @@
<?php endif; ?>


<header class="site-header" role="banner">
<header class="site-header <?php if ( is_front_page() ) : ?>animated fadeIn<?php endif; ?>" role="banner">
<div class="site-title-bar title-bar" <?php foundationpress_title_bar_responsive_toggle() ?>>
<div class="title-bar-left">
<button aria-label="<?php _e( 'Main Menu', 'foundationpress' ); ?>" class="menu-icon" type="button" data-toggle="<?php foundationpress_mobile_menu_id(); ?>"></button>
Expand Down

0 comments on commit 3ad2c9a

Please sign in to comment.