Skip to content

Commit

Permalink
Merge pull request ltb-project#62 from Worteks/issue-50
Browse files Browse the repository at this point in the history
Set version in code and display it in footer (ltb-project#50)
  • Loading branch information
coudot authored Jun 23, 2019
2 parents 30ff5bc + 176422f commit 4ae23b0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
$background_image = "images/unsplash-space.jpeg";
$hover_effect = "grow";
$custom_css = "";
$display_footer = true;

# Debug mode
$debug = false;
Expand Down
9 changes: 9 additions & 0 deletions htdocs/css/white-pages.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ table.dataTable a.link-phone:hover::after {
content: "\f095";
}

div#footer {
position:fixed;
bottom:0;
background-color:#fff;
background-color:rgba(255,255,255,0.8);
text-align:center;
padding:5px;
width:100%;
}

@media print {

Expand Down
7 changes: 7 additions & 0 deletions htdocs/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

#==============================================================================
# Version
#==============================================================================
$version = 0.3;

#==============================================================================
# Configuration
#==============================================================================
Expand Down Expand Up @@ -62,6 +67,8 @@
$smarty->assign('datatables_page_length_default', $datatables_page_length_default);
$smarty->assign('datatables_auto_print', $datatables_auto_print);
}
$smarty->assign('version',$version);
$smarty->assign('display_footer',$display_footer);

# Assign messages
$smarty->assign('lang',$lang);
Expand Down
4 changes: 4 additions & 0 deletions templates/footer.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
</div>

{if $display_footer}
<div id="footer">LDAP Tool Box White Pages - version {$version}</div>
{/if}

<script src="vendor/jquery/js/jquery-1.10.2.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
Expand Down

0 comments on commit 4ae23b0

Please sign in to comment.