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
| $(".main_popap").submit(function() { | |
| $.ajax({ | |
| type: "POST", | |
| url: "/wp-content/themes/s-a-ricci/mail.php", | |
| data: $(this).serialize() | |
| }).done(function() { | |
| $('.main_popap input').hide(300); | |
| setTimeout(function() { | |
| $('.main_popap').html('Ожидайте звонка.<br>Наш менеджер свяжется с вами в самое ближайшее время'); | |
| jQuery.fancybox.close(); |
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 if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
| <h1><?php the_title(); ?></h1> | |
| <?php the_content(); ?> | |
| <?php endwhile; ?> | |
| <?php endif; ?> |
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 | |
| $id = 46; // add the ID of the page where the zero is | |
| $p = get_page($id); | |
| $t = $p->post_title; | |
| echo apply_filters('the_content', $p->post_content); | |
| ?> |
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
| 1.Залогиньтесь в интерфейсе PhpMyAdmin и в списке баз данных выберите ту, которая используется для сайта, где нужно сбросить пароль. | |
| 2.В списке нас интересует таблица wp_users | |
| 3.Нужно выбрать интересующего вас пользователя, возможно, это будет просто admin. | |
| 4.поле user_pass содержит пароль, точнее md5-хэш пароля. | |
| 5.Заменяем на $P$Ba5vAEqFXJyRJmmK/iNu3qHWnfKQ7w. | |
| 6.Сохраняем | |
| 7.Теперь у нас пароль password |
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
| // Работа пункта меню Лента в зависимости от ширины окрана | |
| $('.menu-item-454').click(function(e){ | |
| if(document.documentElement.clientWidth < 768) { | |
| console.log('Ссылка работает в режиме мобильной'); | |
| e.preventDefault(); | |
| } | |
| }); |
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
| <!-- Здесь стандартный вывод текста поста --> | |
| <!-- 2.Далее --> | |
| <!-- УЗнаем ID текущей записи --> | |
| <?php if ( is_single() ) { | |
| $cats = get_the_category(); | |
| $cat = $cats[0]; | |
| } else { | |
| $cat = get_category( get_query_var('cat') ); | |
| } | |
| $cat_slug = $cat->slug; // ярлык рубрики записи |
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 if ( is_active_sidebar( 'left-sidebar' ) ){ ?> | |
| <ul id="sidebar"> | |
| <?php dynamic_sidebar( 'left-sidebar' ); ?> | |
| </ul> | |
| <?php } ?> |
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
| // Удаляем DIV textwidget обертку из виджета black_studio_tinymce | |
| add_filter( 'black_studio_tinymce_before_text', 'del_textwidget'); | |
| function del_textwidget($before_text) { | |
| return ''; | |
| } | |
| add_filter( 'black_studio_tinymce_after_text', 'del_textwidget_close_div'); | |
| function del_textwidget_close_div($after_text) { | |
| return ''; | |
| } |
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
| function my_nav_menu_submenu_css_class( $classes ) { | |
| $classes[] = 'my-new-submenu-class'; | |
| return $classes; | |
| } | |
| add_filter( 'nav_menu_submenu_css_class', 'my_nav_menu_submenu_css_class' ); |
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
| <nav class="bs_navi navigation"> | |
| <div class="container"> | |
| <nav class="navbar navbar-expand-lg navbar-light"> | |
| <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | |
| <span class="navbar-toggler-icon"></span> | |
| </button> | |
| <div class="collapse navbar-collapse" id="navbarSupportedContent"> | |
| <ul class="navbar-nav mr-auto"> | |
| <li class="nav-item active"> |