Skip to content

Instantly share code, notes, and snippets.

<?php
$related_posts = extra_get_post_related_posts();
if ( $related_posts && extra_is_post_related_posts() ) { ?>
<div class="et_extra_other_module related-posts">
<div class="related-posts-header">
<h3><?php esc_html_e( 'Related Posts', 'extra' ); ?></h3>
</div>
<div class="related-posts-content clearfix">
<?php while ( $related_posts->have_posts() ) : $related_posts->the_post(); ?>
<script type="text/javascript">
var maxHeight = 0;
jQuery("li.product").each(function(){
if (jQuery(this).height() > maxHeight) { maxHeight = jQuery(this).height(); }
});
jQuery("li.product").height(maxHeight);
</script>
<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us13.list-manage.com","uuid":"d29a64dd18a06b1933064ae02","lid":"12f278995d"}) })</script>
<?php
// Prevent file from being loaded directly
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
define( 'EXTRA_HOME_LAYOUT_META_KEY', '_extra_layout_home' );
define( 'EXTRA_DEFAULT_LAYOUT_META_KEY', '_extra_layout_default' );
function extra_et_builder_post_types( $post_types ){
<script>
jQuery(function() {
jQuery( "#field2" ).datepicker({
dateFormat: "DD, MM d, yy",
numberOfMonths: 2,
showButtonPanel: true
});
});
</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
<script>
$(function() {
$( "#field2" ).datepicker({
dateFormat: "DD, MM d, yy",
numberOfMonths: 2,
showButtonPanel: true
});
});
<script>
(function($) {
$(document).ready(function() {
$('.et_pb_section_video_bg').each(function() {
$(this).find('video').prop('loop', false);
});
});
})(jQuery);
</script>
<?php
class ET_Builder_Module_Contact_Form extends ET_Builder_Module {
function init() {
$this->name = esc_html__( 'Contact Form', 'et_builder' );
$this->slug = 'et_pb_contact_form';
$this->fb_support = true;
$this->child_slug = 'et_pb_contact_field';
$this->child_item_text = esc_html__( 'Field', 'et_builder' );
gzip_types font/ttf font/opentype application/vnd.ms-fontobject image/svg+xml text/plain text/css image/png image/gif image/jpeg text/xml application/xml application/x-javascript application/x ml+rss text/javascript;
et_bloom_popup.et_bloom_optin.et_bloom_optin_16.et_bloom_auto_popup .et_bloom_form_container { background: url("http://thoughtacademy.com/wp-content/uploads/2018/01/model-1525629.jpg"); background-color: transparent; background-repeat: no-repeat; background-size: 860px; max-width: 800px; background-position: top center; } /* background transparency for header and content area */