Ajax/Jquery.php 1 location
|
@@ 76-82 (lines=7) @@
|
73 |
|
* @param boolean $cdata a CDATA section should be added |
74 |
|
* @return string |
75 |
|
*/ |
76 |
|
public function inline($script, $cdata=TRUE) { |
77 |
|
$str=$this->_open_script(); |
78 |
|
$str.=($cdata) ? "\n// <![CDATA[\n{$script}\n// ]]>\n" : "\n{$script}\n"; |
79 |
|
$str.=$this->_close_script(); |
80 |
|
|
81 |
|
return $str; |
82 |
|
} |
83 |
|
|
84 |
|
/** |
85 |
|
* Open Script |
Ajax/JsUtils.php 1 location
|
@@ 266-271 (lines=6) @@
|
263 |
|
* @param boolean $cdata If a CDATA section should be added |
264 |
|
* @return string |
265 |
|
*/ |
266 |
|
public function inline($script, $cdata=TRUE) { |
267 |
|
$str=$this->_open_script(); |
268 |
|
$str.=($cdata) ? "\n// <![CDATA[\n{$script}\n// ]]>\n" : "\n{$script}\n"; |
269 |
|
$str.=$this->_close_script(); |
270 |
|
return $str; |
271 |
|
} |
272 |
|
|
273 |
|
/** |
274 |
|
* Outputs an opening <script> |