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\Controller\Admin; | |
use App\Entity\Product; | |
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController; | |
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; | |
use EasyCorp\Bundle\EasyAdminBundle\Field\DateTimeField; | |
use EasyCorp\Bundle\EasyAdminBundle\Field\BooleanField; | |
use App\Form\Field\TranslationField; |
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\Entity; | |
use App\Repository\BrandRepository; | |
use Doctrine\ORM\Mapping as ORM; | |
use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface; | |
use Knp\DoctrineBehaviors\Model\Translatable\TranslatableTrait; | |
use Symfony\Component\HttpFoundation\File\File; | |
use Vich\UploaderBundle\Mapping\Annotation as Vich; |
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
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |
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 | |
function sendWithPhpMailer($subject, $body, $reply) { | |
require(ABSPATH . WPINC . '/class-phpmailer.php'); | |
require(ABSPATH . WPINC . '/class-smtp.php'); | |
// date_default_timezone_set( 'America/Sao_Paulo' ); | |
$blogname = wp_strip_all_tags( trim( get_option( 'blogname' ) ) ); | |
$smtpHost = wp_strip_all_tags( trim( get_option( 'smtp_host' ) ) ); |
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
1. ********* step 1 | |
CREATE TABLE `levelchinese`.`temp_usermeta` ( | |
`umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | |
`user_id` bigint(20) unsigned NOT NULL DEFAULT '0', | |
`meta_key` varchar(255) DEFAULT NULL, | |
`meta_value` longtext, | |
PRIMARY KEY (`umeta_id`), | |
KEY `user_id` (`user_id`), | |
KEY `meta_key` (`meta_key`(191)) |
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
<!-- Стандартный фавикон --> | |
<link rel="icon" type="image/x-icon" href="https://example.com/favicon.ico"> | |
<!-- Рекомендованный формат фавикона --> | |
<link rel="icon" type="image/png" href="https://example.com/favicon.png"> |
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
// get elements and push click in google Analitics | |
(function(){ | |
var elems = document.querySelectorAll('.wcat-item'); | |
for (var i = 0; i < elems.length; i++) { | |
elems[i].addEventListener('click', function(e){ | |
var elName = this.querySelector('.name').textContent; | |
var elId = this.querySelector('.name').getAttribute('data-id'); | |
var elPrice = parseInt(this.querySelector('.woocommerce-Price-amount').textContent); | |
//e.preventDefault(); | |
dataLayer.push({ |
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
--- | |
deployment: | |
tasks: | |
- export REPOPATH=/home/abram/testogit/* | |
- export SITEPATH=/home/abram/testo.domen.by/ | |
- /bin/rsync -rav --exclude '.git' --exclude '.cpanel.yml' --del $REPOPATH $SITEPATH |
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
// maintenance of popup | |
(function(){ | |
// open popup link ***********************/ | |
var bopy = $('.bibop'); | |
$('#pop-js').on('click touchend', function(e) { | |
bopy.css('display', 'block').show().animate({ opacity: 1 }, 350); | |
e.preventDefault(); | |
}); | |
// popUp with form ***********************/ |
NewerOlder