HEX
Server: LiteSpeed
System: Linux 111n6.sieutocviet.page 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
User: nhathuocat (1048)
PHP: 7.4.30
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/nhathuocat/public_html/wp-content/plugins/fixed-toc/frontend/html/class-element-header.php
<?php

/**
 * Header element
 *
 * @since 3.0.0
 * @see Fixedtoc_Element
 */
class Fixedtoc_Element_Header extends Fixedtoc_Element {

	/**
	 * Set the tag name.
	 *
	 * @since 3.0.0
	 * @see Fixedtoc_Element
	 *
	 * @return void
	 */
	protected function set_tagname() {
		$this->tagname = 'header';
	}

	/**
	 * Set the attributes array.
	 *
	 * @since 3.0.0
	 * @see Fixedtoc_Element
	 *
	 * @return void
	 */
	protected function set_attrs() {
		$this->attrs = array(
			'id' => 'ftwp-header'
		);

		if ( fixedtoc_is_true( 'contents_clickable_header' ) ) {
			$this->attrs['class'] = 'ftwp-header-clickable';
		}
	}

	/**
	 * Set the Content inner tags.
	 *
	 * @since 3.0.0
	 * @see Fixedtoc_Element
	 *
	 * @return void
	 */
	protected function set_content() {
		require_once 'class-element-header-control-icon.php';
		$obj_control_icon = new Fixedtoc_Dom( new Fixedtoc_Element_Header_Control_Icon );
		require_once 'class-element-header-title.php';
		$obj_header_title = new Fixedtoc_Dom( new Fixedtoc_Element_Header_title );
		$minimize_icon = '';
		if ( ! fixedtoc_amp_is_request() ) {
			require_once 'class-element-header-minimize-icon.php';
			$obj_minimize_icon = new Fixedtoc_Dom( new Fixedtoc_Element_Header_Minimize_Icon );
			$minimize_icon = $obj_minimize_icon->get_html();
		}
			$this->content     = $obj_control_icon->get_html() . $minimize_icon . $obj_header_title->get_html();
	}

}