This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/helpers/StaticHelper.php

18 lines
474 B
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<?php
class StaticHelper extends Rails\ActionView\Helper
{
public function numbers_to_imoutos($number)
{
if (!CONFIG()->show_homepage_imoutos)
return;
$number = str_split($number);
$output = '<div style="margin-bottom: 1em;">'."\r\n";
foreach($number as $num)
$output .= ' <img alt="' . $num . '" src="/images/' . $num . ".gif\" />\r\n";
$output .= " </div>\r\n";
return $output;
}
}