Guest User

Untitled

a guest
Mar 25th, 2018
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. <?php
  2. defined('MYAAC') or die('Direct access not allowed!');
  3. $GuildList = new OTS_Guilds_List();
  4. $GuildListArray = array();
  5.  
  6. foreach($GuildList as $Guild)
  7. {
  8. $GuildLogo = $Guild->getCustomField('logo_name');
  9.   if(empty($GuildLogo) || !file_exists('images/guilds/' . $GuildLogo))
  10.     $GuildLogo = "default.gif";
  11.  
  12.   $GuildListArray[] = array(
  13.     'name' => $Guild->getName(),
  14.     'link' => getGuildLink($Guild->getName(), false),
  15.     'logo' => $GuildLogo,
  16.     'description' => $Guild->getCustomField('description')
  17.   );
  18. }
  19.  
  20. echo $twig->render('guilds.list.html.twig', array(
  21.     'guilds' => $GuildListArray,
  22. ));
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment