# formidable/6.14/classes/views/styles/components/FrmAlignStyleComponent.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version 6.14. 43 lines.

- Page: https://pluginprobe.com/plugins/formidable/6.14/code/classes/views/styles/components/FrmAlignStyleComponent.php
- Raw: https://pluginprobe.com/plugins/formidable/6.14/raw/classes/views/styles/components/FrmAlignStyleComponent.php
- Modified: 2024-09-10T13:42:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formidable/6.14/code/classes/views/styles/components/FrmAlignStyleComponent.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}
class FrmAlignStyleComponent extends FrmStyleComponent {

	/**
	 * The view file name.
	 *
	 * @since 6.14
	 *
	 * @var string
	 */
	protected $view_name = 'align';

	/**
	 * Construct the FrmAlignStyleComponent.
	 *
	 * @since 6.14
	 */
	public function __construct( $field_name, $field_value, $data ) {
		$this->init( $data, $field_name, $field_value );
	}

	/**
	 * Get the wrapper classname.
	 *
	 * @since 6.14
	 *
	 * @return string
	 */
	protected function get_wrapper_class_name() {
		$class  = $this->get_default_wrapper_class_names();
		$class .= ' frm-align-component frm-radio-component';

		if ( empty( $this->data['options'] ) || 2 !== count( $this->data['options'] ) ) {
			return $class;
		}

		return $class . ' frm-2-options';
	}
}

```
