18 lines
474 B
PHP
Executable File
18 lines
474 B
PHP
Executable File
<?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;
|
|
}
|
|
} |