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:
13
htdocs/core/write_dataset.php
Normal file
13
htdocs/core/write_dataset.php
Normal 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);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user