1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Removal of Meta stuff.

This commit is contained in:
CaMer0n
2012-05-11 10:35:15 +00:00
parent 64571fb92e
commit f154dc22df

View File

@@ -99,12 +99,6 @@ class e_jsmanager
*/
protected $_e_css_src = array();
/**
* Meta
*
* @var array
*/
protected $_e_meta = array();
/**
* Runtime location
@@ -289,18 +283,6 @@ class e_jsmanager
return $this;
}
/**
* Add Meta code to site header
*
* @param string $name
* @param string $content
* @return e_jsmanager
*/
public function coreMeta($name, $content = '')
{
$this->addJs('core_meta', $name, $content);
return $this;
}
/**
* Add Core JS library file(s) for inclusion from e_jslib routine
@@ -639,12 +621,6 @@ class e_jsmanager
break;
break;
case 'core_meta':
$this->_e_meta['core'][] = $file_path."|".$runtime_location;
$registry = &$this->_e_meta['core'];
return $this;
break;
break;
case 'header':
$file_path = $tp->createConstants($file_path, 'mix');
@@ -780,10 +756,6 @@ class e_jsmanager
$this->_e_css_src = array();
break;
case 'core_meta':
$this->renderMeta($this->_e_meta, 'Meta', 'core');
$this->_e_meta['core'] = array();
break;
case 'footer':
if(true === $zone)
@@ -961,46 +933,6 @@ class e_jsmanager
}
}
/**
* Render Meta source array
*
* @param array $js_content_array
* @param string $label added as comment if non-empty
* @return void
*/
function renderMeta($content_array, $label = '',$type = 'core')
{
if(empty($content_array))
{
return '';
}
$content_array[$type] = array_unique($content_array[$type]); //TODO quick fix, we need better control!
echo "\n";
if($label)
{
echo "<!-- [JSManager] ".$label." -->\n";
}
foreach($content_array[$type] as $met)
{
list($name,$content) = explode("|",$met);
echo "\n";
echo '<meta name="'.$name.'" content="'.$content.'" />';
}
echo "\n\n";
}
/**
* Returns true if currently running in
* administration area.