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:
parent
6f315da9ab
commit
c1035c98e4
@ -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 -->
|
@ -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 {
|
||||
|
@ -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
|
@ -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')),
|
||||
),
|
||||
);
|
||||
}
|
49
phpBB/phpbb/db/migration/data/v320/add_help_phpbb.php
Normal file
49
phpBB/phpbb/db/migration/data/v320/add_help_phpbb.php
Normal 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'),
|
||||
),
|
||||
)),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user