Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ARCHIVO A MODIFICAR ES index_params.php
- VERSION JNILLA ORIGINA EDRIC:
- <?php
- defined ( '_JEXEC' ) or die ();
- // init
- global $jnilla;
- $app = JFactory::getApplication();
- $doc = JFactory::getDocument();
- $templateName = $app->getTemplate();
- $templateParams = $app->getTemplate(true)->params;
- $menuParams = $app->getMenu()->getActive()->params;
- if($menuParams) {
- $itemBodyClass = htmlspecialchars($menuParams->get('body_class'));
- }
- $this->language = $doc->language;
- $this->direction = $doc->direction;
- $baseUrl = JUri::base();
- // request vars
- $itemid = $app->input->getCmd('Itemid', '');
- // body class
- $bodyClass = $itemBodyClass;
- if($jnilla->development){
- $bodyClass .= ' development';
- }
- $bodyClass = 'class="'.$bodyClass.'"';
- // body data
- $bodyData = "data-baseurl=\"$baseUrl\"";
- $bodyData .= "data-itemid=\"$itemid\"";
- VERSION JNILLA MDIFICADO - ALEKUOSHU
- <?php
- defined ( '_JEXEC' ) or die ();
- // init
- global $jnilla;
- $app = JFactory::getApplication();
- $doc = JFactory::getDocument();
- $templateName = $app->getTemplate();
- $templateParams = $app->getTemplate(true)->params;
- $menuParams = $app->getMenu()->getActive()->params;
- if($menuParams) {
- $itemBodyClass = htmlspecialchars($menuParams->get('body_class'));
- }
- $this->language = $doc->language;
- $this->direction = $doc->direction;
- $baseUrl = JUri::base();
- // request vars
- $itemid = $app->input->getCmd('Itemid', '');
- // body class
- $bodyClass = $itemBodyClass;
- if($jnilla->development){
- $bodyClass .= ' development';
- }
- $bodyClass = 'class="'.$bodyClass.'"';
- // body data
- $bodyData = "data-baseurl=\"$baseUrl\"";
- $bodyData .= "data-itemid=\"$itemid\"";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement