This file contains 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
$('.btn-button-blue a').click(function() { | |
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') || location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; | |
} |
This file contains 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
$(document).ready(function(){ | |
$('.carousel').carousel(); | |
$('.btn-button-blue a').click(function() { | |
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') || location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); |
This file contains 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
<section id="new-post" class="wow bounceInUp" data-wow-duration="2s" data-wow-delay="1s"> | |
<div class="container"> | |
<div class="title">Свежие публикации</div> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<div class="new-post col-md-6" > | |
<div class="wrap"> | |
<noindex> | |
<a rel="nofollow" href="<?php the_permalink(); ?> | |
"> | |
<?php the_title(); ?></a> |
This file contains 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 id="carousel-example-generic" class="carousel slide" data-ride="carousel"> | |
<!-- Указатели --> | |
<ol class="carousel-indicators"> | |
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> | |
<li data-target="#carousel-example-generic" data-slide-to="1"></li> | |
<li data-target="#carousel-example-generic" data-slide-to="2"></li> | |
</ol> | |
<!-- Контент слайда (slider wrap)--> | |
<div class="carousel-inner"> | |
<div class="item active"> |
This file contains 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 () { | |
var btn = document.getElementById('btn-execution'); | |
reg = /^(\w|[.])+@[a-z]+[.][a-z]{2,3}$/i, | |
reqSkype = /^\w[a-z]{1,}\d*\w*$/i; | |
email.addEventListener('keyup', function(){ | |
if (!reg.test(email.value)) { | |
email.classList.add('error'); | |
btn.setAttribute('disabled', 'disabled'); | |
This file contains 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
- Восстановление стилей, после копирования html кода: | |
<?php bloginfo("template_directory");?>/ | |
- Вывод заголовков: | |
<h1,2,3,4,5><?php the_title();?></h1,2,3,4,5> | |
- Контент: | |
<?php the_post();?> | |
<?php the_content();?> |
This file contains 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 echo get_post_meta($post->ID, 'name_field', true); ?> |
This file contains 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
Без www | |
ReWriteEngine On | |
RewriteCond %{HTTP_HOST} ^www.myrusakov.ru$ [NC] | |
RewriteRule ^(.*)$ http://myrusakov.ru/$1 [R=301,L] | |
С www | |
ReWriteEngine On | |
RewriteCond %{HTTP_HOST} ^myrusakov.ru$ [NC] | |
RewriteRule ^(.*)$ http://www.myrusakov.ru/$1 [R=301,L] |
This file contains 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 | |
$args = array( | |
'post_type' => 'product', | |
'posts_per_page' => 6 | |
); | |
$featured_query = new WP_Query( $args ); | |
if ($featured_query->have_posts()) : | |
while ($featured_query->have_posts()) : | |
$featured_query->the_post(); | |
$product = get_product( $featured_query->post->ID ); |
This file contains 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 productCart() { | |
?> | |
<div class="buy-with"> | |
<h2><?php echo get_cat_name(46); ?></h2> | |
<ul> | |
<?php | |
$parent_id = 46; |
OlderNewer