$user = $this->memberData['member_id'];
echo $user;
$html = '{parse block="get_user_id"}';
if( $this->caches['app_cache']['ccs'] && $this->caches['app_cache']['ccs']['app_enabled'] )
{
if( ! $this->registry->isClassLoaded( 'ccsFunctions' ) )
{
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir('ccs') . '/sources/functions.php', 'ccsFunctions', 'ccs' );
$this->registry->setClass( 'ccsFunctions', new $classToLoad( $this->registry ) );
}
if ( !( $this->registry->isClassLoaded('pageBuilder') ) )
{
require_once( IPSLib::getAppDir('ccs') . '/sources/pages.php' );
$this->registry->setClass('pageBuilder', new pageBuilder( $this->registry ) );
}
/* Get all blocks from content */
preg_match_all( "#\{parse block=\"(.+?)\"\}#", $html, $matches );
if( count( $matches ) )
{
foreach( $matches[1] as $index => $key )
{
$html = str_replace( $matches[0][ $index ], $this->registry->getClass('pageBuilder')->getBlock( $key ), $html );
}
}
}