Skip to content

Instantly share code, notes, and snippets.

@codeboxr
Created July 18, 2013 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeboxr/6026635 to your computer and use it in GitHub Desktop.
Save codeboxr/6026635 to your computer and use it in GitHub Desktop.
For Omar
else if(JRequest::getCmd('option') == 'com_content') {
//var_dump($context);
if(!($context == 'com_content.article' || $context == 'com_content.category')) {return; }
$comcontent = true;
if($this->_floatcontent && (JRequest::getCmd('view') == 'article') && $float){$float = true;}else{$float = false;}
$this->_floatpos = $this->_floatposcontent;
$this->_floathmargin = $this->_floathmargincontent;
$this->_floatvmargin = $this->_floatvmargincontent;
//$this->_floatdistance = $this->_floatdistancecontent;
//var_dump($article);
if(!isset ($article->text)){
if(isset($article->introtext)){
$desc = $article->introtext;
}
else{
$desc = '';
}
}
else{
$desc = $article->text;
}
//var_dump('hi there');
if($contenthook != 2) { return;} //onprepare used, onprepare doesn't make any issue in joomla 3.0 any more
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment