Code not supported
-
This code is not displayed correctly.
It is a part of wp-includes-media-template.php
If I replace all < by < and > by > than it displays correctly.
Is there another way?<script type="text/html" id="tmpl-attachment-grid-view"> <div class="attachment-preview js--select-attachment type-{{ data.type }} subtype-{{ data.subtype }} {{ data.orientation }}"> <div class="eml-attacment-inline-toolbar"> <# if ( data.can.save && data.buttons.edit ) { #> <i class="eml-icon dashicons dashicons-edit edit" data-name="edit"></i> <# } #> </div> <div class="thumbnail"> <# if ( data.uploading ) { #> <div class="media-progress-bar"><div style="width: {{ data.percent }}%"></div></div> <# } else if ( 'image' === data.type && data.sizes ) { #> <div class="centered"> <img src="{{ data.size.url }}" draggable="false" alt="" /> </div> <!-- mod voeg bestandsnaam EN ID toe aan tn in media bib. --> <div class="filename">{{ data.filename}} - id:{{data.id}}</div> <!-- einde mod --> <# } else { #> <div class="centered"> <# if ( data.image && data.image.src && data.image.src !== data.icon ) { #> <img src="{{ data.image.src }}" class="thumbnail" draggable="false" /> <# } else { #> <img src="{{ data.icon }}" class="icon" draggable="false" /> <# } #> </div> <div class="filename"> <div>{{ data.filename }}</div> </div> <# } #> </div> <# if ( data.buttons.close ) { #> <?php echo $remove_button; ?> <# } #> </div> <# if ( data.buttons.check ) { #> <?php echo $deselect_button; ?> <# } #> <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; if ( data.describe ) { if ( 'image' === data.type ) { #> <input type="text" value="{{ data.caption }}" class="describe" data-setting="caption" placeholder="<?php esc_attr_e('Caption this image…'); ?>" {{ maybeReadOnly }} /> <# } else { #> <input type="text" value="{{ data.title }}" class="describe" data-setting="title" <# if ( 'video' === data.type ) { #> placeholder="<?php esc_attr_e('Describe this video…'); ?>" <# } else if ( 'audio' === data.type ) { #> placeholder="<?php esc_attr_e('Describe this audio file…'); ?>" <# } else { #> placeholder="<?php esc_attr_e('Describe this media file…'); ?>" <# } #> {{ maybeReadOnly }} /> <# } } #> </script> <?php } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Code not supported’ is closed to new replies.