mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Added body text setting
git-svn-id: file:///svn/phpbb/trunk@1602 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
da4a572e24
commit
c4c1da86c9
3 changed files with 47 additions and 38 deletions
|
@ -38,12 +38,12 @@ $phpbb_root_dir = "./../";
|
||||||
//
|
//
|
||||||
// Check if the user has cancled a confirmation message.
|
// Check if the user has cancled a confirmation message.
|
||||||
//
|
//
|
||||||
$confirm = ( $HTTP_POST_VARS['confirm'] ) ? TRUE : FALSE;
|
$confirm = ( isset($HTTP_POST_VARS['confirm']) ) ? TRUE : FALSE;
|
||||||
$cancel = ( $HTTP_POST_VARS['cancel'] ) ? TRUE : FALSE;
|
$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : FALSE;
|
||||||
|
|
||||||
if( $cancel )
|
if( $cancel )
|
||||||
{
|
{
|
||||||
header("Location: admin_styles.$phpEx");
|
header("Location: " . append_sid("admin_styles.$phpEx"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !$HTTP_POST_VARS['send_file'] )
|
if( !$HTTP_POST_VARS['send_file'] )
|
||||||
|
@ -53,7 +53,7 @@ if(!$HTTP_POST_VARS['send_file'])
|
||||||
|
|
||||||
if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
{
|
{
|
||||||
$mode = ($HTTP_GET_VARS['mode']) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
|
$mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -63,8 +63,8 @@ else
|
||||||
switch( $mode )
|
switch( $mode )
|
||||||
{
|
{
|
||||||
case "addnew":
|
case "addnew":
|
||||||
$install_to = ($HTTP_GET_VARS['install_to']) ? urldecode($HTTP_GET_VARS['install_to']) : $HTTP_POST_VARS['install_to'];
|
$install_to = ( isset($HTTP_GET_VARS['install_to']) ) ? urldecode($HTTP_GET_VARS['install_to']) : $HTTP_POST_VARS['install_to'];
|
||||||
$style_name = ($HTTP_GET_VARS['style']) ? urldecode($HTTP_GET_VARS['style']) : $HTTP_POST_VARS['style'];
|
$style_name = ( isset($HTTP_GET_VARS['style']) ) ? urldecode($HTTP_GET_VARS['style']) : $HTTP_POST_VARS['style'];
|
||||||
|
|
||||||
if( isset($install_to) )
|
if( isset($install_to) )
|
||||||
{
|
{
|
||||||
|
@ -192,7 +192,7 @@ switch($mode)
|
||||||
|
|
||||||
case "create":
|
case "create":
|
||||||
case "edit":
|
case "edit":
|
||||||
$submit = (isset($HTTP_POST_VARS['submit'])) ? 1 : 0;
|
$submit = ( isset($HTTP_POST_VARS['submit']) ) ? TRUE : 0;
|
||||||
|
|
||||||
if( $submit )
|
if( $submit )
|
||||||
{
|
{
|
||||||
|
@ -204,6 +204,7 @@ switch($mode)
|
||||||
$updated['head_stylesheet'] = $HTTP_POST_VARS['head_stylesheet'];
|
$updated['head_stylesheet'] = $HTTP_POST_VARS['head_stylesheet'];
|
||||||
$updated['body_background'] = $HTTP_POST_VARS['body_background'];
|
$updated['body_background'] = $HTTP_POST_VARS['body_background'];
|
||||||
$updated['body_bgcolor'] = $HTTP_POST_VARS['body_bgcolor'];
|
$updated['body_bgcolor'] = $HTTP_POST_VARS['body_bgcolor'];
|
||||||
|
$updated['body_text'] = $HTTP_POST_VARS['body_text'];
|
||||||
$updated['body_link'] = $HTTP_POST_VARS['body_link'];
|
$updated['body_link'] = $HTTP_POST_VARS['body_link'];
|
||||||
$updated['body_vlink'] = $HTTP_POST_VARS['body_vlink'];
|
$updated['body_vlink'] = $HTTP_POST_VARS['body_vlink'];
|
||||||
$updated['body_alink'] = $HTTP_POST_VARS['body_alink'];
|
$updated['body_alink'] = $HTTP_POST_VARS['body_alink'];
|
||||||
|
@ -558,10 +559,11 @@ switch($mode)
|
||||||
"L_STYLESHEET" => $lang['Stylesheet'],
|
"L_STYLESHEET" => $lang['Stylesheet'],
|
||||||
"L_BACKGROUND_IMAGE" => $lang['Background_image'],
|
"L_BACKGROUND_IMAGE" => $lang['Background_image'],
|
||||||
"L_BACKGROUND_COLOR" => $lang['Background_color'],
|
"L_BACKGROUND_COLOR" => $lang['Background_color'],
|
||||||
"L_BODY_LINK" => $lang['Link_color'],
|
"L_BODY_TEXT_COLOR" => $lang['Text_color'],
|
||||||
"L_BODY_VLINK" => $lang['VLink_color'],
|
"L_BODY_LINK_COLOR" => $lang['Link_color'],
|
||||||
"L_BODY_ALINK" => $lang['ALink_color'],
|
"L_BODY_VLINK_COLOR" => $lang['VLink_color'],
|
||||||
"L_BODY_HLINK" => $lang['HLink_color'],
|
"L_BODY_ALINK_COLOR" => $lang['ALink_color'],
|
||||||
|
"L_BODY_HLINK_COLOR" => $lang['HLink_color'],
|
||||||
"L_TR_COLOR1" => $lang['Tr_color1'],
|
"L_TR_COLOR1" => $lang['Tr_color1'],
|
||||||
"L_TR_COLOR2" => $lang['Tr_color2'],
|
"L_TR_COLOR2" => $lang['Tr_color2'],
|
||||||
"L_TR_COLOR3" => $lang['Tr_color3'],
|
"L_TR_COLOR3" => $lang['Tr_color3'],
|
||||||
|
@ -597,10 +599,11 @@ switch($mode)
|
||||||
"HEAD_STYLESHEET" => $selected['head_stylesheet'],
|
"HEAD_STYLESHEET" => $selected['head_stylesheet'],
|
||||||
"BODY_BACKGROUND" => $selected['body_background'],
|
"BODY_BACKGROUND" => $selected['body_background'],
|
||||||
"BODY_BGCOLOR" => $selected['body_bgcolor'],
|
"BODY_BGCOLOR" => $selected['body_bgcolor'],
|
||||||
"BODY_LINK" => $selected['body_link'],
|
"BODY_TEXT_COLOR" => $selected['body_text'],
|
||||||
"BODY_VLINK" => $selected['body_vlink'],
|
"BODY_LINK_COLOR" => $selected['body_link'],
|
||||||
"BODY_ALINK" => $selected['body_alink'],
|
"BODY_VLINK_COLOR" => $selected['body_vlink'],
|
||||||
"BODY_HLINK" => $selected['body_hlink'],
|
"BODY_ALINK_COLOR" => $selected['body_alink'],
|
||||||
|
"BODY_HLINK_COLOR" => $selected['body_hlink'],
|
||||||
"TR_COLOR1" => $selected['tr_color1'],
|
"TR_COLOR1" => $selected['tr_color1'],
|
||||||
"TR_COLOR2" => $selected['tr_color2'],
|
"TR_COLOR2" => $selected['tr_color2'],
|
||||||
"TR_COLOR3" => $selected['tr_color3'],
|
"TR_COLOR3" => $selected['tr_color3'],
|
||||||
|
@ -791,7 +794,7 @@ switch($mode)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "delete":
|
case "delete":
|
||||||
$style_id = ($HTTP_GET_VARS['style_id']) ? intval($HTTP_GET_VARS['style_id']) : intval($HTTP_POST_VARS['style_id']);
|
$style_id = ( isset($HTTP_GET_VARS['style_id']) ) ? intval($HTTP_GET_VARS['style_id']) : intval($HTTP_POST_VARS['style_id']);
|
||||||
|
|
||||||
if( !$confirm )
|
if( !$confirm )
|
||||||
{
|
{
|
||||||
|
|
|
@ -589,6 +589,7 @@ $lang['Background_image'] = "Background Image";
|
||||||
$lang['Background_color'] = "Background Colour";
|
$lang['Background_color'] = "Background Colour";
|
||||||
$lang['Theme_name'] = "Theme Name";
|
$lang['Theme_name'] = "Theme Name";
|
||||||
$lang['Link_color'] = "Link Colour";
|
$lang['Link_color'] = "Link Colour";
|
||||||
|
$lang['Text_color'] = "Text Colour";
|
||||||
$lang['VLink_color'] = "Visited Link Colour";
|
$lang['VLink_color'] = "Visited Link Colour";
|
||||||
$lang['ALink_color'] = "Active Link Colour";
|
$lang['ALink_color'] = "Active Link Colour";
|
||||||
$lang['HLink_color'] = "Hover Link Colour";
|
$lang['HLink_color'] = "Hover Link Colour";
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
<td class="row2" colspan="2">{S_TEMPLATE_SELECT}</td>
|
<td class="row2" colspan="2">{S_TEMPLATE_SELECT}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="cattitle">{L_THEME_ELEMENT}</td>
|
<th>{L_THEME_ELEMENT}</th>
|
||||||
<td class="cattitle">{L_VALUE}</td>
|
<th>{L_VALUE}</th>
|
||||||
<td class="cattitle">{L_SIMPLE_NAME}</td>
|
<th>{L_SIMPLE_NAME}</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1">{L_STYLESHEET}:<br /><span class="gensmall">Filename for CSS stylesheet to use for this theme.</span></td>
|
<td class="row1">{L_STYLESHEET}:<br /><span class="gensmall">Filename for CSS stylesheet to use for this theme.</span></td>
|
||||||
|
@ -32,27 +32,32 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1">{L_BACKGROUND_COLOR}:</td>
|
<td class="row1">{L_BACKGROUND_COLOR}:</td>
|
||||||
<td class="row2" ><input type="text" size="25" maxlength="100" name="body_bgcolor" value="{BODY_BGCOLOR}"></td>
|
<td class="row2" ><input type="text" size="6" maxlength="6" name="body_bgcolor" value="{BODY_BGCOLOR}"></td>
|
||||||
<td class="row2"> </td>
|
<td class="row2"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1">{L_BODY_LINK}:</td>
|
<td class="row1">{L_BODY_TEXT_COLOR}:</td>
|
||||||
<td class="row2" ><input type="text" size="25" maxlength="100" name="body_link" value="{BODY_LINK}"></td>
|
<td class="row2" ><input type="text" size="6" maxlength="6" name="body_text" value="{BODY_TEXT_COLOR}"></td>
|
||||||
<td class="row2"> </td>
|
<td class="row2"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1">{L_BODY_VLINK}:</td>
|
<td class="row1">{L_BODY_LINK_COLOR}:</td>
|
||||||
<td class="row2" ><input type="text" size="25" maxlength="100" name="body_vlink" value="{BODY_VLINK}"></td>
|
<td class="row2" ><input type="text" size="6" maxlength="6" name="body_link" value="{BODY_LINK_COLOR}"></td>
|
||||||
<td class="row2"> </td>
|
<td class="row2"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1">{L_BODY_ALINK}:</td>
|
<td class="row1">{L_BODY_VLINK_COLOR}:</td>
|
||||||
<td class="row2" ><input type="text" size="25" maxlength="100" name="body_alink" value="{BODY_ALINK}"></td>
|
<td class="row2" ><input type="text" size="6" maxlength="6" name="body_vlink" value="{BODY_VLINK_COLOR}"></td>
|
||||||
<td class="row2"> </td>
|
<td class="row2"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1">{L_BODY_HLINK}:</td>
|
<td class="row1">{L_BODY_ALINK_COLOR}:</td>
|
||||||
<td class="row2" ><input type="text" size="25" maxlength="100" name="body_hlink" value="{BODY_HLINK}"></td>
|
<td class="row2" ><input type="text" size="6" maxlength="6" name="body_alink" value="{BODY_ALINK_COLOR}"></td>
|
||||||
|
<td class="row2"> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="row1">{L_BODY_HLINK_COLOR}:</td>
|
||||||
|
<td class="row2" ><input type="text" size="6" maxlength="6" name="body_hlink" value="{BODY_HLINK_COLOR}"></td>
|
||||||
<td class="row2"> </td>
|
<td class="row2"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue