Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ghostpool_option( 'hub_fields' ) ) {
- // Support for foreign characters
- $char_table = array();
- if ( function_exists( 'ghostpool_hub_field_characters' ) ) {
- $char_table = ghostpool_hub_field_characters();
- }
- foreach( ghostpool_option( 'hub_fields' ) as $gp_hub_field ) {
- $gp_hub_field_slug = strtr( $gp_hub_field, $char_table );
- if ( function_exists( 'iconv' ) ) {
- $gp_hub_field_slug = iconv( 'UTF-8', 'UTF-8//TRANSLIT//IGNORE', $gp_hub_field_slug );
- }
- $gp_hub_field_slug = sanitize_title( $gp_hub_field_slug );
- $gp_hub_field_slug = substr( $gp_hub_field_slug, 0, 32 );
- $gp_term_list = get_the_term_list( $post_id, $gp_hub_field_slug, '<table class="casino-info"><tbody><span class="aaa"><tr class="casino-info-titel"><th scope="row">' . __($gp_hub_field,'JDcustomnew') . ':</th><td scope="row" data-label="'<?php echo ($gp_hub_field ); ?>'">', ', ', '</td></tbody></table>' );
- if ( ! $gp_term_list OR is_wp_error( $gp_term_list ) ) {
- continue;
- }
- if ( ghostpool_option( 'hub_field_links' ) == 'disabled' ) {
- $gp_term_list = preg_replace( '/</?a[^>]*>/', '', $gp_term_list );
- }
- echo wp_kses_post( $gp_term_list );
- }
- } ?>
- </div>
- </div></code>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement