Ce script reprend les différentes commandes présentés dans la vidéo suivante :
https://www.youtube.com/watch?v=srGrhjOEx7M
Le plugin Tagbar dépend de ctags :
nnoremap <silent>gt : exec tabpagenr('$') == 1 ? 'bn' : 'tabnext'<CR> | |
nnoremap <silent>gT : exec tabpagenr('$') == 1 ? 'bp' : 'tabprevious'<CR> |
Ce script reprend les différentes commandes présentés dans la vidéo suivante :
https://www.youtube.com/watch?v=srGrhjOEx7M
Le plugin Tagbar dépend de ctags :
/*global Firebase, google, $, GeoFire */ | |
(function () { | |
"use strict"; | |
var map, previousInfowindow, ref, center, radiusInKm, | |
markers = {}, | |
lines = {}; | |
radiusInKm = 0.5; | |
ref = new Firebase("https://publicdata-parking.firebaseio.com/san_francisco"); | |
center = [37.78565219391501, -122.4058404513338]; |
<?php | |
/* | |
Plugin Name: Salts Randomizer | |
Plugin URI: http://aristeides.com | |
Description: Change salts daily | |
Author: Aristeides Stathopoulos | |
Version: 0.1 | |
Author URI: http://aristeides.com | |
*/ |
$svg-container-namespace: '.svg-container'; | |
//Give 'em' 1:1 responsive container by default | |
#{$svg-container-namespace} { | |
display: inline-block; | |
position: relative; | |
height: 0; | |
width: 100%; | |
padding: 0; | |
//Default for 1:1 aspect ratio |
So, you know how to override a template file in Woocommerce using Sage, but you're having trouble changing something within the deeper level of that template file. For example, you want to change the output HTML structure of a given part of the product page loop, or incorporate a Bootstrap class into a button element without using Jquery to inject it. Here's how you can override deeper level parts, the default WC theme elements.
Now you're familiar with how to do Sage + Woocommerce templates, it's time to make it happen.
ren -v "*.txt" "#1.csv" | |
// strip-units required by spread mixin | |
// http://stackoverflow.com/questions/12328259/how-do-you-strip-the-unit-from-any-number-in-sass | |
@function strip-units($number) | |
@return $number / ($number * 0 + 1) | |
// pow and sqrt required by ease function | |
// adapted from https://github.com/at-import/Sassy-math/blob/master/sass/math.scss | |
@function pow($base, $exponent) | |
$value: $base |
<?php | |
// This file assumes that you have included the nav walker from https://github.com/twittem/wp-bootstrap-navwalker | |
// somewhere in your theme. | |
?> | |
<header class="banner navbar navbar-default navbar-static-top" role="banner"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> | |
<span class="sr-only"><?= __('Toggle navigation', 'sage'); ?></span> |