Skip to content

Instantly share code, notes, and snippets.

View gera3d's full-sized avatar

Gera Yeremin gera3d

View GitHub Profile
div class="row no-gutters">
<?php
// Testimonial single Looop
$testimonial_loop = array(
'numberposts' => -1,
'post_type' => 'testimonial',
'showposts' => '4',
);
@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
<script>
function newDoc() {
window.location.assign("https://www.siouxlandoralsurgery.com")
}
</script>
@gera3d
gera3d / project-save-mouth.html
Created August 23, 2016 17:37
Project save a mouth HTML
<div class="row">
<div class="col-sm-12 col-md-6 col-xs-12"><a class="fancybox-youtube hoverZoomLink" href="http://youtu.be/kZQnDvZOZw0?rel=0&amp;autohide=1&amp;showinfo=0"><span id="playhover"></span><img class="size-large wp-image-742" src="http://amarillooralsurgery.com/wp-content/uploads/VIdeo_Player_Mock-compressor-1024x576.jpg" alt="VIdeo_Player_Mock-compressor" width="858" height="483" />
</a></div>
<div class="col-sm-12 col-md-6 col-xs-12">
<hr class="visible-xs visible-sm">
<img src="http://saveasmile.wpengine.com/wp-content/uploads/2016/06/Save_Logo.png" />
People don’t realize how much they put their mouths through in a day—grinding down food, drinking soda and coffee, using teeth as tools, and more. Add health complications and bad habits, such as smoking, on top of poor oral care, and you could soon find yourself in a serious situation. Over time, the health of your mouth will deteriorate without the right care.
You don’t want to be here. Save yourself by saving your smile.
@gera3d
gera3d / custom post type
Created August 23, 2016 22:56
CPT Current
{"procedure":{"name":"procedure","label":"Procedures","singular_label":"Procedure","description":"List of Procedure at this office.","public":"true","show_ui":"true","has_archive":"true","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"true","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","menu_position":"5","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-plus-alt","supports":["title","editor","custom-fields","thumbnail","page-attributes","post-formats"],"taxonomies":["procedure-types"],"labels":{"menu_name":"Procedures","all_items":"All Procedures","add_new":"Add Procedure","add_new_item":"Add New Procedure","edit":"Edit","edit_item":"Edit Procedure","new_item":"New Procedure","view":"View","view_item":"View Procedure","search_items":"Search Procedure","not_found":"No Procedure foun","not_found_in_trash":"No Procedure found in Trash","parent":"Parent Procedure"},"custom_supports":"genesis-cpt-archives-setting
@gera3d
gera3d / replace_word.css
Created September 9, 2016 17:20
Take a word on the doctor page and replace it with another word.
/*Remove a word and replace it with another word -Gera*/
body > div.site-container > div > div > div:nth-child(3) > main > article > div.col-md-12.docmeta > div.col-md-2.col-sm-3 > h3:nth-child(2) {
position: relative;
text-indent: -9000px;
}
.page-template-single-doc > div.site-container > div > div > div:nth-child(3) > main > article > div.col-md-12.docmeta > div.col-md-2.col-sm-3 > h3:nth-child(2):after {
content: 'Degrees';
display: block;
position: absolute;
box-shadow: inset 23px -21px 71px -14px rgba(0,0,0,0.13);
wp_enqueue_script( 'Green1', 'https://cdn.rawgit.com/greensock/GreenSock-JS/94c5d3100f78656c3a336ff1080ce22fba63394d/src/uncompressed/TweenMax.js', array('jquery'), '' );
wp_enqueue_script( 'Green2', 'https://cdn.rawgit.com/greensock/GreenSock-JS/master/src/minified/jquery.gsap.min.js', array('jquery'), '' );
wp_enqueue_script( 'Green3', 'https://cdn.rawgit.com/greensock/GreenSock-JS/master/src/minified/TweenLite.min.js', array('jquery'), '' );
wp_enqueue_script( 'Green4', 'https://cdnjs.cloudflare.com/ajax/libs/jquery-requestAnimationFrame/0.1.2/jquery.requestAnimationFrame.min.js', array('jquery'), '' );
wp_enqueue_script( 'greensock', get_bloginfo( 'stylesheet_directory' ) . '/js/green-sock.js', array('jquery') );
@gera3d
gera3d / sort terms in tax
Created October 6, 2016 19:57
Work in progress
<?php include 'key_parts/query-control.php'; //This block of code gets the titles from the pages they are linked to ?>
<?php
/*
Template Name: Procedures Archive
*/
add_filter( 'post_class', 'be_archive_post_class' ); //Make the view for this page broken into 3 sections
// This will trigger if I turn the checkbox as on in the head options area
if (get_field('display_alt_procedure_page' , 'option') ) {
@gera3d
gera3d / css
Created February 1, 2017 17:25
Logic for 3 doc pages
/*add the play button to the right spot - Gera */
.single-procedure > div.site-container > div > div > div:nth-child(3) > div #playhover {
top: 200px;
}
/* making home page play button slightly transparent on smaller screens */
@media only screen and (max-width: 999px) {
.single-procedure > div.site-container > div > div > div:nth-child(3) > div #playhover {
opacity: .5;
top: 0px;