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/paginglinks.php
<?php
/**
 * This file contains the iwp_section_paginglinks class.
 *
 * @author Jordie <jordie+code@interspire.com>
 *
 * @package IWP
 * @subpackage IWP_API
 */

/**
 * This file processs the style guide for the paging links section
 *
 * @package IWP
 * @subpackage IWP_API
 *
 * @see iwp_base
 */

class iwp_section_paginglinks {

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

		iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-paging-prevlink', '{$paging.prevPageLink}');
		iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-paging-firstlink', '{$paging.firstPageLink}');
		iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-paging-lastlink', '{$paging.lastPageLink}');
		iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-paging-nextlink', '{$paging.nextPageLink}');

		$thisElement = iwp_domhelper::GetElementByClass($domElement, 'tplrepeat-paging-iflinked');
		if(is_object($thisElement)){
			iwp_domhelper::WrapElement($thisElement, '{foreach from=$paging.links item=pagingRow key=key id=pagingLoop} {if $paging.currentPage != $key}', '{else}');
		}

		$thisElement = iwp_domhelper::GetElementByClass($domElement, 'tplrepeat-paging-ifnotlinked');
		if(is_object($thisElement)){
			iwp_domhelper::WrapElement($thisElement, '', '{/if}{/foreach}');
		}

		iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-paging-number', '{$key}');
		iwp_domhelper::modifyTagByClassName($domElement, 'tplvar-paging-url', '{$pagingRow}');

		return '{if $paging.PageCount}' . iwp_domhelper::outerHTML($domElement) . '{/if}';
	}
}