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
<img src="<?=get_the_post_thumbnail_url()?>" alt="<?=get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true);?>" title="<?=get_the_title( get_post_thumbnail_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
var options = { | |
enableHighAccuracy: true, | |
timeout: 5000, | |
maximumAge: 0 | |
}; | |
function success(pos) { | |
var crd = pos.coords; | |
console.log('Your current position is:'); |
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
.slick-arrow{ | |
position: absolute; | |
padding: 0; | |
width: 33px; | |
height: 43px; | |
background-color: fade-out(#ccc, .2); | |
font-size: 0; | |
border: none; | |
top: 43%; | |
margin-top: -21px; |
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 | |
$temp = $wp_query; | |
$wp_query = null; | |
$wp_query = new WP_Query(); | |
$wp_query->query('showposts=6&post_type=news'.'&paged='.$paged); | |
while ($wp_query->have_posts()) : $wp_query->the_post(); | |
?> | |
<!-- LOOP: Usual Post Template Stuff Here--> |
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 is_user_logged_in() { | |
$loggedin = false; | |
foreach ( (array) $_COOKIE as $cookie => $value ) { | |
if ( stristr($cookie, 'wordpress_logged_in_') ) | |
$loggedin = true; | |
} | |
return $loggedin; | |
} | |
if ( !stristr($_SERVER['REQUEST_URI'], '/wp-admin/') && !stristr($_SERVER['REQUEST_URI'], '/wp-login.php') && !is_user_logged_in() ) $upgrading = time(); |
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
$(document).click(function(event) { | |
if($(window).width() < 1211){ | |
if ($(event.target).closest('.navigation, .hamburger').length) return; | |
$('.navigation').hide("slow"); | |
$hamburger.removeClass('is-active'); | |
$body.css('overflow', 'auto'); | |
event.stopPropagation(); | |
} | |
}); |
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
// Cache selectors | |
var lastId, | |
topMenu = $("#top-menu"), | |
topMenuHeight = topMenu.outerHeight()+15, | |
// All list items | |
menuItems = topMenu.find("a"), | |
// Anchors corresponding to menu items | |
scrollItems = menuItems.map(function(){ | |
var item = $($(this).attr("href")); | |
if (item.length) { return item; } |
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
<title><?php bloginfo('name'); if(is_home() || is_front_page()) { echo ' - '; bloginfo('description'); } else { wp_title(); } ?></title> |
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
$labels3 = array( | |
'name' => _x('Вакансии', 'post type general name', 'OK'), | |
'singular_name' => _x('Ваканися', 'post type singular name', 'OK'), | |
'add_new' => _x('Добавить вакансию', 'infobox', 'OK'), | |
'add_new_item' => __('Добавить новую вакансию', 'OK'), | |
'edit_item' => __('Редактировать вакансию', 'OK'), | |
'new_item' => __('Новая вакансия', 'OK'), | |
'view_item' => __('Смотреть вакансию', 'OK'), | |
'search_items' => __('Искать вакансию', 'OK'), | |
'not_found' => __('Вакансию не найдены', 'OK'), |
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
// ONLY number input | |
$('.pop-up__transfer_points input[type="text"]').ForceNumericOnly(); | |
//функция | |
jQuery.fn.ForceNumericOnly = | |
function() | |
{ | |
return this.each(function() | |
{ | |
$(this).keydown(function(e) |
NewerOlder