function mwidget_map($zoom = 9, $cat_id = null) { global $content; global $coords; if (MValidate::coord($coords['lat']) && MValidate::coord($coords['lng'])) { ?> <div id="mmap" style="width: 100%; height: 100%;"></div> <script> var mmap = new MMap(); mmap.set_lat( <?php MPut::_numeric($coords['lat']); ?> ); mmap.set_lng( <?php MPut::_numeric($coords['lng']); ?> ); mmap.set_zoom( <?php MPut::_numeric($zoom); ?> ); mmap.create_map( 'mmap' ); <?php if ($content) { ?> mmap.create_marker(); <?php } ?> mmap.address_search(); var mmap_control = new MMapControl( mmap ); <?php if ($cat_id) { echo 'mmap_control.auto_on( ' . intval($cat_id) . ' );'; } ?> </script> <div id="mmap_modal" class="modal fade"> <div class="modal-dialog"> <div class="modal-content">
<div class="form-group"> <div id="mmap" style="height: 450px; width: 100%;"></div> </div> <script type="text/javascript"> <?php global $coords; ?> var mmap = new MMap(); mmap.set_lat( <?php MPut::_numeric($coords['lat']); ?> ); mmap.set_lng( <?php MPut::_numeric($coords['lng']); ?> ); mmap.create_map( 'mmap' ); mmap.create_marker( true ); mmap.update_inputs(); mmap.address_search(); </script> </div> <div class="col-xs-12 col-sm-12 col-md-4 col-lg-3"> <br /> <ul class="nav nav-pills"> <li><a href="#post" data-toggle="tab">Post</a></li>
<div class="panel-body"> <input type="checkbox" name="category_enabled" id="category_enabled" <?php if (1 == $data->enabled) { echo 'checked="checked"'; } ?> value="1" /> <label>Enabled</label> </div> </div> </div> </div> </div> </div> <div class="btn-group"> <button type="button" class="btn btn-default" onclick="location.href='index.php?module=mcategory&task=category_delete&object=<?php MPut::_numeric($data->id); ?> ';">Delete</button> <button type="submit" class="btn btn-primary" name="category_save">Save</button> </div> <input type="hidden" name="mapi_csrf" id="mapi_csrf" value="<?php MPut::_html_attr(mapi_csrf_value()); ?> " /> </form>
?> <?php MMessaging::show(); ?> <form method="post"> <div class="alert alert-info">Are you sure you want to delete this menu?<br /> <div class="btn-group"> <button type="submit" class="btn btn-danger" name="menu_delete">Yes, delete it</button> <?php if ($data->get_id()) { ?> <button type="button" class="btn btn-default" onclick="location.href='index.php?module=mmenu&task=menu_edit&object=<?php MPut::_numeric($data->get_id()); ?> ';">Cancel</button> <?php } else { ?> <button type="button" class="btn btn-default" onclick="location.href='index.php?module=mmenu&task=menu_list';">Cancel</button> <?php } ?> </div> </div> <input type="hidden" name="mapi_csrf" id="mapi_csrf" value="<?php MPut::_html_attr(mapi_csrf_value()); ?>
static function content_location($content) { ?> <div class="content-location"> <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> <span itemprop="streetAddress"><?php MPut::_text($content->get_address()); ?> </span> </div> <span itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates"> <meta itemprop="latitude" content="<?php MPut::_numeric($content->get_lat()); ?> " /> <meta itemprop="longitude" content="<?php MPut::_numeric($content->get_lng()); ?> " /> </span> </div> <?php }
" /> <?php if (isset($record['lat'])) { ?> <input type="hidden" name="content_lat" value="<?php MPut::_html_attr(MPut::_numeric($record['lat'])); ?> " /> <?php } ?> <?php if (isset($record['lng'])) { ?> <input type="hidden" name="content_lng" value="<?php MPut::_html_attr(MPut::_numeric($record['lng'])); ?> " /> <?php } ?> <?php } ?> <br /> <small> <?php if (isset($record['start_time'])) { ?> <?php
?> <?php if ($group->id == $data['new_user_default_group']) { ?> <option value="<?php MPut::_numeric($group->id); ?> " selected="selected"><?php MPut::_html($group->title); ?> </option> <?php } else { ?> <option value="<?php MPut::_numeric($group->id); ?> "><?php MPut::_html($group->title); ?> </option> <?php } ?> <?php } ?> </select> </div> </div>