$important_style = isset($important_style) ? $important_style : 0; $auto_width = isset($auto_width) ? $auto_width : 0; $submit_style = isset($submit_style) ? $submit_style : 0; $style_name = FrmAppHelper::simple_get('style_name', 'sanitize_title'); if (!empty($style_name)) { $style_class = $style_name . '.with_frm_style'; } else { $style_class = 'with_frm_style'; } } else { $style_class = 'frm_style_' . $style->post_name . '.with_frm_style'; extract($style->post_content); } $important = empty($important_style) ? '' : ' !important'; $label_margin = (int) $width + 10; $minus_icons = FrmStylesHelper::minus_icons(); $arrow_icons = FrmStylesHelper::arrow_icons(); // If left/right label is over a certain size, adjust the field description margin at a different screen size $temp_label_width = str_replace('px', '', $width); $change_margin = false; if ($temp_label_width >= 230) { $change_margin = 800 . 'px'; } else { if ($width >= 215) { $change_margin = 700 . 'px'; } else { if ($width >= 180) { $change_margin = 650 . 'px'; } } }