View add-to-cart.php
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 | |
/** | |
* Loop Add to Cart -- with quantity and AJAX | |
* requires associated JavaScript file qty-add-to-cart.js | |
* | |
* @link http://snippets.webaware.com.au/snippets/woocommerce-add-to-cart-with-quantity-and-ajax/ | |
* @link https://gist.github.com/mikejolley/2793710/ | |
*/ | |
// add this file to folder "woocommerce/loop" inside theme |
View gf-country-usa.php
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: GF Country USA | |
Plugin URI: https://gist.github.com/webaware/edba921af11f06bdfd5147bab806f591 | |
Description: change United States to USA in Gravity Forms addresses | |
Version: 2 | |
Author: WebAware | |
Author URI: https://shop.webaware.com.au/ | |
*/ |
View force-ssl-url-scheme.php
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: Force SSL URL Scheme | |
Plugin URI: https://gist.github.com/webaware/4688802 | |
Description: Force the protocol scheme to be HTTPS when is_ssl() doesn't work | |
Version: 1.0.0 | |
Author: WebAware | |
Author URI: http://webaware.com.au/ | |
@ref: http://wordpress.org/support/topic/ssl-insecure-needs-35-compatibility |
View plugin-download.php
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: Plugin Download | |
Plugin URI: https://gist.github.com/webaware/4a4f2dca44b1c10fb9a8fe85a5f90f40 | |
Update URI: plugin-download | |
Description: add download links to plugins with updates available | |
Version: 0.0.1 | |
Author: WebAware | |
Author URI: https://shop.webaware.com.au/ | |
*/ |
View gist:6260468
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 | |
/** | |
* start the customisation | |
*/ | |
function custom_woo_before_shop_link() { | |
add_filter('woocommerce_loop_add_to_cart_link', 'custom_woo_loop_add_to_cart_link', 10, 2); | |
add_action('woocommerce_after_shop_loop', 'custom_woo_after_shop_loop'); | |
} | |
add_action('woocommerce_before_shop_loop', 'custom_woo_before_shop_link'); |
View network-lister.php
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: Network Lister | |
Plugin URI: https://gist.github.com/webaware/b914967f0ce8110c775cd12ddc546283 | |
Update URI: network-lister | |
Description: simple dashboard widget for listing network sites | |
Version: 0.0.5 | |
Author: WebAware | |
Author URI: https://shop.webaware.com.au/ | |
*/ |
View chequerboard.css
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
.my-element { | |
background-image: conic-gradient(#ddd 25%, #fff 25%, #fff 50%, #ddd 50%, #ddd 75%, #fff 75%); | |
background-size: 40px 40px; | |
} |
View gist:4048580
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 | |
// jQuery version of https://gist.github.com/3110728 | |
/* | |
-- the SQL database table | |
create table form_ajax ( | |
ID varchar(5) not null, | |
Name varchar(100), | |
Address varchar(100), |
View gf-countries-woo.php
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: GF Countries for WooCommerce | |
Plugin URI: https://gist.github.com/webaware/985156c48d8fea3cc77d9a9c624aad18 | |
Update URI: gf-countries-woo | |
Description: restrict Gravity Forms addresses to WooCommerce-allowed countries | |
Version: 2 | |
Author: WebAware | |
Author URI: https://shop.webaware.com.au/ | |
*/ |
View video.twig
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
<video class="project-video" controls controlslist="nodownload" playsinline disablePictureInPicture | |
{%- if video.autoplay %} autoplay muted {%- endif -%} | |
{%- if video.preload %} preload="{{ video.preload }}" {%- endif -%} | |
{%- if video.loop %} loop {%- endif -%} | |
{%- if video.width %} width="{{ video.width }}" {%- endif -%} | |
{%- if video.height %} height="{{ video.height }}" {%- endif -%} | |
{%- if video.poster %} poster="{{ video.poster }}" {%- endif -%} | |
> | |
{%- for source in video.sources -%} |
NewerOlder