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/viewauthor.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_viewauthor {

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

		iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-author-name', '{$authorName}');
		iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-author-biography', '{$authorBio}');
		iwp_domhelper::modifyTagByClassName($domElement, 'tplflag-author-contentlist', '{$authorContentList}');
		iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-author-imageheight', '{$authorImageHeight}');
		iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-author-imagewidth', '{$authorImageWidth}');
		iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-author-imageurl', '{$authorImageSrc}');
		iwp_domhelper::modifyTagByClassName($domElement, 'tplflag-author-paging', '{$authorPaging}');

		// replace the author image
		$imageElement = iwp_domhelper::GetElementByClass($domElement, 'tplflag-author-image');

		if(is_object($imageElement)){ // should be a DOMElement
				// add a conditional to only display if the image exists
			iwp_domhelper::WrapElement($imageElement, '{if $authorImageExists}', '{/if}');
		}

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