Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| <?php /* Template Name: Login Page AA */ ?> | |
| <?php get_header(); ?> | |
| <!-- section --> | |
| <section class="aa_loginForm"> | |
| <?php global $user_login; | |
| if(isset($_GET['login']) && $_GET['login'] == 'failed') | |
| { |
| 'use strict'; | |
| var gulp = require('gulp'), | |
| connect = require('gulp-connect'), | |
| gulpLoadPlugins = require('gulp-load-plugins'), | |
| cleanhtml = require('gulp-cleanhtml'), | |
| dev = require('gulp-dev'), | |
| browserSync = require('browser-sync'), | |
| plugins = gulpLoadPlugins(), | |
| webpack = require('webpack'), |
| function mw_theme_categories( $context ) | |
| { | |
| $args = array( 'taxonomy' => 'product_cat' ); | |
| $terms = wp_get_post_terms( $context['post']->ID ,'product_cat', $args ); | |
| foreach ($terms as $cat) { | |
| if($cat->parent == 0){ | |
| $out = '<div class="prodLabel prodLabel--' . strtolower( $cat->name ) . '">'; | |
| $out .= "<a href='/product-category/$cat->slug'>$cat->name</a>"; | |
| $out .= '</div>'; | |
| echo $out; |
| add_filter( 'woocommerce_sale_price_html', 'woocommerce_custom_sales_price', 10, 2 ); | |
| function woocommerce_custom_sales_price( $price, $product ) { | |
| $percentage = round( ( ( $product->regular_price - $product->sale_price ) / $product->regular_price ) * 100 ); | |
| return $price . sprintf( __(' Save %s', 'woocommerce' ), $percentage . '%' ); | |
| } |
| <script type="text/javascript"> | |
| (function () { | |
| "use strict"; | |
| // once cached, the css file is stored on the client forever unless | |
| // the URL below is changed. Any change will invalidate the cache | |
| var css_href = './index_files/web-fonts.css'; | |
| // a simple event handler wrapper | |
| function on(el, ev, callback) { | |
| if (el.addEventListener) { | |
| el.addEventListener(ev, callback, false); |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |