Skip to content

Instantly share code, notes, and snippets.

View digisavvy's full-sized avatar

Alex Vasquez digisavvy

View GitHub Profile

As of 4/21/2023 Eventin Plugin doesn't provide great integration for Bricks, not what I would describe as 1st party support at least.

If you want to build query loops with with Eventin data, you'll need to use Bricks' dynamic tags to get at that data.

Below are some useful snippets. I'll slowly update these until they provide a better, 1st class, integration.

Outputting Various Eventin Meta

Zoom Related

SELECT la.license_id, COUNT(*) as num_activations, c.id as customer_id, c.email
FROM wp_edd_license_activations la
INNER JOIN wp_edd_licenses l ON la.license_id = l.id
INNER JOIN wp_edd_orders o ON l.payment_id = o.id
INNER JOIN wp_edd_customers c ON o.customer_id = c.id
WHERE la.activated = 1
GROUP BY la.license_id
ORDER BY num_activations DESC
LIMIT 10;
SELECT la.license_id, COUNT(*) as num_activations, c.id as customer_id, c.email, la.site_name
FROM wp_edd_license_activations la
INNER JOIN wp_edd_licenses l ON la.license_id = l.id
INNER JOIN wp_edd_orders o ON l.payment_id = o.id
INNER JOIN wp_edd_customers c ON o.customer_id = c.id
WHERE la.activated = 1
GROUP BY la.license_id, la.site_name, c.id, c.email
ORDER BY num_activations DESC
LIMIT 10;
@digisavvy
digisavvy / Responsive Table.html
Created February 12, 2023 02:39
A basic html table constructed of divs that uses CSS to set the layout rather than table, cell, table-row markup.
<!-- Table CSS -->
<style>
#resp-table {
width: 100%;
display: table;
}
#resp-table-caption{
display: table-caption;
@digisavvy
digisavvy / BricksForge CSS Framework.css
Created January 22, 2023 08:50
From BricksForge CSS Framework
:root {
--brf-color-primary: #14854F;
--brf-color-lightGrey: #d2d6dd;
--brf-color-grey: #747681;
--brf-color-darkGrey: #3f4144;
--brf-color-error: #d43939;
--brf-color-success: #28bd14;
--brf-grid-maxWidth: 120rem;
--brf-grid-gutter: 2rem;
--brf-font-size: 1.6rem;
.uael-woo-products-summary-wrap {
display: flex;
flex-direction: column;
align-content: baseline;
margin: auto;
min-height: 265px;
justify-content: space-between;
}
// Place in Functions.php or a plugin
function year_shortcode() {
$year = date('Y');
return $year;
}
add_shortcode('year', 'year_shortcode');
<?php
function dgs_preload_font() {
?>
<link rel="preload" href="<?php echo get_site_url(); ?>/wp-content/uploads/2021/10/calibre-web-light.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo get_site_url(); ?>/wp-content/uploads/2021/10/calibre-web-regular.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo get_site_url(); ?>/wp-content/uploads/2021/10/calibre-web-medium.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo get_site_url(); ?>/wp-content/uploads/2021/10/calibre-web-light-italic.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo get_site_url(); ?>/wp-content/uploads/2021/10/calibre-web-semibold.woff2" as="font" type="font/woff2" crossorigin>
<?php }
<?php
/**
* The main archive template file
*
* @package kadence
*/
/**
* Step 1 - Duplicate index.php in the parent kadence theme and copy it to your child theme
* Step 2 - In your child theme, rename the index file to archive-{post-type-slug}.php where post type slug is your custom post type slug.
<a class="kt-blocks-post-readmore" href="https://example.com/">View Profile <span class="screen-reader-text">of Griffen Stapp</span></a>