load_style;
$enabled = ( ! is_array( $form->options ) || 0 !== (int) $form->options['custom_style'] ) && ! $globally_disabled;
$card_helper = new FrmStylesCardHelper( $active_style, $default_style, $form->id, $enabled );
$styles = $card_helper->get_styles();
$custom_styles = $card_helper->filter_custom_styles( $styles );
$sidebar_params = array(
'id' => 'frm_style_sidebar',
// Make sure not to put .frm_wrap on the whole container because it will cause admin styles to apply to style cards.
'class' => 'frm-right-panel frm-p-6 frm_wrap',
);
$toggle_input_html = array();
if ( $globally_disabled ) {
$sidebar_params['class'] .= ' frm-styles-globally-disabled';
$toggle_input_html['disabled'] = 'disabled';
}
?>
>
'frm_new_style_trigger',
'href' => '#',
);
if ( $can_create_styles ) {
$trigger_params['data-new-style-url'] = esc_url( admin_url( 'admin.php?page=formidable-styles&frm_action=new_style' ) );
} else {
$trigger_params['class'] = 'frm_noallow';
$trigger_params['data-upgrade'] = __( 'You are currently limited to 1 style template', 'formidable' );
$trigger_params['data-message'] = __( 'Upgrade to create and manage as many form styles as you need.', 'formidable' );
$trigger_params['data-image'] = 'styles-upsell.svg';
}
?>
$enabled,
'on_label' => __( 'Enable Formidable styling', 'formidable' ),
'show_labels' => true,
'echo' => true,
'input_html' => $toggle_input_html,
)
);
?>
echo_card_wrapper( 'frm_default_style_cards_wrapper', array( $default_style ) ); ?>
echo_card_wrapper( 'frm_custom_style_cards_wrapper', $custom_styles ); ?>
get_template_info(), 'is_array' ); ?>
echo_card_wrapper( 'frm_template_style_cards_wrapper', $style_templates ); ?>