Skip to content

Instantly share code, notes, and snippets.

View safranck's full-sized avatar

Suzette Franck safranck

View GitHub Profile
@safranck
safranck / gist:f100dbd632610f03f2d7
Created November 19, 2014 17:12
Generic Styles to center
/* generic styles to center */
position: absolute;
top: -9999px;
bottom: -9999px;
left: -9999px;
right: -9999px;
margin: auto;
@safranck
safranck / gist:18a2982a8e945726e935
Created February 4, 2015 01:11
Suzette Style for GravityStyles.com Plugin
/* Suzette theme style*/
.gform_wrapper .gf_style_suzette {border:5px solid #F2A7DC; border-radius: 5px;}
.gf_style_suzette { padding: 15px; background-color: #F23FBD; border-radius: 5px; }
.gf_style_suzette .gform_title {font-weight: bold !important;}
.gf_style_suzette .gform_description {font-size: 1.6rem; color:#FFF; font-weight: 100 !important;}
.gf_style_suzette .gfield_label {font-weight: 100 !important; font-size: 1.6rem;}
.gf_style_suzette input[type="submit"],
input[type="button"],
input[type="reset"] {
@safranck
safranck / gist:17c51e7084d01ee5c0ff
Created February 10, 2015 02:39
My first JavaScript Application
var stringToShout = prompt("What should I shout?");
var shout = stringToShout.toUpperCase();
shout += "!!!";
alert(shout);
console.log(stringToShout);
@safranck
safranck / gist:937468d3596359e31fd1
Created February 13, 2015 16:23
Show the value of $icon
echo '<xmp>: '. print_r( $icon, true ) .'</xmp>';
@safranck
safranck / testimonials.php
Last active August 29, 2015 14:15
Grab the testimonials
/**
* Display testimonials
*/
function wds_testimonials( $type = '' ) {
// Grab the type set for this layout
$type = esc_html( get_post_meta( get_the_ID(), '_wds_meltwater_type_select', true ) );
echo wds_get_testimonials( $type );
}
$breakpoints: (
large-desktop: 105em, // 1680px
desktop: 85.375em, // 1366px
tablet-landscape: 64em, // 1024px
tablet-portrait: 48em, // 768px
phone-landscape: 40em, // 640px
phone-portrait: 22.5em, // 360px
);
$post_args = array(
'post_type' => 'testimonial',
'tax_query' => array(
array(
'taxonomy' => 'type',
'field' => 'slug',
'terms' => $type,
),
),
);
@safranck
safranck / gallery.html
Last active August 29, 2015 14:15
CSS border-radius Rounded Image
@safranck
safranck / index.php
Last active August 29, 2015 14:15
Introduction to PHP and MySQL Starting file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
//create a function called myDate that outputs today's date
function myDate() {
//Define the variables
$year = date('Y'); // get current year
$month = date('M'); // get month
$date = date('j'); // get day of the month
@safranck
safranck / 101.php
Last active August 29, 2015 14:15
Introduction to PHP and MySQL: PHP 101
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
//create a function called cupid that outputs a string
function cupid() {
// the cupid function outputs a red XoXoX when called
echo "<p style='color: red;'><b>XoXoX</b></p>";