function samira_apply_emotion($text, $emotion){
switch($emotion){
case 'action':
return $text . ' Segera amankan jadwal keberangkatan Anda.';
case 'compare':
return $text . ' Pilih yang paling sesuai dengan kebutuhan Anda.';
case 'consider':
return $text . ' Pastikan semua informasi sudah Anda pahami.';
case 'trust':
return $text . ' Didukung sistem resmi dan terpercaya.';
}
return $text;
}
function samira_detect_emotion($data){
$keyword = strtolower($data['keyword'] ?? '');
if(strpos($keyword, 'daftar') !== false) return 'action';
if(strpos($keyword, 'harga') !== false) return 'compare';
if(strpos($keyword, 'biaya') !== false) return 'consider';
if(strpos($keyword, 'paket') !== false) return 'consider';
return 'trust';
}
Warning: Cannot modify header information - headers already sent by (output started at /home/zriwldgo/samiratravel.web.id/wp-content/plugins/samira-landing/inc/helpers/emotion.php:1) in /home/zriwldgo/samiratravel.web.id/wp-includes/pluggable.php on line 1531
Warning: Cannot modify header information - headers already sent by (output started at /home/zriwldgo/samiratravel.web.id/wp-content/plugins/samira-landing/inc/helpers/emotion.php:1) in /home/zriwldgo/samiratravel.web.id/wp-includes/pluggable.php on line 1534