AvocadoAmber/AvocadoEdition_Light/_extra_font.php

23 lines
614 B
PHP
Raw Normal View History

2024-09-22 13:51:59 +09:00
<?php
2024-09-22 14:37:46 +09:00
if (!defined('_GNUBOARD_'))
exit;
2024-09-22 13:51:59 +09:00
$font_sql = "SELECT * FROM {$g5['font_table']} ORDER BY font_name ASC";
$font_result = sql_query($font_sql);
echo "<style id=\"extra_font\">";
while ($row = sql_fetch_array($font_result)) {
$font_family = $row['font_family'];
$font_url = stripslashes($row['font_url']);
$font_weight = $row['font_weight'];
$font_style = $row['font_style'];
echo "@font-face {\n";
echo " font-family: '{$font_family}';\n";
echo " src: {$font_url};\n";
echo " font-weight: {$font_weight};\n";
echo " font-style: {$font_style};\n";
echo "}\n\n";
}
echo "</style>";