Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Loads the custom Tailor element(s).
*/
function hb_tailor_load_custom_element() {
/**
* Creates a Full Width Section.
*/
@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
@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 / 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 / css.php
Created May 26, 2016 18:20
Before merge conflict fixed
<?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' );
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Grid of products.
*
* @author WooThemes
* @category Widgets
<?php
/**
* The template for displaying product widget entries
*
* This template can be overridden by copying it to yourtheme/woocommerce/content-widget-product.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Grid of products.
*
* @author WooThemes
* @category Widgets
* @package WooCommerce/Widgets
<?php
/**
* Plugin Name: GreekBank Functionality
* Plugin URI: http://zao.is
* Description: Adds all necessary functionality for GreekBank
* Version: 1.0
* Author: Justin Sainton
* Author URI: http://zao.is
*/
@lizkaraffa
lizkaraffa / gist:5cece180358709df1c2b
Created January 12, 2016 18:13
Changed home template to include programs
<?php $pageOne = get_theme_mod( 'page_one', '2' ); $pageTwo = get_theme_mod( 'page_two', '2' ); $pageThree = get_theme_mod( 'page_three', '2' ); ?>
<?php if ( 'false' == ( $pageOne ) || '' != ( $pageOne ) && 'false' == ( $pageTwo ) || '' != ( $pageTwo ) && 'false' == ( $pageThree ) || '' != ( $pageThree ) ) { ?>
<!-- BEGIN .row -->
<div class="row featured-pages">
<!-- BEGIN .content -->
<div class="content">
<!-- BEGIN .sixteen columns -->