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
| public static function anaCreateImgFromText( $string, $image_random_name = 'tmp_name' ){ | |
| // set charset | |
| mb_internal_encoding("UTF-8"); | |
| $content = ""; | |
| $font = get_stylesheet_directory() . "/assets/fonts/Lato/regular.ttf"; | |
| // text width | |
| $width = 540; | |
| //font size | |
| $size = 16; |
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
| User-agent: * # общие правила для роботов всех поисковых систем | |
| Disallow: /cgi-bin # служебная папка для хранения серверных скриптов | |
| Disallow: /? # все параметры запроса на главной | |
| Disallow: /wp- # все файлы WP: /wp-json/, /wp-includes, /wp-content/plugins | |
| Disallow: /wp/ # если есть подкаталог /wp/, где установлена CMS (если нет, | |
| # правило можно удалить) | |
| Disallow: *?s= # поиск по сайту | |
| Disallow: *&s= # поиск по сайту | |
| Disallow: /search/ # поиск по сайту | |
| Disallow: /author/ # архив автора |
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
| $(window).scroll(function(){ | |
| var wt = $(window).scrollTop(); | |
| var wh = $(window).height(); | |
| var et = $('элемент').offset().top; | |
| var eh = $('элемент').outerHeight(); | |
| var dh = $(document).height(); | |
| if (wt + wh >= et || wh + wt == dh || eh + et < wh){ | |
| console.log('Элемент показан'); | |
| } | |
| }); |
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 request = new XMLHttpRequest(); | |
| request.open('GET', api_url + '/images?matchingId=' + apartment_id, false); | |
| request.send(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
| <div class="faq__items"> | |
| <div class="faq__item"> | |
| <input type="checkbox" id="chck1" name="chck"> | |
| <label class="faq__item-label" for="chck1"> | |
| Who do I contact if something needs to be fixed or replaced in my unit? | |
| </label> | |
| <div class="faq__item-content"> | |
| Please check with the concierge if your apartment is still available and we’ll be glad to arrange your extended stay. If not, you might need to move to a new unit. For bookings via Airbnb: you’ll have to request a new reservation before your original check-out time. For security reasons, your smart lock code might change due to the extended stay. If this is the case, we’ll send you the new code via email. | |
| </div> | |
| </div> |
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
| <a href="tel:+'. preg_replace("/[^0-9]/", "", $phone) .'">'. $phone .'</a> |
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
| public static function SendEmails(){ | |
| $message = 'User tried to log in with phone number: ' . 000 . '<br/>'; | |
| $headers = array( | |
| 'From: No-Reply <no-reply@' . $_SERVER['HTTP_HOST'] . '>', | |
| 'content-type: text/html' | |
| ); | |
| wp_mail('your_mail@gmail.com', 'Mail subject text here', $message, $headers); | |
| } |
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
| # ignore everything in the root except the "wp-content" directory. | |
| /* | |
| !wp-content/ | |
| # ignore everything in the "wp-content" directory, except: | |
| # mu-plugins, plugins, and themes directories | |
| wp-content/* | |
| !wp-content/mu-plugins/ | |
| !wp-content/plugins/ | |
| !wp-content/themes/ |
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
| :empty:not(img):not(input) { | |
| visibility: hidden; | |
| opacity: .5; | |
| outline: 4px solid #4ce00e; | |
| } |
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 () { | |
| //блок для анимирования | |
| var anim_txt = document.querySelector('.sk_anim_text span.big-block'); | |
| var observer = new IntersectionObserver(entries => { | |
| entries.forEach(entry => { | |
| //перебор | |
| if (typeof getCurrentAnimationPreference === 'function' && !getCurrentAnimationPreference()) { | |
| return; |