Example #1
0
 /**
  * Migrate old styling settings. If sites are using the old
  * default 400px field width, switch it to 100%
  *
  * @since 2.0.4
  */
 private function migrate_to_25()
 {
     // get the style that was created with the style migration
     $frm_style = new FrmStyle();
     $styles = $frm_style->get_all('post_date', 'ASC', 1);
     if (empty($styles)) {
         return;
     }
     foreach ($styles as $style) {
         if ($style->post_content['field_width'] == '400px') {
             $style->post_content['field_width'] = '100%';
             $frm_style->save((array) $style);
             return;
         }
     }
 }
 public static function get_style_opts()
 {
     $frm_style = new FrmStyle();
     $styles = $frm_style->get_all();
     return $styles;
 }
Example #3
0
<?php

if (!isset($saving)) {
    header('Content-type: text/css');
    if (isset($css) && $css) {
        echo $css;
        die;
    }
}
if (!isset($frm_style)) {
    $frm_style = new FrmStyle();
}
$styles = $frm_style->get_all();
$default_style = $frm_style->get_default_style($styles);
$defaults = $default_style->post_content;
?>

.frm_hidden,
.with_frm_style .frm_button.frm_hidden{
    display:none;
}

legend.frm_hidden{
    display:none !important;
}

.frm_transparent{
	color:transparent;
}

.input[type=file].frm_transparent:focus, .with_frm_style input[type=file]{