Skip to content

Commit

Permalink
Wordpress Pages Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odiengineering committed Aug 22, 2024
1 parent b717724 commit e347a94
Show file tree
Hide file tree
Showing 5 changed files with 228 additions and 14 deletions.
18 changes: 9 additions & 9 deletions pages/homepage-alternate.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@ <h2 class="wp-block-heading">Get started</h2>

<h2 class="wp-block-heading">Latest recalls</h2>

<div class="wp-block-query is-layout-flow wp-block-query-is-layout-flow"><ul class="columns-3 wp-block-post-template is-layout-grid wp-container-core-post-template-is-layout-7 wp-block-post-template-is-layout-grid"><li class="wp-block-post post-19507 page type-page status-publish hentry category-mandatory-recalls category-recalls-and-safety-notices non_divi_builder">
<div class="wp-block-query is-layout-flow wp-block-query-is-layout-flow"><ul class="columns-3 wp-block-post-template is-layout-grid wp-container-core-post-template-is-layout-7 wp-block-post-template-is-layout-grid"><li class="wp-block-post post-19564 page type-page status-publish hentry category-mandatory-recalls category-recalls-and-safety-notices tag-staging non_divi_builder">

<div class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow"><h3 class="wp-block-post-title"><a href="https://api.cannabis.ca.gov/resources/cannabis-recalls-and-safety-notices/nhpr-trix-flower/" target="_self" >NHPR TRIX flower</a></h3>

<div class="wp-block-post-date"><time datetime="2024-08-22T14:08:55-07:00">August 22, 2024</time></div>

<div class="wp-block-post-excerpt"><p class="wp-block-post-excerpt__excerpt">Recall overview The Department of Cannabis Control (DCC) is issuing this notice of mandatory recall for a single “NHPR TRIX” flower product(s) due&hellip; </p></div></div></div>

</li><li class="wp-block-post post-19507 page type-page status-publish hentry category-mandatory-recalls category-recalls-and-safety-notices non_divi_builder">

<div class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow"><h3 class="wp-block-post-title"><a href="https://api.cannabis.ca.gov/resources/cannabis-recalls-and-safety-notices/flor-flower/" target="_self" >Flor flower</a></h3>

Expand All @@ -69,14 +77,6 @@ <h2 class="wp-block-heading">Latest recalls</h2>

<div class="wp-block-post-excerpt"><p class="wp-block-post-excerpt__excerpt">Recall overview The Department of Cannabis Control (DCC) is issuing this notice of mandatory recall for a single “Glass House Farms Cannabis Flower&hellip; </p></div></div></div>

</li><li class="wp-block-post post-19317 page type-page status-publish hentry category-mandatory-recalls category-recalls-and-safety-notices non_divi_builder">

<div class="wp-block-group" style="padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow"><h3 class="wp-block-post-title"><a href="https://api.cannabis.ca.gov/resources/cannabis-recalls-and-safety-notices/almora-naturally-better-single-origin-cannabis-flower/" target="_self" >Almora Naturally Better Single Origin Cannabis Flower</a></h3>

<div class="wp-block-post-date"><time datetime="2024-08-08T08:21:54-07:00">August 8, 2024</time></div>

<div class="wp-block-post-excerpt"><p class="wp-block-post-excerpt__excerpt">Recall overview The Department of Cannabis Control (DCC) is issuing this notice of mandatory recall for a single “Almora Naturally Better Single Origin&hellip; </p></div></div></div>

</li></ul></div>

<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-6 wp-block-columns-is-layout-flex">
Expand Down
86 changes: 86 additions & 0 deletions pages/nhpr-trix-flower.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading">Recall overview</h2>

<p>The Department of Cannabis Control (DCC) is issuing this notice of mandatory recall for a single “NHPR TRIX” flower product(s) due to the presence of Aspergillus niger.</p>

<figure class="wp-block-table"><table><tbody><tr><td class="has-text-align-left" data-align="left"><strong>DCC Recall Publication Date </strong>
</td><td>8/22/2024</td></tr><tr><td class="has-text-align-left" data-align="left"><strong>Recall Type</strong></td><td>Mandatory</td></tr><tr><td class="has-text-align-left" data-align="left"><strong>Product Type</strong>
</td><td>Flower</td></tr><tr><td class="has-text-align-left" data-align="left"><strong>Product Description</strong>
</td><td>NHPR TRIX flower</td></tr><tr><td class="has-text-align-left" data-align="left"><strong>Legal Business Name</strong>
</td><td>BTD, Inc.</td></tr><tr><td class="has-text-align-left" data-align="left"><strong>Legal Business License Number</strong></td><td>C12-0000219-LIC</td></tr><tr><td class="has-text-align-left" data-align="left"><strong>Packaged By</strong>
</td><td>BTD, Inc.</td></tr><tr><td class="has-text-align-left" data-align="left"><strong>Packaged By License Number</strong>
</td><td>C12-0000219-LIC</td></tr><tr><td class="has-text-align-left" data-align="left"><strong>Business Website</strong>
</td><td>No website is available.</td></tr></tbody></table></figure>

