golden hour
/home/phakp/public_html/wp/wp-content/themes/neve/inc/admin/metabox
⬆️ Go Up
Upload
File/Folder
Size
Actions
controls
-
Del
OK
controls_base.php
794 B
Del
OK
main.php
5.81 KB
Del
OK
manager.php
3.61 KB
Del
OK
Edit: controls_base.php
<?php /** * Page settings metabox. * * @package Neve */ namespace Neve\Admin\Metabox; use Neve\Admin\Metabox\Controls\Control_Base; /** * Class Metabox_Controls_Base * * @package Neve\Admin\Metabox */ abstract class Controls_Base { /** * Controls. * * @var array */ private $controls = array(); /** * Init function */ public function init() { $this->add_controls(); } /** * Add controls. */ abstract protected function add_controls(); /** * Add the control. * * @param Controls\Control_Base $control the control object. */ public function add_control( Control_Base $control ) { array_push( $this->controls, $control ); } /** * Get the controls. * * @return array */ public function get_controls() { return $this->controls; } }
Save