diff --git a/admin_library_profile.php b/admin_library_profile.php new file mode 100644 index 0000000..a01bf19 --- /dev/null +++ b/admin_library_profile.php @@ -0,0 +1,236 @@ +getMessage(); + } +} + +$profile = library_get_profile(); +$fields = [ + 'library_name_en', 'library_name_ar', 'short_name', 'tagline_en', 'tagline_ar', + 'description_en', 'description_ar', 'contact_email', 'contact_phone', 'whatsapp_number', + 'website_url', 'address_en', 'address_ar', 'opening_hours_en', 'opening_hours_ar', + 'facebook_url', 'instagram_url', 'x_url', 'youtube_url', 'copyright_text_en', 'copyright_text_ar' +]; +foreach ($fields as $field) { + if (isset($_POST[$field])) { + $profile[$field] = trim((string) $_POST[$field]); + } +} + +admin_render_header($pageTitle, 'library_profile'); +?> + +
= h($introText) ?>
+