#
if( data === undefined )
data = {};
var output = '',
contact_form = '',
map_location = '',
map_height = '250px',
contact_position = 'left',
element_attributes = [], map_attributes = [],
atts = ( data.atts !== undefined ) ? data.atts : {};
var css_classes = [];
css_classes = kc.front.el_class( atts );
css_classes.push( 'kc_google_maps' );
css_classes.push( 'kc_shortcode' );
if( atts['contact_position'] !== undefined && atts['contact_area_position'] != '' )
contact_position = atts['contact_area_position'];
if( atts['wrap_class'] !== undefined && atts['wrap_class'] !== '' )
css_classes.push( atts['wrap_class'] );
element_attributes.push( 'class="'+ css_classes.join(' ') +'"' );
if( atts['title'] !== undefined && atts['title'] !== '' ){
output += '
'+ atts['title'] +'
';
}
//Contact form on maps
if( atts['show_ocf'] !== undefined && 'yes' == atts['show_ocf'] ){
if( atts['contact_form_sc'] !== undefined && atts['contact_form_sc'] != '' ){
contact_form += '';
contact_form += '';
}
}
map_attributes.push( 'class="kc-google-maps"' );
map_attributes.push( 'style="height: '+ parseInt(atts['map_height']) +'px"' );
if( atts['disable_wheel_mouse'] !== undefined && atts['disable_wheel_mouse'] != '' ){
map_attributes.push( 'data-wheel="disable"' );
}
map_location = 'For best perfomance, the map has been disabled in this editing mode.
';
output += ''+ contact_form +'
'+ map_location +'
';
#>
{{{contact_form}}}
{{{map_location}}}
<#
data.callback = function( wrp, $ ){
kc_front.google_maps( wrp.parent() );
}
#>
document.addEventListener( 'DOMContentLoaded', function() {
// Prevent aggressive iframe caching in Firefox
var statsIframe = document.getElementById( 'stats-iframe' );
if ( statsIframe ) {
statsIframe.contentWindow.location.href = statsIframe.src;
}
initCompatiblePluginsShowMoreToggle();
} );
function initCompatiblePluginsShowMoreToggle() {
const section = document.querySelector( '.akismet-compatible-plugins' );
const list = document.querySelector( '.akismet-compatible-plugins__list' );
const button = document.querySelector( '.akismet-compatible-plugins__show-more' );
if ( ! section || ! list || ! button ) {
return;
}
function isElementInViewport( element ) {
const rect = element.getBoundingClientRect();
return rect.top >= 0 && rect.bottom <= window.innerHeight;
}
function toggleCards() {
list.classList.toggle( 'is-expanded' );
const isExpanded = list.classList.contains( 'is-expanded' );
button.textContent = isExpanded ? button.dataset.labelOpen : button.dataset.labelClosed;
button.setAttribute( 'aria-expanded', isExpanded.toString() );
if ( ! isExpanded && ! isElementInViewport( section ) ) {
section.scrollIntoView( { block: 'start' } );
}
}
button.addEventListener( 'click', toggleCards );
}
URI.AllowedSchemes
TYPE: lookup
--DEFAULT--
array (
'http' => true,
'https' => true,
'mailto' => true,
'ftp' => true,
'nntp' => true,
'news' => true,
'tel' => true,
)
--DESCRIPTION--
Whitelist that defines the schemes that a URI is allowed to have. This
prevents XSS attacks from using pseudo-schemes like javascript or mocha.
There is also support for the data
and file
URI schemes, but they are not enabled by default.
--# vim: et sw=4 sts=4
Las-Vegas-Premium-Outlets – DarkOct02