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 if( have_rows('grade_repeat') ): ?> | |
<?php while ( have_rows('grade_repeat') ) : the_row(); ?> | |
<h3><?php the_sub_field('class_level'); ?></h3> | |
<?php if( have_rows('class_repeater') ): ?> | |
<?php while( have_rows('class_repeater') ): the_row(); ?> |
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
//From http://stackoverflow.com/questions/25384796/can-i-set-gulp-livereload-to-run-after-all-files-are-compiled | |
var gulp = require('gulp'); | |
var jade = require('gulp-jade'); | |
var gutil = require('gulp-util'); | |
var stylus = require('gulp-stylus'); | |
var jeet = require('jeet'); | |
var nib = require('nib'); | |
var uglify = require('gulp-uglify'); | |
var livereload = require('gulp-livereload'); |
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 $month = date('F'); | |
switch ($month) { | |
case "January": | |
echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]'); | |
break; | |
case "February": | |
echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]'); | |
break; | |
case "March": |
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 $weekday = date('l'); | |
switch ($weekday) { | |
case "Monday": | |
echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]'); | |
break; | |
case "Tuesday": | |
echo do_shortcode('[INSERT_ELEMENTOR id="XXX"]'); | |
break; | |
case "Wednesday": |
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 | |
/* Template Name: Front Page Template */ | |
get_header(); ?> | |
<div id="primary" <?php astra_primary_class(); ?>> | |
<?php astra_primary_content_top(); ?> | |
<div style="background-color: #F2EBCB;padding:15px 15px 0 15px;"> | |
<h3 style="text-align:center;padding-bottom:15px;text-weight:bold;">Upcoming Sunday Services:</h3> | |
<div style="display:flex;flex-direction:row;width:75%;margin:0 auto;"> | |
<?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 | |
/* Template Name: Services Template */ | |
get_header(); ?> | |
<div id="primary" <?php astra_primary_class(); ?>> | |
<?php astra_primary_content_top(); ?> | |
<?php // CUSTOM SERVICES LOOP | |
$today = current_time('Ymd'); | |
$args = array( | |
'post_type' => 'service', |
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
/** | |
* Enqueue Parent and Child Styles | |
*/ | |
function enqueue_styles() { | |
// enqueue parent styles | |
wp_enqueue_style('parent-theme', get_template_directory_uri() .'/style.css'); | |
// enqueue child styles |
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
https://webdevstudios.com/2018/12/11/advanced-custom-fields-and-gutenberg/ |
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
const { __, setLocaleData } = wp.i18n; | |
const { registerBlockType } = wp.blocks; | |
const blockStyle = { | |
backgroundColor: '#900', | |
color: '#fff', | |
padding: '20px', | |
}; | |
setLocaleData( window.gutenberg_examples_01_esnext.localeData, 'gutenberg-examples' ); |
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
/** | |
* vanilla-gutenberg-block.js | |
* | |
* Hello World: Step 1 | |
* | |
* Simple block, renders and saves the same content without interactivity. | |
* | |
* Using inline styles - no external stylesheet needed. Not recommended | |
* because all of these styles will appear in `post_content`. | |
*/ |
NewerOlder