first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?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'] )
|
||||
);
|
||||
Reference in New Issue
Block a user