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
// @PATCH for /wp-content/plugins/pdf-viewer-for-wpdf/assets/js/wpdf-pdf-viewer.js on line 16 | |
// Allows PDFs to render in higher resolution so they are not too blurry to read | |
//scale = 1, | |
scale = 3, | |
// @PATCH for /wp-content/plugins/pdf-viewer-for-wpdf/pdf-viewer-for-wpdf.php | |
// @HACK by David Lewis - add timestamp to URLs to prevent browser caching of same-named files | |
// Line 77 | |
//<li><a href="javascript:void(0);" class="display_pdf_file" data-pdf-url = '.$download_url.' ></a></li> |
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 | |
/* @PATCH | |
* /inc/listing/class-wpdf-downloader.php on line 52 | |
* Allows shortcode files to download properly when a user has multiple roles or one role that is not zero-indexed | |
*/ | |
// @HACK by David Lewis start | |
$current_user_info = wp_get_current_user(); | |
$user_id = $current_user_info->data->ID; |
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
/** | |
* WordPress dependencies | |
*/ | |
import { __ } from '@wordpress/i18n'; | |
import { registerBlockVariation } from '@wordpress/blocks'; | |
import { RichText } from '@wordpress/block-editor'; | |
import { useEntityProp } from '@wordpress/core-data'; | |
import { addFilter } from '@wordpress/hooks'; | |
const { createHigherOrderComponent } = wp.compose; |
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 { registerBlockVariation } from '@wordpress/blocks'; | |
import { addFilter } from '@wordpress/hooks'; | |
const VARIATION_NAME = 'allswater/custom-quote-test'; | |
registerBlockVariation( 'core/quote', { | |
name: VARIATION_NAME, | |
title: 'Quote Variation', | |
//isActive: [ namespace, authorCredentials ], | |
isActive: ( { namespace, authorCredentials } ) => { |
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
<div class="custom-homepage-hero-bg-overlay" style="background-image: | |
url(https://rps.charcoal.website/wp-content/uploads/2021/05/rps-arrow-fixed.png); | |
background-size: cover !important; | |
background-position: top right !important;"> | |
</div> | |
<video class="custom-homepage-hero-bg" src="https://rps.charcoal.website/wp-content/uploads/2021/03/iStock-1175940323.mp4" autoplay loop playsinline muted> | |
</video> | |
<div class="custom-homepage-hero"> | |
<div class="homepage-slider-container hidden"> | |
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
/* Remove extra spacing from all cards */ | |
.card[appointment][class*="styles_appointmentTypeCard__"] { | |
margin: 0 !important; | |
border-top: 0 !important; | |
border-bottom: 0 !important; | |
} | |
/* Add bottom spacing back to visible cards */ | |
.card[appointment][class*="styles_appointmentTypeCardSelectable__"] { | |
margin-bottom: 10px !important; |
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
// ******************************* | |
// Future-Proof content by saving ACF content to post_content | |
// ------------------------------- | |
function save_acf_rich_text_to_post_content( $post_id ) { | |
if ( get_post_type( $post_id ) == ( 'post' || 'page' ) ) { | |
// Get ACF flex content | |
if( have_rows('content_blocks') ) { | |
$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
// Min / Max http://www.sassmeister.com/gist/7f22e44ace49b5124eec | |
@mixin minmax( | |
$size-min, | |
$size-max, | |
$properties: font-size, | |
$vw-min: 320px, | |
$vw-max: 1280px | |
) { | |
@if( | |
unitless($size-min) or |
NewerOlder