Skip to content

Instantly share code, notes, and snippets.

Badoui Minaise bMinaise

Block or report user

Report or block bMinaise

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View base.css
SH - Base CSS
** import SH brand fonts
** apply class names to each font
** apply class names to header sizes
** apply class names to colors used
View designer.html
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<polymer-element name="my-element">
:host {
position: absolute;
View gist:7574543
//Display Fields
add_action( 'woocommerce_product_after_variable_attributes', 'variable_fields', 10, 2 );
//JS to add fields for new variations
add_action( 'woocommerce_product_after_variable_attributes_js', 'variable_fields_js' );
//Save variation fields
add_action( 'woocommerce_process_product_meta_variable', 'variable_fields_process', 10, 1 );
function variable_fields( $loop, $variation_data ) {
View hex-form.html
<legend>Convert your color:</legend>
<ol class="fieldsList column1">
<label for="f_hex_value">HEX value (e.g. #f00, #812dd3, ba3, F924A4, red)</label>
<input type="text" name="f_hex_value" value="" id="f_hex_value">
bMinaise / multipage-navigation.php
Created Nov 11, 2013
Gravity Forms - Multi page navigation
View multipage-navigation.php
* Multi-page Navigation
class GWMultipageNavigation {
private $script_displayed;
function __construct( $args = array() ) {
bMinaise / age-verification.php
Created Nov 7, 2013
Gravity Form - Age Verification Function
View age-verification.php
// 1 - Tie our validation function to the 'gform_validation' hook
add_filter('gform_validation_47', 'validate_vin');
function validate_vin($validation_result) {
// 2 - Get the form object from the validation result
$form = $validation_result["form"];
// 3 - Get the current page being validated
bMinaise / .htaccess
Created Nov 6, 2013
optimized .htaccess // May be a bit extreme ... Reduce time span if case.
View .htaccess
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg “access 1 year”
ExpiresByType image/jpeg “access 1 year”
ExpiresByType image/gif “access 1 year”
ExpiresByType image/png “access 1 year”
ExpiresByType text/css “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType text/x-javascript “access 1 month”
bMinaise /
Created Nov 6, 2013
JavaScript Style Guide
bMinaise / thumbs.css
Created Nov 6, 2013
Bootstrap 3 - Thumbnail Caption Hover Snippet by:
View thumbs.css
body {
padding-top: 50px;
.thumbnail {
.caption {
bMinaise / footer.html
Created Nov 6, 2013
Bootstrap 3 - Footer Example
View footer.html
You can’t perform that action at this time.