-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7a3e7a
commit 6ed35e7
Showing
14 changed files
with
456 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
{ | ||
"key": "group_5dd48fe1660cb", | ||
"title": "Post Listing block", | ||
"fields": [ | ||
{ | ||
"key": "field_5dd48fee5f73b", | ||
"label": "Title", | ||
"name": "title", | ||
"type": "text", | ||
"instructions": "", | ||
"required": 0, | ||
"conditional_logic": 0, | ||
"wrapper": { | ||
"width": "", | ||
"class": "", | ||
"id": "" | ||
}, | ||
"default_value": "", | ||
"placeholder": "", | ||
"prepend": "", | ||
"append": "", | ||
"maxlength": "" | ||
}, | ||
{ | ||
"key": "field_5dd490165f73c", | ||
"label": "Order by", | ||
"name": "orderby", | ||
"type": "select", | ||
"instructions": "", | ||
"required": 0, | ||
"conditional_logic": 0, | ||
"wrapper": { | ||
"width": "", | ||
"class": "", | ||
"id": "" | ||
}, | ||
"choices": { | ||
"recent": "Recent", | ||
"popular": "Popular" | ||
}, | ||
"default_value": [ | ||
"recent" | ||
], | ||
"allow_null": 0, | ||
"multiple": 0, | ||
"ui": 0, | ||
"return_format": "value", | ||
"ajax": 0, | ||
"placeholder": "" | ||
}, | ||
{ | ||
"key": "field_5dd4905c5f73d", | ||
"label": "Filter by Category", | ||
"name": "category", | ||
"type": "taxonomy", | ||
"instructions": "", | ||
"required": 0, | ||
"conditional_logic": 0, | ||
"wrapper": { | ||
"width": "", | ||
"class": "", | ||
"id": "" | ||
}, | ||
"taxonomy": "category", | ||
"field_type": "multi_select", | ||
"allow_null": 1, | ||
"add_term": 0, | ||
"save_terms": 0, | ||
"load_terms": 0, | ||
"return_format": "id", | ||
"multiple": 0 | ||
}, | ||
{ | ||
"key": "field_5dd4907f5f73e", | ||
"label": "Layout", | ||
"name": "post_listing_layout", | ||
"type": "select", | ||
"instructions": "", | ||
"required": 0, | ||
"conditional_logic": 0, | ||
"wrapper": { | ||
"width": "", | ||
"class": "", | ||
"id": "" | ||
}, | ||
"choices": { | ||
"layout3": "3 Columns", | ||
"layout4": "4 Columns", | ||
"layout2x2": "2x2 Columns" | ||
}, | ||
"default_value": [ | ||
"layout3" | ||
], | ||
"allow_null": 0, | ||
"multiple": 0, | ||
"ui": 0, | ||
"return_format": "value", | ||
"ajax": 0, | ||
"placeholder": "" | ||
} | ||
], | ||
"location": [ | ||
[ | ||
{ | ||
"param": "block", | ||
"operator": "==", | ||
"value": "acf\/post-listing" | ||
} | ||
] | ||
], | ||
"menu_order": 0, | ||
"position": "normal", | ||
"style": "default", | ||
"label_placement": "top", | ||
"instruction_placement": "label", | ||
"hide_on_screen": "", | ||
"active": 1, | ||
"description": "", | ||
"modified": 1574211779 | ||
} |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* Post Listing | ||
--------------------------------------------- */ | ||
|
||
.post-listing-block { | ||
|
||
header, footer { | ||
grid-column: 1 / -1; | ||
width: 100%; | ||
@include clearfix; | ||
} | ||
|
||
footer { | ||
position: relative; | ||
margin-top: -20px; | ||
|
||
a { | ||
color: $highlight; | ||
display: inline-block; | ||
font-size: 18px; | ||
font-weight: 700; | ||
letter-spacing: .5px; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
position: relative; | ||
z-index: 2; | ||
} | ||
} | ||
|
||
@supports( display: $grid ) { | ||
|
||
&.layout3 { | ||
@include media(">=tablet") { | ||
display: grid; | ||
grid-template-columns: repeat( 3, 1fr ); | ||
grid-column-gap: $grid-gap; | ||
} | ||
} | ||
|
||
&.layout4 { | ||
@include media(">=tablet") { | ||
display: grid; | ||
grid-template-columns: repeat( 2, 1fr ); | ||
grid-column-gap: $grid-gap; | ||
} | ||
@include media(">=medium") { | ||
grid-template-columns: repeat( 4, 1fr ); | ||
} | ||
} | ||
|
||
&.layout2x2 { | ||
display: grid; | ||
grid-template-columns: repeat( 2, 1fr ); | ||
grid-column-gap: 16px; | ||
@include media(">=tablet") { | ||
grid-column-gap: $grid-gap; | ||
} | ||
} | ||
|
||
&.layout1x3 { | ||
@include media(">=tablet") { | ||
display: grid; | ||
grid-template-columns: repeat( 2, 1fr ); | ||
grid-column-gap: $grid-gap; | ||
align-items: start; | ||
|
||
.feature { | ||
grid-row: span 4; | ||
} | ||
|
||
.secondary .post-summary__image { | ||
margin: 0; | ||
} | ||
|
||
footer { | ||
margin-top: -16px; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.