PluginProbe ʕ •ᴥ•ʔ
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF / trunk
Robin Image Optimizer – Unlimited Image Optimization, WebP & AVIF vtrunk
2.0.5 trunk 1.3.7 1.4.0 1.4.1 1.4.2 1.4.6 1.5.0 1.5.3 1.5.6 1.5.8 1.6.5 1.6.6 1.6.9 1.7.0 1.7.4 1.8.1 1.8.2 1.9.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4
robin-image-optimizer / libs / factory / forms / controls / holders / div.php
robin-image-optimizer / libs / factory / forms / controls / holders Last commit date
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 }