Skip to content

Instantly share code, notes, and snippets.

View gera3d's full-sized avatar

Gera Yeremin gera3d

View GitHub Profile
<script>
function newDoc() {
window.location.assign("https://www.siouxlandoralsurgery.com")
}
</script>
@gera3d
gera3d / Pediatrics Procedure List.txt
Created June 6, 2016 21:29
Pediatrics Procedure List
icon-antibiotic-treatment : Antibiotic Treatment
icon-common-dental-problems : Common Dental Problems
icon-crown-lengthening : Crown Lengthening
icon-decay-prevention : Decay Prevention
icon-early-dental-care : Early Dental Care
icon-forhead-brow-lift : Forhead Brow Lift
icon-home-care : Home Care
icon-nerve-repositioning : Nerve Repositioning
icon-peds-surgery : Peds Surgery
icon-restorations : Restorations
div class="row no-gutters">
<?php
// Testimonial single Looop
$testimonial_loop = array(
'numberposts' => -1,
'post_type' => 'testimonial',
'showposts' => '4',
);
@gera3d
gera3d / gist:df7706940f577b2168f29ed4ab6cfb50
Created June 2, 2016 16:11
Instructions Second Language - Rules
// Add Sidebar with Menu just for this page type / If Instructions Second Language is in place then add that menu if not add Instructions
add_action( 'genesis_before_sidebar_widget_area', 'nuvo_add_custom_menu' );
function nuvo_add_custom_menu () {
echo '<div class="spacer10"></div><div class="widget-wrap col-xs-6 col-md-12">';
if ( is_nav_menu( 'Instructions Second Language' ) ) {
wp_nav_menu( array('menu' => 'Instructions Second Language' ));
} else {
wp_nav_menu( array('menu' => 'Instructions' ));
}
echo '</div>';
@gera3d
gera3d / video_top.txt
Last active May 31, 2016 18:36
Video Top
Old Version
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<a class="fancybox-youtube" href="http://youtu.be/A2BC3s1Pg8U?autoplay=1&amp;autohide=1&amp;rel=0&amp;showinfo=0"><span id="playhover"></span><img class="alignnone size-large wp-image-134" src="/wp-content/uploads/2015/08/Dental-Implant-Proc-Harris-358x200.jpg" alt="Dental-Implant-Proc--Harris" width="358" height="200" /></a>
</div>
</div>
New Version
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<?php
/*
* Loop through post objects (assuming this is a multi-select field) ( don't setup postdata )
* Using this method, the $post object is never changed so all functions need a seccond parameter of the post ID in question.
*/?>
<div class="row">
<div class="col-xs-12 related_videos secondary_color">
<h2 class="clearboth">Related Videos</h2>
</div>
<strong><a href="">Sioux Falls</a></strong>
6401 S Minnesota Ave
Sioux Falls, SD 57108
<strong>Other Locations</strong>
<strong><a href="">Mitchell</a></strong>
<strong><a href="">Yankton</a></strong>
<strong><a href="">Brookings</a></strong>
/*Hot fix 1.18.2016 fixed the team page to look better on mobile. -Gera*/
@media only screen and (max-width: 800px) {
.gallery-columns-3 .gallery-item {
width: 100%;
}
}
@gera3d
gera3d / gist:057e450baeaac868f5cfd22804b9232f
Created April 14, 2016 21:55
Remove Logo on player in landscape mode
/* Iphone Landscape
--------------------------------------------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 750px) and (orientation : landscape) {
.fancybox-wrap:before {
display: none !important; /*Remove the logo in landscape*/
}
}
@gera3d
gera3d / Double Play Feature
Created April 8, 2016 16:12
Add this to jetpack
/* iPad Landscape and Portrait
--------------------------------------------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
/*Misc fix for responsive youtube thumb in mobile mode*/
.responsive-fix {
width: 100%; height: 100%; display: block;
}
}
/* Make some mobile Tweaks