Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. <?php if ( ghostpool_option( 'hub_fields' ) ) {
  2.  
  3. // Support for foreign characters
  4. $char_table = array();
  5. if ( function_exists( 'ghostpool_hub_field_characters' ) ) {
  6. $char_table = ghostpool_hub_field_characters();
  7. }
  8.  
  9. foreach( ghostpool_option( 'hub_fields' ) as $gp_hub_field ) {
  10.  
  11. $gp_hub_field_slug = strtr( $gp_hub_field, $char_table );
  12. if ( function_exists( 'iconv' ) ) {
  13. $gp_hub_field_slug = iconv( 'UTF-8', 'UTF-8//TRANSLIT//IGNORE', $gp_hub_field_slug );
  14. }
  15.  
  16. $gp_hub_field_slug = sanitize_title( $gp_hub_field_slug );
  17. $gp_hub_field_slug = substr( $gp_hub_field_slug, 0, 32 );
  18. $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>' );
  19. if ( ! $gp_term_list OR is_wp_error( $gp_term_list ) ) {
  20. continue;
  21. }
  22. if ( ghostpool_option( 'hub_field_links' ) == 'disabled' ) {
  23. $gp_term_list = preg_replace( '/</?a[^>]*>/', '', $gp_term_list );
  24. }
  25. echo wp_kses_post( $gp_term_list );
  26.  
  27. }
  28.  
  29. } ?>
  30.  
  31. </div>
  32.  
  33. </div></code>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement