/home/altere25/infinet.finance/wp-content/plugins/formidable/classes/helpers
NameSizeModeActions
FrmAppHelper.php1128420644editdlrm
FrmCSVExportHelper.php214460644editdlrm
FrmEmailHelper.php8370644editdlrm
FrmEntriesHelper.php241430644editdlrm
FrmEntriesListHelper.php104730644editdlrm
FrmFieldGridHelper.php59350644editdlrm
FrmFieldsHelper.php647480644editdlrm
FrmFormActionsHelper.php5920644editdlrm
FrmFormMigratorsHelper.php50510644editdlrm
FrmFormsHelper.php537990644editdlrm
FrmFormsListHelper.php121200644editdlrm
FrmHtmlHelper.php8930644editdlrm
FrmListHelper.php319940644editdlrm
FrmOnSubmitHelper.php128660644editdlrm
FrmShortcodeHelper.php22120644editdlrm
FrmStylesCardHelper.php133580644editdlrm
FrmStylesHelper.php196550644editdlrm
FrmStylesPreviewHelper.php97490644editdlrm
FrmTipsHelper.php107850644editdlrm
FrmXMLHelper.php607870644editdlrm
Edit: /home/altere25/infinet.finance/wp-content/plugins/formidable/classes/helpers/FrmFieldGridHelper.php (5935B)
parent_li = false; $this->current_list_size = 0; $this->current_field_count = 0; $this->nested = $nested; } /** * @param stdClass $field */ public function set_field( $field ) { $this->field = $field; if ( ! empty( $this->section_helper ) && 'end_divider' !== $field->type ) { $this->section_helper->set_field( $field ); return; } if ( 'end_divider' === $field->type ) { $this->field_layout_class = ''; $this->active_field_size = $this->section_size; $this->section_is_open = false; $this->maybe_close_section_helper(); } else { $this->field_layout_class = $this->get_field_layout_class(); $this->active_field_size = $this->get_size_of_class( $this->field_layout_class ); } if ( 'divider' === $field->type && empty( $this->nested ) ) { $this->section_size = $this->active_field_size; $this->active_field_size = 0; $this->section_helper = new self( true ); } } private function maybe_close_section_helper() { if ( empty( $this->section_helper ) ) { return; } $this->section_helper->force_close_field_wrapper(); $this->section_helper = null; } /** * @return string */ public function get_field_layout_class() { $field = FrmFieldsHelper::setup_edit_vars( $this->field ); if ( empty( $field['classes'] ) ) { return ''; } $split = explode( ' ', $field['classes'] ); $this->is_frm_first = in_array( 'frm_first', $split, true ); $classes = self::get_grid_classes(); foreach ( $classes as $class ) { if ( in_array( $class, $split, true ) ) { return $class; } } return ''; } public function maybe_begin_field_wrapper() { if ( $this->should_first_close_the_active_field_wrapper() ) { $this->close_field_wrapper(); } if ( false === $this->parent_li && 'end_divider' !== $this->field->type ) { $this->begin_field_wrapper(); } if ( ! empty( $this->section_helper ) && $this->section_is_open ) { $this->section_helper->maybe_begin_field_wrapper(); } } /** * @return bool */ private function should_first_close_the_active_field_wrapper() { if ( false === $this->parent_li || ! empty( $this->section_helper ) ) { return false; } if ( 'end_divider' === $this->field->type ) { return false; } return ! $this->can_support_current_layout() || $this->is_frm_first; } private function begin_field_wrapper() { echo '
  • '; $this->parent_li = false; $this->current_list_size = 0; $this->current_field_count = 0; } private function can_support_current_layout() { if ( 'end_divider' === $this->field->type ) { return true; } return $this->can_support_an_additional_layout( $this->field_layout_class ); } /** * @param string $class * @return bool */ private function can_support_an_additional_layout( $class ) { $size = $this->get_size_of_class( $class ); return $this->current_list_size + $size <= 12; } /** * @return array */ private static function get_grid_classes() { return array( 'frm_full', 'frm_half', 'frm_third', 'frm_two_thirds', 'frm_fourth', 'frm_three_fourths', 'frm_sixth', 'frm1', 'frm2', 'frm3', 'frm4', 'frm5', 'frm6', 'frm7', 'frm8', 'frm9', 'frm10', 'frm11', 'frm12', ); } }