1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 01:09:35 +05:30

(feat): added fetch quick action link query function and client json dataset

This commit is contained in:
2024-02-01 22:22:26 +05:30
parent 51b3dc4fd8
commit 2416cfae1f
4 changed files with 30 additions and 7 deletions

View File

@@ -0,0 +1,13 @@
<?php
function write_dataset($conn) {
$data = array(
'email' => fetch_quick_action_link($conn, "Send Email"),
'chat' => fetch_quick_action_link($conn, "Chat Online"),
'sources' => fetch_quick_action_link($conn, "Source Code"),
);
$json_data = json_encode($data, JSON_PRETTY_PRINT);
$json_file_path = 'assets/dataset.json';
file_put_contents($json_file_path, $json_data);
}
?>