web/wp-content/plugins/social/views/wp-admin/post/meta/broadcast/scheduled.php
author Anthony Ly <anthonyly.com@gmail.com>
Wed, 12 Dec 2012 18:57:40 -0800
changeset 199 9ff3c84d7b27
parent 196 5e8dcbe22c24
permissions -rw-r--r--
ajout du logo Ars

<div class="misc-pub-section">
<?php
if (empty($accounts)) {
	echo '<p class=="mar-top-none">'
	   . __('This post is scheduled to be published at a later date. However, it is not scheduled to be broadcasted to any of your social accounts.', 'social')
	   . '</p>';
}
else {
	echo '<h4>'. __('Scheduled for:', 'social').'</h4>';
	foreach ($accounts as $service => $_accounts) {
		if (isset($services[$service])) {
			$service = $services[$service];

			$output = '';
			foreach ($_accounts as $account) {
				$_account = $service->account($account->id);
				if ($_account !== false) {
					$account = $_account;
				}
				
				$output .= Social_View::factory('wp-admin/post/meta/broadcast/parts/account', array(
					'account' => $account,
					'service' => $service
				));
			}

			if (!empty($output)) {
				echo '<ul class="social-broadcasted">'.$output.'</ul>';
			}
		}
	}
}
?>
</div>