예제 #1
0
?>
    </label>

    <select id="<?php 
echo esc_attr($this->get_field_id('style'));
?>
" name="<?php 
echo esc_attr($this->get_field_name('style'));
?>
">
        <option value=""><?php 
echo __('Default', 'realia');
?>
</option>
        <?php 
$maps = Realia_Google_Maps_Styles::styles();
?>
        <?php 
if (is_array($maps)) {
    ?>
            <?php 
    foreach ($maps as $map) {
        ?>
                <option <?php 
        if ($style == $map['slug']) {
            ?>
selected="selected"<?php 
        }
        ?>
value="<?php 
        echo esc_attr($map['slug']);
예제 #2
0
?>
/assets/img/transparent-marker-image.png"
         data-latitude="<?php 
echo esc_attr($instance['latitude']);
?>
" 
         data-longitude="<?php 
echo esc_attr($instance['longitude']);
?>
"
         data-zoom="<?php 
echo esc_attr($instance['zoom']);
?>
"      
         data-styles='<?php 
echo Realia_Google_Maps_Styles::get_style($style_slug);
?>
'>
    </div>

	<?php 
if (is_active_sidebar('property-map')) {
    ?>
		<div class="property-map-widget-area">
			<div class="container">
				<div class="row">
					<div class="col-sm-4 col-sm-offset-8 col-md-3 col-md-offset-9">
						<div class="property-map-widget-area-inner">
							<?php 
    dynamic_sidebar('property-map');
    ?>