File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/cms/includes/sections/customimage.php
<?php
/**
* This file contains the iwp_section_customimage class.
*
* @author Jordie <jordie+code@interspire.com>
*
* @package IWP
* @subpackage IWP_API
*/
/**
* This is a section class that is responsible for processing a particular section html file.
*
* @package IWP
* @subpackage IWP_API
*
* @see iwp_base
*/
class iwp_section_customimage {
public function ProcessBlock($styleGuideObj, $domElement, $attributes){
$imageNotLinkedElement = iwp_domhelper::GetElementByClass($domElement, 'tplcond-ifimagenotlinked');
iwp_domhelper::WrapElement($imageNotLinkedElement, '{if !$imageIsLinked}', '{/if}');
$imageLinkedElement = iwp_domhelper::GetElementByClass($domElement, 'tplcond-ifimagelinked');
iwp_domhelper::WrapElement($imageLinkedElement, '{if $imageIsLinked}', '{/if}');
iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-image-path', '{$imageURI}');
iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-image-label', '{$imageAlt}');
iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-image-width', '{$imageWidth}');
iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-image-height', '{$imageHeight}');
iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-imagelink-url', '{$imageLinkURI}');
iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-imagelink-target', '{$imageLinkTarget}');
return iwp_domhelper::outerHTML($domElement);
}
}