setQuery( $query ); $contentItems = $database->loadObjectList(); // header // $tmpl->addGlobalVar('tagname',mosstripslashes($tag->tagname)); $tmpl->addGlobalVar('tagtext',mosstripslashes($tag->tagtext)); $cloudLink = sefreltoabs('index.php?option=com_tag&page=cloud'); $tmpl->addGlobalVar('cloudLink',$cloudLink); //contentItems // $k = 1; foreach ($contentItems as $contentItem){ /* Process Mambots */ $row = $contentItem; $row->text = $contentItem->introtext; global $_MAMBOTS; $params = new mosParameters( '' ); $_MAMBOTS->loadBotGroup( 'content' ); $results = $_MAMBOTS->trigger( 'onPrepareContent', array( &$row, &$params, 0 ), true ); $contentItem->introtext = $row->text; // replace all foreach ($contentItem as $k=>$v){ if (is_string($v) && !is_array($k)){ $tmpl->addVar('contentItem',$k,$v); } } //create link to content $link = sefRelToAbs('index.php?option=com_content&task=view&id='.$contentItem->id); $tmpl->addVar('contentItem','link',$link); /* row alternate bg */ $tmpl->addVar('contentItem','row',$k); if ($k == 1){ $k=2; } else { $k=1; } $tmpl->parseTemplate('contentItem','a'); } // Footer // switch($total) { case 0: $tmpl->addGlobalVar('FooterText',"There are no items tagged with $thisTag"); break; case 1: $tmpl->addGlobalVar('FooterText',"There is one item tagged with $thisTag"); break; default; $tmpl->addGlobalVar('FooterText',"There are $total items tagged with $thisTag"); break; } if ($total > $limit) { $tmpl->setAttribute('pager','visibility','show'); } $tmpl->addGlobalVar('countItems',$total); $tmpl->addGlobalVar('tagname',$thisTag); $tmpl->displayParsedTemplate(); } } ?>
Fatal error: Class 'TagLayout' not found in /home/bvmcc/public_html/components/com_tag/tag.class.php on line 202