Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. <?php
  2. defined('_JEXEC') or die;
  3.  
  4. $app = JFactory::getApplication();
  5. $user = JFactory::getUser();
  6. $doc = JFactory::getDocument();
  7. $this->setGenerator(null);
  8.  
  9. $this->setHtml5(true);
  10.  
  11. $params = $app->getTemplate(true)->params;
  12.  
  13. $option = $app->input->getCmd('option', '');
  14. $view = $app->input->getCmd('view', '');
  15. $layout = $app->input->getCmd('layout', '');
  16. $task = $app->input->getCmd('task', '');
  17. $itemid = $app->input->getCmd('Itemid', '');
  18. $sitename = htmlspecialchars($app->get('sitename'), ENT_QUOTES, 'UTF-8');
  19.  
  20. // Add template js
  21. JHtml::_('script', 'template.js', array('version' => 'auto', 'relative' => true));
  22.  
  23. // Add Stylesheets
  24. $doc->addStyleSheetVersion($this->baseurl . '/templates/' . $this->template . '/css/bootstrap.css');
  25.  
  26. $doc->addStyleSheetVersion($this->baseurl . '/templates/' . $this->template . '/css/template.css');
  27.  
  28. $doc->addStyleSheetVersion('http://use.fontawesome.com/releases/v5.12.1/css/all.css');
  29.  
  30. // add javascript
  31. $doc->addScriptVersion($this->baseurl . '/templates/' . $this->template . '/js/bootstrap.js', 'text/javascript', false, false, true);
  32.  
  33. $doc->addScriptVersion($this->baseurl . '/templates/' . $this->template . '/js/script.js', 'text/javascript', false, false, true);
  34. ?>
  35.  
  36. <!DOCTYPE html>
  37. <html lang="<?php echo $this->language; ?>">
  38.  
  39. <head>
  40. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  41. <jdoc:include type="head" />
  42. </head>
  43.  
  44. <body>
  45. <header class="container">
  46. <div class="row">
  47. <div class="col-4 bg-primary">
  48.  
  49. <jdoc:include type="modules" name="logo" style="xhtml" />
  50.  
  51. </div>
  52. <div class="col bg-danger">
  53.  
  54. <jdoc:include type="modules" name="menu" style="xhtml" />
  55.  
  56. </div>
  57. </div>
  58. </header>
  59. <?php if ($this->countModules('banner')) : ?>
  60. <div class="jumbotron jumbotron-fluid">
  61. <div class="container">
  62. <div class="row">
  63. <div class="col">
  64. <jdoc:include type="modules" name="banner" style="none" />
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. <?php endif; ?>
  70.  
  71. <jdoc:include type="component" />
  72.  
  73. <footer>
  74. <!-- <div class="jumbotron jumbotron-fluid"> -->
  75. <div class="container">
  76. <div class="row">
  77. <div class="col-4 bg-primary">
  78.  
  79. <jdoc:include type="modules" name="footer-gauche" style="" />
  80.  
  81. </div>
  82. <div class="col-4 bg-danger">
  83.  
  84. <jdoc:include type="modules" name="footer-milieu" style="xhtml" />
  85.  
  86. </div>
  87. <div class="col-4 bg-primary">
  88.  
  89. <jdoc:include type="modules" name="footer-droite" style="xhtml" />
  90.  
  91.  
  92. </div>
  93. </div>
  94. <div class="row">
  95. <div class="col-12">
  96.  
  97. <jdoc:include type="modules" name="Copyright" style="xhtml" />
  98.  
  99. </div>
  100. </div>
  101. </div>
  102.  
  103. <!-- </div> -->
  104. </footer>
  105. </body>
  106.  
  107.  
  108. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement