if ($short_url) {
$short_url = (string)$short_url;
-if(1) {
// store it
$file = File::staticGet('url', $long_url);
if (empty($file)) {
$file_redir->file_id = $file_id;
$file_redir->insert();
}
-}
return $short_url;
}
return $long_url;
function showNotice()
{
-if (0)
+if(0)
$this->out->elementStart('entry-title');
else
$clip .= '.png';
$top = '20px';
}
-if (0)
+if(0)
$this->out->elementStart('div', 'entry-attachments');
else
$this->out->elementStart('p', array('class' => 'entry-attachments', 'style' => "float: right; width: $width_att; background: url($clip) no-repeat; text-align: right; height: $height;"));
}
$attrs = array('href' => $longurl, 'rel' => 'external');
-if(0){
- if ($longurl !== $url) {
- $attrs['title'] = $longurl;
- }
-}
return XMLStringer::estring('a', $attrs, $display);
}