Skip to content

Commit

Permalink
After School Multi-Filter and 404 #90
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpenguin authored Nov 19, 2018
2 parents 765f9e5 + 5007470 commit 7412b56
Show file tree
Hide file tree
Showing 29 changed files with 24,124 additions and 23,321 deletions.
4 changes: 3 additions & 1 deletion wp-content/mu-plugins/gu-post-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ function create_post_types() {
'public' => true,
'menu_position' => 25,
'menu_icon' => 'dashicons-awards',
'show_in_rest' => true,
'supports' => array('title', 'excerpt', 'editor'),
'has_archive' => true,
'rewrite' => array(
Expand Down Expand Up @@ -221,7 +222,8 @@ function create_taxonomies() {
array(
'label' => __( 'Program Categories' ),
'hierarchical' => true,
'rewrite' => false
'rewrite' => false,
'show_in_rest' => true
)
);

Expand Down
13 changes: 13 additions & 0 deletions wp-content/themes/guny/404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
/**
* 404
*/

$context = Timber::get_context();
$context['top_widget'] = Timber::get_widgets('top_widget');

$post_id = icl_object_id(get_page_by_title( '404' )->ID, 'page', FALSE, ICL_LANGUAGE_CODE);
$post = Timber::get_post($post_id);

$context['post'] = $post;
Timber::render(array('404.twig'), $context);
63 changes: 0 additions & 63 deletions wp-content/themes/guny/acf-json/group_57aa01e990369.json

This file was deleted.

97 changes: 97 additions & 0 deletions wp-content/themes/guny/acf-json/group_591d8a964529f.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"key": "group_591d8a964529f",
"title": "Tip",
"fields": [
{
"key": "field_591d8ac366775",
"label": "Tip Content",
"name": "tip",
"type": "textarea",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"maxlength": "",
"rows": 3,
"new_lines": "br"
},
{
"key": "field_591d8aed66776",
"label": "Tip Action Heading",
"name": "tip_action_heading",
"type": "text",
"instructions": "Text displayed before the tip actions, i.e. \"Want more Talk to Your Baby tips?\"",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_591d8b0066777",
"label": "SMS Text",
"name": "sms_text",
"type": "text",
"instructions": "Instructions to get more information by text",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_591d8b1f66778",
"label": "Website Link",
"name": "website_link",
"type": "url",
"instructions": "URL to website where a user can find out more",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "50",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": ""
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "age"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"description": "",
"modified": 1498123724
}
177 changes: 177 additions & 0 deletions wp-content/themes/guny/acf-json/group_5bec762f0295a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
{
"key": "group_5bec762f0295a",
"title": "404 Page Content",
"fields": [
{
"key": "field_5bec7aeb26db1",
"label": "Side Hero Header",
"name": "side_hero_header",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5bec81c4fae9a",
"label": "Side Hero Tagline",
"name": "side_hero_tagline",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5bec81d1fae9b",
"label": "Side Hero Button Text",
"name": "side_hero_button_text",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5bec81dbfae9c",
"label": "Side Hero Button URL",
"name": "side_hero_button_url",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5bec81e6fae9d",
"label": "Side Menu Header",
"name": "side_menu_header",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5bec81f6fae9e",
"label": "Side Menu Categories",
"name": "side_menu_categories",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"collapsed": "",
"min": 0,
"max": 0,
"layout": "table",
"button_label": "",
"sub_fields": [
{
"key": "field_5bec8215fae9f",
"label": "Button Text",
"name": "button_text",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
},
{
"key": "field_5bec8221faea0",
"label": "Button Link",
"name": "button_link",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
}
]
}
],
"location": [
[
{
"param": "page",
"operator": "==",
"value": "14420"
}
]
],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"description": ""
}
2 changes: 1 addition & 1 deletion wp-content/themes/guny/archive-afterschool-guide.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
$context['reset_link'] = AfterschoolGuides\get_reset_link();
$context['pagination'] = AfterschoolGuides\get_pagination();

Timber::render(array('filter-afterschool-guide.twig'), $context);
Timber::render(array('list-afterschool-guide.twig'), $context);
Loading

0 comments on commit 7412b56

Please sign in to comment.