PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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 trunk, at classes/views/styles/components/FrmAlignStyleComponent.php

47 lines 1016 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 * @param string $field_name Field name attribute.
22 * @param mixed $field_value Current field value.
23 * @param array $data Additional component data.
24 */
25 public function __construct( $field_name, $field_value, $data ) {
26 $this->init( $data, $field_name, $field_value );
27 }
28
29 /**
30 * Get the wrapper classname.
31 *
32 * @since 6.14
33 *
34 * @return string
35 */
36 protected function get_wrapper_class_name() {
37 $class = $this->get_default_wrapper_class_names();
38 $class .= ' frm-align-component frm-radio-component';
39
40 if ( empty( $this->data['options'] ) || 2 !== count( $this->data['options'] ) ) {
41 return $class;
42 }
43
44 return $class . ' frm-2-options';
45 }
46 }
47