public function addPreviewImageAndDesc($row, $label)
	{
		// add buy action if needed
		if ($row['pdir_th_description'] != '')
		{
			$label = '<span><img src="bundles/themehelper/img/buy_theme.png" ' .
                ' title="' . $GLOBALS['TL_LANG']['tl_theme']['buyTheme'] . '"' .
				' onclick="Backend.getScrollOffset();Backend.openModalSelector({\'width\':768,\'title\':\'' . $GLOBALS['TL_LANG']['MSC']['buyThemeButtonTitle'] . '\',\'url\':\'https://contao-themes.net/buy-mate.html\',\'id\':\'buyTheme\'});return false"' .
				' style="margin: 10px 10px 10px 0;"></span>' . $label;
		}

		// add image
		$label = $this->addPreviewImage($row, $label);

		// add theme and license description
		if ($row['pdir_th_description'] != '')
		{
			// add info icon
			$html = '<i class="icon" onmouseover="document.getElementById(\'themeDesc\').style.display = \'block\'"'.
				' onmouseout="document.getElementById(\'themeDesc\').style.display = \'none\'"'.
				' style="color:#fff;border-radius:50%;font-weight:bold;padding:3px;border:1px solid #649d9a;background:#649d9a;margin-left:10px;">i</i>';

			// license status
			if($row['pdir_th_license_domain'] != '')
				$html .= $GLOBALS['TL_LANG']['tl_theme']['pdir_th_payed_license_text'] . $row['pdir_th_license_domain'] .'<br>';
			else
				$html .= $GLOBALS['TL_LANG']['tl_theme']['pdir_th_license_text'] . '<br>';

			// desc
			$html .= '<div id="themeDesc" style="display:none;line-height:1.2em;margin-top:5px;">';
			$html .= \StringUtil::decodeEntities($row['pdir_th_description']);
			$html .= '</div>';
			$label = $label . $html;
		}

		return $label;
	}
public function addPreviewImageAndDesc($row, $label)
	{
		// add buy action if needed
		if ($row['pdir_th_description'] != '')
		{
			$label = '<span><img src="bundles/themehelper/img/buy_theme.png" ' .
                ' title="' . $GLOBALS['TL_LANG']['tl_theme']['buyTheme'] . '"' .
				' onclick="Backend.getScrollOffset();Backend.openModalSelector({\'width\':768,\'title\':\'' . $GLOBALS['TL_LANG']['MSC']['buyThemeButtonTitle'] . '\',\'url\':\'https://contao-themes.net/buy-mate.html\',\'id\':\'buyTheme\'});return false"' .
				' style="margin: 10px 10px 10px 0;"></span>' . $label;
		}

		// add image
		$label = $this->addPreviewImage($row, $label);

		// add theme and license description
		if ($row['pdir_th_description'] != '')
		{
			// add info icon
			$html = '<i class="icon" onmouseover="document.getElementById(\'themeDesc\').style.display = \'block\'"'.
				' onmouseout="document.getElementById(\'themeDesc\').style.display = \'none\'"'.
				' style="color:#fff;border-radius:50%;font-weight:bold;padding:3px;border:1px solid #649d9a;background:#649d9a;margin-left:10px;">i</i>';

			// license status
			if($row['pdir_th_license_domain'] != '')
				$html .= $GLOBALS['TL_LANG']['tl_theme']['pdir_th_payed_license_text'] . $row['pdir_th_license_domain'] .'<br>';
			else
				$html .= $GLOBALS['TL_LANG']['tl_theme']['pdir_th_license_text'] . '<br>';

			// desc
			$html .= '<div id="themeDesc" style="display:none;line-height:1.2em;margin-top:5px;">';
			$html .= \StringUtil::decodeEntities($row['pdir_th_description']);
			$html .= '</div>';
			$label = $label . $html;
		}

		return $label;
	}
public function addPreviewImageAndDesc ( $ row , $ label ) { // add buy action if needed if ( $ row [ 'pdir_th_description' ] != '' ) { $ label = '<span><img src="bundles/themehelper/img/buy_theme.png" ' . ' title="' . $ GLOBALS [ 'TL_LANG' ] [ 'tl_theme' ] [ 'buyTheme' ] . '"' . ' onclick="Backend.getScrollOffset();Backend.openModalSelector({\'width\':768,\'title\':\'' . $ GLOBALS [ 'TL_LANG' ] [ 'MSC' ] [ 'buyThemeButtonTitle' ] . '\',\'url\':\'https://contao-themes.net/buy-mate.html\',\'id\':\'buyTheme\'});return false"' . ' style="margin: 10px 10px 10px 0;"></span>' . $ label ; } // add image $ label = $ this -> addPreviewImage ( $ row , $ label ) ; // add theme and license description if ( $ row [ 'pdir_th_description' ] != '' ) { // add info icon $ html = '<i class="icon" onmouseover="document.getElementById(\'themeDesc\').style.display = \'block\'"' . ' onmouseout="document.getElementById(\'themeDesc\').style.display = \'none\'"' . ' style="color:#fff;border-radius:50%;font-weight:bold;padding:3px;border:1px solid #649d9a;background:#649d9a;margin-left:10px;">i</i>' ; // license status if ( $ row [ 'pdir_th_license_domain' ] != '' ) $ html .= $ GLOBALS [ 'TL_LANG' ] [ 'tl_theme' ] [ 'pdir_th_payed_license_text' ] . $ row [ 'pdir_th_license_domain' ] . '<br>' ; else $ html .= $ GLOBALS [ 'TL_LANG' ] [ 'tl_theme' ] [ 'pdir_th_license_text' ] . '<br>' ; // desc $ html .= '<div id="themeDesc" style="display:none;line-height:1.2em;margin-top:5px;">' ; $ html .= \ StringUtil :: decodeEntities ( $ row [ 'pdir_th_description' ] ) ; $ html .= '</div>' ; $ label = $ label . $ html ; } return $ label ; }
Add an image and a description to each record

@param array $row
@param string $label

@return string
Add an image and a description to each record