web/wp-content/plugins/social/views/wp-admin/post/meta/broadcast/pending.php
author Anthony Ly <anthonyly.com@gmail.com>
Tue, 12 Mar 2013 18:21:39 +0100
changeset 206 919b4ddb13fa
parent 196 5e8dcbe22c24
permissions -rw-r--r--
modification logo footer cccb

<?php
echo '<div class="misc-pub-section">';
if (empty($accounts)) {
	_e('This post will not be broadcasted to any of your social accounts.', 'social');
}
else {
	echo '<p class="mar-top-none">'
	   . __('This post will be broadcasted to the following accounts.', 'social')
	   . '</p>';

	foreach ($accounts as $service => $_accounts) {
		if (isset($services[$service])) {
			$service = $services[$service];

			$output = '';
			foreach ($_accounts as $account) {
				if (($account = $service->account($account->id)) !== false) {
					$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>';
			}
		}
	}
}
echo '</div>';