This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Start the engine | |
include_once( get_template_directory() . '/lib/init.php' ); | |
//* Child theme | |
define( 'CHILD_THEME_NAME', 'Nominal Theme' ); | |
define( 'CHILD_THEME_URL', 'http://elioverbey.net' ); | |
define( 'CHILD_THEME_VERSION', '1.0' ); | |
//* Enqueue scripts and styles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Nominal Theme | |
Theme URI: http://elioverbey.net/blog/build-first-genesis-child-theme/ | |
Description: A minimal responsive and HTML5 free theme built for the Genesis Framework. | |
Author: Eli Overbey | |
Author URI: http://www.elioverbey.net | |
Version: 1.0 | |
Template: genesis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(function( $ ){ | |
$(".site-header").after('<div class="bumper"></div>'); | |
$(window).scroll(function () { | |
if ($(document).scrollTop() > 1 ) { | |
$('.site-header').removeClass('shrink'); | |
} else { | |
$('.site-header').removeClass('shrink'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* On Line 1049 Change: */ | |
.site-header .wrap { | |
min-height: 30px; | |
} | |
/* On Line 1053 Change: */ | |
.bumper { | |
min-height: 30px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $post; | |
$post_id = get_the_ID(); | |
$permalink = get_permalink($post_id); | |
$title = htmlspecialchars_decode(esc_js(get_the_title())); | |
$api = gigya_get_option("api_key"); | |
$comments = apply_filters("comments_plugin", "", array( | |
"post_id" => $post_id, | |
"permalink" => $permalink, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_enqueue_scripts', 'gigya_global_enqueue' ); | |
function gigya_global_enqueue() { | |
$ss_url = $_ENV['secrets']['gigya_api_key']; | |
wp_enqueue_script( 'mysite-scripts', "https://cdns.gigya.com/JS/socialize.js?apiKey=$ss_url", array() ); | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Check if browser can handle SVG | |
if(!Modernizr.svg){ | |
// Get all img tag of the document and create variables | |
var i=document.getElementsByTagName("img"),j,y; | |
// For each img tag | |
for(j = i.length ; j-- ; ){ | |
y = i[j].src | |
// If filenames ends with SVG | |
if( y.match(/svg$/) ){ |
OlderNewer