PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.18
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.18
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / styles / components / FrmAlignStyleComponent.php

FrmAlignStyleComponent.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.18, at classes/views/styles/components/FrmAlignStyleComponent.php

43 lines 849 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5 class FrmAlignStyleComponent extends FrmStyleComponent {
6
7 /**
8 * The view file name.
9 *
10 * @since 6.14
11 *
12 * @var string
13 */
14 protected $view_name = 'align';
15
16 /**
17 * Construct the FrmAlignStyleComponent.
18 *
19 * @since 6.14
20 */
21 public function __construct( $field_name, $field_value, $data ) {
22 $this->init( $data, $field_name, $field_value );
23 }
24
25 /**
26 * Get the wrapper classname.
27 *
28 * @since 6.14
29 *
30 * @return string
31 */
32 protected function get_wrapper_class_name() {
33 $class = $this->get_default_wrapper_class_names();
34 $class .= ' frm-align-component frm-radio-component';
35
36 if ( empty( $this->data['options'] ) || 2 !== count( $this->data['options'] ) ) {
37 return $class;
38 }
39
40 return $class . ' frm-2-options';
41 }
42 }
43