function row_css($meta_data, $meta_id, $post_id, $row, $row_i) { $unique_class = '.tb_row_' . $post_id . $row_i; $row_layout = isset($meta_data['row' . $row_i . '_layout']) ? $meta_data['row' . $row_i . '_layout'] : ''; $prefix = 'row' . $row_i . '_'; if ($row_layout != '0,0,0,0') { echo '' . "\n"; echo tallybuilder_meta_padding_css($unique_class, $meta_id, $prefix . 'padding', $post_id); echo tallybuilder_meta_margin_css($unique_class, $meta_id, $prefix . 'margin', $post_id); echo tallybuilder_meta_background_css($unique_class, $meta_id, $prefix . 'bg', $post_id); $video_bg = tallybuilder_meta_bgVideo_content($meta_id, $prefix . 'video_bg', $post_id); if ($video_bg != '') { echo $unique_class . '{ background:none; }'; } tallybuilder_css_style($unique_class . ' .tallybuilder_row_inner', tallybuilder_meta($meta_id, $prefix . 'width', $post_id), 'width:%s%;'); tallybuilder_css_style($unique_class . ' .tallybuilder_row_inner', tallybuilder_meta($meta_id, $prefix . 'max_width', $post_id), 'max-width:%s%;'); echo '' . "\n"; if (is_array($row['columns'])) { $column_i = 1; foreach ($row['columns'] as $column) { $this->column_css($meta_data, $meta_id, $post_id, $row, $row_i, $column, $column_i); $column_i++; } } } }
$image_padding_bottom = tallybuilder_meta($meta_id, 'image_padding_bottom') == '' ? '' : 'padding-bottom:' . tallybuilder_meta($meta_id, 'image_padding_bottom') . ';'; $image_padding_left = tallybuilder_meta($meta_id, 'image_padding_left') == '' ? '' : 'padding-left:' . tallybuilder_meta($meta_id, 'image_padding_left') . ';'; $image_padding_right = tallybuilder_meta($meta_id, 'image_padding_right') == '' ? '' : 'padding-right:' . tallybuilder_meta($meta_id, 'image_padding_right') . ';'; $image_margin_top = tallybuilder_meta($meta_id, 'image_margin_top') == '' ? '' : 'margin-top:' . tallybuilder_meta($meta_id, 'image_margin_top') . ';'; $image_margin_bottom = tallybuilder_meta($meta_id, 'image_margin_bottom') == '' ? '' : 'margin-bottom:' . tallybuilder_meta($meta_id, 'image_margin_bottom') . ';'; $image_margin_left = tallybuilder_meta($meta_id, 'image_margin_left') == '' ? '' : 'margin-left:' . tallybuilder_meta($meta_id, 'image_margin_left') . ';'; $image_margin_right = tallybuilder_meta($meta_id, 'image_margin_right') == '' ? '' : 'margin-right:' . tallybuilder_meta($meta_id, 'image_margin_right') . ';'; $image_max_height = tallybuilder_meta($meta_id, 'image_max_height') == '' ? '' : 'max-height:' . tallybuilder_meta($meta_id, 'image_max_height') . ';'; $image_max_width = tallybuilder_meta($meta_id, 'image_max_width') == '' ? '' : 'max-width:' . tallybuilder_meta($meta_id, 'image_max_width') . '; width: 100%;'; $image_height = tallybuilder_meta($meta_id, 'image_height') == '' ? '' : 'height:' . tallybuilder_meta($meta_id, 'image_height') . ';'; $image_width = tallybuilder_meta($meta_id, 'image_width') == '' ? '' : 'width:' . tallybuilder_meta($meta_id, 'image_width') . ';'; $image = tallybuilder_meta($meta_id, 'image') == '' ? '' : 'background-image:url(' . tallybuilder_meta($meta_id, 'image') . ');'; tallybuilder_css_style($base . ':before', tallybuilder_meta($meta_id, 'bg_overlay_color'), 'background-color:%s%;'); tallybuilder_css_style($base . ':before', tallybuilder_meta($meta_id, 'bg_overlay_opacity'), 'opacity:%s%;'); tallybuilder_css_style($base . ' .tallybuilder_section_inner .tb_1st_con', tallybuilder_meta($meta_id, 'content_width'), 'max-width:%s%;'); tallybuilder_css_style($base . ' .tallybuilder_section_inner', tallybuilder_meta($meta_id, 'section_width'), 'max-width:%s%; width: 100%;'); ?> <?php echo $base; ?> { <?php echo $bg_color; echo $bg_image; echo $bg_attachment; echo $bg_position; echo $bg_size; echo $bg_repeat; echo $color_text; echo $font_size; echo $color_border;