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