This is the php version for e.g. Ace.php:
Code:
<div class="tinyurl">
Permalink:
<?php $tinyUrl = file_get_contents("http://tinyurl.com/api-create.php?url=" . $wgTitle->getFullURL() ); ?>
<a href="<?php echo($tinyUrl); ?>" rel="custom"><?php echo($tinyUrl); ?></a>
</div>
Format the class tinyurl to your liking (color, position, etc.). E.g. we are using this for our customized version of the Ace skin in common.css:
Code:
div.tinyurl {
float: right;
color: #CDD2DE;
font-size: 10px;
padding: 8px 12px;
}
div.tinyurl a {
color: #CDD2DE !important;
text-decoration: none;
}