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);
}
}