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 / form-group.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
form-group.php
66 lines
1 <?php
2 /**
3 * The file contains the class of Group 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_FormGroupHolder' ) ) {
15 /**
16 * Group Holder
17 *
18 * @since 1.0.0
19 */
20 class Wbcr_FactoryForms600_FormGroupHolder extends Wbcr_FactoryForms600_Holder {
21
22 /**
23 * A holder type.
24 *
25 * @since 1.0.0
26 * @var string
27 */
28 public $type = 'form-group';
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 $this->addCssClass( 'factory-form-group-' . $this->getName() );
39 $this->addHtmlAttr( 'id', 'factory-form-group-' . $this->getName() );
40
41 ?>
42 <fieldset <?php $this->attrs(); ?>>
43 <?php if ( $this->hasTitle() ) { ?>
44 <legend class='factory-legend'>
45 <p class='factory-title'><?php $this->title(); ?></p>
46 <?php if ( $this->hasHint() ) { ?>
47 <p class='factory-hint'><?php echo $this->hint(); ?></p>
48 <?php } ?>
49 </legend>
50 <?php } ?>
51 <?php
52 }
53
54 /**
55 * Here we should render an end html of the tab.
56 *
57 * @since 1.0.0
58 * @return void
59 */
60 public function afterRendering() {
61 ?>
62 </fieldset>
63 <?php
64 }
65 }
66 }