Skip to content

Instantly share code, notes, and snippets.

View gera3d's full-sized avatar

Gera Yeremin gera3d

View GitHub Profile
@gera3d
gera3d / CSS
Created June 1, 2018 20:57
Started working on on CSS / come back to this when I have some time
/**************************************
1. Main
2. Fancy Background
***************************************/
/**************************************
Style the archive page -- Main
@gera3d
gera3d / ButtonCode.html
Created April 16, 2018 23:59
This goes on top of the sizzle
<a style="margin-top:4rem; border-radius: 0px; font-size: 2.5rem; opacity:0.8;" class="button secondary_color" href="/community/teachers/">Smiles For Teachers</a>
@gera3d
gera3d / Maps.html
Last active November 28, 2018 19:27
Maps for about us pages and the bottom of the homepage
<div class="row" style="text-align:center;">
<div class="col-xs-12 col-sm-6">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3454.6555233796084!2d-90.20024648506468!3d30.0180461818919!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8620b0e2e0d8911f%3A0x1d05252d5ad4e2e3!2sOral+Surgery+Services+LLC!5e0!3m2!1sen!2sus!4v1522342311781" width="1144" height="450" frameborder="0" style="border:1" allowfullscreen></iframe>
<p></p>
<h3><a href="/contact-us-wenatchee-wa/">Springfield</a></h3>
<p>4420 Conlin St, Suite 203, LA 70056<br>
<strong>Phone:</strong> (504) 455-9960 – <strong>Fax:</strong> (504) 455-9961</p>
</div>
<div class="col-xs-12 col-sm-6">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3459.393906256043!2d-90.02913738506813!3d29.881748581941785!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8620a732b5bad4f9%3A0x4713b20ba0d93b97!2sOral+Surgery+Services!5e0!3m2!1sen!2sus!4v1522342336559" width="1144" height="450" frameborder="0" style="border:1
@gera3d
gera3d / Site_Options.json
Last active December 29, 2017 17:49
Creates the options file / AOMS
{
"version": 6,
"options": {
"_options_banner_image": "field_568315315f1e2",
"_options_banner_image_higher": "field_5717ec7ac4a12",
"_options_banner_link": "field_568315da2ced8",
"_options_banner_link_higher": "field_5717ecd6c4a14",
"_options_case_study_homepage": "field_57fe7e1493227",
"_options_color_play_button": "field_568ec419a4e95",
"_options_community_page_archive": "field_592dde3fb9036",
@gera3d
gera3d / Production.json
Created November 16, 2017 23:45
Json for production 2.0 testing
{
"version": 6,
"options": {
"_options_banner_image": "field_568315315f1e2",
"_options_banner_image_higher": "field_5717ec7ac4a12",
"_options_banner_link": "field_568315da2ced8",
"_options_banner_link_higher": "field_5717ecd6c4a14",
"_options_case_study_homepage": "field_57fe7e1493227",
"_options_color_play_button": "field_568ec419a4e95",
"_options_community_page_archive": "field_592dde3fb9036",
/** Gera
* Get all groups
*
* @since 2.1.0
*
* @param bool $id_only return id's only
* @return array groups
*/
function learndash_get_groups( $id_only = false, $current_user_id = 0 ) {
@gera3d
gera3d / gist:98f20e66be6da001f53b8087ff1d2365
Created November 7, 2017 19:06
Just some notes on lerandash
Below are details on LearnDash Groups as requested:
LearnDash Groups ( slug: groups ) are a normal custom post type just like LearnDash Courses, or WooCommerce Products etc. Within the Group LearnDash has 3 associations:
1. Group Leaders - ( role slug: group_leader ) - When a Group Leader user is associated with a course there is a user_meta record created with the meta_key 'learndash_group_leaders_XXX' and the meta_value 'XXX' where 'XXX' is the Group Post ID.
2. Group Users - Similar to the above Group Leader for group users there is a user_meta record created with the meta_key 'learndash_group_users_XXX' and meta_value 'XXX' where 'XXX' is the Group Post ID.
3. For Group Courses - ( slug: sfwd-courses ) - There is a post_meta record created to the Course Post ID with the meta_key 'learndash_group_enrolled_XXX' where 'XXX' is the Group Post ID. The meta_value will be a timestamp.
$( "iframe" ).before( '<div class="map-wrap"><div class="overlay"></div></div>' );
@gera3d
gera3d / Maps
Created June 19, 2017 15:55
Maps with no scrolling
Glen Taylor
[8:53 AM]
/* disable auto scroll for google maps -gt */
.map {
width: 100%;
height: 450px;
}
.map-wrap {
position: relative;
@gera3d
gera3d / new_gist_file_0
Created June 15, 2017 18:14
Default htaccess file settings USA staging
# BEGIN WP Rocket v2.8.23
# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset UTF-8
# Force UTF-8 for a number of file formats
<IfModule mod_mime.c>
AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml
</IfModule>
# FileETag None is not enough for every server.
<IfModule mod_headers.c>