View home.php
This file contains 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 | |
/** | |
* Updates Page. | |
* | |
* @package BrubakerDesignServices\FaithForRevivalTheme | |
* @since 1.0.0 | |
* @author Dan Brubaker | |
* @link https://brubakerservices.org/ | |
* @license GPL-2.0+ | |
*/ |
View functions.php
This file contains 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
// Add descriptive CSS classes to menu items | |
add_filter('nav_menu_css_class', 'bds_nav_classes', 10, 2); | |
function bds_nav_classes( $classes, $item ) { | |
$item_class = strtolower( preg_replace("/[\s_]/", "-", $item->title) ); | |
$classes[] = 'menu-item-' . $item_class; | |
return $classes; | |
} |
View home.php
This file contains 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 | |
// Add sections above the main blog loop | |
add_action( 'genesis_before_loop', 'bds_featured_post' ); | |
add_action( 'genesis_before_loop', 'bds_meeting_info' ); | |
// Replace the blog loop with custom loop | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'bds_do_custom_loop' ); |
View events-manager-map.js
This file contains 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
/** | |
* @description This script modifies the Events Manager map | |
* | |
* @author Dan Brubaker | |
* | |
*/ | |
// Modify Event Manager Map | |
jQuery(document).ready(function ($) { | |
jQuery(document).bind('em_maps_location_hook', function (e, map, infowindow, marker) { |
View global.scss
This file contains 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
.container { | |
background: blue; | |
text-align: center; | |
font-size: 1.6rem; | |
@include mq(xl) {font-size: 2rem;} | |
} |
View media-queries.scss
This file contains 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
/* ========== PLACE GENERAL MEDIA QUERY CODE HERE ========== */ | |
/* ===== Breakpoints ===== */ | |
$break-point-xs : 1px; | |
$break-point-s : 320px; | |
$break-point-ms : 480px; |
View style.css
This file contains 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; | |
padding-bottom: 56.25%; | |
} | |
iframe, | |
object, | |
embed { | |
position: absolute; | |
top: 0; |
View style.css
This file contains 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
.map-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
overflow: hidden; | |
} | |
.map-container iframe { | |
position: absolute; | |
top: 0; | |
left: 0; |
View style.css
This file contains 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
table { | |
table-layout: fixed; | |
width: 100%; | |
} | |
tr { | |
height: 12vw; /* Set this to whatever amount forms square cells */ | |
} |
View template.php
This file contains 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
<table> | |
<tbody> | |
<tr> | |
<td></td> | |
<td></td> | |
<td></td> | |
</tr> | |
<tr> | |
<td></td> | |
<td></td> |
NewerOlder