Skip to content

Instantly share code, notes, and snippets.

@lizkaraffa
lizkaraffa / css.php
Created May 26, 2016 18:21
Current code
<?php
add_action( 'wp_enqueue_scripts' , '_wpsc_te2_enqueue_styles', 1 );
function _wpsc_te2_enqueue_styles() {
wp_register_style( 'wpsc-common', wpsc_locate_asset_uri( 'css/common.css' ), array(), WPSC_VERSION );
do_action( 'wpsc_register_styles' );
wp_enqueue_style( 'wpsc-common' );
@lizkaraffa
lizkaraffa / buddyboss.js
Last active April 22, 2023 06:49
Buddy-boss Navigation
/**
* BuddyBoss JavaScript functionality
*
* @since Boss 1.0.0
* @package Boss
*
* ====================================================================
*
* 1. jQuery Global
* 2. Main BuddyBoss Class
@lizkaraffa
lizkaraffa / widget-boss-edu-course-progress.php
Created December 27, 2016 20:52
Buddgy Boss Sensei Course progress widget
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
/**
* Course Progress Widget
*
* A Course Progress Widget widget to display a progress of current Course.
*
* @package WordPress
* @subpackage Boss for Sensei
<?php
/**
* Loads the custom Tailor element(s).
*/
function hb_tailor_load_custom_element() {
/**
* Creates a Full Width Section.
*/
<div class="light-wrapper">
<div class="container inner2">
<div class="hb-checkout col2 row">
<div class="col-sm-8 hb-checkout-content">
<div class="isotope row">
<div class="step-1">
<div class="date-selection">
<div class="section-title">
<h2><?php _e( 'Next Steps:', 'hb-ryla-child-theme' ); ?></h2>
<h3><?php _e( 'Choose a date and Select Ticket Quantity.', 'hb-ryla-child-theme' ); ?></h3>
/**
* HB Niagara Ryla-WP Child Theme - v0.1.0 - 2018-01-30
* https://zao.is
*
* Copyright (c) 2018;
* Licensed GPLv2+
*/
window.HNC = window.HNC || {};
@lizkaraffa
lizkaraffa / compiled.scss
Last active February 6, 2019 19:28
twentynineteen width and margin code
//Why vw instead of percentage?
$columns: (
1: calc(1 * (100vw / 12)),
2: calc(2 * (100vw / 12)),
3: calc(3 * (100vw / 12)),
4: calc(4 * (100vw / 12)),
5: calc(5 * (100vw / 12)),
6: calc(6 * (100vw / 12)),
7: calc(7 * (100vw / 12)),
@lizkaraffa
lizkaraffa / travel-time.html
Last active May 15, 2019 16:43
Travel Time Markup
<section class="tp-travel-time tp-block">
<div class="tp-block__container--full">
<h4 class="tp-travel-time__title">Travel Time to Next Destination</h4>
<div class="tp-travel-time__meta">
<span class="tp-travel-time__bike"><span class="tp-svg-icon"></span><span class="tp-travel-time__content">20 minutes by bike</span></span>
<span class="tp-travel-time__transit"><span class="tp-svg-icon"></span><span class="tp-travel-time__content">14 mintues by <a href="#">transit</a></span></span>
</div>
</div>
</section>
@lizkaraffa
lizkaraffa / _structure.scss
Created August 13, 2020 23:42
Variables Partial
$size__site-gutter-mobile: 20px;
$size__site-gutter-tablet: 50px;
$size__max-site-width: 1600px;
// Site Columns
$site__content-columns-mobile: 2;
$site__content-columns-tablet: 8;
$site__content-columns-desktop: 15;
// Grid Widths
@lizkaraffa
lizkaraffa / _mixins.scss
Last active August 13, 2020 23:47
Mixin Partial
@mixin gridSection {
display: grid;
grid-template-columns: $size__mobile-grid;
@include media(tablet) {
grid-template-columns: $size__tablet-grid;
}
@include media(desktop) {
grid-template-columns: $size__desktop-grid;