function tallybuilder_SContent_CSS__text($meta_data, $meta_id, $post_id, $prefix) { $unique_class = '.' . $prefix . 'text' . $post_id; echo tallybuilder_meta_fontStyle_css($unique_class, $meta_id, $prefix . 'fontstyle', $post_id); echo tallybuilder_meta_linkColor_css($unique_class . ' a', $meta_id, $prefix . 'linkcolor', $post_id); echo tallybuilder_meta_margin_css($unique_class, $meta_id, $prefix . 'margin', $post_id); }
function column_css($meta_data, $meta_id, $post_id, $row, $row_i, $column, $column_i) { $unique_class = '.tb_column_' . $post_id . $row_i . $column_i; $row_layout = isset($meta_data['row' . $row_i . '_layout']) ? $meta_data['row' . $row_i . '_layout'] : ''; $row_layout_array = explode(",", $row_layout); $column_layout = $row_layout_array[$column_i - 1]; $prefix = 'col' . $row_i . $column_i . '_'; if ($column_layout != '0') { echo '' . "\n"; echo tallybuilder_meta_padding_css($unique_class . ' .tallybuilder_column_inner', $meta_id, $prefix . 'padding', $post_id); echo tallybuilder_meta_margin_css($unique_class . ' .tallybuilder_column_inner', $meta_id, $prefix . 'margin', $post_id); echo tallybuilder_meta_background_css($unique_class . ' .tallybuilder_column_inner', $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 . ' .tallybuilder_column_inner{ background:none; }'; } echo '' . "\n"; if (is_array($column['contents'])) { $content_i = 1; foreach ($column['contents'] as $content) { $this->content_css($meta_data, $meta_id, $post_id, $row, $row_i, $column, $column_i, $content, $content_i); $content_i++; } } } }
function tallybuilder_SContent_CSS__grid($meta_data, $meta_id, $post_id, $prefix) { $unique_class = '.' . $prefix . 'grid' . $post_id; echo tallybuilder_meta_margin_css($unique_class, $meta_id, $prefix . 'margin', $post_id); }