1
0
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:
CaMer0n
2012-05-13 05:53:48 +00:00
parent 546d930311
commit 34f37ce9f7
2 changed files with 88 additions and 1 deletions

View File

@@ -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)