diff --git a/assets/css/climatehub.css b/assets/css/climatehub.css index f855334..dc2f74b 100644 --- a/assets/css/climatehub.css +++ b/assets/css/climatehub.css @@ -91,7 +91,7 @@ body { left 0.2s ease-in-out 0.2s; } - #bs4navbar ul li a.active { + #bs4navbar ul li.active a { color: var(--white); background-color: var(--dark); } @@ -312,4 +312,16 @@ body { width: 70%; height: 1.2em; background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 75%); +} + +/* Blog page */ +.blog-gutter-image { + max-height: 200px; +} + +.full-width-image { + width: 100%; + height: 100%; + object-fit: contain; + object-position: center center; } \ No newline at end of file diff --git a/custom-fields/blog-post.json b/custom-fields/blog-post.json new file mode 100644 index 0000000..ffeb71a --- /dev/null +++ b/custom-fields/blog-post.json @@ -0,0 +1,472 @@ +[ + { + "key": "group_5ceee29da4394", + "title": "Blog Post", + "fields": [ + { + "key": "field_5ceee519967b2", + "label": "Post Behaviour", + "name": "post_behaviour", + "type": "radio", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "choices": { + "content": "Display content", + "link": "Link to external URL" + }, + "allow_null": 0, + "other_choice": 0, + "default_value": "", + "layout": "horizontal", + "return_format": "value", + "save_other_choice": 0 + }, + { + "key": "field_5ceee3d19beda", + "label": "Post Content", + "name": "post_content", + "type": "flexible_content", + "instructions": "", + "required": 0, + "conditional_logic": [ + [ + { + "field": "field_5ceee519967b2", + "operator": "==", + "value": "content" + } + ] + ], + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "layouts": { + "5ceee3d994958": { + "key": "5ceee3d994958", + "name": "header", + "label": "Header", + "display": "block", + "sub_fields": [ + { + "key": "field_5ceee6f76d080", + "label": "Title", + "name": "title", + "type": "text", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "50", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_5ceee7236d081", + "label": "Subtitle", + "name": "subtitle", + "type": "text", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "50", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_5ceee7326d082", + "label": "Excerpt", + "name": "excerpt", + "type": "wysiwyg", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "tabs": "visual", + "toolbar": "full", + "media_upload": 0, + "delay": 0 + } + ], + "min": "", + "max": "" + }, + "layout_5ceefef4cf679": { + "key": "layout_5ceefef4cf679", + "name": "paragraph", + "label": "Paragraph", + "display": "block", + "sub_fields": [ + { + "key": "field_5ceeff07cf67a", + "label": "Text", + "name": "text", + "type": "wysiwyg", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "tabs": "all", + "toolbar": "full", + "media_upload": 1, + "delay": 0 + }, + { + "key": "field_5cef0237beec5", + "label": "Gutter Image Placement", + "name": "gutter_image_placement", + "type": "radio", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "100", + "class": "", + "id": "" + }, + "choices": { + "none": "None", + "left": "Left Side", + "right": "Right Side" + }, + "allow_null": 0, + "other_choice": 0, + "default_value": "", + "layout": "horizontal", + "return_format": "value", + "save_other_choice": 0 + }, + { + "key": "field_5cef0268beec6", + "label": "Image", + "name": "image", + "type": "image", + "instructions": "", + "required": 0, + "conditional_logic": [ + [ + { + "field": "field_5cef0237beec5", + "operator": "!=", + "value": "none" + } + ] + ], + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "return_format": "array", + "preview_size": "thumbnail", + "library": "all", + "min_width": "", + "min_height": "", + "min_size": "", + "max_width": "", + "max_height": "", + "max_size": "", + "mime_types": "" + } + ], + "min": "", + "max": "" + }, + "layout_5ceeff36cf67b": { + "key": "layout_5ceeff36cf67b", + "name": "featured_text", + "label": "Featured Text", + "display": "block", + "sub_fields": [ + { + "key": "field_5ceeff3ecf67c", + "label": "Featured Text", + "name": "text", + "type": "wysiwyg", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "tabs": "visual", + "toolbar": "full", + "media_upload": 0, + "delay": 0 + } + ], + "min": "", + "max": "" + }, + "layout_5ceeff5dcf67d": { + "key": "layout_5ceeff5dcf67d", + "name": "section_title", + "label": "Section Title", + "display": "block", + "sub_fields": [ + { + "key": "field_5ceeff6dcf67e", + "label": "Section Title", + "name": "title", + "type": "text", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + } + ], + "min": "", + "max": "" + }, + "layout_5ceeff79cf67f": { + "key": "layout_5ceeff79cf67f", + "name": "full_width_image", + "label": "Full Width Image", + "display": "block", + "sub_fields": [ + { + "key": "field_5ceeff99cf680", + "label": "Image", + "name": "image", + "type": "image", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "return_format": "array", + "preview_size": "medium", + "library": "all", + "min_width": "", + "min_height": "", + "min_size": "", + "max_width": "", + "max_height": "", + "max_size": "", + "mime_types": "" + } + ], + "min": "", + "max": "" + }, + "layout_5ceeffd3cf681": { + "key": "layout_5ceeffd3cf681", + "name": "large_image", + "label": "Large Image", + "display": "block", + "sub_fields": [ + { + "key": "field_5ceefffbcf682", + "label": "Image", + "name": "image", + "type": "image", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "return_format": "array", + "preview_size": "medium", + "library": "all", + "min_width": "", + "min_height": "", + "min_size": "", + "max_width": "", + "max_height": "", + "max_size": "", + "mime_types": "" + } + ], + "min": "", + "max": "" + }, + "layout_5cef0009cf683": { + "key": "layout_5cef0009cf683", + "name": "call_to_action", + "label": "Call To Action", + "display": "block", + "sub_fields": [ + { + "key": "field_5cef0016cf684", + "label": "Title", + "name": "title", + "type": "text", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_5cef001fcf685", + "label": "Summary", + "name": "summary", + "type": "textarea", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "maxlength": "", + "rows": 3, + "new_lines": "br" + }, + { + "key": "field_5cef004ecf687", + "label": "Button Link", + "name": "button_link", + "type": "link", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "return_format": "array" + } + ], + "min": "", + "max": "" + }, + "layout_5cef00aec2f65": { + "key": "layout_5cef00aec2f65", + "name": "footer", + "label": "Footer", + "display": "block", + "sub_fields": [ + { + "key": "field_5cef00c9c2f67", + "label": "Footer", + "name": "text", + "type": "wysiwyg", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "tabs": "visual", + "toolbar": "full", + "media_upload": 0, + "delay": 0 + } + ], + "min": "", + "max": "" + } + }, + "button_label": "Add Content", + "min": "", + "max": "" + }, + { + "key": "field_5ceee5d1320eb", + "label": "Post Link", + "name": "post_link", + "type": "link", + "instructions": "", + "required": 1, + "conditional_logic": [ + [ + { + "field": "field_5ceee519967b2", + "operator": "==", + "value": "link" + } + ] + ], + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "return_format": "array" + } + ], + "location": [ + [ + { + "param": "post_type", + "operator": "==", + "value": "post" + } + ] + ], + "menu_order": 50, + "position": "normal", + "style": "default", + "label_placement": "top", + "instruction_placement": "label", + "hide_on_screen": [ + "the_content" + ], + "active": 1, + "description": "" + } +] \ No newline at end of file diff --git a/footer.php b/footer.php index b200c90..2d2ada3 100644 --- a/footer.php +++ b/footer.php @@ -11,7 +11,7 @@ ?> -