This file contains hidden or 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\Notifications; | |
| use Illuminate\Notifications\Messages\MailMessage; | |
| use Illuminate\Notifications\Notification; | |
| class MagicLoginLink extends Notification | |
| { | |
| /** |
This file contains hidden or 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\Listeners; | |
| use App\Events\RequestMagicLoginLink; | |
| use App\Models\User; | |
| class SendMagicLoginLinkNotification | |
| { | |
| /** |
This file contains hidden or 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\Events; | |
| use App\Models\User; | |
| use Illuminate\Queue\SerializesModels; | |
| class RequestMagicLoginLink | |
| { | |
| use SerializesModels; |
This file contains hidden or 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
| #!/bin/bash | |
| # Download the JSON file | |
| curl -sSL https://plugintable.com/plugins.json -o plugins.json | |
| # Extract the plugin slugs using jq | |
| plugin_slugs=$(jq -r '.[].slug' plugins.json) | |
| # Loop through each plugin slug and install it using wp-cli | |
| for slug in $plugin_slugs; do |
This file contains hidden or 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( 'allowed_block_types_all', function( $allowed_blocks, $editor_context ) { | |
| if ( in_array( $editor_context->post?->post_type, ['post', 'page'] ) ) { | |
| $blocks = array_diff( | |
| array_keys( WP_Block_Type_Registry::get_instance()->get_all_registered() ), | |
| [ | |
| 'core/image', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| <!-- Define the Alpine.js component using x-data --> | |
| <div x-data="{ show: false }"> | |
| <!-- Bind the type attribute to the value of show using the :type notation --> | |
| <input :type="show ? 'text' : 'password'" name="password" type="password" value="LookMaaGreatPassw0rd!" /> | |
| <!-- Toggle the value of show on click using @click and bind the class | |
| attribute to it using the :class notation --> | |
| <svg @click="show = !show" :class="{'block': !show, 'hidden':show }">...</svg> |
This file contains hidden or 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 hidden or 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 hidden or 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; |