84 echo "var tracking_keywords = ".json_encode(array($config['hashtag'])).";"; |
84 echo "var tracking_keywords = ".json_encode(array($config['hashtag'])).";"; |
85 } |
85 } |
86 ?> |
86 ?> |
87 <?php if (isset($config['suggested_keywords'])) echo "var suggested_keywords = ".json_encode($config['suggested_keywords']).";"; ?> |
87 <?php if (isset($config['suggested_keywords'])) echo "var suggested_keywords = ".json_encode($config['suggested_keywords']).";"; ?> |
88 <?php if (isset($config['js_config'])) echo $config['js_config']; ?> |
88 <?php if (isset($config['js_config'])) echo $config['js_config']; ?> |
|
89 l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" } |
|
90 var annotations = { |
|
91 "default" : { |
|
92 "colors" : { |
|
93 "h" : 0, |
|
94 "s" : 0 |
|
95 } |
|
96 }, |
|
97 "positive" : { |
|
98 "display_name" : "++ | <?php echo $translate->_('Agree'); ?>", |
|
99 "keywords" : [ /\+\+/ ], |
|
100 "colors" : { |
|
101 "h" : .3, |
|
102 "s" : .65 |
|
103 } |
|
104 }, |
|
105 "negative" : { |
|
106 "display_name" : "-- | <?php echo $translate->_('Disagree'); ?>", |
|
107 "keywords" : [ /\-\-/ ], |
|
108 "colors" : { |
|
109 "h" : 0, |
|
110 "s" : .8 |
|
111 } |
|
112 }, |
|
113 "reference" : { |
|
114 "display_name" : "== | <?php echo $translate->_('Reference'); ?>", |
|
115 "keywords" : [ /\=\=/ ], |
|
116 "colors" : { |
|
117 "h" : .16, |
|
118 "s" : .8 |
|
119 } |
|
120 }, |
|
121 "question" : { |
|
122 "display_name" : "?? | <?php echo $translate->_('Question'); ?>", |
|
123 "keywords" : [ /\?\?/ ], |
|
124 "colors" : { |
|
125 "h" : .6, |
|
126 "s" : .8 |
|
127 } |
|
128 } |
|
129 } |
89 </script> |
130 </script> |
90 <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script> |
131 <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script> |
91 |
132 |
92 <script type="text/javascript"> |
133 <script type="text/javascript"> |
93 l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" } |
|
94 |
134 |
95 function add_grammar(value) { |
135 function add_grammar(value) { |
96 var _st = $('#status'), |
136 var _st = $('#status'), |
97 _val = _st.val(); |
137 _val = _st.val(); |
98 _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change(); |
138 _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change(); |