Add new place

General

Place Name*

Price

Description

Category*

Place type*

Hightlights

Location

Place Location at Google Map

Contact info

Email

Phone number (optional)

Website (optional)

Social networks

Facebook

Instagram

Opening hours

Media

Featured image

Gallery Images (optional)

Video (optional)

' + ''; $('#golo_place_featured_image_view').html($html); golo_place_gallery_event('thumb'); $('#featured_image_url-error').hide(); } }); }; featured_image(); // Place Thumbnails var golo_place_gallery_event = function ($type) { $('body').on('click', '.icon-delete', function (e) { e.preventDefault(); var $this = $(this), icon_delete = $this, thumbnail = $this.closest('.media-thumb-wrap'), place_id = $this.data('place-id'), attachment_id = $this.data('attachment-id'); icon_delete.html(''); $.ajax({ type: 'post', url: 'https://destinali.com/wp-admin/admin-ajax.php', dataType: 'json', data: { 'action': 'remove_place_img_ajax', 'place_id': place_id, 'attachment_id': attachment_id, 'type': $type, 'removeNonce': '9e9746eaf8' }, success: function (response) { if (response.success) { thumbnail.remove(); thumbnail.hide(); $('#featured_image_url-error').show(); } icon_delete.html(''); }, error: function () { icon_delete.html(''); } }); }); } golo_place_gallery_event('gallery'); // Place Gallery images var golo_place_gallery_images = function () { $("#place_gallery_thumbs_container").sortable(); /* initialize uploader */ var uploader = new plupload.Uploader({ browse_button: 'golo_select_gallery_images', file_data_name: 'place_upload_file', container: 'golo_gallery_plupload_container', drop_element: 'golo_gallery_plupload_container', multi_selection: true, url: "https://destinali.com/wp-admin/admin-ajax.php?action=golo_place_img_upload_ajax&nonce=9e9746eaf8", filters: { mime_types: [ {title: 'Valid file formats', extensions: "jpg,jpeg,gif,png"} ], max_file_size: '2000kb', prevent_duplicates: true } }); uploader.init(); uploader.bind('FilesAdded', function (up, files) { var placeThumb = ""; var maxfiles = '10'; if (up.files.length > maxfiles) { up.splice(maxfiles); alert('no more than ' + maxfiles + ' file(s)'); return; } plupload.each(files, function (file) { placeThumb += '
'; }); document.getElementById('place_gallery_thumbs_container').innerHTML += placeThumb; up.refresh(); uploader.start(); }); uploader.bind('UploadProgress', function (up, file) { document.getElementById("holder-" + file.id).innerHTML = ''; }); uploader.bind('Error', function (up, err) { document.getElementById('golo_gallery_errors_log').innerHTML += "Error: " + err.message + "
"; }); uploader.bind('FileUploaded', function (up, file, ajax_response) { var response = $.parseJSON(ajax_response.response); if (response.success) { var $html = '
' + '' + '
' + '' + '' + '' + '
' + '
'; document.getElementById("holder-" + file.id).innerHTML = $html; golo_place_gallery_event('gallery'); } }); }; golo_place_gallery_images(); }); })(jQuery);

Booking Type ?

Booking URL

Booking Site

Image

Maximum file size: 1 MB.

Banner URL

Booking Form

' + ''; $('#golo_place_booking_image_view').html($html); $('#booking_image_url-error').hide(); } }); }; booking_image(); }); })(jQuery);