Skip to content

Commit

Permalink
fixed it so the first item in a multi font doesn't have the padding o…
Browse files Browse the repository at this point in the history
…n it
  • Loading branch information
jaredharbour committed Jun 29, 2012
1 parent a0446bf commit 7ae1aff
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions hopper/themekit/class-themekitforwp-engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,14 +557,25 @@ private function create_multi_option_input( $v ) {
<span class="meta-two"><?php echo $meta; ?></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<?php
}
if( $array['type'] == 'font_multi' ) {
$style= ($count % 2) ?'clear:left;':''; ?>

<div style="float:left; padding: 0 15px 15px; <?php echo $style;?> ">

if( $array['type'] == 'font_multi' ) {
$style = 'float:left;';
$style .= ($count > 1) ? 'padding: 0 15px 15px;' : '';
$style .= ($count % 2) ? 'clear:left;' : '';

?>

<div style="<?php echo $style;?> ">
<?php if( strlen($label) > 0 ): ?>
<span class="meta-two"><?php echo $label; ?></span>
<?php
$this->create_font_selection( $array, true ); ?><span class="meta-two"><?php echo $meta; ?></span></div><?php
}
<?php endif; ?>
<?php
$this->create_font_selection( $array, true ); ?><span class="meta-two"><?php echo $meta; ?></span>

</div>

<?php
}


}
Expand Down

0 comments on commit 7ae1aff

Please sign in to comment.