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: 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
<?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
/** | |
* 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`. | |
*/ |
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
# secure install page | |
<Files install.php> | |
# Apache < 2.3 | |
<IfModule !mod_authz_core.c> | |
Order allow,deny | |
Deny from all | |
Satify All | |
</IfModule> | |
# Apache >= 2.3 |
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
# in htaccess | |
# METHOD 1 | |
# CHANGE example.com to you domain | |
# Can add other file types | |
<IfModule mod_rewrite.c> | |
RewriteCond %{HTTP_REFERER} !^$ | |
RewriteCond %{HTTP_REFERER} !^http(s)?://([^.]+\.)?example\ | |
.com [NC] | |
RewriteRule \.(gif|jpe?g?|png)$ - [NC,F,L] | |
</IfModule> |
NewerOlder