Created
July 18, 2013 03:59
-
-
Save codeboxr/6026635 to your computer and use it in GitHub Desktop.
For Omar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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