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 | |
/** | |
* Plugin Name: Remove Video Mimes | |
* Author: Flaunt Your Site | |
* Version: 1.0 | |
* Author URI: http://flauntyoursite.com | |
* Description: Removes Video mime tyoe for all plans except Premium. | |
*/ |
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 | |
/** | |
* Take Accent color, and convert it to RGBA, and add an opacity of .75. | |
*/ | |
$accent = get_theme_mod( 'site_accent_color' ); | |
$accent_string = ltrim( $accent, '#' ); | |
$arr = str_split( $accent_string, '2' ); | |
foreach ( $arr as $value ) { | |
$new_value = hexdec( $value ) . ', '; |
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 mobileHideVideo = function(){ | |
const video = document.querySelector( '.div-of-video-element' ); | |
video.remove(); | |
} | |
if (window.screen.width < 768) { | |
mobileHideVideo(); | |
} |
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
/** | |
* Polaroid Flip | |
* | |
*/ | |
const polaroidFlip = function () { | |
const flipSection = document.querySelectorAll('section'); | |
for (var i = 0; i < flipSection.length; i++) { |
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
/** | |
* Polaroid Flip | |
* | |
*/ | |
// const polaroidFlip = function () { | |
// const flipSection = document.querySelectorAll('section'); |
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
function fsc_figure( $image, $size, $imageclass, $captionclass ){ | |
/** | |
* Let plugins pre-filter the image meta to be able to fix inconsistencies in the stored data. | |
* | |
* @param string $image The ACF field name (i.e. 'your_photo_name'). | |
* @param string $size Thumbnail size (i.e. 'Thumbnail', 'Medium', 'Large') | |
* @param string $imageclass The Figure class you want to use (ex: 'my-figure') | |
* @param string $captionclass The Figcaption class you want to use (ex: 'caption-blue') | |
*/ |
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_filter('the_content', 'fyc_the_content'); | |
function fyc_the_content( $content ) { | |
if (is_singular( 'clients' ) && in_the_loop()) { | |
ob_start(); ?> | |
<div class="fyc-top"> |