<h2 class="wp-block-heading">Product details</h2>

<p>This recall applies to the following “NHPR TRIX” flower product[s].</p>

<figure class="wp-block-table"><table><thead><tr><th><strong>Product</strong>&nbsp;</th><th><strong>Batch Number</strong>&nbsp;</th><th><strong>Product Size</strong>&nbsp;</th><th><strong>UID Number</strong>&nbsp;</th><th><strong>Date Packaged</strong>&nbsp;</th><th>Date Sold</th></tr></thead><tbody><tr><td>NHPR</td><td>01678</td><td>3.5 grams</td><td>1A40603000054CC000001678</td><td>On or after May 2, 2024</td><td>On or after May 2, 2024</td></tr></tbody></table></figure>

<h2 class="wp-block-heading">Locations where the recalled product was sold </h2>

<link
rel="stylesheet"
href="https://cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css"
/>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/colreorder/1.5.4/js/dataTables.colReorder.min.js"></script>
<table id="recall_details_tbl" class="display compact" width="100%">
<thead>
<tr>
<th class="min-tablet">County</th>
<th class="min-phone-l">Legal Business Name&nbsp;</th>
<th class="all">License Number</th>
</tr>
</thead>
<tbody>
<tr>
<td>SANTA CLARA</td>
<td>BTD, INC.</td>
<td>C12-0000219-LIC</td>
</tr>
</tbody>
</table>
<script>
$(document).ready(function () {
const recall_table = new DataTable("#recall_details_tbl", {
columns: [{ data: "county" }, { data: "license" }, { data: "business" }, ],
colReorder: true,
responsive: true,
});
const newColumnOrder = [0, 1, 2];
recall_table.colReorder.order(newColumnOrder).draw();
});
</script>

<h2 class="wp-block-heading">What consumers need to know</h2>

<p>If you purchased this product:&nbsp;&nbsp;</p>

<ul>
<li>If you are experiencing symptoms or any adverse reactions, contact your physician immediately.&nbsp;&nbsp;</li>

<li>Check your package for the UID and batch number(s) above.&nbsp;&nbsp;&nbsp;</li>

<li>If the numbers match, dispose of the product or return it to the retailer for proper disposal.</li>
</ul>

<h2 class="wp-block-heading">What licensees need to know&nbsp;</h2>

<p>DCC&nbsp;sent&nbsp;notices to&nbsp;all&nbsp;licensees with&nbsp;this product in their inventory&nbsp;with&nbsp;instructions&nbsp;about responding to this recall.&nbsp;Contact our team at&nbsp;<a href="mailto:[email protected]">[email protected]</a> if you have any questions.</p>

<div class="wp-block-buttons">
<div class="wp-block-button is-style-outline"><a class="wp-block-button__link wp-element-button" href="/resources/cannabis-recalls-and-safety-notices/">View all cannabis recalls</a></div>
</div>

