diff --git a/inc/defines.php b/inc/defines.php index 71b6a70..822bcd0 100644 --- a/inc/defines.php +++ b/inc/defines.php @@ -153,8 +153,10 @@ if (!defined('TINYIB_DEFAULTSTYLE')) { define('TINYIB_DEFAULTSTYLE', 'futaba'); } if (!isset($tinyib_stylesheets)) { - $tinyib_stylesheets = array('futaba' => 'Futaba', - 'burichan' => 'Burichan'); + $tinyib_stylesheets = array( + 'futaba' => 'Futaba', + 'burichan' => 'Burichan' + ); } if (!isset($tinyib_hidefieldsop)) { $tinyib_hidefieldsop = array(); diff --git a/inc/html.php b/inc/html.php index 1041140..4231a71 100644 --- a/inc/html.php +++ b/inc/html.php @@ -50,19 +50,15 @@ function pageStylesheets() { $return = ''; // Default stylesheet - $default_style_value = htmlentities(TINYIB_DEFAULTSTYLE, ENT_QUOTES); - $default_style_name = htmlentities($tinyib_stylesheets[TINYIB_DEFAULTSTYLE]); - $return .= ''; + $return .= ''; // Additional stylesheets - foreach($tinyib_stylesheets as $value => $display_name) { - if ($value === TINYIB_DEFAULTSTYLE) { + foreach($tinyib_stylesheets as $filename => $title) { + if ($filename === TINYIB_DEFAULTSTYLE) { continue; } - $value_html = htmlentities($value, ENT_QUOTES); - $name_html = htmlentities($display_name, ENT_QUOTES); - $return .= ''; + $return .= ''; } return $return; @@ -653,18 +649,16 @@ EOF; $txt_delete = __('Delete'); $txt_delete_post = __('Delete Post'); - $style_select = ''; - + $select_style = ''; if (count($tinyib_stylesheets) > 1) { - $options = ''; + $select_style = ''. $options . ''; + $select_style .= ''; } $body = << $cataloglink $managelink - $style_select + $select_style