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> | |
| <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> | |
| <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> | |
| <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> | |
| <!--[if (gte IE 9)|!(IE)]><!--><html lang="ru"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> |
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 | |
| global $product; | |
| $attachment_ids = $product->get_gallery_attachment_ids(); | |
| foreach( $attachment_ids as $attachment_id ) | |
| { | |
| echo $image_link = wp_get_attachment_url( $attachment_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
| <ul class="products"> | |
| <?php | |
| $args = array( 'post_type' => 'product', | |
| 'posts_per_page' => 5, | |
| 'product_cat' => 'addit', | |
| 'orderby' => 'rand' | |
| ); | |
| $loop = new WP_Query( $args ); | |
| while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?> |
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 productCart() { | |
| ?> | |
| <div class="buy-with"> | |
| <h2><?php echo get_cat_name(46); ?></h2> | |
| <ul> | |
| <?php | |
| $parent_id = 46; |
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 | |
| $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 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
| Без 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 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 echo get_post_meta($post->ID, 'name_field', true); ?> |
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
| - Восстановление стилей, после копирования 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 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 () { | |
| 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 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 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"> |