Skip to content

Commit

Permalink
Start theming player page
Browse files Browse the repository at this point in the history
  • Loading branch information
DNA-styx committed Oct 6, 2024
1 parent df6d092 commit b29e9a9
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 15 deletions.
6 changes: 6 additions & 0 deletions web/includes/inc_windmill_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ function display_page_title($title){

}

function display_page_subtitle($title){

echo "<h4 class=\"mb-4 text-lg font-semibold text-gray-600 dark:text-gray-300\">" . $title . "</h4>";

}

/**
* getWindmillSortArrow()
*
Expand Down
3 changes: 2 additions & 1 deletion web/pages/playerhistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,8 @@ function insertEvents ($table, $select)

<div class="block">
<?php
printSectionTitle('Player Event History (Last '.$g_options['DeleteDays'].' Days)');
display_page_subtitle('Player Event History (Last '.$g_options['DeleteDays'].' Days)');
// printSectionTitle('Player Event History (Last '.$g_options['DeleteDays'].' Days)');
if ($numitems > 0)
{
$table->draw($result, $numitems, 95);
Expand Down
1 change: 1 addition & 0 deletions web/pages/playerinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@
}
?>
</div>

<div class="block" style="clear:both;padding-top:12px;">
<div class="subblock">
<div style="float:left;">
Expand Down
3 changes: 2 additions & 1 deletion web/pages/playerinfo_aliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@

<div style="clear:both;padding-top:24px;"></div>
<?php
printSectionTitle('Aliases');
display_page_subtitle('Aliases');
//printSectionTitle('Aliases');
if ($numitems > 0)
{
$tblAliases->draw($result, $numitems, 95);
Expand Down
4 changes: 2 additions & 2 deletions web/pages/playerinfo_general.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
die('Do not access this file directly.');
}
?>

<?php printSectionTitle('Player Information'); ?>
<?php display_page_title('Player Information for ' . htmlspecialchars($playerdata['lastName'], ENT_COMPAT)); ?>
<?php // printSectionTitle('Player Information'); ?>
<div class="subblock">
<div style="float:left;vertical-align:top;width:48.5%;">
<table class="data-table">
Expand Down
3 changes: 2 additions & 1 deletion web/pages/playerinfo_killstats.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@
");
if ($numitems > 0)
{
printSectionTitle('Player Kill Statistics *');
display_page_subtitle('Player Kill Statistics *');
// printSectionTitle('Player Kill Statistics *');
$tblPlayerKillStats->draw($result, $numitems, 95); ?>
<br /><br />
<div class="subblock">
Expand Down
3 changes: 2 additions & 1 deletion web/pages/playerinfo_mapperformance.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@
?>
<div style="clear:both;padding-top:20px;"></div>
<?php
printSectionTitle('Map Performance *');
display_page_subtitle('Map Performance *');
// printSectionTitle('Map Performance *');
$tblMaps->draw($result, $numitems, 95);
?>
<br /><br />
Expand Down
7 changes: 4 additions & 3 deletions web/pages/playerinfo_playeractions.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@
?>
<div style="clear:both;padding-top:20px;"></div>
<?php
printSectionTitle('Player Actions *');
display_page_subtitle('Player Actions *');
//printSectionTitle('Player Actions *');
$tblPlayerActions->draw($result, $numitems, 95);
?>
<br /><br />
Expand Down Expand Up @@ -193,8 +194,8 @@
<div style="clear:both;padding-top:20px;"></div>
<?php
}

printSectionTitle('Victims of Player-Player Actions *');
display_page_subtitle('Victims of Player-Player Actions *');
//printSectionTitle('Victims of Player-Player Actions *');
$tblPlayerPlayerActionsV->draw($result, $numitems, 95);
?>
<br /><br />
Expand Down
3 changes: 2 additions & 1 deletion web/pages/playerinfo_servers.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@
$numitems = $db->num_rows($result);
if ($numitems > 0)
{
printSectionTitle('Server Activity *');
display_page_subtitle('Server Activity *');
//printSectionTitle('Server Activity *');
$tblServers->draw($result, $numitems, 95);
?>
<br /><br />
Expand Down
6 changes: 4 additions & 2 deletions web/pages/playerinfo_teams.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@
$numitems = $db->num_rows($result);
if ($numitems > 0)
{
printSectionTitle('Team Selection *');
display_page_subtitle('Team Selection *');
// printSectionTitle('Team Selection *');
$tblTeams->draw($result, $numitems, 95);
?>
<br /><br />
Expand Down Expand Up @@ -341,7 +342,8 @@
$numitems = $db->num_rows($result);
if ($numitems > 0)
{
printSectionTitle('Role Selection *');
display_page_subtitle('Role Selection *');
// printSectionTitle('Role Selection *');
$tblRoles->draw($result, $numitems, 95);
?>
<br /><br />
Expand Down
9 changes: 6 additions & 3 deletions web/pages/playerinfo_weapons.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@

$numitems = $db->num_rows($result);
if ($numitems > 0) {
printSectionTitle('Weapon Usage *');
display_page_subtitle('Weapon Usage *');
//printSectionTitle('Weapon Usage *');
$tblWeapons->draw($result, $numitems, 95); ?>
<br /><br />
<?php
Expand Down Expand Up @@ -279,7 +280,8 @@

$numitems = $db->num_rows($result);
if ($numitems > 0) {
printSectionTitle('Weapon Statistics *');
display_page_subtitle('Weapon Statistics *');
// printSectionTitle('Weapon Statistics *');
$tblWeaponstats->draw($result, $numitems, 95); ?>
<br /><br />
<!-- End of StatsMe Addon 1.0 by [email protected] -->
Expand Down Expand Up @@ -465,7 +467,8 @@
$result = $db->query($query);
if ($db->num_rows($result) != 0)
{
printSectionTitle('Weapon Targets *');
display_page_subtitle('Weapon Targets *');
//printSectionTitle('Weapon Targets *');
if ($g_options['show_weapon_target_flash'] == 1)
{
?>
Expand Down

0 comments on commit b29e9a9

Please sign in to comment.