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 | |
namespace App\Http\Middleware; | |
use App\Models\TeamInvitation; | |
use Illuminate\Auth\Middleware\Authenticate as Middleware; | |
use Illuminate\Http\Request; | |
class Authenticate extends Middleware | |
{ |
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
<!-- Start Duda GA4 ecommerce tracking --> | |
<script> | |
window.onload = () => { | |
const currency = 'CHF'; | |
const brandName = 'Nina Burri'; | |
// Bail if we are not on a shop page. | |
if (typeof Ecwid == 'undefined') { | |
return; |
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
/* Accordion | |
------------------------------------------------------------ */ | |
.schema-faq-question{ | |
cursor: pointer; | |
} | |
.schema-faq-question:before{ | |
width: 16px; | |
height: 20px; | |
display: inline-block; |
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
/** | |
* Video sizes per project/page id. | |
* | |
* Edit this part and only include what you need. | |
*/ | |
const videoSizes = { | |
444 : { | |
tabletPortrait : 'https://path-to-video.de/video1.mp4', | |
mobile : 'https://path-to-video.de/video2.mp4', | |
}, |
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 | |
/** | |
* Shortcode: [pp_tax_list] to render an unlinked list of taxonomy terms assigned | |
* to the current object. | |
* | |
* How to use: [pp_tax_list tax='<taxonomy>'] | |
* Optional params are: | |
* display='list|string' defaults to list | |
* wrapper_class='pp-tax-list' any css classes that are needed on the wrapper div. | |
* |
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 | |
/** | |
* Remove Do Not Track Attribute from URLs of embeds like Videos. | |
* | |
* @param string $provider oembed Provider | |
* @param string $url embed url | |
* @param array $args embed args | |
* | |
* @return string $url with custom add-ons. | |
*/ |
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
.logged-in .ld-progress { | |
display: none; | |
} | |
/* .ld-progress might hase to be changed, depending on your theme */ |
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
// | |
// This version hides all answers by default. | |
// | |
(function ($) { | |
var rankMath = { | |
accordion: function () { | |
$('.rank-math-block').find('.rank-math-answer').hide(); // hides all answers by default | |
$('.rank-math-block').find('.rank-math-question').click(function () { | |
//Expand or collapse this panel |
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 | |
/** | |
* Hide CPT from Search | |
*/ | |
function update_my_custom_type() { | |
global $wp_post_types; | |
if ( post_type_exists( 'wpm-testimonail' ) ) { |