function raindrops_dinamic_class($id = 'yui-u first', $echo = false) { global $rsidebar_show, $raindrops_current_column, $raindrops_keep_content_width; $class = ''; if ('yui-u first' == $id) { if (3 == $raindrops_current_column) { $class = $id; } elseif (1 == $raindrops_current_column) { $class = $id . ' raindrops-expand-width'; } elseif ($raindrops_current_column == 2) { $class = $id . ' raindrops-expand-width'; } elseif (false == $raindrops_current_column) { $check = is_2col_raindrops('not-add-class', false); if (false == $check) { $class = $id; } elseif ('not-add-class' == $check) { $class = $id . ' raindrops-expand-width'; } else { $class = $id; } } } if ('yui-b' == $id) { if (1 == $raindrops_current_column) { $class = $id . " raindrops-expand-width raindrops-margin-left-none"; } else { $class = $id; } } if ('yui-main' == $id) { if (1 == $raindrops_current_column && true == $raindrops_keep_content_width) { $class = $id . " raindrops-keep-content-width"; } else { $class = $id; } } if (false !== $echo) { if (!empty($class)) { echo $class; } } else { if (!empty($class)) { return $class; } else { return; } } }
<div class="<?php echo $raindrops_devide_column_class; ?> "> <?php get_template_part('widget', 'sticky'); ?> <div class="<?php echo raindrops_yui_class_modify(); ?> " id="container"> <div class="<?php echo $raindrops_devide_column_extra_class; ?> first" <?php is_2col_raindrops('style="width:99%;"'); if ($raindrops_devide_column_extra_class !== 'yui-u') { echo 'style="width:99%;"'; } ?> > <?php if (true == $raindrops_bf_show_sticky_post) { ?> <div> <ul class="raindrops-sticky-posts"> <?php /** * Sticky post *