Skip to content

Instantly share code, notes, and snippets.

View indigetal's full-sized avatar

Brandon Meyer indigetal

  • Indigetal WebCraft
  • NC
View GitHub Profile
@indigetal
indigetal / job-listings.json
Last active December 3, 2024 00:15
Grid of Job Listings for WPJM with GreenShift
{
"__file": "wp_block",
"title": "job-listings",
"content": "<!-- wp:greenshift-blocks/querygrid {\"id\":\"gsbp-7e5a45e\",\"inlineCssStyles\":\".gspbgrid_id-gsbp-7e5a45e .wp-block-post-template {list-style:none;margin:0;padding:0} .gspbgrid_id-gsbp-7e5a45e .wp-block-post-template:before{display:none!important}.gspbgrid_id-gsbp-7e5a45e .wp-block-post-template \\u003e li {width:100%!important}.gspbgrid_id-gsbp-7e5a45e .gspb_ajax_pagination_btn{display:inline-block;cursor:pointer}.gspbgrid_id-gsbp-7e5a45e .wp-block-post-template \\u003e .gspbgrid_item:hover{box-shadow: 0 5px 23px 0 rgba(188, 207, 219, 0.35);}.gspbgrid_id-gsbp-7e5a45e .wp-block-post-template \\u003e .gspbgrid_item{overflow:hidden;}.gspbgrid_id-gsbp-7e5a45e .wp-block-post-template \\u003e .gspbgrid_item{border-top-left-radius:6px;border-top-right-radius:6px;border-bottom-right-radius:6px;border-bottom-left-radius:6px;}.gspbgrid_id-gsbp-7e5a45e .wp-block-post-template \\u003e .gspbgrid_item{border-style:solid;border-width:1px;border-color:#7
@indigetal
indigetal / tutor-lms-course-grid.json
Last active January 13, 2025 15:56
GreenShift: Tutor LMS Course Grid Layout
{
"__file": "wp_block",
"title": "Tutor LMS Course Grid",
"content": "<!-- wp:html -->\n<style>\n/* Format course duration display */\n.course-duration {\n display: inline-flex;\n align-items: center;\n gap: 0.25em; /* Optional spacing between elements */\n}\n\n/* Add \"h\" after the hours span */\n.course-duration .gspb_meta_result_tags span:first-child::after {\n content: \"h\";\n margin-right: 0.25em;\n}\n\n/* Add \"m\" after the minutes span */\n.course-duration .gspb_meta_result_tags span:nth-child(2)::after {\n content: \"m\";\n}\n/* Hide the seconds span */\n.course-duration .gspb_meta_result_tags span:nth-child(3) {\n display: none;\n}\n\n/* Grey out the course price when it is on sale */\n.course-cost-container .tutor-course-price {\n color: inherit;\n text-decoration: none;\n}\n.course-cost-container .tutor-course-price + .tutor-sale-price,\n.course-cost-container .tutor-sale-price ~ .tutor-course-price {\n opacity: .5;\n font-weight: 400;\n text-decoration:
@indigetal
indigetal / bb-recent-posts.json
Created February 20, 2025 18:06
(BB) Recent Post Block Pattern
{
"__file": "wp_block",
"title": "(BB) Recent Posts",
"content": "<!-- wp:greenshift-blocks/element {\"id\":\"gsbp-e27805b\",\"inlineCssStyles\":null,\"type\":\"inner\",\"localId\":\"gsbp-e27805b\",\"styleAttributes\":{\"paddingTop\":[\"1.25rem\"],\"backgroundColor\":[\"var(\\u002d\\u002dbb-content-background-color)\"],\"borderRadius\":[\"var(\\u002d\\u002dbb-block-radius)\"],\"borderWidth\":[\"1px\"],\"borderStyle\":[\"solid\"],\"borderColor\":[\"#f0f1f1\"],\"paddingBottom\":[\"1.5625rem\"],\"paddingRight\":[\"1.25rem\"],\"paddingLeft\":[\"1.25rem\"],\"borderTopLeftRadius\":[\"10px\"],\"borderRadiusLink_Extra\":true,\"borderBottomLeftRadius\":[\"10px\"],\"borderTopRightRadius\":[\"10px\"],\"borderBottomRightRadius\":[\"10px\"]},\"blockVisibility\":{\"query_by\":\"user\",\"user_logged_in\":true,\"user_roles\":[{\"label\":\"Administrator\",\"id\":\"administrator\",\"value\":\"administrator\"}]}} -->\n<div class=\"gsbp-e27805b\"><!-- wp:greenshift-blocks/element {\"id\":\"gsbp-fdfda2d\",\"inlineCssStyles\