Skip to content

Commit

Permalink
cleaned up team hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
bogreudell committed Dec 21, 2020
1 parent 0241b72 commit 70ff330
Show file tree
Hide file tree
Showing 9 changed files with 374 additions and 72 deletions.
142 changes: 142 additions & 0 deletions acf-json/group_5d7acd38c1254.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"key": "group_5d7acd38c1254",
"title": "Post Type: Team",
"fields": [
{
"key": "field_5d7acd38c71ea",
"label": "Profile Picture",
"name": "profile_picture",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"maxlength": "",
"placeholder": "",
"prepend": "",
"append": ""
},
{
"key": "field_5d7acd38c71f6",
"label": "Date Added",
"name": "date_added",
"type": "number",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"min": "",
"max": "",
"step": ""
},
{
"key": "field_5d7acd38c7200",
"label": "Contributor Location",
"name": "contributor_location",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5d7acd40a6069",
"label": "Leadership Title",
"name": "leadership_title",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5d7acd38c7213",
"label": "Bio",
"name": "bio",
"type": "textarea",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"maxlength": "",
"rows": "",
"new_lines": ""
},
{
"key": "field_5d7acf18a08be",
"label": "Appearance Order",
"name": "appearance_order",
"type": "number",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"min": "",
"max": "",
"step": ""
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "team"
}
]
],
"menu_order": 0,
"position": "acf_after_title",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": true,
"description": "",
"modified": 1608581000
}
112 changes: 112 additions & 0 deletions acf-json/group_5fe0faa94896c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"key": "group_5fe0faa94896c",
"title": "Page: Core Team",
"fields": [
{
"key": "field_5fe0fab9569f5",
"label": "Leadership",
"name": "leadership",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"team"
],
"taxonomy": "",
"allow_null": 0,
"multiple": 1,
"return_format": "object",
"ui": 1
},
{
"key": "field_5fe0fca8dc6da",
"label": "Advisors",
"name": "advisors",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"team"
],
"taxonomy": "",
"allow_null": 0,
"multiple": 1,
"return_format": "object",
"ui": 1
},
{
"key": "field_5fe0fcb1dc6db",
"label": "Volunteers",
"name": "volunteers",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"team"
],
"taxonomy": "",
"allow_null": 0,
"multiple": 1,
"return_format": "object",
"ui": 1
},
{
"key": "field_5fe0fcbcdc6dc",
"label": "Interns",
"name": "interns",
"type": "post_object",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"post_type": [
"team"
],
"taxonomy": "",
"allow_null": 0,
"multiple": 1,
"return_format": "object",
"ui": 1
}
],
"location": [
[
{
"param": "page_template",
"operator": "==",
"value": "template-leadership.php"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": true,
"description": "",
"modified": 1608580577
}
11 changes: 11 additions & 0 deletions components/team-nav.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<ul class="wt_who-navigation">
<li class="active">
<a href="<?php bloginfo('url'); ?>/who/leadership">Team</a>
</li>
<li>
<a href="<?php bloginfo('url'); ?>/who/contributors">Contributors</a>
</li>
<li>
<a href="<?php bloginfo('url'); ?>/who/supporters">Supporters</a>
</li>
</ul>
36 changes: 18 additions & 18 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ function remove_textarea() {
add_action('init', 'create_post_type_projects'); // Add our Projects Custom Post Type
add_action('init', 'create_post_type_partners'); // Add our Partners Custom Post Type
add_action('init', 'create_post_type_contributors'); // Add our Contributors Custom Post Type
add_action('init', 'create_post_type_leadership'); // Add our Leadership Custom Post Type
add_action('init', 'create_post_type_team'); // Add our Team Custom Post Type
add_action('init', 'create_post_type_donors'); // Add our Donors Custom Post Type
add_action('init', 'create_post_type_videos'); // Add our Videos Custom Post Type
add_action('init', 'create_post_type_lexicons'); // Add our Lexicon Custom Post Type
Expand Down Expand Up @@ -618,26 +618,26 @@ function create_post_type_contributors()
));
}

// Leadership
function create_post_type_leadership()
// team
function create_post_type_team()
{
register_taxonomy_for_object_type('category', 'leadership');
register_taxonomy_for_object_type('post_tag', 'leadership');
register_post_type('leadership',
register_taxonomy_for_object_type('category', 'team');
register_taxonomy_for_object_type('post_tag', 'team');
register_post_type('team',
array(
'labels' => array(
'name' => __('Leadership', 'leadership'),
'singular_name' => __('Leadership', 'leadership'),
'add_new' => __('Add New', 'leadership'),
'add_new_item' => __('Add New leadership', 'leadership'),
'edit' => __('Edit', 'leadership'),
'edit_item' => __('Edit Leadership', 'leadership'),
'new_item' => __('New Leadership', 'leadership'),
'view' => __('View Leadership', 'leadership'),
'view_item' => __('View Leadership', 'leadership'),
'search_items' => __('Search Leadership', 'leadership'),
'not_found' => __('No Leadership found', 'leadership'),
'not_found_in_trash' => __('No Leadership found in Trash', 'leadership')
'name' => __('Team', 'team'),
'singular_name' => __('Team', 'team'),
'add_new' => __('Add New', 'team'),
'add_new_item' => __('Add New team', 'team'),
'edit' => __('Edit', 'team'),
'edit_item' => __('Edit Team', 'team'),
'new_item' => __('New Team', 'team'),
'view' => __('View Team', 'team'),
'view_item' => __('View Team', 'team'),
'search_items' => __('Search Team', 'team'),
'not_found' => __('No Team found', 'team'),
'not_found_in_trash' => __('No Team found in Trash', 'team')
),
'public' => true,
'hierarchical' => true,
Expand Down
7 changes: 7 additions & 0 deletions stylus/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,13 @@ body.page-template-template-leadership .wt_face-grid {
margin: 5% auto 15%;
text-align: center;
}
body.page-template-template-leadership .wt_face-grid.large>h1 {
margin-bottom: 0;
}
body.page-template-template-leadership .wt_face-grid.large>p {
font-size: 2rem;
margin-bottom: 4rem;
}
body.page-template-template-leadership .wt_face-grid.large .wt_member {
display: inline-block;
width: 31%;
Expand Down
2 changes: 1 addition & 1 deletion stylus/main.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@require "require/header"
@require "require/footer"
@require "require/front-page"
@require "require/template-leadership"
@require "require/template-team"
@require "require/template-contributors"
@require "require/template-donors"
@require "require/template-about"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*------------------------------------*\
WHO WE ARE
template-leadership.php
template-team.php
\*------------------------------------*/

body
Expand Down Expand Up @@ -48,6 +48,13 @@ body
text-align center

&.large
&>h1
margin-bottom 0

&>p
font-size 2rem
margin-bottom 4rem

.wt_member
display inline-block
width 31%
Expand Down
Loading

0 comments on commit 70ff330

Please sign in to comment.