Advertisement
astropos

UserSpice Footer Structure Suggestion

Jan 23rd, 2016
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. /* UserSpice 3.0.4b */
  2.  
  3. // The header is handled well by top-nav.
  4. // The footer is structured in a way that prevents per-page user js
  5. // Suggest the following amendments
  6.  
  7. // Restructure the models/footer.php page into two new pages:eg models/page_footer.php and models/html_footer.php
  8.  
  9. // In index.php (or other US page)
  10.  
  11. // Remove:
  12. <!-- footer -->
  13. <?php require_once("models/footer.php"); ?>
  14.  
  15. // Replace with:
  16. <!-- footers -->
  17. <?php require_once("models/page_footer.php"); // the final html footer copyright row + the external js calls ?>
  18.  
  19. <!-- Here can be your own js -->
  20.  
  21. <?php require_once("models/html_footer.php"); // currently just the closing /body and /html ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement