Skip to content

Instantly share code, notes, and snippets.

@bMinaise
bMinaise / bs3-login-form.html
Created November 6, 2013 02:20
Bootstrap 3 - Login Form Example From: http://bootsnipp.com
<div class="container">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-4">
<h1 class="text-center login-title">Sign in to continue to Bootsnipp</h1>
<div class="account-wall">
<img class="profile-img" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=120"
alt="">
<form class="form-signin">
<input type="text" class="form-control" placeholder="Email" required autofocus>
<input type="password" class="form-control" placeholder="Password" required>
@bMinaise
bMinaise / Boilerplate CSS Media Queries
Created September 5, 2013 18:17
CSS Media Queries Boilerplate
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-width : 320px)
and (max-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@bMinaise
bMinaise / multipage-navigation.php
Created November 11, 2013 17:57
Gravity Forms - Multi page navigation
/**
* Multi-page Navigation
* http://gravitywiz.com/
**/
class GWMultipageNavigation {
private $script_displayed;
function __construct( $args = array() ) {
<!--
CSS STYLES:
body { padding-top:30px; }
.form-control { margin-bottom: 10px; }
-->
<!-- User Sign-up Form -->
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 well well-sm">
@bMinaise
bMinaise / base.css
Created December 7, 2017 22:17
SH-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
*/
@bMinaise
bMinaise / gf-mpnav.php
Created October 18, 2013 19:03
Multi-Page Navigation Steps Gravity Forms https://gist.github.com/spivurno/
<?php
/**
* Multi-page Navigation
* http://gravitywiz.com/
*/
class GWMultipageNavigation {
private $script_displayed;
// Disable support for comments and trackbacks in post types
function df_disable_comments_post_types_support() {
$post_types = get_post_types();
foreach ($post_types as $post_type) {
if(post_type_supports($post_type, 'comments')) {
remove_post_type_support($post_type, 'comments');
remove_post_type_support($post_type, 'trackbacks');
}
}
}
@bMinaise
bMinaise / index.html
Created November 6, 2013 06:02
Bootstrap 3 - Outlined Square Buttons
<div class="container">
<div class="row">
<div class="col-lg-3">
<p><a href="#" class="btn btn-outlined btn-primary">Demo Primary Button</a></p>
<p><a href="#" class="btn btn-outlined btn-success">Demo Success Button</a></p>
<p><a href="#" class="btn btn-outlined btn-info">Demo Info Button</a></p>
<p><a href="#" class="btn btn-outlined btn-warning">Demo Warning Button</a></p>
<p><a href="#" class="btn btn-outlined btn-danger">Demo Danger Button</a></p>
</div>
<div class="col-lg-4">
//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 ) {
?>
<tr>
@bMinaise
bMinaise / hex-form.html
Last active December 28, 2015 03:59
HEX to RGBa - Script //source http://hex2rgba.devoth.com
<form>
<fieldset>
<legend>Convert your color:</legend>
<ol class="fieldsList column1">
<li>
<label for="f_hex_value">HEX value (e.g. #f00, #812dd3, ba3, F924A4, red)</label>
</li>
<li>
<input type="text" name="f_hex_value" value="" id="f_hex_value">
</li>