SHARE
TWEET

Untitled

a guest May 19th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $licznik = 0;
  2. foreach ( $teams as $t => $team ):
  3.     $licznik++;
  4.     $name = sp_team_short_name( $team );
  5.     if ( $name ):
  6.  
  7.         $name = '<meta itemprop="name" content="' . $name . '">' . $name;
  8.  
  9.         if ( $show_team_logo ):
  10.             if ( has_post_thumbnail( $team ) ):
  11.                 if ($licznik == 1) $logo = '<span class="team-logo">' . sp_get_logo( $team, 'mini', array( 'itemprop' => 'url' ) ) . '</span>';
  12.                 $team_logos[] = $logo;
  13.                 $team_class .= ' has-logo';
  14.                
  15.                 if ( $t ):
  16.                     $name = $logo . ' ' . $name;
  17.                 else:
  18.                     $name .= ' ' . $logo;
  19.                 endif;
  20.             endif;
  21.         endif;
  22.  
  23.         if ( $link_teams ):
  24.             $team_output = '<a href="' . get_post_permalink( $team ) . '" itemprop="url">' . $name . '</a>';
  25.         else:
  26.             $team_output = $name;
  27.         endif;
  28.  
  29.         $team_result = sp_array_value( $main_results, $team, null );
  30.  
  31.         if ( $team_result != null ):
  32.             if ( $usecolumns != null && ! in_array( 'time', $usecolumns ) ):
  33.                 $team_output .= ' (' . $team_result . ')';
  34.             endif;
  35.         endif;
  36.  
  37.         $teams_array[] = $team_output;
  38.         if ($licznik == 2)
  39.         {
  40.             $logo = '<span class="team-logo2">' . sp_get_logo( $team, 'mini', array( 'itemprop' => 'url' ) ) . '</span>';
  41.             $teams_output = "$teams_output $logo";
  42.         }
  43.         $teams_output .= $team_output . '<br>';
  44.     endif;
  45. endforeach;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top