Angelescity Directory
Type your search query and hit enter:
New Place
General
Hightlights
Menu
Location
Contact info
Additional Fields
Social networks
Opening hours
Media
FAQs
Add new place
Location
City / Town*
Create New City
Time Zone
Place Address*
Set Location on Map
Unlock Pin Location
Lock Pin 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
Maximum file size: 1000kb.
Gallery Images (optional)
Drag and drop file here
or
Select Images
Maximum file size: 1000kb.
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://angeles.directory/wp-admin/admin-ajax.php', dataType: 'json', data: { 'action': 'remove_place_img_ajax', 'place_id': place_id, 'attachment_id': attachment_id, 'type': $type, 'removeNonce': '12f0e74b7c' }, 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://angeles.directory/wp-admin/admin-ajax.php?action=golo_place_img_upload_ajax&nonce=12f0e74b7c", 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) { 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);
FAQs
Question
Answer
Add more
Login to Submit
Social networks
Facebook
Instagram
Twitter