'.html::escapeHTML($core->blog->name).' › '.__('Supplementary templates').' › '.__('Database informations').'';
$tags = $core->meta->getMetadata(array('meta_type' => 'template'));
$tags = $core->meta->computeMetaStats($tags);
$tags->sort('meta_id_lower','asc');
$last_letter = null;
$cols = array('','');
$col = 0;
while ($tags->fetch())
{
$letter = mb_strtoupper(mb_substr($tags->meta_id,0,1));
if ($last_letter != $letter) {
if ($tags->index() >= round($tags->count()/2)) {
$col = 1;
}
$cols[$col] .= ''.$letter.' |
';
}
$img = '';
if (array_key_exists($tags->meta_id,$core->templator->tpl)) {
$img_status = sprintf($img,__('available template'),'check-on.png');
} else {
$img_status = sprintf($img,__('missing template'),'check-off.png');
}
$cols[$col] .=
''.
''.$tags->meta_id.' '.$img_status.' | '.
''.$tags->count.' '.
(($tags->count==1) ? __('entry') : __('entries')).' | '.
'
';
$last_letter = $letter;
}
$table = '';
if ($cols[0])
{
echo '';
printf($table,$cols[0]);
if ($cols[1]) {
printf($table,$cols[1]);
}
echo '
';
}
else
{
echo ''.__('No specific templates on this blog.').'
';
}
?>