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
<video class="rellax" id="vid" poster="/wp-content/themes/letda/assets/images/video-poster2.jpg" | |
playsinline="playsinline" | |
autoplay="autoplay" | |
preload="auto" | |
loop="loop" | |
muted="muted" | |
onloadstart="this.volume=0" | |
"defaultMuted"> | |
<source src="/wp-content/themes/letda/assets/videos/<?= $atts['video_name']; ?>.mp4" type="video/mp4"> | |
</video> |
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
/// Сторінка налаштувань | |
// create custom plugin settings menu | |
add_action('admin_menu', 'baw_create_menu'); | |
function baw_create_menu() | |
{ | |
//create new top-level menu | |
add_menu_page('Global Settings', 'Theme Settings', 'administrator', FILE, 'baw_settings_page', 'dashicons-admin-generic'); | |
//call register settings function |
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
$(document).on('click', '.element-class', function() { | |
window.dispatchEvent(new Event('resize')); | |
}); |
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
#rc-imageselect, .g-recaptcha { | |
transform: scale(0.77); | |
-webkit-transform: scale(0.77); | |
transform-origin: 0 0; | |
-webkit-transform-origin: 0 0; | |
} |
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
/* | |
jQuery Masked Input Plugin | |
Copyright (c) 2007 - 2015 Josh Bush (digitalbush.com) | |
Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) | |
Version: 1.4.1 | |
change by author plugin contact form 7 mask field | |
*/ | |
!function(factory) { | |
"function" == typeof define && define.amd ? define([ "jquery" ], factory) : factory("object" == typeof exports ? require("jquery") : jQuery); |
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 | |
$servername = "localhost"; | |
$username = "root"; | |
$password = "root"; | |
$dbname = "bsmu"; | |
// Create connection | |
$conn = new mysqli($servername, $username, $password, $dbname); | |
// Check connection |
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
$.fn.equivalent = function (){ | |
//запишем значение jQuery выборки к которой будет применена эта функция в локальную переменную $blocks | |
var $blocks = $(this), | |
//примем за максимальную высоту - высоту первого блока в выборке и запишем ее в переменную maxH | |
maxH = $blocks.eq(0).height(); | |
//делаем сравнение высоты каждого блока с максимальной | |
$blocks.each(function(){ | |
maxH = ( $(this).height() > maxH ) ? $(this).height() : maxH; | |
/* |
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
//Перехід по якорям | |
$('a[href^="#"]').click(function(){ | |
//Сохраняем значение атрибута href в переменной: | |
var target = $(this).attr('href'); | |
$('html, body').animate({scrollTop: $(target).offset().top}, 800); | |
return false; | |
}); | |
//Перехід по якорям при переході на сторінку | |
if (window.location.hash) { |
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
'lang' => pll_current_language() | |
$args = array( | |
'numberposts' => 3, | |
'category_name' => 'events', | |
'lang' => pll_current_language() | |
); |
NewerOlder