D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
oems
/
wp-content
/
plugins
/
nimble-builder
/
tmpl
/
modules
/
Filename :
map_module_tmpl.php
back
Copy
<?php /* Developers : you can override this template from a theme with a file that has this path : 'nimble_templates/modules/{original-module-template-file-name}.php' */ namespace Nimble; if ( !defined( 'ABSPATH' ) ) { exit; } $model = Nimble_Manager()->model; $value = array_key_exists( 'value', $model ) ? $model['value'] : array(); if ( empty( $value['address'] ) ) { return; } if ( 0 === absint( $value['zoom'] ) ) { $value['zoom'] = 10; } printf( '<div class="sek-embed"><iframe style="border:none;overflow:hidden" marginheight="0" marginwidth="0" %s="https://maps.google.com/maps?q=%s&t=m&z=%d&output=embed&iwloc=near" aria-label="%s"></iframe></div>', ( !skp_is_customizing() && true === sek_booleanize_checkbox_val( $value['lazyload'] ) ) ? 'data-sek-iframe-src' : 'src', rawurlencode( $value['address'] ), absint( $value['zoom'] ), esc_attr( $value['address'] ) );