Updated 24-05-2020
NAME=$1
mkdir $NAME
cd $NAME
# Generate private key| <?php | |
| namespace App\Livewire; | |
| use Livewire\Attributes\Url; | |
| use Livewire\Component; | |
| use WP_Query; | |
| class PostSearch extends Component | |
| { |
| <?php | |
| namespace App\Models; | |
| use Spatie\MediaLibrary\HasMedia; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Spatie\MediaLibrary\InteractsWithMedia; | |
| use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| class Image extends Model implements HasMedia |
| javascript: (function (doc){var changed=0; function checkTitles(){console.log('jQuery version ', $.fn.jquery, ' loaded'); var position=1; var items=[]; var results=$('#rso .kp-blk .g, #rso .g[class="g"], #rso .srg .g').not('.kno-kp .g').find('div:first').find('a:first'); $('.title-changed, #CountTitlesChanged').remove(); results.each(function (){if (!$(this).parents('.related-question-pair').length){var parent=$(this).closest('.tF2Cxc').length > 0 ? $(this).closest('.tF2Cxc') : $(this).closest('li'); items.push([ position, $(this).find('h3').text(), encodeURI($(this).attr('href')), parent]); position++;}}); var numItems=1; cors_proxies=[ 'https://api.codetabs.com/v1/proxy?quest=', 'https://jsonp.afeld.me/?url=',]; items.forEach(item=>{$.ajax({url: cors_proxies[Math.floor(Math.random() * cors_proxies.length)] + item[2], success: function (data, status, xhr){title=$(data).filter('title').text(); var html='<div class="title-changed">'; if (title !=item[1]){html +='<span style="font-weight: bold;color: #ff6961;"> |
| @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) { | |
| .blurred-container { | |
| -webkit-backdrop-filter: blur(10px); | |
| backdrop-filter: blur(10px); | |
| } | |
| } | |
| /* slightly transparent fallback for Firefox (not supporting backdrop-filter) */ | |
| @supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) { | |
| .blurred-container { |
| /* Based on https://github.com/appleple/react-modal-video/ */ | |
| <template> | |
| <div v-if="isOpen"> | |
| <div | |
| :class="classNames.modalVideo" | |
| tabIndex='-1' | |
| role='dialog' | |
| :aria-label="aria.openMessage" | |
| @click="$emit('update:isOpen', false)" |
| <?php | |
| /** | |
| * WordPress Ajax Process Execution | |
| * | |
| * This file is a near-identical copy of {@see wp-admin/admin-ajax.php} from WordPress v6.3.0. | |
| * | |
| * Differences: | |
| * 1. Constant `WP_ADMIN` is set to FALSE, by default. | |
| * 2. WordPress action 'admin_init' is replaced with custom action 'ajax_init'. | |
| * 4. Custom actions hooked on 'admin_init' are not executed. |
| // FILE PATH: /resources/js/app.js | |
| require('./bootstrap'); | |
| // Import Service Worker Registry | |
| require('./extensions/sw-registry'); | |
| import Vue from 'vue'; | |
| ... |
| <?php | |
| namespace Vendor\Namespace\Plugin; | |
| use Magento\Catalog\Helper\ImageFactory; | |
| use Magento\Catalog\Helper\Product\Compare; | |
| use Magento\Catalog\Model\ProductRepository; | |
| class AddImageToCompareProductsPlugin | |
| { |