PluginProbe ʕ •ᴥ•ʔ
Disable Admin Notices – Hide Dashboard Notifications / trunk
Disable Admin Notices – Hide Dashboard Notifications vtrunk
1.4.5 trunk 1.0.0 1.0.2 1.0.3 1.0.5 1.0.6 1.1.1 1.1.3 1.1.4 1.2.0 1.2.2 1.2.3 1.2.4 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4
disable-admin-notices / libs / factory / forms / controls / holders / div.php
disable-admin-notices / libs / factory / forms / controls / holders Last commit date
accordion-item.php 1 year ago accordion.php 1 year ago columns.php 1 year ago control-group-item.php 1 year ago control-group.php 1 year ago div.php 1 year ago form-group.php 1 year ago index.php 3 years ago more-link.php 1 year ago tab-item.php 1 year ago tab.php 1 year ago
div.php
67 lines
1 <?php
2 /**
3 * The file contains the class of Div Control Holder.
4 *
5 * @author Alex Kovalev <alex.kovalevv@gmail.com>
6 * @copyright (c) 2018, Webcraftic Ltd
7 *
8 * @package factory-forms
9 * @since 1.0.0
10 */
11
12 // Exit if accessed directly
13 if( !defined('ABSPATH') ) {
14 exit;
15 }
16
17 if( !class_exists('Wbcr_FactoryForms480_DivHolder') ) {
18 /**
19 * Div Control Holder
20 *
21 * @since 1.0.0
22 */
23 class Wbcr_FactoryForms480_DivHolder extends Wbcr_FactoryForms480_Holder {
24
25 /**
26 * A holder type.
27 *
28 * @since 1.0.0
29 * @var string
30 */
31 public $type = 'div';
32
33 /**
34 * Here we should render a beginning html of the tab.
35 *
36 * @since 1.0.0
37 * @return void
38 */
39 public function beforeRendering()
40 {
41
42 if( isset($this->options['class']) ) {
43 $this->addCssClass($this->options['class']);
44 }
45 if( isset($this->options['id']) ) {
46 $this->addHtmlAttr('id', $this->options['id']);
47 }
48
49 ?>
50 <div <?php $this->attrs() ?>>
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 ?>
63 </div>
64 <?php
65 }
66 }
67 }