mirror of
https://github.com/Tailszefox/Pony-Fusion.git
synced 2024-11-27 07:57:58 +01:00
Add support for multiple sources
This commit is contained in:
parent
5c85818f7c
commit
2c7fdeccc1
1 changed files with 21 additions and 3 deletions
|
@ -46,9 +46,27 @@ if(!empty($from) && !empty($to))
|
||||||
|
|
||||||
<p><a href="<?php echo $imgUrl ?>"><img id="resultImage" src="<?php echo $imgUrl ?>" /></a></p>
|
<p><a href="<?php echo $imgUrl ?>"><img id="resultImage" src="<?php echo $imgUrl ?>" /></a></p>
|
||||||
|
|
||||||
<p id="resultBottom"> Source: <a href="<?php echo $ponies[$from]["source"] ?>" id="sourceLink"><?php echo $ponies[$from]["source"] ?></a><br />
|
<p id="resultBottom"> Source:
|
||||||
<a href="<?php echo $linkUrl ?>">Permalink to this fusion</a></p>
|
<?php
|
||||||
|
if(is_array($ponies[$from]["source"]))
|
||||||
|
{
|
||||||
|
foreach($ponies[$from]["source"] as $source)
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<a href="<?php echo $source ?>" class="sourceLink"><?php echo $source ?></a>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<a href="<?php echo $ponies[$from]["source"] ?>" class="sourceLink"><?php echo $ponies[$from]["source"] ?></a>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<br />
|
||||||
|
<a href="<?php echo $linkUrl ?>">Permalink to this fusion</a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue