Skip to content

Instantly share code, notes, and snippets.

View danfisher85's full-sized avatar
😎
Focusing

Dan Fisher danfisher85

😎
Focusing
View GitHub Profile
{{> _str1-head }}
<body class="relative z-10 antialiased font-base text-gray-500 text-sm font-medium lg:text-base h-full bg-white dark:bg-gray-900 overflow-x-hidden dark:text-gray">
<div id="site-wrapper" class="flex flex-col h-full js-site-wrapper">
{{> _str1-header }}
{{> _str1-header-mobile-menu }}
{{> _yt1-head }}
<body class="antialiased tracking-tight font-base text-gray-500 text-base h-full bg-white dark:bg-gray-900 overflow-x-hidden">
<div id="site-wrapper" class="flex flex-col h-full js-site-wrapper">
{{#unless header-layout}}
{{> _yt1-header-1 }}
{{/unless}}
<div class="row">
<div class="col-md-6">
<div class="form-group">
[text* your-name id:your-name class:form-control placeholder "Your Name"]
</div>
</div>
<div class="col-md-6">
<div class="form-group">
[email* your-email id:your-email class:form-control placeholder "Your Email"]
</div>
@danfisher85
danfisher85 / gist:8051d1f782578811892c483809acfe4a
Last active December 28, 2020 01:04
[SportsPress] - add a custom field to SportsPress settings
if ( ! function_exists( 'add_custom_field_to_team_options' ) ) {
function add_custom_field_to_team_options( $options = array() ) {
$options[] = array(
'title' => 'Testify',
'desc' => 'Custom Option goes here',
'id' => 'sportspress_team_test',
'default' => 'no',
'type' => 'checkbox',
);
// Styling Options
Redux::setSection( $opt_name, array(
'title' => esc_html__( 'Styling', 'alchemists' ),
'icon' => 'el-icon-tint',
'id' => 'alchemists__section-styling',
'fields' => array(
array(
'id' => 'alchemists__color-preset',
'type' => 'image_select',
'compiler' => false,
<!-- Logo - Text Based -->
<div class="header-logo header-logo--txt">
<a href="index.html" class="header-logo__inner">
<h1 class="header-logo__heading">{{{global.logo-txt}}}</h1>
<span class="header-logo__tagline">{{global.tagline}}</span>
</a>
</div>
<!-- Logo - Text Based / End -->
/**
* Escapium - Instagram Feed deprecation
**/
function df_admin_notice_esc_instagram_feed() {
global $current_user;
$user_id = $current_user->ID;
$plugin_url = 'https://wordpress.org/plugins/instagram-feed/';
if ( ! get_user_meta( $user_id, 'df_admin_notice_user_meta')) {
@danfisher85
danfisher85 / ALC: add 'buy ticket' to [events_blocks]
Created November 9, 2019 11:51
Adds 'buy ticket' link to [events_blocks] shortcode (after v3.4.1 update)
function alc_event_blocks_add_ticket( $event ) {
echo '<div class="widget-game-result__tickets">';
if ( 'future' == $event->post_status ) {
echo '<a href="#" class="btn btn-default btn-xs">' . esc_html__( 'Buy Ticket', 'sportspress' ) . '</a>';
}
echo '</div>';
}
add_action( 'sportspress_event_blocks_row', 'alc_event_blocks_add_ticket' );
/**
* @package Template
* @version 1.0.0.
* Template Scripts
* Created by Dan Fisher
*/
;(function ($){
'use strict';
// Creates sprites from SVG files.
gulp.task('sprites', function() {
return gulp
.src(PATHS.src_img + '/sprites/**/*.svg')
.pipe(svgSprites({
cssFile: 'assets/scss/components/_sprites.scss',
common: 'icon-svg',
padding: 0,
baseSize: 10,
templates: {