<style>
.post-date{
display:none;
}
.pdf-link-icon{
display:none;
}
</style>
</div></div>
128 changes: 128 additions & 0 deletions pages/nhpr-trix-flower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"meta": {
"created_date": "2024-08-22T21:08:55",
"updated_date": "2024-08-22T21:09:00",
"field_reference": "https://developer.wordpress.org/rest-api/reference/pages/",
"api_version": "v2",
"api_url": "https://api.cannabis.ca.gov/wp-json/wp/v2/",
"object_url": "https://api.cannabis.ca.gov/wp-json/wp/v2/pages/19564",
"process": {
"source_code": "https://github.com/cagov/wordpress-to-github",
"source_data": "https://api.cannabis.ca.gov",
"deployment_target": "https://github.com/cagov/static-content-cannabis/tree/staging"
},
"refresh_frequency": "as needed"
},
"data": {
"id": 19564,
"date": "2024-08-22T14:08:55",
"date_gmt": "2024-08-22T21:08:55",
"guid": "https://api.cannabis.ca.gov/?page_id=19564",
"modified": "2024-08-22T14:09:00",
"modified_gmt": "2024-08-22T21:09:00",
"slug": "nhpr-trix-flower",
"status": "publish",
"type": "page",
"link": "https://api.cannabis.ca.gov/resources/cannabis-recalls-and-safety-notices/nhpr-trix-flower/",
"title": "NHPR TRIX flower",
"excerpt": "<p>Recall overview The Department of Cannabis Control (DCC) is issuing this notice of mandatory recall for a single “NHPR TRIX” flower product(s) due to the presence of Aspergillus niger. DCC Recall Publication Date 8/22/2024 Recall Type Mandatory Product Type Flower Product Description NHPR TRIX flower Legal Business Name BTD, Inc. Legal Business License Number C12-0000219-LIC [&hellip;]</p>\n",
"author": 36,
"featured_media": 0,
"parent": 9345,
"menu_order": 0,
"comment_status": "closed",
"ping_status": "closed",
"template": "/code/wp-content/plugins/ca-design-system-gutenberg-blocks/includes/templates/template-page-single-column.php",
"meta": {
"_stopmodifiedupdate": false,
"_modified_date": "",
"footnotes": ""
},
"categories": [
"Mandatory recalls",
"Recalls and safety notices"
],
"tags": [
"staging"
],
"design_system_fields": {
"template": "template-page-single-column"
},
"og_meta": {
"editor": {
"platform": "WordPress",
"plugin": "autodescription",
"plugin_name": "The SEO Framework",
"plugin_version": "4.1.5.1",
"editor_url": "https://api.cannabis.ca.gov"
},
"site_name": "Department of Cannabis Control",
"site_description": "Learn about California cannabis laws and licenses",
"site_url": "https://api.cannabis.ca.gov",
"canonical_url": "https://api.cannabis.ca.gov/resources/cannabis-recalls-and-safety-notices/nhpr-trix-flower/",
"page_title": "NHPR TRIX flower",
"page_description": "Learn about California cannabis laws and licenses",
"page_social_image_url": "https://api.cannabis.ca.gov/wp-content/uploads/2021/07/cropped-Cannabis_horizontal_social.png",
"page_social_image_width": 1200,
"page_social_image_height": 630,
"page_social_image_alt": "",
"meta_title": "NHPR TRIX flower",
"meta_description": "Learn about California cannabis laws and licenses",
"meta_canonical_url": "https://api.cannabis.ca.gov/resources/cannabis-recalls-and-safety-notices/nhpr-trix-flower/",
"open_graph_title": "NHPR TRIX flower",
"open_graph_description": "Learn about California cannabis laws and licenses",
"twitter_title": "NHPR TRIX flower",
"twitter_description": "Learn about California cannabis laws and licenses"
},
"headless_categories": [
{
"term_id": 813,
"name": "Mandatory recalls",
"slug": "mandatory-recalls",
"term_group": 0,
"term_taxonomy_id": 813,
"taxonomy": "category",
"description": "",
"parent": 812,
"filter": "raw",
"cat_ID": 813,
"category_description": "",
"cat_name": "Mandatory recalls",
"category_nicename": "mandatory-recalls",
"category_parent": 812
},
{
"term_id": 812,
"name": "Recalls and safety notices",
"slug": "recalls-and-safety-notices",
"term_group": 0,
"term_taxonomy_id": 812,
"taxonomy": "category",
"description": "",
"parent": 0,
"filter": "raw",
"cat_ID": 812,
"category_description": "",
"cat_name": "Recalls and safety notices",
"category_nicename": "recalls-and-safety-notices",
"category_parent": 0
}
],
"headless_tags": [
{
"term_id": 797,
"name": "staging",
"slug": "staging",
"term_group": 0,
"term_taxonomy_id": 797,
"taxonomy": "post_tag",
"description": "",
"parent": 0,
"filter": "raw"
}
],
"headless_publishing": [],
"headless_preview": [],
"wordpress_url": "https://api.cannabis.ca.gov/resources/cannabis-recalls-and-safety-notices/nhpr-trix-flower/"
}
}
2 changes: 1 addition & 1 deletion pages/west-coast-cure-live-resin-vape-cartridge.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ <h2 class="wp-block-heading">Locations where the recalled product was sold</h2>

<h2 class="wp-block-heading">Product images</h2>

