Skip to content

Instantly share code, notes, and snippets.

View chrislema's full-sized avatar

Chris Lema chrislema

View GitHub Profile
@chrislema
chrislema / four-col-two-row-layout.php
Created June 23, 2021 03:01
Four Column Two Row Layout
<!-- wp:generateblocks/container {"uniqueId":"29e7d5b0","backgroundColor":"#ffffff","align":"full","isDynamic":true} -->
<!-- wp:generateblocks/grid {"uniqueId":"c6b63cf6","columns":3,"verticalAlignment":"center","isDynamic":true} -->
<!-- wp:generateblocks/container {"uniqueId":"cb85f2c9","isGrid":true,"gridId":"c6b63cf6","width":25,"paddingTop":"0","paddingRight":"0","paddingBottom":"0","paddingLeft":"0","isDynamic":true} -->
<!-- wp:generateblocks/headline {"uniqueId":"52029778","element":"h3","alignment":"center"} -->
<h3 class="gb-headline gb-headline-52029778 gb-headline-text"><span style="color: #461060;" class="ugb-highlight">Remote Work</span></h3>
<!-- /wp:generateblocks/headline -->
<!-- wp:paragraph -->
<p>Every employee is free to work remotely for as long as they like - for whatever reason they want.</p>
<!-- /wp:paragraph -->
@chrislema
chrislema / three-column-how-it-works.html
Created June 18, 2021 00:33
Three Column: How It Works Panel
<!-- wp:heading {"textAlign":"center"} -->
<h2 class="has-text-align-center"><strong>How Does It Work?</strong></h2>
<!-- /wp:heading -->
<!-- wp:columns {"verticalAlignment":null} -->
<div class="wp-block-columns"><!-- wp:column {"verticalAlignment":"top"} -->
<div class="wp-block-column is-vertically-aligned-top"><!-- wp:image {"align":"center","id":14,"sizeSlug":"thumbnail","linkDestination":"none","className":"is-style-rounded"} -->
<div class="wp-block-image is-style-rounded"><figure class="aligncenter size-thumbnail"><img src="https://d90bdff9dc.nxcli.net/wp-content/uploads/2021/06/xps-bXfQLglc81U-unsplash-150x150.jpg" alt="" class="wp-image-14"/></figure></div>
<!-- /wp:image -->

Keybase proof

I hereby claim:

  • I am chrislema on github.
  • I am chrislema (https://keybase.io/chrislema) on keybase.
  • I have a public key whose fingerprint is 6E32 3E5D 0938 106D AE7F 0E07 8929 9E3D 9E7D DEB2

To claim this, I am signing this object:

@chrislema
chrislema / PMPExpirationDate
Created December 17, 2012 04:21
This lets you create a fixed expiration date for a membership level in Paid Memberships Pro
/*
For a level to expire on a certain date.
(Note, this will need to be tweaked to work with PayPal Standard.)
*/
function my_pmpro_checkout_level($level)
{
//add to this array (level ID) => (expiration date in yyy-mm-dd)
$custom_expirations = array("1" => "2013-01-01");
//needed below