{"id":1000,"date":"2025-05-22T06:58:42","date_gmt":"2025-05-22T06:58:42","guid":{"rendered":"https:\/\/sanadthecenter.org\/?page_id=1000"},"modified":"2026-10-03T15:10:13","modified_gmt":"2026-10-03T15:10:13","slug":"contact-us","status":"publish","type":"page","link":"https:\/\/sanadthecenter.org\/ar\/contact-us\/","title":{"rendered":"\u062a\u0648\u0627\u0635\u0644 \u0645\u0639\u0646\u0627"},"content":{"rendered":"<div class=\"sanad-content sanad-pagehead\">\r\n\t<h1 class=\"sanad-pagehead__title\">\u0644\u0644\u062a\u0648\u0627\u0635\u0644 \u0645\u0639\u0646\u0627 \/ <span>\u0644\u0644\u0631\u0633\u0627\u0626\u0644 \u0645\u062c\u0647\u0648\u0644\u0629 \u0627\u0644\u0645\u0635\u062f\u0631<\/span><\/h1>\r\n<\/div>\r\n<div class=\"sanad-content sanad-contact\">\r\n\t<h2 class=\"sanad-contact__lead\">\u062a\u0648\u0627\u0635\u0644 \u0645\u0639\u0646\u0627!<\/h2>\r\n\t    <div class=\"form-container\">\n        <div class=\"form-left\">\n            <p class=\"form-title\"><em>I'm here for...<\/em><\/p>\n                        <div class=\"button-grid\">\n                <button type=\"button\" class=\"category active\" data-category=\"General\">\u0639\u0627\u0645<\/button>\n                <button type=\"button\" class=\"category\" data-category=\"Concerns\">\u0627\u0644\u0645\u062e\u0627\u0648\u0641<\/button>\n                <button type=\"button\" class=\"category\" data-category=\"Resources\">\u0627\u0644\u0645\u0648\u0627\u0631\u062f<\/button>\n                <button type=\"button\" class=\"category\" data-category=\"Legal\">\u0627\u0644\u0623\u0645\u0648\u0631 \u0627\u0644\u0642\u0627\u0646\u0648\u0646\u064a\u0651\u0629<\/button>\n                <button type=\"button\" class=\"category\" data-category=\"Medical\">Medical<\/button>\n                <button type=\"button\" class=\"category\" data-category=\"Other\">\u063a\u064a\u0631 \u0630\u0644\u0643<\/button>\n            <\/div>\n        <\/div>\n        <div class=\"form-right\">\n\t\t\t<input type=\"email\" name=\"email\" placeholder=\"Email\" class=\"textarea-field email-input\" required \/>\n                        \t<fieldset class=\"sanad-submit\" hidden\n\t\tdata-max-files=\"5\"\n\t\tdata-max-size=\"10485760\"\n\t\tdata-extensions=\"pdf,doc,docx,odt,rtf,txt,epub,ppt,pptx,jpg,jpeg,png,webp\">\n\t\t<legend class=\"sanad-submit__legend\">Sharing a resource?<\/legend>\n\t\t<p class=\"sanad-submit__intro\">Attach it or add a link. The other details are optional, but they help us review it.<\/p>\n\n\t\t<div class=\"sanad-submit__field sanad-submit__field--wide\">\n\t\t\t<label for=\"sanad-submit-files\">Files<\/label>\n\t\t\t\t\t\t<div class=\"sanad-submit__picker\">\n\t\t\t\t<input type=\"file\" id=\"sanad-submit-files\" class=\"sanad-submit__file\" name=\"resource_files[]\" multiple accept=\".pdf,.doc,.docx,.odt,.rtf,.txt,.epub,.ppt,.pptx,.jpg,.jpeg,.png,.webp\" aria-describedby=\"sanad-submit-files-chosen sanad-submit-files-hint\" \/>\n\t\t\t\t<label for=\"sanad-submit-files\" class=\"sanad-submit__choose\">Choose files<\/label>\n\t\t\t\t<span class=\"sanad-submit__chosen\" id=\"sanad-submit-files-chosen\">No file chosen<\/span>\n\t\t\t<\/div>\n\t\t\t<p class=\"sanad-submit__hint\" id=\"sanad-submit-files-hint\">\n\t\t\t\t<span>PDF, Word, PowerPoint, text or image files, up to 5.<\/span>\n\t\t\t\t<span>Maximum per file:<\/span> <span data-no-translation>10 \u0645\u064a\u063a\u0627\u0628\u0627\u064a\u062a<\/span>\n\t\t\t<\/p>\n\t\t<\/div>\n\n\t\t<div class=\"sanad-submit__field sanad-submit__field--wide\">\n\t\t\t<label for=\"sanad-submit-link\">Link<\/label>\n\t\t\t<input type=\"url\" id=\"sanad-submit-link\" name=\"resource_link\" placeholder=\"https:\/\/\" inputmode=\"url\" dir=\"ltr\" \/>\n\t\t<\/div>\n\n\t\t<div class=\"sanad-submit__field sanad-submit__field--wide\">\n\t\t\t<label for=\"sanad-submit-title\">Title<\/label>\n\t\t\t<input type=\"text\" id=\"sanad-submit-title\" name=\"resource_title\" maxlength=\"200\" \/>\n\t\t<\/div>\n\n\t\t<div class=\"sanad-submit__field\">\n\t\t\t<label for=\"sanad-submit-type\">Type<\/label>\n\t\t\t<select id=\"sanad-submit-type\" name=\"resource_type\">\n\t\t\t\t<option value=\"\">Choose\u2026<\/option>\n\t\t\t\t\t\t\t\t\t<option value=\"Guide\">Guide<\/option>\n\t\t\t\t\t\t\t\t\t<option value=\"Zine\">Zine<\/option>\n\t\t\t\t\t\t\t\t\t<option value=\"Translated material\">Translated material<\/option>\n\t\t\t\t\t\t\t\t\t<option value=\"Personal narrative\">Personal narrative<\/option>\n\t\t\t\t\t\t\t\t\t<option value=\"Publication\">Publication<\/option>\n\t\t\t\t\t\t\t\t\t<option value=\"Other\">\u063a\u064a\u0631 \u0630\u0644\u0643<\/option>\n\t\t\t\t\t\t\t<\/select>\n\t\t<\/div>\n\n\t\t<div class=\"sanad-submit__field\">\n\t\t\t<label for=\"sanad-submit-language\">Language<\/label>\n\t\t\t<select id=\"sanad-submit-language\" name=\"resource_language\">\n\t\t\t\t<option value=\"\">Choose\u2026<\/option>\n\t\t\t\t\t\t\t\t\t<option value=\"Arabic\">\u0627\u0644\u0639\u0631\u0628\u064a\u0629<\/option>\n\t\t\t\t\t\t\t\t\t<option value=\"Armenian\">\u0627\u0644\u0623\u0631\u0645\u0646\u064a\u0629<\/option>\n\t\t\t\t\t\t\t\t\t<option value=\"English\">\u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a\u0629<\/option>\n\t\t\t\t\t\t\t\t\t<option value=\"French\">\u0627\u0644\u0641\u0631\u0646\u0633\u064a\u0629<\/option>\n\t\t\t\t\t\t\t\t\t<option value=\"Other\">\u063a\u064a\u0631 \u0630\u0644\u0643<\/option>\n\t\t\t\t\t\t\t<\/select>\n\t\t<\/div>\n\n\t\t<div class=\"sanad-submit__field sanad-submit__field--wide\">\n\t\t\t<label for=\"sanad-submit-credit\">Created by<\/label>\n\t\t\t<input type=\"text\" id=\"sanad-submit-credit\" name=\"resource_credit\" maxlength=\"200\" placeholder=\"Author or organisation, as it should be credited\" \/>\n\t\t<\/div>\n\n\t\t<div class=\"sanad-submit__field sanad-submit__field--wide\">\n\t\t\t<label for=\"sanad-submit-name\">Your name or organisation<\/label>\n\t\t\t<input type=\"text\" id=\"sanad-submit-name\" name=\"resource_name\" maxlength=\"200\" autocomplete=\"name\" \/>\n\t\t<\/div>\n\n\t\t<label class=\"sanad-submit__consent\">\n\t\t\t<input type=\"checkbox\" name=\"resource_permission\" value=\"1\" \/>\n\t\t\t<span>I created or co-created this resource, or have permission to share it, and it is free to access.<\/span>\n\t\t<\/label>\n\t\t<p class=\"sanad-submit__hint sanad-submit__field--wide\">All submissions are reviewed before anything is added to the Sanad Shelf.<\/p>\n\t<\/fieldset>\n\t            <textarea name=\"message\" placeholder=\"Your message\" class=\"textarea-field\"><\/textarea>\n                        <input type=\"text\" name=\"website\" class=\"sanad-hp\" tabindex=\"-1\" autocomplete=\"off\" aria-hidden=\"true\" \/>\n            <button type=\"button\" class=\"send-btn\">\n                <img decoding=\"async\" src=\"\/wp-content\/uploads\/2025\/05\/Vector-6.svg\" alt=\"Send Icon\" \/>\n                \u0625\u0631\u0633\u0627\u0644\n            <\/button>\n            <p class=\"form-response\" style=\"color:green;\" role=\"status\" aria-live=\"polite\"><\/p>\n        <\/div>\n    <\/div>\n\n    <style>\n    \/* Container *\/\n    .form-container {\n        display: flex;\n        justify-content: space-between;\n        align-items: flex-start;\n        background-color: #faf6eb;\n        border: 2px solid #b7ae9c;\n        border-radius: 12px;\n        padding: 60px 50px;\n        gap: 30px;\n        flex-wrap: wrap;\n    }\n\n    \/* Left column *\/\n    .form-left { flex: 1; min-width: 250px; }\n\t\t\n\t\t.email-input {\n\t\t\t    height: unset !important;\n    border-top: 0 !important;\n    border-left: 0 !important;\n    border-right: 0 !important;\n    border-bottom: 1px solid #a9a299 !important;\n\t\t}\n\n    \/* Right column *\/\n    .form-right { flex: 1; min-width: 250px; display: flex; flex-direction: column; gap: 25px; }\n\n    .form-title { font-size: 18px; color: #2f0053; margin-bottom: 20px; }\n\n    .button-grid {\n        display: grid;\n        grid-template-columns: repeat(3, auto);\n        grid-template-rows: repeat(2, auto);\n        gap: 18px 20px;\n        width: max-content;\n    }\n\n    .category {\n        border: 1px solid #b7ae9c;\n        border-radius: 8px;\n        background-color: transparent;\n        color: #5e5247;\n        padding: 10px 26px;\n        font-size: 16px;\n        cursor: pointer;\n        transition: 0.3s ease;\n    }\n\n    .category:hover { background-color: #000; color: #fff; border-color: #000; }\n    .category.active { background-color: #000 !important; color: #fff !important; border-color: #000 !important; }\n\n    .textarea-field {\n        border: none;\n        border-bottom: 1px solid #a9a299;\n        background: transparent;\n        font-size: 16px;\n        padding: 8px 0;\n        width: 100%;\n        resize: none;\n        height: 80px;\n    }\n\n    .textarea-field:focus { outline: none; border-bottom: 1px solid #000; }\n\n    .send-btn {\n        background-color: #000;\n        color: #fff;\n        font-size: 16px;\n        border: none;\n        border-radius: 10px;\n        padding: 14px 32px;\n        display: inline-flex;\n        align-items: center;\n        gap: 10px;\n        cursor: pointer;\n        width: fit-content;\n        transition: 0.3s;\n    }\n\n    .send-btn img {\n        width: 16px;\n        height: 16px;\n        filter: brightness(0) invert(1);\n    }\n\n    .send-btn:hover,\n    .send-btn:focus { background-color: #000 !important; color: #fff !important; opacity: 1 !important; }\n\n    .send-btn[disabled] { opacity: 0.6 !important; cursor: wait; }\n\n    \/* Clipped in place, not pushed off-screen: a large offset widens the page in RTL. *\/\n    .sanad-hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; }\n\n    \/* Responsive Styles: below desktop the two columns stack (side by side the\n       topic buttons ran under the fields on tablets), and the topics wrap in\n       compact rows, as in the design. *\/\n    @media (max-width: 1024px) {\n        .form-container { flex-direction: column; }\n        .form-left, .form-right { width: 100%; }\n        .button-grid { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }\n    }\n\n    @media (max-width: 768px) {\n        .form-container { padding: 30px 20px; }\n        .send-btn { width: 100%; justify-content: center; }\n    }\n\n    @media (max-width: 480px) {\n        .button-grid { gap: 8px; }\n        .category { padding: 8px 12px; font-size: 14px; }\n        .form-title { font-size: 16px; }\n        .textarea-field { font-size: 14px; height: 70px; }\n        .send-btn { font-size: 14px; padding: 12px 20px; }\n    }\n    <\/style>\n\n    <script>\n    document.addEventListener('DOMContentLoaded', function() {\n        \/\/ Category button selection\n        const categories = document.querySelectorAll('.category');\n        let selectedCategory = 'General';\n        \/\/ \"Sharing a resource?\" (files, link, details) only shows for Resources.\n        const resourceBox = document.querySelector('.sanad-submit');\n        \/\/ Its file picker: list the chosen files next to the button. The\n        \/\/ \"No file chosen\" text comes from the page, so it's already translated.\n        const chosenText = resourceBox ? resourceBox.querySelector('.sanad-submit__chosen') : null;\n        const noFileText = chosenText ? chosenText.textContent : '';\n        const showChosenFiles = function () {\n            const picked = resourceBox ? Array.from(resourceBox.querySelector('input[type=\"file\"]').files) : [];\n            if (chosenText) {\n                chosenText.textContent = picked.length ? picked.map(f => f.name).join(', ') : noFileText;\n            }\n        };\n        if (resourceBox) {\n            resourceBox.querySelector('input[type=\"file\"]').addEventListener('change', showChosenFiles);\n        }\n        categories.forEach(btn => {\n            btn.addEventListener('click', function() {\n                categories.forEach(b => b.classList.remove('active'));\n                this.classList.add('active');\n                selectedCategory = this.dataset.category || this.textContent;\n                if (resourceBox) {\n                    resourceBox.hidden = selectedCategory !== 'Resources';\n                }\n            });\n        });\n\n        \/\/ ?topic=resources (e.g. from the Shelf's \"Submit a Resource\") pre-selects a topic.\n        const wantedTopic = (new URLSearchParams(window.location.search).get('topic') || '').toLowerCase();\n        if (wantedTopic) {\n            categories.forEach(btn => {\n                if ((btn.dataset.category || '').toLowerCase() === wantedTopic) {\n                    btn.click();\n                }\n            });\n        }\n\n        \/\/ Form submission\n        const sendBtn = document.querySelector('.send-btn');\n        sendBtn.addEventListener('click', function() {\n           const emailField = document.querySelector('input[name=\"email\"]');\nconst messageField = document.querySelector('textarea[name=\"message\"]');\nconst response = document.querySelector('.form-response');\nconst email = emailField.value.trim();\nconst message = messageField.value.trim();\n\n\/\/ Basic email regex pattern\nconst emailPattern = \/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/;\n\nif(email === '') {\n    response.style.color = 'red';\n    response.textContent = 'Please enter your email.';\n    return;\n}\n\n\/\/ Check if email is valid\nif(!emailPattern.test(email)) {\n    response.style.color = 'red';\n    response.textContent = 'Please enter a valid email address.';\n    return;\n}\n\n\/\/ A shared resource: a file or link can stand in for the message.\nconst isResource = !!resourceBox && selectedCategory === 'Resources';\nconst fileInput = isResource ? resourceBox.querySelector('input[type=\"file\"]') : null;\nconst files = fileInput ? Array.from(fileInput.files) : [];\nconst link = isResource ? resourceBox.querySelector('input[name=\"resource_link\"]').value.trim() : '';\nconst resourceError = (function () {\n    if (!isResource) {\n        return '';\n    }\n    const maxFiles = parseInt(resourceBox.dataset.maxFiles, 10);\n    const maxSize = parseInt(resourceBox.dataset.maxSize, 10);\n    const extensions = resourceBox.dataset.extensions.split(',');\n    if (files.length > maxFiles) {\n        return 'Please attach up to 5 files.';\n    }\n    if (files.some(f => f.size > maxSize)) {\n        return 'One of the files is too large.';\n    }\n    if (files.some(f => !extensions.includes((f.name.split('.').pop() || '').toLowerCase()))) {\n        return 'One of the files is not an accepted type.';\n    }\n    if (link && !\/^https?:\\\/\\\/[^\\s.]+\\.[^\\s]+$\/i.test(link)) {\n        return 'Please check the link: it should start with https:\/\/';\n    }\n    if ((files.length || link) && !resourceBox.querySelector('input[name=\"resource_permission\"]').checked) {\n        return 'Please confirm you have permission to share this resource.';\n    }\n    return '';\n})();\nif (resourceError) {\n    response.style.color = 'red';\n    response.textContent = resourceError;\n    return;\n}\n\nif(message === '' && !files.length && !link) {\n    response.style.color = 'red';\n    response.textContent = isResource ? 'Please add a file, a link or a message.' : 'Please enter a message.';\n    return;\n}\n\n\/\/ Only report success once the server confirms the message went out.\nresponse.style.color = '#555';\nresponse.textContent = 'Sending\u2026';\nsendBtn.disabled = true;\n\n            \/\/ AJAX request (multipart, so files can come along).\n            const data = new FormData();\n            data.append('action', 'send_custom_email');\n            data.append('category', selectedCategory);\n            data.append('email', email);\n            data.append('message', message);\n            const honeypot = document.querySelector('input[name=\"website\"]');\n            data.append('website', honeypot ? honeypot.value : '');\n            if (isResource) {\n                resourceBox.querySelectorAll('input, select').forEach(field => {\n                    if (field.type === 'file') {\n                        files.forEach(f => data.append('resource_files[]', f));\n                    } else if (field.type === 'checkbox') {\n                        if (field.checked) {\n                            data.append(field.name, field.value);\n                        }\n                    } else {\n                        data.append(field.name, field.value.trim());\n                    }\n                });\n            }\n\n            fetch('https:\/\/sanadthecenter.org\/wp-admin\/admin-ajax.php', {\n                method: 'POST',\n                body: data\n            })\n            .then(res => res.json())\n            .then(result => {\n                const text = result && result.data && result.data.message;\n                if (result && result.success) {\n                    response.style.color = 'green';\n                    response.textContent = text || 'Message sent successfully!';\n                    messageField.value = '';\n                    if (isResource) {\n                        resourceBox.querySelectorAll('input, select').forEach(field => {\n                            if (field.type === 'checkbox') {\n                                field.checked = false;\n                            } else {\n                                field.value = '';\n                            }\n                        });\n                        showChosenFiles();\n                    }\n                } else {\n                    response.style.color = 'red';\n                    response.textContent = text || 'Error sending message.';\n                }\n            })\n            .catch(err => {\n                response.style.color = 'red';\n                response.textContent = 'Error sending message.';\n            })\n            .finally(() => {\n                sendBtn.disabled = false;\n            });\n        });\n    });\n    <\/script>\n    \r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Contact us | Anonymous submissions Reach out to us!<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1000","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/sanadthecenter.org\/ar\/wp-json\/wp\/v2\/pages\/1000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanadthecenter.org\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sanadthecenter.org\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sanadthecenter.org\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanadthecenter.org\/ar\/wp-json\/wp\/v2\/comments?post=1000"}],"version-history":[{"count":140,"href":"https:\/\/sanadthecenter.org\/ar\/wp-json\/wp\/v2\/pages\/1000\/revisions"}],"predecessor-version":[{"id":2972,"href":"https:\/\/sanadthecenter.org\/ar\/wp-json\/wp\/v2\/pages\/1000\/revisions\/2972"}],"wp:attachment":[{"href":"https:\/\/sanadthecenter.org\/ar\/wp-json\/wp\/v2\/media?parent=1000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}