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\Livewire; | |
use Livewire\Attributes\Url; | |
use Livewire\Component; | |
use WP_Query; | |
class PostSearch extends Component | |
{ |
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 | |
use Illuminate\Support\Str; | |
/** | |
* Add `rel="preload"` to font files found in the manifest | |
*/ | |
add_filter('wp_head', function (): void { | |
echo collect( | |
json_decode(asset('manifest.json')->contents()) |
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
import domReady from '@roots/sage/client/dom-ready'; | |
/** | |
* Alpine components | |
*/ | |
import Alpine from 'alpinejs'; | |
import * as components from './components/index.js'; | |
/** |
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 | |
declare( strict_types=1 ); | |
namespace Blockify; | |
use DOMDocument; | |
use DOMElement; | |
use function add_action; | |
use function add_filter; |
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
# Kinsta Deployment through Github Actions for Bedrock/Sage. | |
# | |
# Placed at: .github/workflow/deploy.yml | |
# | |
# Process should be studied from code, but some quick brief: | |
# - runs composer / sage installation | |
# - moves correct `.env.*` file for multiple configs | |
# - uses rsync to sync files, uses /.rsyncignore file to exclude whatever should not be there | |
# - symlinks uploads folder and symlink release folder to kinsta public hostname | |
# - if you want to clear cache, please uncomment the last job |
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
// Setting variables like this wouldn't be possible because SASS would | |
// get through this file before Tailwind does (because it's PostCSS) | |
$--color-primary: theme('colors.blue'); | |
$--font-serif: theme('fontFamily.serif'); | |
body { | |
color: rgba($--color-primary, .5); | |
font-family: $font-serif; | |
} |
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 | |
/** | |
* The class used to make certain taxonomies have a top level URL. | |
*/ | |
/** | |
* The Taxonomy_Top_Level_URL class. | |
*/ | |
class Taxonomy_Top_Level_URL { | |
/** |
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
// Kevin Pilard @kpilard Apr 11 16:17 | |
// @jamesxv7 | |
import { Validator } from 'vee-validate'; | |
var app = new Vue({ | |
el: '#app', | |
created () { | |
this.validator = new Validator(this.validationRules) | |
}, |