1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-25 18:13:28 +01:00

[ticket/14492] Rename files to help_phpbb and fix css tabbing

PHPBB3-14492
This commit is contained in:
Marc Alexander 2016-01-31 23:49:17 +01:00
parent 6f315da9ab
commit c1035c98e4
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
5 changed files with 87 additions and 56 deletions

View File

@ -30,10 +30,10 @@
</div>
<dl class="send-stats-settings">
<dt>
<input id="enable-stats" type="checkbox" />
<input id="enable-stats" type="checkbox" checked="checked" />
<label for="enable-stats"></label>
</dt>
<dd>{L_YES}</dd>
<dd>{L_SEND_STATISTICS}</dd>
</dl>
</div>
<div class="send-stats-tile">
@ -48,24 +48,5 @@
</dl>
</div>
</div>
<div style="clear: both; display: none;">
<script type="text/javascript">
//<![CDATA[
var iframect = 0;
function iframe_updated()
{
if (iframect++ == 0)
{
return;
}
phpbb.toggleDisplay('questionnaire-form', -1);
phpbb.toggleDisplay('questionnaire-thanks', 1);
}
//]]>
</script>
</div>
<!-- INCLUDE overall_footer.html -->

View File

@ -2624,72 +2624,73 @@ fieldset.permissions .padding {
}
.send-stats-data-row {
background: #f9f9f9;
border-radius: 6px;
border: #DEDEDE 1px solid;
padding: 10px;
border-top-width: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
background: #f9f9f9;
border-radius: 6px;
border: #DEDEDE 1px solid;
padding: 10px;
border-top-width: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.send-stats-data-hidden .configlist {
display: none;
display: none;
}
.send-stats-data-only-row {
border-radius: 6px !important;
border-bottom-width: 1px !important;
border-radius: 6px !important;
border-bottom-width: 1px !important;
}
.send-stats-data-hidden {
padding: 0;
border: none;
padding: 0;
border: none;
}
.send-stats-row > .send-stats-data-row:first-child {
background-color: #d9edf7;
border-bottom-width: 0;
border-top-right-radius: 6px;
border-top-left-radius: 6px;
border-top-width: 1px;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
background-color: #d9edf7;
border-bottom-width: 0;
border-top-right-radius: 6px;
border-top-left-radius: 6px;
border-top-width: 1px;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.send-stats-settings dt, .send-stats-settings dd {
min-width: 25px;
min-width: 25px;
}
.send-stats-settings dd {
line-height: 1.5em;
line-height: 1.5em;
}
.send-stats-settings input {
display: none;
display: none;
}
.send-stats-settings input[type=checkbox] + label:before {
content: "\f096";
font-family: FontAwesome;
font-size: 1.5em;
content: "\f096";
font-family: FontAwesome;
font-size: 1.5em;
}
.send-stats-settings input[type=checkbox]:checked + label:before {
content: "\f14a";
color: #3c763d;
content: "\f14a";
color: #3c763d;
}
.send-stats-data-row a:hover span {
text-decoration: underline;
text-decoration: underline;
}
.send-stats-data-row a {
text-decoration: none;
text-decoration: none;
cursor: default;
}
.send-stats-data-row i {
padding-left: 6px;
padding-left: 6px;
}
.configlist {

View File

@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
exit;
}
class acp_send_statistics
class acp_help_phpbb
{
var $u_action;
@ -34,7 +34,7 @@ class acp_send_statistics
$collect_url = "https://www.phpbb.com/stats/receive_stats.php";
$this->tpl_name = 'acp_send_statistics';
$this->tpl_name = 'acp_help_phpbb';
$this->page_title = 'ACP_SEND_STATISTICS';
// generate a unique id if necessary

View File

@ -11,15 +11,15 @@
*
*/
class acp_send_statistics_info
class acp_help_phpbb_info
{
function module()
{
return array(
'filename' => 'acp_send_statistics',
'filename' => 'acp_help_phpbb',
'title' => 'ACP_SEND_STATISTICS',
'modes' => array(
'send_statistics' => array('title' => 'ACP_SEND_STATISTICS', 'auth' => 'acl_a_server', 'cat' => array('ACP_SERVER_CONFIGURATION')),
'help_phpbb' => array('title' => 'ACP_SEND_STATISTICS', 'auth' => 'acl_a_server', 'cat' => array('ACP_SERVER_CONFIGURATION')),
),
);
}

View File

@ -0,0 +1,49 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace phpbb\db\migration\data\v320;
class add_help_phpbb extends \phpbb\db\migration\migration
{
static public function depends_on()
{
return array(
'\phpbb\db\migration\data\v320\v320a2',
);
}
public function effectively_installed()
{
return isset($this->config['help_send_statistics']);
}
public function update_data()
{
return array(
array('config.add', array('help_send_statistics', true)),
array('module.remove', array(
'acp',
false,
'ACP_SEND_STATISTICS',
)),
array('module.add', array(
'acp',
'ACP_SERVER_CONFIGURATION',
array(
'module_basename' => 'acp_help_phpbb',
'modes' => array('help_phpbb'),
),
)),
);
}
}