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