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 $video_id = 'the video id'; ?> | |
<div id="wistia_<?= $video_id; ?>" class="wistia_embed_api wistia_async_<?= $video_id; ?> popover=false wistia_embed_wrapper" data-video="<?= $video_id; ?>"></div> |
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
<div id="bl-toc-container" class="bl-toc-transparent"> | |
<div class="bl-toc-title-container"> | |
<p class="bl-toc-title">Contents</p> | |
</div> | |
</div> |
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 parentWidth(elem) { | |
return elem.parentElement.clientWidth; | |
} | |
var xhr = new XMLHttpRequest(); | |
var baseUrl = "https://fast.wistia.com/oembed/?url="; | |
var accountUrl = encodeURIComponent("https://home.wistia.com/medias/"); | |
var wistiaId = document.querySelector('.wistia_embed').getAttribute('data-wistia-id'); | |
console.log("aaa"); | |
var image_size = parentWidth(document.querySelector(".embed-responsive"));//value in px | |
console.log(image_size); |
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
<script> | |
(function () { | |
function ZendeskCustomWidget() { | |
this.element = document.getElementById('zendesk-widget-custom'); | |
this.options = localStorage['ZD-store'] ? JSON.parse(localStorage['ZD-store']) : { | |
widgetShown: false, | |
is_chatting: false | |
}; |
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 a load of padding and margin classes | |
@for $i from 1 through 20 { | |
.mt-#{$i} { | |
margin-top:#{$i}rem!important; | |
} | |
.mb-#{$i} { | |
margin-bottom:#{$i}rem!important; |
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
Acholi | |
Afrikaans | |
Akan | |
Albanian | |
Amharic | |
Arabic | |
Ashante | |
Asl | |
Assyrian | |
Azerbaijani |
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
public function wp_connection() | |
{ | |
$curl = curl_init(); | |
curl_setopt_array($curl, | |
[ | |
CURLOPT_URL => "https://www.host.com/wp-json/acf/v3/product", | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_ENCODING => "", | |
CURLOPT_MAXREDIRS => 10, |
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
server { | |
listen 80; | |
listen 443 ssl http2; | |
server_name .test.test; | |
root "/home/vagrant/code/test"; | |
index index.php index.html index.htm; | |
charset utf-8; |
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 ash_which_template_is_loaded() { | |
if ( is_super_admin() ) { | |
global $template; | |
print_r( $template ); | |
} | |
} | |
add_action( 'wp_footer', 'ash_which_template_is_loaded' ); |
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
define('SAVEQUERIES', true); | |
if (current_user_can('administrator')){ | |
global $wpdb; | |
echo "<pre>"; | |
print_r($wpdb->queries); | |
echo "</pre>"; | |
} |
NewerOlder