File: D:/HostingSpaces/PvdBoogaard/indoorski.nl/backup/oude-site/cms/includes/sections/rsspage.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_rsspage {
public function ProcessBlock($styleGuideObj, $domElement, $attributes){
// language variables
$elementList = iwp_domhelper::GetElementListByClass($domElement, 'tplcond-ifhascategoryfeeds');
foreach($elementList as $thisElement){
if(is_object($thisElement)){
iwp_domhelper::WrapElement($thisElement, '{if $hasCategoryFeeds}', '{/if}');
}
}
$elementList = iwp_domhelper::GetElementListByClass($domElement, 'tplcond-ifhasotherfeeds');
foreach($elementList as $thisElement){
if(is_object($thisElement)){
iwp_domhelper::WrapElement($thisElement, '{if $hasOtherFeeds}', '{/if}');
}
}
$thisElement = iwp_domhelper::GetElementByClass($domElement, 'tplrepeat-categoryfeed');
if(is_object($thisElement)){
iwp_domhelper::WrapElement($thisElement, '{foreach from=$categoryFeeds item=row}', '{/foreach}');
}
$thisElement = iwp_domhelper::GetElementByClass($domElement, 'tplrepeat-otherfeed');
if(is_object($thisElement)){
iwp_domhelper::WrapElement($thisElement, '{foreach from=$otherFeeds item=row}', '{/foreach}');
}
iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-feedpage-indentstyle', 'margin-left: {$row.level|math,"%s*15"}px;');
iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-feedpage-url', '{$row.url}');
iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-feedpage-label', '{$row.name}');
return iwp_domhelper::outerHTML($domElement);
}
}