This file contains hidden or 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
$misunderstandings: ( | |
"abonner" : "a bonner", // Subscribe | |
"avfukter" : "I've fucked her", // Humidifier | |
"fagartikler" : "faggot tickler", // Profession articles | |
"Fagfolk" : "Fag folk" // Professionals | |
); |
This file contains hidden or 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
RewriteEngine on | |
RedirectMatch 301 ^/media/wysiwyg/(.*) https://speider-sport.no/media/wysiwyg/$1 |
This file contains hidden or 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 /* Brand Colour */ $colour = get_field( 'colour', 'option' ); ?> | |
.brand--background{ background-color: <?php echo $colour ?>; } | |
.brand--colour{ color: <?php echo $colour ?>; } | |
.brand--border{ border-color: <?php echo $colour ?>; } |
This file contains hidden or 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 save percent next to sale item prices, | |
* wrapped in a span + strong for CSS | |
* targeting with .saving{} and .saving strong{} | |
*/ | |
add_filter( 'woocommerce_sale_price_html', 'woocommerce_sales_price_saving', 10, 2 ); | |
function woocommerce_sales_price_saving( $price, $product ) { | |
$percentage = round( ( ( $product->regular_price - $product->sale_price ) / $product->regular_price ) * 100 ); |
This file contains hidden or 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
/** | |
* Apply spacing to elements throughout the site and keep it uniform. | |
* @param {[string]} $element: 'margin' [Margin or Padding] | |
* @param {[string]} $direction: 'top' [top, bottom, left, right, both or all] | |
* @param {[string]} $size: 'small' [small or large] | |
*/ | |
$small_space: 2rem; | |
$large_space: 4rem; |
This file contains hidden or 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
module.exports = function(grunt) { | |
grunt.registerTask('watch', [ 'watch' ]); | |
grunt.initConfig({ | |
// Make JS tiny | |
uglify: { | |
options: { | |
mangle: false |
This file contains hidden or 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
/* | |
* Animation and Timing Variables | |
*/ | |
$element: '.menu-item'; // Pick element you want to animate | |
$length: 1s; // Length of animation | |
$stage: 0.05s; // Delay increments | |
$movement: 1rem; // How noticable the movment will be | |
$transition: cubic-bezier(0.175,0.885,0.32,1.275); // The animation easing | |
/* |
This file contains hidden or 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
<form role="search" method="post" class="search-form padding-1" action="<?php echo home_url( '/' ); ?>"> | |
<label> | |
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ) ?></span> | |
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search FAQs', 'placeholder' ) ?>" value="<?php echo get_search_query() ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label' ) ?>" /> | |
<input class="post_type" type="hidden" name="post_type" value="frequent" /> | |
</label> | |
<input type="submit" class="search-submit button brand" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button' ) ?>" /> | |
</form> | |
This file contains hidden or 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
Show hidden characters
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Color Schemes/Custom solarized (Dark).tmTheme", | |
"fade_fold_buttons": false, | |
"folder_exclude_patterns": [ | |
".svn", | |
".git", | |
".hg", | |
"CVS", |