| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/cdc/wp-content/plugins/simple-lightbox/includes/ |
Upload File : |
<?php
/**
* Admin Menu
* Menus are top-level views in the Admin UI
* @package Simple Lightbox
* @subpackage Admin
* @author Archetyped
*/
class SLB_Admin_Menu extends SLB_Admin_View {
/* Properties */
/**
* Menu position
* @var int
*/
protected $position = null;
/* Init */
public function __construct( $id, $labels, $callback = null, $capability = null, $icon = null, $position = null ) {
// Default
parent::__construct( $id, $labels, $callback, $capability, $icon );
// Class specific
$this->set_position( $position );
return $this;
}
/* Getters/Setters */
/**
* Set menu position
* @return obj Current instance
*/
public function set_position( $position ) {
if ( is_int( $position ) ) {
$this->position = $position;
}
return $this;
}
}