This file contains hidden or 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
<style> | |
.square { | |
position: relative; | |
width: 50%; | |
} | |
.square:after { | |
content: ""; | |
display: block; | |
padding-bottom: 100%; |
This file contains hidden or 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
//On Click | |
var clicks = $(this).data('clicks'); | |
if (clicks) { | |
$('.opprotunity .content-bottom').slideUp(800); | |
} else { | |
$('.opprotunity .content-bottom').slideDown(800); | |
} | |
$(this).data("clicks", !clicks); |
This file contains hidden or 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
<div class="video-wrapper"> | |
<div class="video-foreground"> | |
<iframe width="560" height="315" src="https://www.youtube.com/embed/<?php echo get_field('video_id'); ?>?autoplay=1&mute=1&loop=1&rel=0&controls=0&showinfo=0&playlist=<?php echo get_field('video_id'); ?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> | |
</div> | |
</div> | |
<style> | |
.video-wrapper { | |
position: absolute; | |
width: 100%; |
This file contains hidden or 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
AL : Alabama | |
AK : Alaska | |
AZ : Arizona | |
AR : Arkansas | |
CA : California | |
CO : Colorado | |
CT : Connecticut | |
DE : Delaware | |
DC : District of Colombia | |
FL : Florida |
This file contains hidden or 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
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { | |
//Code here | |
} |
This file contains hidden or 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
//Includes Polyfill | |
if (!String.prototype.includes) { | |
String.prototype.includes = function(search, start) { | |
'use strict'; | |
if (typeof start !== 'number') { | |
start = 0; | |
} | |
if (start + search.length > this.length) { | |
return false; |
This file contains hidden or 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 | |
//Not original code, just don't want to loose it | |
// fill in your Constant Contact login and API key | |
$ccuser = get_theme_mod( 'ccuser' ); | |
$ccpass = get_theme_mod( 'ccpass' ); | |
$cckey = get_theme_mod( 'key' ); | |
// fill in these values | |
$firstName = ""; | |
$lastName = ""; |
This file contains hidden or 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 | |
$woocommerce_customer_new_account_settings = get_option('woocommerce_customer_new_account_settings'); | |
$user_pass = 'generated_password'; | |
$user_login = 'user_name'; | |
$email = '[email protected]'; | |
$blogname = 'user_name'; | |
$password_generated = 'generated_password'; | |
require_once( '/www/wp-content/themes/theme-name/woocommerce/emails/customer-new-account.php' ); | |
$email_content = ob_get_clean(); | |
This file contains hidden or 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-wrapper { | |
position: relative; | |
width: 100%; | |
height: 0; | |
padding-bottom: 56.25%; | |
margin: 0px auto; | |
} | |
.video-wrapper iframe { | |
position: absolute; |
NewerOlder