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
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
# Matches multiple files with brace expansion notation | |
# Set default charset | |
[*.{js,py}] |
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
---- "wp_term_relationships.term_taxonomy_id" - is the id of category | |
SELECT * FROM wp_term_relationships | |
LEFT JOIN wp_posts ON wp_posts.id = wp_term_relationships.object_id | |
LEFT JOIN wp_postmeta ON wp_posts.id = wp_postmeta.post_id | |
WHERE wp_term_relationships.term_taxonomy_id = 35 AND wp_postmeta.meta_key = 'minimal_hours'; |
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
DELIMITER $$ | |
-- | |
-- Functions | |
-- | |
CREATE FUNCTION `transliterate_func`(original VARCHAR(512)) RETURNS varchar(512) CHARSET utf8 | |
BEGIN | |
DECLARE translit VARCHAR(512) DEFAULT ''; | |
DECLARE len INT(3) DEFAULT 0; | |
DECLARE pos INT(3) DEFAULT 1; |
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
/* | |
|-------------------------------------------------------------------------- | |
| Browser-sync config file | |
|-------------------------------------------------------------------------- | |
| | |
| For up-to-date information about the options: | |
| http://www.browsersync.io/docs/options/ | |
| | |
| There are more options than you see here, these are just the ones that are |
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
// Закрыващем предыдущий попап (форму) | |
$.magnificPopup.close(); | |
// Создаем задержку для завершения анимации закрытия | |
setTimeout(function(){ | |
$.magnificPopup.open({ | |
items: { | |
src: $('#message-success') |
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
img{ | |
position: absolute; | |
/* Position the image in the middle of its container. */ | |
top: -9999px; | |
right: -9999px; | |
bottom: -9999px; | |
left: -9999px; | |
margin: auto; | |
/* The following values determine the exact image behaviour. */ | |
/* You can simulate background-size: cover/contain/etc. |
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
public function demo(){ | |
$this->load->model('catalog/product'); | |
$this->load->model('catalog/category'); | |
$empty = $this->model_catalog_product->setRelated(); | |
foreach($empty as $item){ | |
$product_id = $item['product_id']; | |
$product_categories = $this->model_catalog_product->getCategories($product_id); |
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 | |
$captcha_res = $_POST['g-recaptcha-response']; | |
$secret_code = "SECRET KEY"; | |
if (!empty($_SERVER['HTTP_CLIENT_IP'])) { | |
$ip = $_SERVER['HTTP_CLIENT_IP']; | |
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { | |
$ip = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
} else { |
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="primary-nav-button"> | |
<button class="hamburger hamburger--collapse js-nav-toggle" type="button"> | |
<span class="hamburger-box"> | |
<span class="hamburger-inner"></span> | |
</span> | |
</button> | |
</div> | |
<nav class="primary-nav primary-nav--header"> | |
<ul class="primary-nav__list"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Demo</title> | |
</head> | |
<body> | |
<div class="images"> | |
<a href="http://lorempixel.com/600/600" class="image-popup"><img class="images__item" src="http://lorempixel.com/200/200"/></a> | |
<a href="http://lorempixel.com/600/600" class="image-popup"><img class="images__item" src="http://lorempixel.com/200/200"/></a> |
NewerOlder