accordion-item.php
5 months ago
accordion.php
5 months ago
columns.php
5 months ago
control-group-item.php
5 months ago
control-group.php
5 months ago
div.php
5 months ago
form-group.php
5 months ago
index.php
6 months ago
more-link.php
5 months ago
tab-item.php
5 months ago
tab.php
5 months ago
div.php
62 lines
| 1 | <?php |
| 2 | /** |
| 3 | * The file contains the class of Div Control Holder. |
| 4 | * |
| 5 | * @package factory-forms |
| 6 | * @since 1.0.0 |
| 7 | */ |
| 8 | |
| 9 | // Exit if accessed directly |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; |
| 12 | } |
| 13 | |
| 14 | if ( ! class_exists( 'Wbcr_FactoryForms600_DivHolder' ) ) { |
| 15 | /** |
| 16 | * Div Control Holder |
| 17 | * |
| 18 | * @since 1.0.0 |
| 19 | */ |
| 20 | class Wbcr_FactoryForms600_DivHolder extends Wbcr_FactoryForms600_Holder { |
| 21 | |
| 22 | /** |
| 23 | * A holder type. |
| 24 | * |
| 25 | * @since 1.0.0 |
| 26 | * @var string |
| 27 | */ |
| 28 | public $type = 'div'; |
| 29 | |
| 30 | /** |
| 31 | * Here we should render a beginning html of the tab. |
| 32 | * |
| 33 | * @since 1.0.0 |
| 34 | * @return void |
| 35 | */ |
| 36 | public function beforeRendering() { |
| 37 | |
| 38 | if ( isset( $this->options['class'] ) ) { |
| 39 | $this->addCssClass( $this->options['class'] ); |
| 40 | } |
| 41 | if ( isset( $this->options['id'] ) ) { |
| 42 | $this->addHtmlAttr( 'id', $this->options['id'] ); |
| 43 | } |
| 44 | |
| 45 | ?> |
| 46 | <div <?php $this->attrs(); ?>> |
| 47 | <?php |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Here we should render an end html of the tab. |
| 52 | * |
| 53 | * @since 1.0.0 |
| 54 | * @return void |
| 55 | */ |
| 56 | public function afterRendering() { |
| 57 | ?> |
| 58 | </div> |
| 59 | <?php |
| 60 | } |
| 61 | } |
| 62 | } |