diff --git a/INSTALL.sh b/INSTALL.sh old mode 100644 new mode 100755 diff --git a/do_text_text.php b/do_text_text.php index 0b8c4697c..264462499 100644 --- a/do_text_text.php +++ b/do_text_text.php @@ -761,6 +761,7 @@ function do_text_text_content($textid, $only_body=true): void 'TID' => $textid, 'ADDFILTER' => makeStatusClassFilter((int)$visit_status), 'JQ_TOOLTIP' => getSettingWithDefault('set-tooltip-mode') == 2 ? 1 : 0, + 'HTS' => getSettingWithDefault('set-hts'), // Add new globals 'ANNOTATIONS_MODE' => $mode_trans, 'POS' => $pos diff --git a/inc/kernel_utility.php b/inc/kernel_utility.php index 7b6005864..0e0a2a116 100644 --- a/inc/kernel_utility.php +++ b/inc/kernel_utility.php @@ -166,6 +166,9 @@ function get_setting_data() 'set-tts' => array( "dft" => '1', "num" => 0 ), + 'set-hts' => array( + "dft" => '1', "num" => 0 + ), 'set-term-sentence-count' => array( "dft" => '1', "num" => 0 ), diff --git a/inc/session_utility.php b/inc/session_utility.php index d8e35fb82..ead0c8e80 100644 --- a/inc/session_utility.php +++ b/inc/session_utility.php @@ -2407,6 +2407,20 @@ function get_annotation_position_selectoptions($v): string $r .= ">Above"; return $r; } +// ------------------------------------------------------------- + +function get_hts_selectoptions($v): string +{ + if (! isset($v) ) { $v = 1; + } + $r = "