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 | |
/* | |
* SCRIPT CONFIGURATIONS | |
*/ | |
$SERVER = 'http://myserver.com:8000'; //URL TO YOUR ICECAST SERVER | |
$STATS_FILE = '/status.xsl'; //PATH TO STATUS.XSL PAGE YOU CAN SEE IN YOUR BROWSER (LEAVE BLANK UNLESS DIFFERENT) | |
///////////////////// END OF CONFIGURATION --- DO NOT EDIT BELOW THIS LINE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ |
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
/* Convert the standard WooCommerce products list into a modern responsive grid. */ | |
ul.products { | |
--grid-gap: 32px; | |
--auto-grid-min-size: 200px; | |
grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr)); | |
grid-gap: var(--grid-gap); | |
display: grid; | |
} | |
ul.products:before{ | |
content:unset!important; |
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
/** | |
* @param $interval - The interval between each delay, defaults to 500ms | |
* @param $startTime - The start time of the animations, defaults to 0ms | |
* @param $numberOfDelays - The total number of delays to be generated, defaults to 10 | |
*/ | |
@mixin delays($interval: 500, $startTime: 0, $numberOfDelays: 10) { | |
@for $i from 0 through $numberOfDelays { | |
$ms : $startTime + ($i * $interval); | |
&.delay-#{$ms} { | |
animation-delay: #{$ms}ms; |
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
Commands | |
-------------- | |
Wordpress Download = wp core download | |
Config.php file create = wp config create --dbname=database_name --dbuser=database_username --dbpass=database_password | |
Wordpress Install = wp core install --url=example.com --title=Example --admin_user=supervisor --admin_password=strongpassword --admin_email=info@example.com | |
Theme or Plugin Install = wp theme/plugin install theme_slug/plugin_slug | |
Theme or Plugin Activate = wp theme/plugin activate theme_slug/plugin_slug | |
Theme or Plugin Install & Activate = wp theme/plugin install theme_slug/plugin_slug --activate |
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
/** | |
* @param $interval - The interval between each delay, defaults to 500ms | |
* @param $startTime - The start time of the animations, defaults to 0ms | |
* @param $numberOfDelays - The total number of delays to be generated, defaults to 10 | |
*/ | |
@mixin delays($interval: 500, $startTime: 0, $numberOfDelays: 10) { | |
@for $i from 0 through $numberOfDelays { | |
$ms : $startTime + ($i * $interval); | |
&.delay-#{$ms} { | |
animation-delay: #{$ms}ms; |
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 | |
/* | |
Plugin Name: Exclude Posts if in Single Category | |
Description: Exclude posts if they are only tagged in a single category, as defined by the category number. This will show posts in the loop if they are tagged in more than one category. | |
Version: 1.0 | |
Author: Zac Vineyard | |
Author URI: http://www.zacvineyard.com | |
*/ |
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 | |
/** | |
* Template Name: ajax | |
*/ | |
?> | |
<?php | |
$post = get_post($_GET['id']); | |
?> | |
<?php if ($post) : ?> | |
<?php setup_postdata($post); ?> |
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
/* | |
* goes in theme functions.php or a custom plugin | |
**/ | |
// add item to cart on visit depending on cart total value | |
add_action( 'init', 'add_product_to_cart' ); | |
function add_product_to_cart() { | |
if ( ! is_admin() ) { | |
global $woocommerce; | |
$product_id = 2831; | |
$found = false; |
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 | |
/** | |
* The template for displaying archive pages | |
*/ | |
get_header(); | |
global $wp_query; | |
?> | |
<form id="misha_filters" action="#"> |