Ajax/Jquery.php 1 location
|
@@ 80-86 (lines=7) @@
|
77 |
|
* @param boolean $cdata a CDATA section should be added |
78 |
|
* @return string |
79 |
|
*/ |
80 |
|
public function inline($script, $cdata=TRUE) { |
81 |
|
$str=$this->_open_script(); |
82 |
|
$str.=($cdata) ? "\n// <![CDATA[\n{$script}\n// ]]>\n" : "\n{$script}\n"; |
83 |
|
$str.=$this->_close_script(); |
84 |
|
|
85 |
|
return $str; |
86 |
|
} |
87 |
|
|
88 |
|
/** |
89 |
|
* Open Script |
Ajax/JsUtils.php 1 location
|
@@ 237-242 (lines=6) @@
|
234 |
|
* @param boolean $cdata If a CDATA section should be added |
235 |
|
* @return string |
236 |
|
*/ |
237 |
|
public function inline($script, $cdata=TRUE) { |
238 |
|
$str=$this->_open_script(); |
239 |
|
$str.=($cdata) ? "\n// <![CDATA[\n{$script}\n// ]]>\n" : "\n{$script}\n"; |
240 |
|
$str.=$this->_close_script(); |
241 |
|
return $str; |
242 |
|
} |
243 |
|
|
244 |
|
/** |
245 |
|
* Outputs an opening <script> |