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