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
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
<?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
/*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
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
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
$option = [ | |
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION, | |
\PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_ASSOC, | |
\PDO::ATTR_EMULATE_PREPARES => false | |
]; | |
try{ | |
$this->dbh = new \PDO('mysql:host=127.0.0.1;dbname=stepantev', 'root', 'root', $option); | |
$this->dbh->exec('set charset UTF8'); | |
} |
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
class Singleton | |
{ | |
protected static $instance; | |
protected function __construct() | |
{ | |
} | |
public static function instance() |