Add new place

General

Place Name*

Price

Description

Category*

Place type*

Highlights

' + ''; wrap.find('.golo_menu_menu_image_view').html($html); golo_place_gallery_event('thumb'); $('#menu_image_url-error').hide(); } $( '.add-menu' ).removeClass( 'disabled' ); }); }); } add_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://www.tripbard.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': '9fb227dfab' }, success: function (response) { if (response.success) { thumbnail.remove(); thumbnail.hide(); $('#featured_image_url-error').show(); } icon_delete.html(''); }, error: function () { icon_delete.html(''); } }); }); } $( '.add-menu' ).on( 'click', function(e) { e.preventDefault(); $( '.errors-log' ).text( '' ); $( '.add-menu' ).addClass( 'disabled' ); var clone = $( '.field-menu-clone' ).html(); $( '.add-menu-list' ).append(clone); $( '.clone-wrap' ).each( function(index) { index += 1; var _this = $( this ); var button_id = _this.find( '.golo-add-image' ).attr( 'id' ); $( this ).find( '.golo-add-image' ).attr( 'id', button_id + index ); }); $( '.add-menu-list .clone-wrap' ).last().find('.golo_menu_menu_image_view').empty(); add_image(); }); const targetNode = document.querySelector('.add-menu-list'); const config = { childList: true, subtree: true }; const callback = function(mutationsList, observer) { $('.remove-menu').off('click').on('click', function (e){ e.preventDefault(); console.log('remove'); $(this).closest('.clone-wrap').remove(); }); }; const observer = new MutationObserver(callback); observer.observe(targetNode, config); }); })(jQuery);

Location

Contact info

Email

Phone number 1 (optional)

Phone number 2 (optional)

Website (optional)

Additional fields

Social networks

Facebook

Instagram

Twitter

Opening hours

Media

Featured image

Gallery Images (optional)

Video (optional)

' + ''; console.log($html); $('#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://www.tripbard.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': '9fb227dfab' }, 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://www.tripbard.com/wp-admin/admin-ajax.php?action=golo_place_img_upload_ajax&nonce=9fb227dfab", filters: { mime_types: [ {title: 'Valid file formats', extensions: "jpg,jpeg,gif,png"} ], max_file_size: '1000kb', prevent_duplicates: true } }); uploader.init(); uploader.bind('FilesAdded', function (up, files) { var placeThumb = ""; var maxfiles = '5'; 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) { window.handleMediaImageUploadError('golo_gallery_errors_log', err.code, 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);

FAQs

Question

Answer

Add more

Coupon

Coupon Name

Discount Type

Choose discount type for this coupon.

Discount Value

Enter percent value (e.g. 10 for 10%)