Skip to content

Commit

Permalink
[Quix] alternative renderer fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsbd71 committed May 17, 2020
1 parent ad686ef commit 9bbf67e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
index
5ba047d3814b229567c324527df8585b
.phpintel
28 changes: 28 additions & 0 deletions src/t4/Renderer/Quix.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
/**
* Joomla! Content Management System
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

namespace T4\Renderer;

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Document\DocumentRenderer;
use Joomla\CMS\Layout\LayoutHelper;

/**
* HTML document renderer for the document `<head>` element
*
* @since 3.5
*/
class Quix extends DocumentRenderer
{
public function render($name, $params = array(), $content = null)
{
$this->_doc->setType('html');
}

}
1 change: 1 addition & 0 deletions src/t4/T4.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public function init () {

// Register renderer
\JLoader::registerAlias('JDocumentRendererHtmlElement', '\\T4\\Renderer\\Element');
\JLoader::registerAlias('JDocumentRendererQuixModules', '\\T4\\Renderer\\Quix');

// update template params
//$this->buildTemplateParams();
Expand Down

0 comments on commit 9bbf67e

Please sign in to comment.