Skip to content

Instantly share code, notes, and snippets.

View seriiserii825's full-sized avatar

Burduja Sergiu seriiserii825

  • Bludelego
  • Moldova. Chishinau
View GitHub Profile
min + Math.floor(Math.random() * (max + 1 - min))
We couldn’t find that file to show.
@seriiserii825
seriiserii825 / index.php
Created February 9, 2018 22:36
dumper php
function dumper2() {
echo '<pre>'.print_r(func_get_args(), true).'</pre>';
}
@seriiserii825
seriiserii825 / main.js
Created March 27, 2018 15:29
active link ot the menu
/*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');
}
});
<?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' );
}
We couldn’t find that file to show.
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,
.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
{
"labels": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<>.,+-/",
}
<?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