From f154dc22dffc4c9fcb278c923333bce92a82f60d Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Fri, 11 May 2012 10:35:15 +0000 Subject: [PATCH] Removal of Meta stuff. --- e107_handlers/js_manager.php | 74 ++---------------------------------- 1 file changed, 3 insertions(+), 71 deletions(-) diff --git a/e107_handlers/js_manager.php b/e107_handlers/js_manager.php index e343cdfe8..2dbc63c6d 100644 --- a/e107_handlers/js_manager.php +++ b/e107_handlers/js_manager.php @@ -98,13 +98,7 @@ class e_jsmanager * @var array */ 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 @@ -638,13 +620,7 @@ class e_jsmanager return $this; 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'); @@ -779,11 +755,7 @@ class e_jsmanager $this->renderInline($this->_e_css_src, 'Inline CSS', 'css'); $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) @@ -960,46 +932,6 @@ class e_jsmanager break; } } - - - - - -/** - * 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 "\n"; - } - - foreach($content_array[$type] as $met) - { - list($name,$content) = explode("|",$met); - echo "\n"; - echo ''; - } - - echo "\n\n"; - - } /** * Returns true if currently running in