# BEGIN WordPress
# Директивы (строки) между `BEGIN WordPress` и `END WordPress`
# созданы автоматически и подлежат изменению только через фильтры WordPress.
# Сделанные вручную изменения между этими маркерами будут перезаписаны.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
document.body.addEventListener( 'click', function ( event ) {
const target = event.target.closest(".quantity_plus");
if(target) {
const artInput = event.target.closest('.cart_content__one').querySelector('input[type="hidden"]');
let countSpan = event.target.closest('.cart_content__one').querySelector('.quantity_count span');
let priceDiv = event.target.closest('.cart_content__one').querySelector('.cart_content__price');
const articul = artInput.value;
plusFunction(articul, countSpan, priceDiv);
};
} );
cardContent.innerHTML = "";
cart.map(item => {
const cartContentOne = document.createElement('div');
cartContentOne.className = 'cart_content__one';
const hiddenInput = document.createElement('input');
hiddenInput.type = "hidden";
hiddenInput.value = item.articul;
cartContentOne.appendChild(hiddenInput);
const imgDiv = document.createElement('div');
imgDiv.className = 'cart_content__img';
const productImg = document.createElement('img');
productImg.src = "/img/products_pictures/" + item.img;
imgDiv.appendChild(productImg);
cartContentOne.appendChild(imgDiv);
const cartContentName = document.createElement('div');
cartContentName.className = 'cart_content__name';
cartContentName.innerText = item.name;
cartContentOne.appendChild(cartContentName);
const cartContentPrice = document.createElement('div');
cartContentPrice.className = 'cart_content__price';
cartContentPrice.innerText = item.price;
cartContentOne.appendChild(cartContentPrice);
const cartContentQuantity = document.createElement('div');
cartContentQuantity.className = 'cart_content__quantity';
const quantityMinus = document.createElement('div');
quantityMinus.className = 'quantity_minus';
const quantityMinusButton = document.createElement('button');
quantityMinusButton.innerHTML = '<i class="fa fa-minus" aria-hidden="true"></i>';
quantityMinus.appendChild(quantityMinusButton);
const quantityCount = document.createElement('div');
quantityCount.className = 'quantity_count';
const quantityCountSpan = document.createElement('span');
quantityCountSpan.innerText = item.quantity;
quantityCount.appendChild(quantityCountSpan);
const quantityPlus = document.createElement('div');
quantityPlus.className = 'quantity_plus';
const quantityPlusButton = document.createElement('button');
quantityPlusButton.innerHTML = '<i class="fa fa-plus" aria-hidden="true"></i>';
quantityPlus.appendChild(quantityPlusButton);
cartContentQuantity.appendChild(quantityMinus);
cartContentQuantity.appendChild(quantityCount);
cartContentQuantity.appendChild(quantityPlus);
cartContentOne.appendChild(cartContentQuantity);
const cartContentDelete = document.createElement('div');
cartContentDelete.className = 'cart_content__delete';
const cartContentDeleteButton = document.createElement('button');
cartContentDeleteButton.dataset.artfordel = item.articul;
cartContentDeleteButton.innerHTML = `<i class="fa fa-trash" aria-hidden="true" data-art="${item.articul}"></i>`;
cartContentDelete.appendChild(cartContentDeleteButton);
cartContentOne.appendChild(cartContentDelete);
cardContent.appendChild(cartContentOne);
});
gulp.task('watch', gulp.series('build', 'browserSync', async function() {
gulp.watch(config.src + config.css.src, gulp.series('build'));
gulp.watch(config.src, gulp.series(browserSync.reload));
}));
define('ROOT_DIR', realpath(__DIR__.'/..'));
$name = ROOT_DIR.'/../uploads/pm_user/img/'.$_FILES["filename"]["name"];
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Main loader script
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
use PhpMyAdmin\Controllers\HomeController;
use PhpMyAdmin\Core;
use PhpMyAdmin\DatabaseInterface;
use PhpMyAdmin\Response;
use PhpMyAdmin\Url;
use PhpMyAdmin\Util;
if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $server;
require_once ROOT_PATH . 'libraries/common.inc.php';
/**
* pass variables to child pages
поменял AllowOverride None на AllowOverride All, перезагрузил апач, не заработало.
Дописал еще блок
перезагрузил сервер, также не заработало