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:
@@ -98,13 +98,7 @@ class e_jsmanager
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $_e_css_src = array();
|
protected $_e_css_src = array();
|
||||||
|
|
||||||
/**
|
|
||||||
* Meta
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
protected $_e_meta = array();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Runtime location
|
* Runtime location
|
||||||
@@ -289,18 +283,6 @@ class e_jsmanager
|
|||||||
return $this;
|
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
|
* Add Core JS library file(s) for inclusion from e_jslib routine
|
||||||
@@ -638,13 +620,7 @@ class e_jsmanager
|
|||||||
return $this;
|
return $this;
|
||||||
break;
|
break;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'core_meta':
|
|
||||||
$this->_e_meta['core'][] = $file_path."|".$runtime_location;
|
|
||||||
$registry = &$this->_e_meta['core'];
|
|
||||||
return $this;
|
|
||||||
break;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'header':
|
case 'header':
|
||||||
$file_path = $tp->createConstants($file_path, 'mix');
|
$file_path = $tp->createConstants($file_path, 'mix');
|
||||||
@@ -779,11 +755,7 @@ class e_jsmanager
|
|||||||
$this->renderInline($this->_e_css_src, 'Inline CSS', 'css');
|
$this->renderInline($this->_e_css_src, 'Inline CSS', 'css');
|
||||||
$this->_e_css_src = array();
|
$this->_e_css_src = array();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'core_meta':
|
|
||||||
$this->renderMeta($this->_e_meta, 'Meta', 'core');
|
|
||||||
$this->_e_meta['core'] = array();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'footer':
|
case 'footer':
|
||||||
if(true === $zone)
|
if(true === $zone)
|
||||||
@@ -960,46 +932,6 @@ class e_jsmanager
|
|||||||
break;
|
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 "<!-- [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
|
* Returns true if currently running in
|
||||||
|
Reference in New Issue
Block a user