} $db->setQuery($query, 0, $count); $rows = $db->loadObjectList(); if (empty($rows)) { if ($params->get('related') == 0 && $params->get('flexirelated') == 0) { if ($params->get('uselangfile') == 1) { echo JText::_('F_NOTHINGTOSHOW'); } else { echo $nothingtoshow; } } } else { //Reduce queries used by getItemid for Content Items $bs = JApplication::getBlogSectionCount(); $bc = JApplication::getBlogCategoryCount(); $gbs = JApplication::getGlobalBlogSectionCount(); //FLEXIcontent Watermark if ($flexiwatermark == 0) { $flexipath = 'components/com_flexicontent/uploads/'; } elseif ($flexiwatermark == 1) { $flexipath = 'images/stories/flexicontent/s_'; } elseif ($flexiwatermark == 2) { $flexipath = 'images/stories/flexicontent/m_'; } elseif ($flexiwatermark == 3) { $flexipath = 'images/stories/flexicontent/l_'; } elseif ($flexiwatermark == 4) { $flexipath = $params->get('FLEXIcustom'); } //Profile Link preparation if ($profilesystem != 0) { if ($profilesystem == 1) {