mirror of
https://github.com/e107inc/e107.git
synced 2025-08-29 17:19:56 +02:00
e107::css() and e107::js() functions added.
This commit is contained in:
@@ -3679,7 +3679,13 @@ class eResponse
|
||||
*/
|
||||
public function addMeta($name = null, $content = null, $extended = array())
|
||||
{
|
||||
if(empty($content)){ return $this; } // content is required, otherwise ignore.
|
||||
|
||||
//TODO need an option that allows subsequent entries to overwrite existing ones.
|
||||
//ie. 'description' and 'keywords' should never be duplicated, but overwritten by plugins and other non-pref-based meta data.
|
||||
|
||||
$attr = array();
|
||||
|
||||
if(null !== $name) $attr['name'] = $name;
|
||||
if(null !== $content) $attr['content'] = $content;
|
||||
if(!empty($extended))
|
||||
@@ -3698,7 +3704,6 @@ class eResponse
|
||||
*/
|
||||
public function renderMeta()
|
||||
{
|
||||
|
||||
$attrData = '';
|
||||
|
||||
foreach ($this->_meta as $attr)
|
||||
|
Reference in New Issue
Block a user