Skip to content

Commit

Permalink
more use getScripts(), getStyleSheets()
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Jun 23, 2019
1 parent 411e123 commit 795e81d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libraries/src/Document/Renderer/Html/ScriptsRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function render($head, $params = array(), $content = null)
$html5NoValueAttributes = array('defer', 'async');

// Generate script file links
foreach ($this->_doc->_scripts as $src => $attribs)
foreach ($this->_doc->getScripts() as $src => $attribs)
{
// Check if script uses IE conditional statements.
$conditional = isset($attribs['options']) && isset($attribs['options']['conditional']) ? $attribs['options']['conditional'] : null;
Expand Down Expand Up @@ -121,7 +121,7 @@ public function render($head, $params = array(), $content = null)
}

// Generate script declarations
foreach ($this->_doc->_script as $type => $contents)
foreach ($this->_doc->getScriptDeclarations() as $type => $contents)
{
$buffer .= $tab . '<script';

Expand Down
4 changes: 2 additions & 2 deletions libraries/src/Document/Renderer/Html/StylesRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function render($head, $params = array(), $content = null)
$defaultCssMimes = array('text/css');

// Generate stylesheet links
foreach ($this->_doc->_styleSheets as $src => $attribs)
foreach ($this->_doc->getStyleSheets() as $src => $attribs)
{
// Check if stylesheet uses IE conditional statements.
$conditional = isset($attribs['options']) && isset($attribs['options']['conditional']) ? $attribs['options']['conditional'] : null;
Expand Down Expand Up @@ -107,7 +107,7 @@ public function render($head, $params = array(), $content = null)
}

// Generate stylesheet declarations
foreach ($this->_doc->_style as $type => $contents)
foreach ($this->_doc->getStyleDeclarations() as $type => $contents)
{
$buffer .= $tab . '<style';

Expand Down

0 comments on commit 795e81d

Please sign in to comment.