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
<script setup> | |
import AppLayout from '@/Layouts/AppLayout.vue'; | |
import Editor from '@tinymce/tinymce-vue'; | |
import { reactive,onMounted } from 'vue'; | |
import { router } from '@inertiajs/vue3'; | |
import PrimaryButton from '@/Components/PrimaryButton.vue'; | |
// Import TinyMCE | |
import tinymce from 'tinymce/tinymce'; |
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
<div class="bg-white p-4 overflow-hidden shadow-xl sm:rounded-lg"> | |
<editor | |
:init="{ | |
content_css: false, | |
skin: false, | |
content_style: contentUiSkinCss.toString() + '\n' + contentCss.toString(), | |
height: 500, | |
menubar: false, | |
plugins: [ | |
'link', 'lists','image', 'anchor', 'wordcount', 'media' |
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
[Thu Feb 02 17:04:18.993271 2023] [proxy_fcgi:error] [pid 21797:tid 140425448298240] (104) | |
Connection reset by peer: [client xxx.xxx.xxx.58:0] AH01075: | |
Error dispatching request to : , referer: https://site.com/wp-admin/options-general.php?page=wprocket | |
PHP message: PHP Warning: ', referer: https://domain.com/wp-admin/site-health.php | |
[Thu Feb 02 17:06:08.849910 2023] [proxy_fcgi:error] [pid 21797:tid 140423954396928] [client xxx.xxx.xxx.58:0] AH01071: | |
Got error ' Undefined array key "analytics" in | |
/home/wp_xxxxx/domain.com/wp-content/plugins/google-site-kit/includes/Core/Util/Debug_Data.php on line 414 | |
PHP message: PHP Warning: Trying to access array offset on value of type null in | |
/home/wp_xxxxx/domain.com/wp-content/plugins/google-site-kit/includes/Core/Util/Debug_Data.php on line 414', | |
referer: https://domain.com/wp-admin/site-health.php |
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 brand color palette to acf color picker | |
* https://www.advancedcustomfields.com/resources/javascript-api/#filters-color_picker_args | |
* | |
*/ | |
function kronos_acf_input_admin_footer() { | |
?> | |
<script type="text/javascript"> |
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
<div id="container"> | |
<h3>Lazy loading CSS background images</h3> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam at ligula non lorem facilisis finibus. Suspendisse turpis lacus, tempus sit amet dignissim sit amet, pretium non sem. Ut malesuada purus ac magna placerat, tempus commodo turpis consectetur. Nunc vitae metus vehicula nunc congue varius. Suspendisse egestas urna non finibus feugiat. Vestibulum maximus, nunc et tempus convallis, dui ante vestibulum est, in lobortis purus sapien eget lacus. Suspendisse cursus enim non quam mollis imperdiet. Pellentesque convallis eget nunc vitae fringilla. Fusce interdum, velit semper varius aliquet, eros sapien facilisis erat, iaculis vulputate erat arcu vel neque. Suspendisse dignissim hendrerit lorem. Etiam metus ex, finibus vitae iaculis vitae, iaculis non ex. Phasellus commodo id ante id consequat. Nunc consectetur viverra lacus non fringilla. Pellentesque nec nisl vulputate, sagittis nisl id, venenatis nisi. Nunc malesuada tellus a elit s |
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
smtp port 1025 | |
no encryption | |
no authentication | |
host mailhog.test | |
check mail at http://localhost:8025/ | |
source data https://wpbeaches.com/set-up-smtp-email-for-local-valet-wordpress-development/ |
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 | |
/** | |
* JSON Handler made by Igor Simic at Coditty with blog post and code at | |
* https://coditty.com/code/how-to-catch-laravel-exception-and-return-json-response-example | |
* | |
*/ | |
namespace App\Exceptions; | |
use Exception; |
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
jQuery(document).ready(function($) { | |
jQuery.fn.cleardefault = function() { | |
return this.focus(function() { | |
if( this.value == this.defaultValue ) { | |
this.value = ""; | |
} | |
}).blur(function() { | |
if( !this.value.length ) { | |
this.value = this.defaultValue; |