📁 src
📁 assets
📁 images
📁 videos
📁 js
📁 pug
📁 templates
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 | |
// проверка на спам - просто прерываем выполнение кода, при желании можно и сообщение спамерам вывести | |
if( isset( $_POST['comment'] ) || isset( $_POST['message'] ) ) | |
exit; | |
// подключаем WP, можно конечно обойтись без этого, но зачем? | |
require( dirname(__FILE__) . '/wp-load.php'); | |
$name = ($_POST['name']) ? $_POST['name'] : ''; | |
$email = ($_POST['email'] && is_email( $_POST['email'] )) ? $_POST['email'] : ''; |
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 | |
/* | |
* Тут мы будем обрабатывать ошибки и выводить соответствующие сообщения | |
*/ | |
if( isset( $_GET['msg'] ) ) { | |
// в случае успеха | |
if( $_GET['msg'] == 'success' ) | |
echo '<span>Сообщение успешно отправлено</span>'; |
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
<!-- Podcast links --> | |
<?php | |
$apple_podcast = get_field('apple_podcast'); | |
$google_podcast = get_field('google_podcast'); | |
$spotify = get_field('spotify'); | |
$acast = get_field('acast'); | |
$overcast = get_field('overcast'); | |
if ( $apple_podcast == true || $google_podcast == true || $spotify == true || $acast == true || $overcast == true) { ?> | |
<ul class="podcast-links"> |
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
<!-- Podcast links --> | |
<?php | |
$apple_podcast = get_field('apple_podcast'); | |
$google_podcast = get_field('google_podcast'); | |
$spotify = get_field('spotify'); | |
$acast = get_field('acast'); | |
$overcast = get_field('overcast'); | |
if ( $apple_podcast == true || $google_podcast == true || $spotify == true || $acast == true || $overcast == true) { ?> | |
<ul class="podcast-links"> |
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
$('.sub-menu').hide (); | |
$('.mainmenu li').hover ( | |
function () { | |
$(this).addClass('active'); | |
$('ul:first', this).fadeIn (); | |
}, | |
function () { | |
$(this).removeClass('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
ERROR - 2017-10-04 22:38:21 --> Severity: Notice --> Undefined index: country /var/www/bookiefree.com/www/application/models/users_data.php 784 | |
ERROR - 2017-10-04 22:38:21 --> Severity: Notice --> Undefined index: russian /var/www/bookiefree.com/www/application/models/users_data.php 785 | |
ERROR - 2017-10-04 22:38:21 --> Severity: Warning --> Cannot use a scalar value as an array /var/www/bookiefree.com/www/application/models/users_data.php 782 |
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 ajax() { | |
var msg = $(".register").serialize(); | |
$.ajax({ | |
type: "POST", | |
url: "./mail.php", | |
data: msg, | |
success: function(data) { | |
$('#results').html(data); | |
console.log('форма отправлена'); | |
}, |
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
.table { | |
width: 100%; | |
max-width: 100%; | |
margin-bottom: 1rem; | |
} | |
.table th, | |
.table td { | |
padding: 0.75rem; | |
vertical-align: top; |