$group ) { echo self::group_display( 'block_1', $group_key, $group, $prefix ); } } /** * Print a single group of seetings */ public static function group_display( $block_key = '', $group_key = '', $group = array(), $prefix = '' ) { ob_start(); echo self::get_conditional_row_group_start( $group_key, $group ); echo self::get_conditional_row_group_rows_start( $group_key, $group ); foreach ( $group as $group_row => $row_fields ) { echo self::get_conditional_row_template( $block_key, $group_key, $group_row, $row_fields, $prefix, false ); } echo self::get_conditional_row_group_rows_end(); echo self::get_conditional_row_group_end(); return ob_get_clean(); } /** * Conditional group row start html */ public static function get_conditional_row_group_rows_start( $group_key, $group ) { return '
'; } /** * Conditional group row end html */ public static function get_conditional_row_group_rows_end() { return '

' . __( 'IF', 'wpcf7-redirect' ) . '

'; } /** * Conditional row group start */ public static function get_conditional_row_group_start( $group_key, $group ) { return '

' . __( 'OR', 'wpcf7-redirect' ) . '

'; } /** * Get Conditional Row Group End */ public static function get_conditional_row_group_end() { return '
'; } /** * Get the title html block * * @param $group_block_key * @param $group_block * @param $active_tab_title * @param boolean $echo * @param $prefix */ public static function get_block_title( $group_block_key, $group_block, $active_tab_title, $echo = true, $prefix = '') { ob_start(); include WPCF7_PRO_REDIRECT_TEMPLATE_PATH . 'block-title.php'; if ( $echo ) { echo ob_get_clean(); } else { return ob_get_clean(); } } /** * Get an HTML template of a condition row */ public static function get_conditional_row_template( $block_key = '', $group_key = '', $group_row = '', $row_fields = array(), $prefix = '', $required = true ) { ob_start(); $condition = $row_fields['condition']; $tags = WPCF7R_Form::get_mail_tags(); $required = $required ? 'required' : ''; ?> type, $select_fields, true ) ) : ?>