web/wp-content/plugins/social/views/wp-admin/post/meta/broadcast/pending.php
changeset 196 5e8dcbe22c24
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/plugins/social/views/wp-admin/post/meta/broadcast/pending.php	Tue Dec 04 18:43:10 2012 -0800
@@ -0,0 +1,31 @@
+<?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>';