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
min + Math.floor(Math.random() * (max + 1 - min)) |
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 dumper2() { | |
echo '<pre>'.print_r(func_get_args(), true).'</pre>'; | |
} |
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
/*active menu | |
=======================================*/ | |
$('#js-top-nav_menu li').each(function () { | |
var location = window.location.pathname; | |
var location = location.substring(1); | |
var link = $(this).children('a').attr('href'); | |
if(location === link) { | |
$(this).addClass('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
<?php | |
get_header(); | |
if ( is_home() ) { | |
// Featured Slider, Carousel | |
if ( bard_options( 'featured_slider_label' ) === true || bard_is_preview() ) { | |
get_template_part( 'templates/header/featured', 'slider' ); | |
} |
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
input[type="text"]::-webkit-input-placeholder, | |
input[type="email"]::-webkit-input-placeholder, | |
input[type="phone"]::-webkit-input-placeholder | |
ptsansbold() | |
font-size 18px | |
color black | |
/* webkit */ | |
input[type="text"]::-moz-placeholder, | |
input[type="email"]::-moz-placeholder, |
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
.tabs | |
ul.tabs - navigation | |
li(show - tab="tab-hits").tabs - navigation__item.tabs - navigation__item--active Hits | |
li(show - tab="tab-benefits").tabs - navigation__item Benefits | |
li(show - tab="tab-new").tabs - navigation__item New | |
.tabs__body | |
.tab.tab--active.tab - hits | |
h2 tabs - hits content | |
.tab.tab - benefits | |
h2 tabs - benefits 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
Show hidden characters
{ | |
"labels": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<>.,+-/", | |
} |
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 | |
if( ! defined('ABSPATH') ) exit; | |
add_action('init', 'my_custom_init'); | |
function my_custom_init(){ | |
register_post_type('book', array( | |
'labels' => array( | |
'name' => __('Slider', 'bs-diona'), // Основное название типа записи | |
'singular_name' => __('Slider', 'bs-diona'), // отдельное название записи типа Book |