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 | |
// Get custom excerpt | |
function alm_get_excerpt($limit = 40, $after = null) { | |
$excerpt = explode(' ', get_the_excerpt(), $limit); | |
if (count($excerpt)>=$limit) { | |
array_pop($excerpt); | |
$excerpt = implode(" ",$excerpt).'...'; | |
} else { | |
$excerpt = implode(" ",$excerpt); | |
} |
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
jQuery( function( $ ) { | |
/** | |
* @typedef ezTOC | |
* @type {Object} ezTOC | |
* @property {string} affixSelector | |
* @property {string} scroll_offset | |
* @property {string} smooth_scroll | |
* @property {string} visibility_hide_by_default | |
*/ |
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 | |
/** | |
* The Template for displaying all single posts. | |
* | |
* @package GeneratePress | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
get_header(); ?> |
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
@import url('https://use.typekit.net/oen5jod.css'); | |
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
/* Default Template Styles Start */ | |
body { | |
&.no-scroll { |
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 | |
function my_alm_filter_query_args( $args ){ | |
// Get the archive query object. | |
$queried_obj = get_queried_object(); | |
// Confirm archive and query object is available. | |
if ( is_archive() && $queried_obj && isset( $queried_obj->taxonomy ) ) { | |
// The default taxonomy query. |
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
{ | |
"global":{ | |
"settings":{ | |
"color":{ | |
"custom":false, | |
"customGradient":false, | |
"gradients":[], | |
"link":false, | |
"palette":[] | |
}, |
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 | |
/** | |
* The template for displaying single posts. | |
* | |
* @package GeneratePress | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} |
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 | |
global $sitepress; | |
$current_lang = $sitepress->get_current_language(); //save current language | |
$sitepress->switch_lang('en'); | |
/* | |
* WP_Query | |
* | |
* @return $alm_query; |
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 | |
/** | |
* Genesis Framework. | |
* | |
* Custom Archive Template. | |
* | |
* @package Genesis\Templates | |
* @author ConnektMedia | |
* @license GPL-2.0+ | |
* @link http://my.studiopress.com/themes/genesis/ |
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 this hook to functions.php | |
add_action( 'wp_footer', function() { | |
?> | |
<script> | |
var alm_flatpickr_opts = { | |
disable: function(selectedDate) { | |
var today = new Date(); | |
today.setHours(0,0,0,0); | |
return (selectedDate < today); // return true to disable |