You know how it's done now!
{Dimensions}
- Width - 28 cm
- Height - 35 cm includes bracket.
- Depth - 15 cm
- Weight (with cartridges installed) 2.530 kg
// The tab content
// if tab content starts with e.g. <h3 class="tabsub"> ... </h3> then use it as sub-heading
if ( preg_match('/(^\s*<h\d>)(.*?)(<\/h\d>)(.*)/is', $tabtext, $bits) )
{
$tabtext = $bits[1] . $bits[2] . $bits[3] . '<p>' . $bits[4] . '</p>';
}
// otherwise just use tab name
else
{
$tabtext = '<h3>' . $tabname . '</h3><p>' . $tabtext . '</p>';
}
<h3>' . $tabname . '</h3>
$tabtext = '<h3>' . $tabname . '</h3><p>' . $tabtext . '</p>';
$tabtext = '<p>' . $tabtext . '</p>';
Leave a comment: