IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 1016 | 1016 | */ |
| 1017 | 1017 | function the_meta() { |
| 1018 | 1018 | if ( $keys = get_post_custom_keys() ) { |
| 1019 | | echo "<ul class='post-meta'>\n"; |
| | 1019 | $li_html = ''; |
| 1020 | 1020 | foreach ( (array) $keys as $key ) { |
| 1021 | 1021 | $keyt = trim( $key ); |
| 1022 | 1022 | if ( is_protected_meta( $keyt, 'post' ) ) { |
| 1023 | 1023 | continue; |
| 1024 | 1024 | } |
| 1025 | | |
| | 1025 | |
| 1026 | 1026 | $values = array_map( 'trim', get_post_custom_values( $key ) ); |
| 1027 | | $value = implode( $values, ', ' ); |
| 1028 | | |
| | 1027 | $value = implode( $values, ', ' ); |
| | 1028 | |
| 1029 | 1029 | $html = sprintf( "<li><span class='post-meta-key'>%s</span> %s</li>\n", |
| 1030 | 1030 | /* translators: %s: Post custom field name */ |
| 1031 | 1031 | sprintf( _x( '%s:', 'Post custom field name' ), $key ), |
| 1032 | 1032 | $value |
| 1033 | 1033 | ); |
| 1034 | | |
| | 1034 | |
| 1035 | 1035 | /** |
| 1036 | 1036 | * Filters the HTML output of the li element in the post custom fields list. |
| 1037 | 1037 | * |
| … |
… |
|
| 1041 | 1041 | * @param string $key Meta key. |
| 1042 | 1042 | * @param string $value Meta value. |
| 1043 | 1043 | */ |
| 1044 | | echo apply_filters( 'the_meta_key', $html, $key, $value ); |
| | 1044 | $li_html .= apply_filters( 'the_meta_key', $html, $key, $value ); |
| 1045 | 1045 | } |
| 1046 | | echo "</ul>\n"; |
| | 1046 | |
| | 1047 | if ( $li_html ) { |
| | 1048 | echo "<ul class='post-meta'>\n$li_html</ul>\n"; |
| | 1049 | } |
| 1047 | 1050 | } |
| 1048 | 1051 | } |
| 1049 | 1052 | |