{"id":11898,"date":"2025-06-25T09:16:28","date_gmt":"2025-06-25T09:16:28","guid":{"rendered":"https:\/\/woneglobal.org\/nomineess\/"},"modified":"2025-06-25T09:16:28","modified_gmt":"2025-06-25T09:16:28","slug":"nomineess","status":"publish","type":"page","link":"https:\/\/woneglobal.org\/awards\/nomineess\/","title":{"rendered":"Nominees"},"content":{"rendered":"\t\t<!-- Bootstrap CSS -->\n\t\t<link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.3.0\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\">\n\t\t<!-- Font Awesome -->\n\t\t<link href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/6.4.0\/css\/all.min.css\" rel=\"stylesheet\">\n\t\t<style>\n\t\t\t.nominee-card {\n\t\t\t\ttransition: transform 0.3s ease, box-shadow 0.3s ease;\n\t\t\t\theight: 100%;\n\t\t\t\tborder-radius:0px !important;\n\t\t\t}\n\t\t\t.nominee-card:hover {\n\t\t\t\ttransform: translateY(-5px);\n\t\t\t\tbox-shadow: 0 10px 20px rgba(0,0,0,0.1);\n\t\t\t}\n\t\t\t.form-select{\n\t\t\t\tborder-radius:0px !important;\n\t\t\t}\n\t\t\t.form-control{\n\t\t\t\tborder-radius:0px !important;\n\t\t\t}\n\t\t\t.card-img-container {\n\t\t\t\tposition: relative;\n\t\t\t\theight: 180px;\n\t\t\t\toverflow: hidden;\n\t\t\t\tbackground-color: #f8f9fa;\n\t\t\t}\n\t\t\t.card-img-slideshow {\n\t\t\t\tposition: relative;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t\t.card-img-slide {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\topacity: 0;\n\t\t\t\ttransition: opacity 1s ease-in-out, transform 0.5s ease;\n\t\t\t\tobject-fit: cover;\n\t\t\t}\n\t\t\t.card-img-slide.active {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t\t.nominee-card:hover .card-img-slide {\n\t\t\t\ttransform: scale(1.05);\n\t\t\t}\n\t\t\t.wone-button-back {\n\t\t\t\ttext-decoration: none !important;\n\t\t\t\tbackground-color: #FF7A00;\n\t\t\t\tcolor: white;\n\t\t\t\tdisplay: inline-block; \/* button jaisa look dene ke liye *\/\n\t\t\t\tpadding: 10px 20px;\n\t\t\t\tborder-radius: 4px;\n\t\t\t}\n\n\t\t\t.wone-button-back:hover {\n\t\t\t\ttext-decoration: none !important;\n\t\t\t\tbackground-color: #e56c00; \/* thoda darker hover effect *\/\n\t\t\t\tcolor: white;\n\t\t\t}\n\n\t\t\t\/* .slideshow-nav {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tbottom: 0;\n\t\t\t\twidth: 40px;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\tcolor: white;\n\t\t\t\tbackground-color: rgba(0, 0, 0, 0.3);\n\t\t\t\tcursor: pointer;\n\t\t\t\tz-index: 3;\n\t\t\t\topacity: 0;\n\t\t\t\ttransition: opacity 0.3s ease;\n\t\t\t}\n\t\t\t.slideshow-nav:hover {\n\t\t\t\tbackground-color: rgba(0, 0, 0, 0.5);\n\t\t\t}\n\t\t\t.slideshow-nav.prev {\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t\t.slideshow-nav.next {\n\t\t\t\tright: 0;\n\t\t\t} *\/\n\t\t\t.card-img-container:hover .slideshow-nav {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t\t.slideshow-dots {\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: 10px;\n\t\t\t\tleft: 0;\n\t\t\t\tright: 0;\n\t\t\t\tdisplay: flex;\n\t\t\t\tjustify-content: center;\n\t\t\t\tgap: 5px;\n\t\t\t\tz-index: 2;\n\t\t\t}\n\t\t\t.slideshow-dot {\n\t\t\t\twidth: 8px;\n\t\t\t\theight: 8px;\n\t\t\t\n\t\t\t\tbackground-color: rgba(255, 255, 255, 0.5);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttransition: background-color 0.3s ease;\n\t\t\t}\n\t\t\t.slideshow-dot.active {\n\t\t\t\tbackground-color: rgba(255, 255, 255, 0.9);\n\t\t\t}\n\t\t\t.card-title {\n\t\t\t\tcolor: #000 !important;\n\t\t\t\tfont-weight: 600;\n\t\t\t}\n\t\t\t.rating-stars {\n\t\t\t\tcolor: #ffc107;\n\t\t\t\tfont-size: 0.9rem;\n\t\t\t}\n\t\t\t.favorite-toggle {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 10px;\n\t\t\t\tright: 10px;\n\t\t\t\tz-index: 1;\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t.badge-featured {\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 10px;\n\t\t\t\tleft: 10px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\t\t\t.award-category {\n\t\t\t\tborder-radius:0px !important;\n\t\t\t\tfont-size: 0.8rem;\n\t\t\t\tcolor: #6c757d;\n\t\t\t\tmargin-top: -0.5rem;\n\t\t\t\tmargin-bottom: 0.5rem;\n\t\t\t}\n\t\t\t.page-item.active .page-link {\n\t\t\t\tbackground-color: #ff7700 ;\n\t\t\t\tborder-color: #ff7700 ;\n\t\t\t}\n\t\t\t.page-link {\n\t\t\t\tcolor: #ff7700 ;\n\t\t\t}\n\t\t<\/style>\n\t\t<div class=\"container py-4\">\n\t\t\t<div class=\"wone-nominee-header mb-4\">\n\t\t\t\t<div class=\"d-flex justify-content-between align-items-center mb-3\">\n\t\t\t\t\t<a href=\"https:\/\/woneglobal.org\/awards\/award-categories\/\" class=\"btn btn-outline-secondary wone-button-back\">\n\t\t\t\t\t\t<i class=\"fas fa-arrow-left me-2\"><\/i> Back to Categories\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t<h1 class=\"mb-2\">All Categories<\/h1>\n\t\t\t\t<p class=\"text-muted mb-0\"><\/p>\n\t\t\t<\/div>\n\t\t\t<div class=\"wone-nominee-filters mb-4\">\n\t\t\t\t<form id=\"wone-filter-form\" method=\"get\" action=\"\" class=\"wone-filter-form\">\n\t\t\t\t\t<input type=\"hidden\" name=\"type\" value=\"\">\n\t\t\t\t\t<div class=\"row g-3 align-items-end\">\n\t\t\t\t\t\t<div class=\"col-md-4\">\n\t\t\t\t\t\t\t<label class=\"form-label\">Country<\/label>\n\t\t\t\t\t\t\t<select name=\"country\" id=\"country\" class=\"form-select\">\n\t\t\t\t\t\t\t\t<option value=\"all\">All Countries<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"col-md-4\">\n\t\t\t\t\t\t\t<label class=\"form-label\">City<\/label>\n\t\t\t\t\t\t\t<select name=\"city\" id=\"city\" class=\"form-select\">\n\t\t\t\t\t\t\t\t<option value=\"all\">All Cities<\/option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/select>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"col-md-4\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"row mt-3\">\n\t\t\t\t\t\t<div class=\"col-md-8\">\n\t\t\t\t\t\t\t<div class=\"input-group\">\n\t\t\t\t\t\t\t\t<input type=\"text\" name=\"search\" id=\"search\" class=\"form-control\" \n\t\t\t\t\t\t\t\t\tplaceholder=\"Search by name or company\" value=\"\">\n\t\t\t\t\t\t\t\t<button type=\"button\" id=\"search-btn\" class=\"btn btn-primary wone-button\">\n\t\t\t\t\t\t\t\t\t<i class=\"fas fa-search me-2\"><\/i> Search\n\t\t\t\t\t\t\t\t<\/button>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/form>\n\t\t\t<\/div>\n\t\t\t<div id=\"nominees-container\">\n\t\t\t\t<!-- Content will be loaded via AJAX -->\n\t\t\t\t<div class=\"text-center py-5\">\n\t\t\t\t\t<div class=\"spinner-border text-primary\" role=\"status\">\n\t\t\t\t\t\t<span class=\"visually-hidden\">Loading...<\/span>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t<div id=\"nominees-pagination\" class=\"mt-4\">\n\t\t\t\t<!-- Pagination will be loaded via AJAX -->\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<!-- Bootstrap JS Bundle with Popper -->\n\t\t<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.3.0\/dist\/js\/bootstrap.bundle.min.js\"><\/script>\n\t\t<script>\n\t\tjQuery(document).ready(function($) {\n\t\t\t\/\/ Current page\n\t\t\tvar currentPage = 1;\n\t\t\t\/\/ Load initial nominees\n\t\t\tloadNominees(currentPage);\n\t\t\t\/\/ Form change events\n\t\t\t$('#country, #city').on('change', function() {\n\t\t\t\tcurrentPage = 1; \/\/ Reset to first page when filters change\n\t\t\t\tloadNominees(currentPage);\n\t\t\t});\n\t\t\t\/\/ Search button click\n\t\t\t$('#search-btn').on('click', function() {\n\t\t\t\tcurrentPage = 1; \/\/ Reset to first page when searching\n\t\t\t\tloadNominees(currentPage);\n\t\t\t});\n\t\t\t\/\/ Search input enter key\n\t\t\t$('#search').on('keypress', function(e) {\n\t\t\t\tif (e.which === 13) {\n\t\t\t\t\tcurrentPage = 1; \/\/ Reset to first page when searching\n\t\t\t\t\tloadNominees(currentPage);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\/\/ Clear filters\n\t\t\t$('#clear-filters').on('click', function() {\n\t\t\t\t$('#country, #city').val('all');\n\t\t\t\t$('#search').val('');\n\t\t\t\tcurrentPage = 1; \/\/ Reset to first page when clearing filters\n\t\t\t\tloadNominees(currentPage);\n\t\t\t});\n\t\t\t\/\/ Initialize slideshows\n\t\t\tfunction initSlideshows() {\n\t\t\t\t$('.card-img-slideshow').each(function() {\n\t\t\t\t\tconst $slideshow = $(this);\n\t\t\t\t\tconst $slides = $slideshow.find('.card-img-slide');\n\t\t\t\t\tconst $dots = $slideshow.find('.slideshow-dot');\n\t\t\t\t\tconst $prev = $slideshow.find('.slideshow-nav.prev');\n\t\t\t\t\tconst $next = $slideshow.find('.slideshow-nav.next');\n\t\t\t\t\tlet currentIndex = 0;\n\t\t\t\t\tlet interval;\n\t\t\t\t\tlet hideTimeout;\n\t\t\t\t\tif ($slides.length > 1) {\n\t\t\t\t\t\t\/\/ Auto-rotate slides every 5 seconds\n\t\t\t\t\t\tfunction startSlideshow() {\n\t\t\t\t\t\t\tinterval = setInterval(() => {\n\t\t\t\t\t\t\t\tnextSlide();\n\t\t\t\t\t\t\t}, 5000); \/\/ Change slide every 5 seconds\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfunction nextSlide() {\n\t\t\t\t\t\t\t$slides.eq(currentIndex).removeClass('active');\n\t\t\t\t\t\t\t$dots.eq(currentIndex).removeClass('active');\n\t\t\t\t\t\t\tcurrentIndex = (currentIndex + 1) % $slides.length;\n\t\t\t\t\t\t\t$slides.eq(currentIndex).addClass('active');\n\t\t\t\t\t\t\t$dots.eq(currentIndex).addClass('active');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfunction prevSlide() {\n\t\t\t\t\t\t\t$slides.eq(currentIndex).removeClass('active');\n\t\t\t\t\t\t\t$dots.eq(currentIndex).removeClass('active');\n\t\t\t\t\t\t\tcurrentIndex = (currentIndex - 1 + $slides.length) % $slides.length;\n\t\t\t\t\t\t\t$slides.eq(currentIndex).addClass('active');\n\t\t\t\t\t\t\t$dots.eq(currentIndex).addClass('active');\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfunction goToSlide(index) {\n\t\t\t\t\t\t\tclearInterval(interval);\n\t\t\t\t\t\t\t$slides.eq(currentIndex).removeClass('active');\n\t\t\t\t\t\t\t$dots.eq(currentIndex).removeClass('active');\n\t\t\t\t\t\t\tcurrentIndex = index;\n\t\t\t\t\t\t\t$slides.eq(currentIndex).addClass('active');\n\t\t\t\t\t\t\t$dots.eq(currentIndex).addClass('active');\n\t\t\t\t\t\t\tstartSlideshow();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\/\/ Show navigation arrows temporarily\n\t\t\t\t\t\tfunction showArrowsTemporarily() {\n\t\t\t\t\t\t\t$slideshow.find('.slideshow-nav').css('opacity', '1');\n\t\t\t\t\t\t\tclearTimeout(hideTimeout);\n\t\t\t\t\t\t\thideTimeout = setTimeout(() => {\n\t\t\t\t\t\t\t\t$slideshow.find('.slideshow-nav').css('opacity', '0');\n\t\t\t\t\t\t\t}, 2000); \/\/ Hide after 2 seconds\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\/\/ Click handler for dots\n\t\t\t\t\t\t$dots.on('click', function() {\n\t\t\t\t\t\t\tgoToSlide(parseInt($(this).data('index')));\n\t\t\t\t\t\t\tshowArrowsTemporarily();\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\/\/ Click handler for prev\/next\n\t\t\t\t\t\t$prev.on('click', function(e) {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\tprevSlide();\n\t\t\t\t\t\t\tshowArrowsTemporarily();\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$next.on('click', function(e) {\n\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\tnextSlide();\n\t\t\t\t\t\t\tshowArrowsTemporarily();\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\/\/ Pause on hover\n\t\t\t\t\t\t$slideshow.hover(\n\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\tclearInterval(interval);\n\t\t\t\t\t\t\t\tshowArrowsTemporarily();\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\tstartSlideshow();\n\t\t\t\t\t\t\t\t$slideshow.find('.slideshow-nav').css('opacity', '0');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\/\/ Show arrows when slideshow is interacted with\n\t\t\t\t\t\t$slideshow.on('click', function() {\n\t\t\t\t\t\t\tshowArrowsTemporarily();\n\t\t\t\t\t\t});\n\t\t\t\t\t\tstartSlideshow();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\t\/\/ Function to load nominees via AJAX\n\t\t\tfunction loadNominees(page) {\n\t\t\t\tvar formData = {\n\t\t\t\t\taction: 'load_nominees_ajax',\n\t\t\t\t\ttype: $('input[name=\"type\"]').val(),\n\t\t\t\t\tcountry: $('#country').val(),\n\t\t\t\t\tcity: $('#city').val(),\n\t\t\t\t\tsearch: $('#search').val(),\n\t\t\t\t\tpage: page,\n\t\t\t\t\tper_page: 20, \/\/ Show 20 nominees per page\n\t\t\t\t\tsecurity: '11d2003203'\n\t\t\t\t};\n\t\t\t\t$('#nominees-container').html(\n\t\t\t\t\t'<div class=\"text-center py-5\">' +\n\t\t\t\t\t'<div class=\"spinner-border text-primary\" role=\"status\">' +\n\t\t\t\t\t'<span class=\"visually-hidden\">Loading...<\/span>' +\n\t\t\t\t\t'<\/div><\/div>'\n\t\t\t\t);\n\t\t\t\t$.ajax({\n\t\t\t\t\turl: 'https:\/\/woneglobal.org\/awards\/wp-admin\/admin-ajax.php',\n\t\t\t\t\ttype: 'POST',\n\t\t\t\t\tdata: formData,\n\t\t\t\t\tsuccess: function(response) {\n\t\t\t\t\t\tif (response.success) {\n\t\t\t\t\t\t\t$('#nominees-container').html(response.data.html);\n\t\t\t\t\t\t\t$('#nominees-pagination').html(response.data.pagination);\n\t\t\t\t\t\t\t\/\/ Update dependent dropdowns\n\t\t\t\t\t\t\tif (response.data.cities) {\n\t\t\t\t\t\t\t\tvar citySelect = $('#city');\n\t\t\t\t\t\t\t\tcitySelect.empty().append('<option value=\"all\">All Cities<\/option>');\n\t\t\t\t\t\t\t\t$.each(response.data.cities, function(index, city) {\n\t\t\t\t\t\t\t\t\tcitySelect.append('<option value=\"' + city + '\">' + city + '<\/option>');\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\/\/ Initialize favorite toggles if admin\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\/\/ Initialize slideshows\n\t\t\t\t\t\t\tinitSlideshows();\n\t\t\t\t\t\t\t\/\/ Pagination click handler\n\t\t\t\t\t\t\t$('.page-link').on('click', function(e) {\n\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\tvar page = $(this).data('page');\n\t\t\t\t\t\t\t\tif (page) {\n\t\t\t\t\t\t\t\t\tcurrentPage = page;\n\t\t\t\t\t\t\t\t\tloadNominees(currentPage);\n\t\t\t\t\t\t\t\t\t\/\/ Scroll to top of nominees container\n\t\t\t\t\t\t\t\t\t$('html, body').animate({\n\t\t\t\t\t\t\t\t\t\tscrollTop: $('#nominees-container').offset().top - 20\n\t\t\t\t\t\t\t\t\t}, 300);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$('#nominees-container').html(\n\t\t\t\t\t\t\t\t'<div class=\"text-center py-5\">' +\n\t\t\t\t\t\t\t\t'<div class=\"alert alert-danger\">' + response.data.message + '<\/div>' +\n\t\t\t\t\t\t\t\t'<\/div>'\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t$('#nominees-pagination').empty();\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\terror: function(xhr, status, error) {\n\t\t\t\t\t\t$('#nominees-container').html(\n\t\t\t\t\t\t\t'<div class=\"text-center py-5\">' +\n\t\t\t\t\t\t\t'<div class=\"alert alert-danger\">An error occurred while loading nominees.<\/div>' +\n\t\t\t\t\t\t\t'<\/div>'\n\t\t\t\t\t\t);\n\t\t\t\t\t\t$('#nominees-pagination').empty();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\t\/\/ Initialize slideshows on page load\n\t\t\tinitSlideshows();\n\t\t});\n\t\t<\/script>\n\t\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-11898","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/woneglobal.org\/awards\/wp-json\/wp\/v2\/pages\/11898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/woneglobal.org\/awards\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/woneglobal.org\/awards\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/woneglobal.org\/awards\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/woneglobal.org\/awards\/wp-json\/wp\/v2\/comments?post=11898"}],"version-history":[{"count":0,"href":"https:\/\/woneglobal.org\/awards\/wp-json\/wp\/v2\/pages\/11898\/revisions"}],"wp:attachment":[{"href":"https:\/\/woneglobal.org\/awards\/wp-json\/wp\/v2\/media?parent=11898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}