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 breadcrumbs_new() { | |
$mayak_home = 'Главная'; // текст ссылки "Главная" | |
$mayak_last_crumb = 1; // 1 - показывать название текущей статьи/страницы/рубрики, 0 - не показывать | |
$mayak_between = ' <span class="crumb_separator">»</span> '; | |
$mayak_from = '<span class="current-crumbs">'; | |
$mayak_to = '</span>'; | |
global $post; | |
$mayak_link_to_home = home_url('/'); |
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
RewriteCond %{SERVER_PORT} !^443$ | |
RewriteRule ^(.*)$ https://zaurmag.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
// ======= Input Field Mask ======= | |
$(".telMask").inputMask("+7 (999) 999-99-99"); |
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
@media screen and (-ms-high-contrast: active), | |
(-ms-high-contrast: none) { | |
#page { | |
display: block; | |
} | |
.item-title { | |
font-size: 24px; | |
} | |
} |
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 //вывод позиции модулей | |
$document = JFactory::getDocument(); | |
$renderer = $document->loadRenderer('modules'); | |
$options = array('style' => 'xhtml'); | |
$position = 'user1'; | |
echo $renderer->render($position, $options, null); | |
?> | |
<!-- или --> |
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
//Условие - на главной или нет | |
if (JURI::current() == JURI::base()) {echo "делать то то на главной"}; |
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
########################################## Адаптивное видео Youtube | |
.myvideo { | |
position:relative; | |
padding-bottom:56.25%; | |
padding-top:30px; | |
height:0; | |
overflow:hidden; | |
border:1px solid #ccc; | |
} |
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 max_col_height = 0; | |
$('.list_product .block_product').each(function() { | |
if ($(this).height() > max_col_height) { | |
max_col_height = $(this).height(); | |
} | |
}); | |
$('.list_product .block_product').height(max_col_height); | |
// Close Alert |
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
// ======= Enquire JS ======= | |
enquire.register("screen and (max-width:1170px)", { | |
match: function() { | |
$('.menu-nav-wrapper').dropdownMenu(); | |
}, | |
unmatch: function() { | |
$('.menu-nav-wrapper').dropdownMenu({ | |
destroy: 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
// ======= Scroll Spy Menu ======= | |
var lastId, | |
topMenu = jQuery("#main-menu"), | |
topMenuHeight = topMenu.outerHeight(), | |
menuItems = topMenu.find("a"), | |
scrollItems = menuItems.map(function() { | |
var item = jQuery(jQuery(this).attr("href")); | |
if (item.length) { | |
return item; |