

<?php if( $this->configGlobal['serviceProviders'] == '1' && $this->configGlobal['enableFacebook'] == '1' && $this->configGlobal['enableFacebookWallAndNews'] == '1' ) : ?>
<?php 	foreach($this->socialAccounts as $k => $row ) :

			if( $row['Type'] != "SocialNetwork" )
				continue;

			$pid = $row['id'];
			$myId = $row['UserId'];
			$myDisplayName = $row['DisplayName'];
			if( $row['Provider'] == 'Facebook' )
				$folders = array("newsfeed" => "News Feed", "wall" => "Wall");
			else if( $row['Provider'] == 'Twitter' )
				$folders = array("statuses_home_timeline" => "Timeline", "statuses_mentions" => "Mentions");
			else
				$folders = array("statuses_home_timeline" => "Timeline", "statuses_mentions" => "Mentions");
?>

	<li>
		<div class="folder<?php echo $row['Provider'] ?>" isselectable="false" isMainFolder="true" nodrop="true">
			<a class="ui-droppable" href="#">
				<span class="label"><?php echo $row['Provider'] ?></span>
				<span class="unread" style="display: none;"><strong>0</strong></span>
			</a>
		</div>
		<ul style="display: block;" class="subfolder">
<?php 		foreach( $folders as $folderName => $folderHuman ) : ?>
			<li class="serviceFolderGroup" pid="<?php echo $pid ?>">
				<div isSelectable="true" isMainFolder="true" nodrop="true">
					<a class="jsServiceProvider" href="<?php echo $this->appBaseUrl ?>/api/unify/getSummary" pid="<?php echo $pid ?>" myid="<?php echo $myId ?>" mydisplayname="<?php echo $myDisplayName ?>" folder="<?php echo $folderName ?>" servicetype="SocialNetwork" servicename="<?php echo $row['Provider'] ?>">
						<span class="label <?php echo $folderName ?>"><?php echo $folderHuman ?></span>
						<span class="unread" style="display:none;"><strong>0</strong></span>
					</a>
				</div>
			</li>
<?php 		endforeach ?>
		</ul>
	</li>
<?php 	endforeach ?>
<?php endif //if( $this->configGlobal['serviceProviders'] == '1' && $this->configGlobal['enableFacebook'] == '1' && $this->configGlobal['enableFacebookWallAndNews'] == '1' ) : ?>


