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
function heightDetect() { | |
$(".main_head").css("height", $(window).height()); | |
}; | |
heightDetect(); | |
$(window).resize(function() { | |
heightDetect(); | |
}); |
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
.loader | |
background: none repeat scroll 0 0 #fff | |
bottom: 0 | |
height: 100% | |
left: 0 | |
position: fixed | |
right: 0 | |
top: 0 | |
width: 100% | |
z-index: 9999 |
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-кода | |
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/main.css"> | |
//Заголовок секции задается через рубрики, а 'menu' - ярлык. Get Category name | |
<h2><?php | |
$idObj = get_category_by_slug('menu'); | |
$id = $idObj->term_id; | |
echo get_cat_name($id); | |
?></h2> |
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
var gulp = require('gulp'), // Подключаем Gulp | |
sass = require('gulp-sass'), //Подключаем Sass пакет, | |
browserSync = require('browser-sync'), // Подключаем Browser Sync | |
concat = require('gulp-concat'), // Подключаем gulp-concat (для конкатенации файлов) | |
uglify = require('gulp-uglifyjs'), // Подключаем gulp-uglifyjs (для сжатия JS) | |
cleanCss = require ('gulp-clean-css'), | |
cssnano = require('gulp-cssnano'), // Подключаем пакет для минификации CSS | |
rename = require('gulp-rename'), // Подключаем библиотеку для переименования файлов | |
del = require('del'), // Подключаем библиотеку для удаления файлов и папок | |
imagemin = require('gulp-imagemin'), // Подключаем библиотеку для работы с изображениями |
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
function heightDetect() { | |
$(".main_head").css("height", $(window).height()); | |
} | |
heightDetect(); | |
$(window).resize(function(){ | |
heightDetect(); | |
}); |
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 | |
if(have_posts()) : query_posts('p = 1'); | |
while(have_posts()) : the_post(); | |
?> | |
<?php the_title(); ?> | |
<?php the_content(); ?> | |
<?php the_thumbnail(array(100, 100)); ?> | |
<?php endwhile; endif; wp_reset_query(); ?> |
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 | |
require_once (__DIR__."/connection.php"); | |
$query = "SELECT * FROM users"; | |
$result = mysqli_query($conn, $query); | |
?> | |
<!doctype html> | |
<html> | |
<head> |
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
onRefresh: function () { | |
owl.find('div.owl-item').height(''); | |
}, | |
onRefreshed: function () { | |
owl.find('div.owl-item').height(owl.height()); | |
} |
OlderNewer