| Conditions | 50 |
| Paths | > 20000 |
| Total Lines | 502 |
| Code Lines | 318 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php |
||
| 110 | public function block() { |
||
| 111 | ob_start(); |
||
| 112 | |||
| 113 | $block_name = str_replace( '_', '-', sanitize_title_with_dashes( $this->sd->options['textdomain'] ) . '/' . sanitize_title_with_dashes( $this->sd->options['class_name'] ) ); |
||
| 114 | $show_advanced = $this->sd->block_show_advanced(); |
||
| 115 | $id = $this->sd->base_id . '-' . $this->sd->get_number(); |
||
| 116 | ?> |
||
| 117 | <script> |
||
| 118 | /** |
||
| 119 | * BLOCK: Basic |
||
| 120 | * |
||
| 121 | * Registering a basic block with Gutenberg. |
||
| 122 | * Simple block, renders and saves the same content without any interactivity. |
||
| 123 | * |
||
| 124 | * Styles: |
||
| 125 | * editor.css — Editor styles for the block. |
||
| 126 | * style.css — Editor & Front end styles for the block. |
||
| 127 | */ |
||
| 128 | (function () { |
||
| 129 | var __ = wp.i18n.__; // The __() for internationalization. |
||
| 130 | var el = wp.element.createElement; // The wp.element.createElement() function to create elements. |
||
| 131 | var editable = wp.blocks.Editable; |
||
| 132 | var blocks = wp.blocks; |
||
| 133 | var registerBlockType = wp.blocks.registerBlockType; // The registerBlockType() to register blocks. |
||
| 134 | var is_fetching = false; |
||
| 135 | var prev_attributes = []; |
||
| 136 | |||
| 137 | var term_query_type = ''; |
||
| 138 | var post_type_rest_slugs = <?php if ( ! empty( $this->sd->arguments ) && isset( $this->sd->arguments['post_type']['onchange_rest']['values'] ) ) { |
||
| 139 | echo "[" . json_encode( $this->sd->arguments['post_type']['onchange_rest']['values'] ) . "]"; |
||
| 140 | } else { |
||
| 141 | echo "[]"; |
||
| 142 | } ?>; |
||
| 143 | const taxonomies_<?php echo str_replace( "-", "_", $id );?> = [{label: "Please wait", value: 0}]; |
||
| 144 | const sort_by_<?php echo str_replace( "-", "_", $id );?> = [{label: "Please wait", value: 0}]; |
||
| 145 | |||
| 146 | /** |
||
| 147 | * Register Basic Block. |
||
| 148 | * |
||
| 149 | * Registers a new block provided a unique name and an object defining its |
||
| 150 | * behavior. Once registered, the block is made available as an option to any |
||
| 151 | * editor interface where blocks are implemented. |
||
| 152 | * |
||
| 153 | * @param {string} name Block name. |
||
| 154 | * @param {Object} settings Block settings. |
||
| 155 | * @return {?WPBlock} The block, if it has been successfully |
||
| 156 | * registered; otherwise `undefined`. |
||
| 157 | */ |
||
| 158 | registerBlockType('<?php echo $block_name; ?>', { // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block. |
||
| 159 | title: '<?php echo addslashes( $this->sd->options['name'] ); ?>', // Block title. |
||
| 160 | description: '<?php echo addslashes( $this->sd->options['widget_ops']['description'] )?>', // Block title. |
||
| 161 | icon: <?php echo $this->get_block_icon( $this->sd->options['block-icon'] );?>,//'<?php echo isset( $this->sd->options['block-icon'] ) ? esc_attr( $this->sd->options['block-icon'] ) : 'shield-alt';?>', // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/. |
||
| 162 | supports: { |
||
| 163 | <?php |
||
| 164 | if ( isset( $this->sd->options['block-supports'] ) ) { |
||
| 165 | echo $this->sd->array_to_attributes( $this->sd->options['block-supports'] ); |
||
| 166 | } |
||
| 167 | ?> |
||
| 168 | }, |
||
| 169 | category: '<?php echo isset( $this->sd->options['block-category'] ) ? esc_attr( $this->sd->options['block-category'] ) : 'common';?>', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed. |
||
| 170 | <?php if ( isset( $this->sd->options['block-keywords'] ) ) { |
||
| 171 | echo "keywords : " . $this->sd->options['block-keywords'] . ","; |
||
| 172 | }?> |
||
| 173 | |||
| 174 | <?php |
||
| 175 | |||
| 176 | // maybe set no_wrap |
||
| 177 | $no_wrap = isset( $this->sd->options['no_wrap'] ) && $this->sd->options['no_wrap'] ? true : false; |
||
| 178 | if ( isset( $this->sd->arguments['no_wrap'] ) && $this->sd->arguments['no_wrap'] ) { |
||
| 179 | $no_wrap = true; |
||
| 180 | } |
||
| 181 | if ( $no_wrap ) { |
||
| 182 | $this->sd->options['block-wrap'] = ''; |
||
| 183 | } |
||
| 184 | |||
| 185 | $show_alignment = false; |
||
| 186 | |||
| 187 | if ( ! empty( $this->sd->arguments ) ) { |
||
| 188 | echo "attributes : {"; |
||
| 189 | |||
| 190 | if ( $show_advanced ) { |
||
| 191 | echo "show_advanced: {"; |
||
| 192 | echo " type: 'boolean',"; |
||
| 193 | echo " default: false,"; |
||
| 194 | echo "},"; |
||
| 195 | } |
||
| 196 | |||
| 197 | // block wrap element |
||
| 198 | if ( ! empty( $this->sd->options['block-wrap'] ) ) { //@todo we should validate this? |
||
| 199 | echo "block_wrap: {"; |
||
| 200 | echo " type: 'string',"; |
||
| 201 | echo " default: '" . esc_attr( $this->sd->options['block-wrap'] ) . "',"; |
||
| 202 | echo "},"; |
||
| 203 | } |
||
| 204 | |||
| 205 | foreach ( $this->sd->arguments as $key => $args ) { |
||
| 206 | |||
| 207 | // set if we should show alignment |
||
| 208 | if ( $key == 'alignment' ) { |
||
| 209 | $show_alignment = true; |
||
| 210 | } |
||
| 211 | |||
| 212 | $extra = ''; |
||
| 213 | |||
| 214 | if ( $args['type'] == 'checkbox' ) { |
||
| 215 | $type = 'boolean'; |
||
| 216 | $default = isset( $args['default'] ) && $args['default'] ? 'true' : 'false'; |
||
| 217 | } elseif ( $args['type'] == 'number' ) { |
||
| 218 | $type = 'number'; |
||
| 219 | $default = isset( $args['default'] ) ? "'" . $args['default'] . "'" : "''"; |
||
| 220 | } elseif ( $args['type'] == 'select' && ! empty( $args['multiple'] ) ) { |
||
| 221 | $type = 'array'; |
||
| 222 | if ( isset( $args['default'] ) && is_array( $args['default'] ) ) { |
||
| 223 | $default = ! empty( $args['default'] ) ? "['" . implode( "','", $args['default'] ) . "']" : "[]"; |
||
| 224 | } else { |
||
| 225 | $default = isset( $args['default'] ) ? "'" . $args['default'] . "'" : "''"; |
||
| 226 | } |
||
| 227 | } elseif ( $args['type'] == 'multiselect' ) { |
||
| 228 | $type = 'array'; |
||
| 229 | $default = isset( $args['default'] ) ? "'" . $args['default'] . "'" : "''"; |
||
| 230 | } else { |
||
| 231 | $type = 'string'; |
||
| 232 | $default = isset( $args['default'] ) ? "'" . $args['default'] . "'" : "''"; |
||
| 233 | } |
||
| 234 | echo str_replace( '-','__', $key ) . " : {"; |
||
| 235 | echo "type : '$type',"; |
||
| 236 | echo "default : $default,"; |
||
| 237 | echo "},"; |
||
| 238 | } |
||
| 239 | |||
| 240 | echo "content : {type : 'string',default: 'Please select the attributes in the block settings'},"; |
||
| 241 | echo "className: { type: 'string', default: '' },"; |
||
| 242 | echo "},"; |
||
| 243 | |||
| 244 | } |
||
| 245 | |||
| 246 | ?> |
||
| 247 | |||
| 248 | // The "edit" property must be a valid function. |
||
| 249 | edit: function (props) { |
||
| 250 | |||
| 251 | |||
| 252 | var $value = ''; |
||
| 253 | <?php |
||
| 254 | // if we have a post_type and a category then link them |
||
| 255 | if( isset( $this->sd->arguments['post_type'] ) && isset( $this->sd->arguments['category'] ) && ! empty( $this->sd->arguments['category']['post_type_linked'] ) ){ |
||
| 256 | ?> |
||
| 257 | if (typeof(prev_attributes[props.id]) != 'undefined') { |
||
| 258 | $pt = props.attributes.post_type; |
||
| 259 | if (post_type_rest_slugs.length) { |
||
| 260 | $value = post_type_rest_slugs[0][$pt]; |
||
| 261 | } |
||
| 262 | var run = false; |
||
| 263 | |||
| 264 | if ($pt != term_query_type) { |
||
| 265 | run = true; |
||
| 266 | term_query_type = $pt; |
||
| 267 | } |
||
| 268 | |||
| 269 | // taxonomies |
||
| 270 | if ($value && 'post_type' in prev_attributes[props.id] && 'category' in prev_attributes[props.id] && run) { |
||
| 271 | wp.apiFetch({ |
||
| 272 | path: "<?php if ( isset( $this->sd->arguments['post_type']['onchange_rest']['path'] ) ) { |
||
| 273 | echo $this->sd->arguments['post_type']['onchange_rest']['path']; |
||
| 274 | } else { |
||
| 275 | '/wp/v2/"+$value+"/categories/?per_page=100'; |
||
| 276 | } ?>" |
||
| 277 | }).then(terms => { |
||
| 278 | while (taxonomies_<?php echo str_replace( "-", "_", $id );?>.length |
||
| 279 | ) |
||
| 280 | { |
||
| 281 | taxonomies_<?php echo str_replace("-","_", $id);?>.pop(); |
||
| 282 | } |
||
| 283 | taxonomies_<?php echo str_replace("-","_", $id);?>.push({label: "All", value: 0}); |
||
| 284 | jQuery.each(terms, function (key, val) { |
||
| 285 | taxonomies_<?php echo str_replace("-","_", $id);?>.push({ |
||
| 286 | label: val.name, |
||
| 287 | value: val.id |
||
| 288 | }); |
||
| 289 | }); |
||
| 290 | |||
| 291 | // setting the value back and fourth fixes the no update issue that sometimes happens where it won't update the options. |
||
| 292 | var $old_cat_value = props.attributes.category; |
||
| 293 | props.setAttributes({category: [0]}); |
||
| 294 | props.setAttributes({category: $old_cat_value}); |
||
| 295 | |||
| 296 | return taxonomies_<?php echo str_replace( "-", "_", $id );?>; |
||
| 297 | }) |
||
| 298 | }; |
||
| 299 | |||
| 300 | // sort_by |
||
| 301 | if ($value && 'post_type' in prev_attributes[props.id] && 'sort_by' in prev_attributes[props.id] && run) { |
||
| 302 | var data = { |
||
| 303 | 'action': 'geodir_get_sort_options', |
||
| 304 | 'post_type': $pt |
||
| 305 | }; |
||
| 306 | jQuery.post(ajaxurl, data, function (response) { |
||
| 307 | response = JSON.parse(response); |
||
| 308 | while (sort_by_<?php echo str_replace( "-", "_", $id );?>.length) { |
||
| 309 | sort_by_<?php echo str_replace("-","_", $id);?>.pop(); |
||
| 310 | } |
||
| 311 | |||
| 312 | jQuery.each(response, function (key, val) { |
||
| 313 | sort_by_<?php echo str_replace("-","_", $id);?>.push({label: val, value: key}); |
||
| 314 | }); |
||
| 315 | |||
| 316 | // setting the value back and fourth fixes the no update issue that sometimes happens where it won't update the options. |
||
| 317 | var $old_sort_by_value = props.attributes.sort_by; |
||
| 318 | props.setAttributes({sort_by: [0]}); |
||
| 319 | props.setAttributes({sort_by: $old_sort_by_value}); |
||
| 320 | |||
| 321 | return sort_by_<?php echo str_replace( "-", "_", $id );?>; |
||
| 322 | }); |
||
| 323 | |||
| 324 | } |
||
| 325 | } |
||
| 326 | <?php }?> |
||
| 327 | |||
| 328 | |||
| 329 | var content = props.attributes.content; |
||
| 330 | |||
| 331 | function onChangeContent() { |
||
| 332 | |||
| 333 | $refresh = false; |
||
| 334 | |||
| 335 | // Set the old content the same as the new one so we only compare all other attributes |
||
| 336 | if (typeof(prev_attributes[props.id]) != 'undefined') { |
||
| 337 | prev_attributes[props.id].content = props.attributes.content; |
||
| 338 | } else if (props.attributes.content === "") { |
||
| 339 | // if first load and content empty then refresh |
||
| 340 | $refresh = true; |
||
| 341 | } |
||
| 342 | |||
| 343 | if (( !is_fetching && JSON.stringify(prev_attributes[props.id]) != JSON.stringify(props.attributes) ) || $refresh) { |
||
| 344 | |||
| 345 | is_fetching = true; |
||
| 346 | var data = { |
||
| 347 | 'action': 'super_duper_output_shortcode', |
||
| 348 | 'shortcode': '<?php echo $this->sd->options['base_id'];?>', |
||
| 349 | 'attributes': props.attributes, |
||
| 350 | 'post_id': <?php global $post; if ( isset( $post->ID ) ) { |
||
| 351 | echo $post->ID; |
||
| 352 | } else { |
||
| 353 | echo '0'; |
||
| 354 | }?>, |
||
| 355 | '_ajax_nonce': '<?php echo wp_create_nonce( 'super_duper_output_shortcode' );?>' |
||
| 356 | }; |
||
| 357 | |||
| 358 | jQuery.post(ajaxurl, data, function (response) { |
||
| 359 | return response; |
||
| 360 | }).then(function (env) { |
||
| 361 | |||
| 362 | // if the content is empty then we place some placeholder text |
||
| 363 | if (env == '') { |
||
| 364 | env = "<div style='background:#0185ba33;padding: 10px;border: 4px #ccc dashed;'>" + "<?php _e( 'Placeholder for: ' );?>" + props.name + "</div>"; |
||
| 365 | } |
||
| 366 | |||
| 367 | props.setAttributes({content: env}); |
||
| 368 | is_fetching = false; |
||
| 369 | prev_attributes[props.id] = props.attributes; |
||
| 370 | |||
| 371 | // if AUI is active call the js init function |
||
| 372 | if (typeof aui_init === "function") { |
||
| 373 | aui_init(); |
||
| 374 | } |
||
| 375 | }); |
||
| 376 | |||
| 377 | |||
| 378 | } |
||
| 379 | |||
| 380 | return props.attributes.content; |
||
| 381 | |||
| 382 | } |
||
| 383 | |||
| 384 | return [ |
||
| 385 | |||
| 386 | el(wp.blockEditor.BlockControls, {key: 'controls'}, |
||
| 387 | |||
| 388 | <?php if($show_alignment){?> |
||
| 389 | el( |
||
| 390 | wp.blockEditor.AlignmentToolbar, |
||
| 391 | { |
||
| 392 | value: props.attributes.alignment, |
||
| 393 | onChange: function (alignment) { |
||
| 394 | props.setAttributes({alignment: alignment}) |
||
| 395 | } |
||
| 396 | } |
||
| 397 | ) |
||
| 398 | <?php }?> |
||
| 399 | |||
| 400 | ), |
||
| 401 | |||
| 402 | el(wp.blockEditor.InspectorControls, {key: 'inspector'}, |
||
| 403 | |||
| 404 | <?php |
||
| 405 | |||
| 406 | if(! empty( $this->sd->arguments )){ |
||
| 407 | |||
| 408 | if ( $show_advanced ) { |
||
| 409 | ?> |
||
| 410 | el('div', { |
||
| 411 | style: {'padding-left': '16px', 'padding-right': '16px'} |
||
| 412 | }, |
||
| 413 | el( |
||
| 414 | wp.components.ToggleControl, |
||
| 415 | { |
||
| 416 | label: 'Show Advanced Settings?', |
||
| 417 | checked: props.attributes.show_advanced, |
||
| 418 | onChange: function (show_advanced) { |
||
| 419 | props.setAttributes({show_advanced: !props.attributes.show_advanced}) |
||
| 420 | } |
||
| 421 | } |
||
| 422 | ) |
||
| 423 | ) |
||
| 424 | , |
||
| 425 | <?php |
||
| 426 | |||
| 427 | } |
||
| 428 | |||
| 429 | $arguments = $this->sd->group_arguments( $this->sd->arguments ); |
||
| 430 | |||
| 431 | // Do we have sections? |
||
| 432 | $has_sections = $arguments == $this->sd->arguments ? false : true; |
||
| 433 | |||
| 434 | |||
| 435 | if($has_sections){ |
||
| 436 | $panel_count = 0; |
||
| 437 | foreach($arguments as $key => $args){ |
||
| 438 | ?> |
||
| 439 | el(wp.components.PanelBody, { |
||
| 440 | title: '<?php esc_attr_e( $key ); ?>', |
||
| 441 | initialOpen: <?php if ( $panel_count ) { |
||
| 442 | echo "false"; |
||
| 443 | } else { |
||
| 444 | echo "true"; |
||
| 445 | }?> |
||
| 446 | }, |
||
| 447 | <?php |
||
| 448 | |||
| 449 | foreach ( $args as $k => $a ) { |
||
| 450 | $k = str_replace('-','__', $k); |
||
| 451 | $this->block_row_start( $k, $a ); |
||
| 452 | $this->build_block_arguments( $k, $a ); |
||
| 453 | $this->block_row_end( $k, $a ); |
||
| 454 | } |
||
| 455 | ?> |
||
| 456 | ), |
||
| 457 | <?php |
||
| 458 | $panel_count ++; |
||
| 459 | |||
| 460 | } |
||
| 461 | }else { |
||
| 462 | ?> |
||
| 463 | el(wp.components.PanelBody, { |
||
| 464 | title: '<?php esc_attr_e( "Settings" ); ?>', |
||
| 465 | initialOpen: true |
||
| 466 | }, |
||
| 467 | <?php |
||
| 468 | foreach ( $this->sd->arguments as $key => $args ) { |
||
| 469 | $key = str_replace('-','__', $key); |
||
| 470 | $this->block_row_start( $key, $args ); |
||
| 471 | $this->build_block_arguments( $key, $args ); |
||
| 472 | $this->block_row_end( $key, $args ); |
||
| 473 | } |
||
| 474 | ?> |
||
| 475 | ), |
||
| 476 | <?php |
||
| 477 | } |
||
| 478 | |||
| 479 | } |
||
| 480 | ?> |
||
| 481 | |||
| 482 | ), |
||
| 483 | |||
| 484 | <?php |
||
| 485 | // If the user sets block-output array then build it |
||
| 486 | if ( ! empty( $this->sd->options['block-output'] ) ) { |
||
| 487 | $this->block_element( $this->sd->options['block-output'] ); |
||
| 488 | }else{ |
||
| 489 | // if no block-output is set then we try and get the shortcode html output via ajax. |
||
| 490 | ?> |
||
| 491 | el('div', { |
||
| 492 | dangerouslySetInnerHTML: {__html: onChangeContent()}, |
||
| 493 | className: props.className, |
||
| 494 | style: {'minHeight': '30px'} |
||
| 495 | }) |
||
| 496 | <?php |
||
| 497 | } |
||
| 498 | ?> |
||
| 499 | ]; // end return |
||
| 500 | }, |
||
| 501 | |||
| 502 | // Enable transforming from Legacy widgets. |
||
| 503 | transforms: { |
||
| 504 | from: [ |
||
| 505 | { |
||
| 506 | type: "block", |
||
| 507 | blocks: ["core/legacy-widget"], |
||
| 508 | isMatch: function isMatch(attributes) { |
||
| 509 | var idBase = attributes.idBase, |
||
| 510 | instance = attributes.instance; |
||
| 511 | |||
| 512 | if (!(instance !== null && instance !== void 0 && instance.raw)) { |
||
| 513 | // Can't transform if raw instance is not shown in REST API. |
||
| 514 | return false; |
||
| 515 | } |
||
| 516 | |||
| 517 | return idBase === "<?php echo $this->sd->options['base_id'];?>"; |
||
| 518 | }, |
||
| 519 | transform: function transform(attributes) { |
||
| 520 | var instance = attributes.instance; |
||
| 521 | |||
| 522 | return wp.blocks.createBlock("<?php echo $block_name;?>", instance.raw); |
||
| 523 | } |
||
| 524 | } |
||
| 525 | ] |
||
| 526 | }, |
||
| 527 | |||
| 528 | // The "save" property must be specified and must be a valid function. |
||
| 529 | save: function (props) { |
||
| 530 | |||
| 531 | //console.log(props); |
||
| 532 | |||
| 533 | |||
| 534 | var attr = props.attributes; |
||
| 535 | var align = ''; |
||
| 536 | |||
| 537 | // build the shortcode. |
||
| 538 | var content = "[<?php echo $this->sd->options['base_id'];?>"; |
||
| 539 | $html = ''; |
||
| 540 | <?php |
||
| 541 | |||
| 542 | if(! empty( $this->sd->arguments )){ |
||
| 543 | |||
| 544 | foreach($this->sd->arguments as $key => $args){ |
||
| 545 | $key = str_replace('-','__', $key); |
||
| 546 | ?> |
||
| 547 | if (attr.hasOwnProperty("<?php echo esc_attr( $key );?>")) { |
||
| 548 | if ('<?php echo esc_attr( $key );?>' == 'html') { |
||
| 549 | $html = attr.<?php echo esc_attr( $key );?>; |
||
| 550 | } else { |
||
| 551 | content += " <?php echo str_replace( '__','-', esc_attr( $key ) );?>='" + attr.<?php echo esc_attr( $key );?>+ "' "; |
||
| 552 | } |
||
| 553 | } |
||
| 554 | <?php |
||
| 555 | } |
||
| 556 | } |
||
| 557 | |||
| 558 | ?> |
||
| 559 | content += "]"; |
||
| 560 | |||
| 561 | // if has html element |
||
| 562 | if ($html) { |
||
| 563 | content += $html + "[/<?php echo $this->sd->options['base_id'];?>]"; |
||
| 564 | } |
||
| 565 | |||
| 566 | |||
| 567 | // @todo should we add inline style here or just css classes? |
||
| 568 | if (attr.alignment) { |
||
| 569 | if (attr.alignment == 'left') { |
||
| 570 | align = 'alignleft'; |
||
| 571 | } |
||
| 572 | if (attr.alignment == 'center') { |
||
| 573 | align = 'aligncenter'; |
||
| 574 | } |
||
| 575 | if (attr.alignment == 'right') { |
||
| 576 | align = 'alignright'; |
||
| 577 | } |
||
| 578 | } |
||
| 579 | |||
| 580 | <?php |
||
| 581 | if(isset( $this->sd->options['block-wrap'] ) && $this->sd->options['block-wrap'] == ''){ |
||
| 582 | ?> |
||
| 583 | return content; |
||
| 584 | <?php |
||
| 585 | }else{ |
||
| 586 | ?> |
||
| 587 | var block_wrap = 'div'; |
||
| 588 | if (attr.hasOwnProperty("block_wrap")) { |
||
| 589 | block_wrap = attr.block_wrap; |
||
| 590 | } |
||
| 591 | return el(block_wrap, {dangerouslySetInnerHTML: {__html: content}, className: align}); |
||
| 592 | <?php |
||
| 593 | } |
||
| 594 | ?> |
||
| 595 | |||
| 596 | |||
| 597 | } |
||
| 598 | }); |
||
| 599 | })(); |
||
| 600 | </script> |
||
| 601 | <?php |
||
| 602 | $output = ob_get_clean(); |
||
| 603 | |||
| 604 | /* |
||
| 605 | * We only add the <script> tags for code highlighting, so we strip them from the output. |
||
| 606 | */ |
||
| 607 | |||
| 608 | return str_replace( array( |
||
| 609 | '<script>', |
||
| 610 | '</script>' |
||
| 611 | ), '', $output ); |
||
| 612 | } |
||
| 967 |