<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-7 wp-block-columns-is-layout-flex">
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-medium"><img loading="lazy" decoding="async" width="432" height="576" src="https://cannabis.ca.gov/wp-content/uploads/sites/2/2024/07/slymer-432x576.jpg" alt="Slymer image" class="wp-image-18651" style="aspect-ratio:1;object-fit:contain" srcset="https://cannabis.ca.gov/wp-content/uploads/sites/2/2024/07/slymer-432x576.jpg 432w, https://cannabis.ca.gov/wp-content/uploads/sites/2/2024/07/slymer.jpg 490w" sizes="(max-width: 432px) 100vw, 432px" /></figure>
</div>
Expand Down
8 changes: 4 additions & 4 deletions pages/west-coast-cure-recall.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="wp-block-query is-layout-flow wp-block-query-is-layout-flow"><ul class="wp-block-post-template is-layout-flow wp-block-post-template-is-layout-flow"><li class="wp-block-post post-18673 post type-post status-publish format-standard has-post-thumbnail hentry category-mandatory-recalls tag-cannabis-flower tag-staging tag-west-coast-cure non_divi_builder">

<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-1 wp-block-columns-is-layout-flex">
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-2 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow"><h2 class="wp-block-post-title has-medium-font-size"><a href="https://api.cannabis.ca.gov/2024/07/wcc-curepen-premium-thc-oil-vape-cartridge/" target="_self" >WCC CUREpen PREMIUM THC OIL Vape Cartridge</a></h2>

<div class="taxonomy-post_tag wp-block-post-terms"><a href="https://api.cannabis.ca.gov/tag/cannabis-flower/" rel="tag">cannabis flower</a><span class="wp-block-post-terms__separator">, </span><a href="https://api.cannabis.ca.gov/tag/staging/" rel="tag">staging</a><span class="wp-block-post-terms__separator">, </span><a href="https://api.cannabis.ca.gov/tag/west-coast-cure/" rel="tag">west coast cure</a></div></div>
Expand All @@ -12,7 +12,7 @@

</li><li class="wp-block-post post-18671 post type-post status-publish format-standard has-post-thumbnail hentry category-mandatory-recalls tag-cartridges tag-staging tag-west-coast-cure non_divi_builder">

<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-2 wp-block-columns-is-layout-flex">
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-3 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow"><h2 class="wp-block-post-title has-medium-font-size"><a href="https://api.cannabis.ca.gov/2024/07/west-coast-cure-curepen-vape-cartridge/" target="_self" >WEST COAST CURE CUREpen Vape Cartridge</a></h2>

<div class="taxonomy-post_tag wp-block-post-terms"><a href="https://api.cannabis.ca.gov/tag/cartridges/" rel="tag">Cartridges</a><span class="wp-block-post-terms__separator">, </span><a href="https://api.cannabis.ca.gov/tag/staging/" rel="tag">staging</a><span class="wp-block-post-terms__separator">, </span><a href="https://api.cannabis.ca.gov/tag/west-coast-cure/" rel="tag">west coast cure</a></div></div>
Expand All @@ -22,7 +22,7 @@

</li><li class="wp-block-post post-18669 post type-post status-publish format-standard has-post-thumbnail hentry category-mandatory-recalls tag-cartridges tag-staging tag-west-coast-cure non_divi_builder">

<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-3 wp-block-columns-is-layout-flex">
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-4 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow"><h2 class="wp-block-post-title has-medium-font-size"><a href="https://api.cannabis.ca.gov/2024/07/west-coast-cure-live-resin-vape-cartridge/" target="_self" >WEST COAST CURE LIVE RESIN Vape Cartridge</a></h2>

<div class="taxonomy-post_tag wp-block-post-terms"><a href="https://api.cannabis.ca.gov/tag/cartridges/" rel="tag">Cartridges</a><span class="wp-block-post-terms__separator">, </span><a href="https://api.cannabis.ca.gov/tag/staging/" rel="tag">staging</a><span class="wp-block-post-terms__separator">, </span><a href="https://api.cannabis.ca.gov/tag/west-coast-cure/" rel="tag">west coast cure</a></div></div>
Expand All @@ -32,7 +32,7 @@

</li><li class="wp-block-post post-18675 post type-post status-publish format-standard has-post-thumbnail hentry category-voluntary-recalls tag-staging tag-west-coast-cure non_divi_builder">

<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-4 wp-block-columns-is-layout-flex">
<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-5 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow"><h2 class="wp-block-post-title has-medium-font-size"><a href="https://api.cannabis.ca.gov/2024/06/west-coast-cure-premium-cure-flower/" target="_self" >WEST COAST CURE PREMIUM CURE Flower</a></h2>

<div class="taxonomy-post_tag wp-block-post-terms"><a href="https://api.cannabis.ca.gov/tag/staging/" rel="tag">staging</a><span class="wp-block-post-terms__separator">, </span><a href="https://api.cannabis.ca.gov/tag/west-coast-cure/" rel="tag">west coast cure</a></div></div>
Expand Down

0 comments on commit e347a94

Please sign in to comment.