getk2 / k2

K2 - the powerful content extension for Joomla
https://getk2.org
GNU General Public License v3.0
135 stars 96 forks source link

remove toolbar code if unnecessary #196

Closed sonosergio closed 10 years ago

sonosergio commented 10 years ago

if any element is selected the div with class itemToolbar cause unnecessary visual issue toolbar

kavadas commented 10 years ago

Hi. There is an if condition https://github.com/joomlaworks/k2/blob/master/components/com_k2/templates/default/item.php#L88-L96 to prevent the empty element. Ensure that the template file you are using is up to date.

sonosergio commented 10 years ago

yes but I think it is more useful to use a dual control for example at row 93: ($this->item->params->get('itemVideoAnchor') && !empty($this->item->video))
because some items in the same category may contain video and others do not