Skip to content

Instantly share code, notes, and snippets.

<?php
/*
* Creates the section, settings and the controls for the customizer
*/
function shoestrap_social_customizer( $wp_customize ){
$sections = array();
$sections[] = array( 'slug' => 'shoestrap_social', 'title' => __( 'Social Links', 'shoestrap' ), 'priority' => 8 );
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title><?php wp_title('|', true, 'right'); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@fovoc
fovoc / gist:5796420
Created June 17, 2013 12:09
shoestrap v1.51 - Hero visibility setting not working when hero contains other widgets
<?php
get_template_part('templates/head');
$layout = get_theme_mod( 'shoestrap_layout' );
?>
<body <?php body_class(); ?>>
<!--[if lt IE 7]><div class="alert">Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</div><![endif]-->
<?php
do_action('get_header');
@fovoc
fovoc / gist:5796630
Last active December 18, 2015 14:19
<h2 class="entry-title">
<a href="http://tiltrue.com/breaking-up-breaking-down-breaking-us-breaking-up-breaking-down-breaking-through/"></a>
</h2>
@fovoc
fovoc / templates-footer.php
Created July 25, 2013 09:42
Shoestrap v1.51 | calculating width of widget sidebars | /templates/footer.php
@fovoc
fovoc / webfonts-functions.php
Created August 2, 2013 11:14
webfonts-functions.php for Shoestrap v1.52 - embedding manually a second Google font
<?php
/*
* Extract the name of the webfont and enqueue its style.
*/
function shoestrap_typography_webfont() {
$webfont = get_theme_mod( 'shoestrap_google_webfonts' );
$webfont_weight = get_theme_mod( 'shoestrap_webfonts_weight' );
$webfont_character_set = get_theme_mod( 'shoestrap_webfonts_character_set' );
@fovoc
fovoc / styles.php
Last active December 20, 2015 13:29
styles.php for Shoestrap v1.52 - embedding manually a second Google font
<?php
/*
* CSS needed to apply the selected styles to text elements.
*/
function shoestrap_text_css() {
$background_color = get_theme_mod( 'shoestrap_background_color' );
$link_color = get_theme_mod( 'shoestrap_link_color' );
$text_color = get_theme_mod( 'shoestrap_text_color' );
@fovoc
fovoc / functions.php
Last active December 30, 2015 03:29
<?php
function my_custom_header_top_navbar_override() {
?>
<header class="banner navbar navbar-default topnavbar <?php echo shoestrap_navbar_class(); ?>" role="banner">
<div class="navbar-inside <?php echo shoestrap_container_class(); ?>">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-main, .nav-extras">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<?php
add_action( 'shoestrap_pre_navbar', 'shoestrap_branding' );
function remove_branding() {
remove_action( 'shoestrap_below_top_navbar', 'shoestrap_branding', 5 );
}
add_action ( 'init', 'remove_branding' );
<?php
function custom_content() {
while (have_posts()) : the_post(); ?>
<article <?php post_class(); ?>>
<?php do_action( 'shoestrap_in_article_top' ); ?>
<header>
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<div class="entry-content">