Advertisement
Guest User

Untitled

a guest
Dec 13th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. ARCHIVO A MODIFICAR ES index_params.php
  2.  
  3. VERSION JNILLA ORIGINA EDRIC:
  4.  
  5. <?php
  6. defined ( '_JEXEC' ) or die ();
  7.  
  8. // init
  9. global $jnilla;
  10. $app = JFactory::getApplication();
  11. $doc = JFactory::getDocument();
  12. $templateName = $app->getTemplate();
  13. $templateParams = $app->getTemplate(true)->params;
  14. $menuParams = $app->getMenu()->getActive()->params;
  15. if($menuParams) {
  16. $itemBodyClass = htmlspecialchars($menuParams->get('body_class'));
  17. }
  18. $this->language = $doc->language;
  19. $this->direction = $doc->direction;
  20. $baseUrl = JUri::base();
  21.  
  22. // request vars
  23. $itemid = $app->input->getCmd('Itemid', '');
  24.  
  25. // body class
  26. $bodyClass = $itemBodyClass;
  27. if($jnilla->development){
  28. $bodyClass .= ' development';
  29. }
  30. $bodyClass = 'class="'.$bodyClass.'"';
  31.  
  32. // body data
  33. $bodyData = "data-baseurl=\"$baseUrl\"";
  34. $bodyData .= "data-itemid=\"$itemid\"";
  35.  
  36.  
  37.  
  38. VERSION JNILLA MDIFICADO - ALEKUOSHU
  39.  
  40. <?php
  41. defined ( '_JEXEC' ) or die ();
  42.  
  43. // init
  44. global $jnilla;
  45. $app = JFactory::getApplication();
  46. $doc = JFactory::getDocument();
  47. $templateName = $app->getTemplate();
  48. $templateParams = $app->getTemplate(true)->params;
  49. $menuParams = $app->getMenu()->getActive()->params;
  50. if($menuParams) {
  51. $itemBodyClass = htmlspecialchars($menuParams->get('body_class'));
  52. }
  53. $this->language = $doc->language;
  54. $this->direction = $doc->direction;
  55. $baseUrl = JUri::base();
  56.  
  57. // request vars
  58. $itemid = $app->input->getCmd('Itemid', '');
  59.  
  60. // body class
  61. $bodyClass = $itemBodyClass;
  62. if($jnilla->development){
  63. $bodyClass .= ' development';
  64. }
  65. $bodyClass = 'class="'.$bodyClass.'"';
  66.  
  67. // body data
  68. $bodyData = "data-baseurl=\"$baseUrl\"";
  69. $bodyData .= "data-itemid=\"$itemid\"";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement