HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/cms/includes/sections/htmlhead.php
<?php
/**
 * This file contains the iwp_styleguide class.
 *
 * @author Jordie <jordie+code@interspire.com>
 *
 * @package IWP
 * @subpackage IWP_API
 */

/**
 * This class extends upon the base iwp_base class.
 * This file deals specifically with the style guide for themes
 *
 * @package IWP
 * @subpackage IWP_API
 *
 * @see iwp_base
 */

class iwp_section_htmlhead {

	public function ProcessBlock($styleGuideObj, $domElement, $attributes){

		$domElement->insertBefore(iwp_domhelper::NewDOMText('{$headTagBegin}'), $domElement->firstChild);
		$domElement->appendChild(iwp_domhelper::NewDOMText('{$headTagEnd}'));

		// remove the class attribute from all the meta tags and the title tag
		$xpathFind = '//head/title|//head/meta';

		if (($domElement instanceof DOMDocument)) {
			$xPath = new DOMXPath($domElement);
		} else {
			$xPath = new DOMXPath($domElement->ownerDocument);
			$attr = iwp_domhelper::getAttributes($domElement);
		}

		$classMatches = $xPath->query($xpathFind);

		if($classMatches->length > 0) {
			foreach($classMatches as $thisElement) {
				if($thisElement->hasAttribute('class')) {
					$thisElement->removeAttribute('class');
				}
			}
		}

		return iwp_domhelper::outerHTML($domElement);
	}
}