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
add_action('fluent_community/portal_head', function () { | |
wp_enqueue_script( | |
'my-ext-on-portal', | |
'https://cdn.example.com/sdk.min.js', | |
[], | |
null, | |
false | |
); |
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 FORM_ID = 47; //Your Form ID | |
function q(form, sel) { return form.querySelector(sel); } | |
function qa(form, sel) { return form.querySelectorAll(sel); } | |
function getErrorStack(form) { | |
return q(form, '#fluentform_' + FORM_ID + '_errors'); | |
} |
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
/*! | |
* jQuery Rowspanizer Plugin (Modified) v0.2 | |
* https://github.com/marcosesperon/jquery.rowspanizer.js | |
* | |
* Copyright 2011, 2015 Marcos Esperón | |
* Released under the MIT license | |
* | |
* https://github.com/jquery-boilerplate/boilerplate/ | |
*/ | |
;( function( $, window, document, undefined ) { |
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
add_action('fluent_community/portal_head', function() { | |
?> | |
<style> | |
.highlighted-day { | |
background-color: yellow !important; | |
color: blue !important; | |
padding: 2px 4px; | |
border-radius: 3px; | |
font-weight: bold; | |
} |
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 allow_svg_uploads($mimes) { | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} | |
add_filter('upload_mimes', 'allow_svg_uploads'); | |
add_filter('fluent_community/support_attachment_types', function($types) { | |
$types[] = 'image/svg+xml'; | |
return $types; | |
}); |
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
add_filter( 'fluent_community/portal_vars', function( $vars ) { | |
if ( isset( $vars['features'] ) ) { | |
$vars['features']['has_survey_poll'] = false; | |
} | |
return $vars; | |
}, 20 ); |
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
$(document).ready(function () { | |
var timeDropdown = $('.evening'); | |
var calendarInput = $(".datee"); | |
var fp = flatpickr(calendarInput[0], { | |
enableTime: true, | |
dateFormat: "Y-m-d H:i", | |
minDate: "today", | |
time_24hr: true, | |
onChange: function(selectedDates, dateStr, instance) { |
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() { | |
// Wait for the page and all forms to load (especially if loaded via AJAX) | |
function ready(fn) { | |
if (document.readyState != 'loading'){ | |
fn(); | |
} else { | |
document.addEventListener('DOMContentLoaded', fn); | |
} | |
} |
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 runAll(){ | |
$('.footable tbody tr').click( function() { | |
}).hover( function() { | |
$(this).toggleClass('hover'); | |
$(this).css('cursor', 'pointer'); | |
}); | |
$(document).on('click', '.footable tbody tr', function(e){ | |
e.preventDefault(); | |
var url = $(this).find('a').attr('href'); | |
window.open(url, '_blank'); |
NewerOlder