Exemplo n.º 1
0
 /**
  * Builds the next run output.
  *
  * @static
  * @param  int  $timetamp
  * @return string
  */
 public static function next_run($timetamp)
 {
     $current_time = current_time('timestamp', 1);
     $diff = $timetamp - $current_time;
     if ($diff < Social_Date::HOUR) {
         $next_run = Social_Date::fuzzy_span($timetamp, $current_time);
     } else {
         if ($diff < Social_Date::DAY * 2) {
             $next_run = Social_Date::span_formatted($timetamp, $current_time);
             $next_run = sprintf(__('approximately %s', 'social'), $next_run);
         } else {
             $next_run = Social_Date::fuzzy_span($timetamp, $current_time);
         }
     }
     return $next_run;
 }
Exemplo n.º 2
0
</span></a></li>
			<li class="social-pingback<?php 
        echo (isset($_GET['social_tab']) and $_GET['social_tab'] == 'social-pingback') ? ' social-current-tab' : '';
        ?>
"><a href="#" rel="social-pingback"><span><?php 
        printf(_n('1 Pingback', '%1$s Pingbacks', isset($groups['pingback']) ? $groups['pingback'] : 0, 'social'), isset($groups['pingback']) ? $groups['pingback'] : 0);
        ?>
</span></a></li>
		</ul>

		<!-- panel items -->
		<div id="social-comments-tab-all" class="social-tabs-panel social-tabs-first-panel">
			<div id="comments" class="social-comments">
				<?php 
        if ($last_reply_time) {
            echo '<div class="social-last-reply-when">' . sprintf(__('Last reply was %s', 'social'), Social_Date::span_comment($last_reply_time)) . '</div>';
        }
        if (count($social_items)) {
            echo '<div id="social-items-wrapper">';
            foreach ($social_items as $group => $items) {
                $service = Social::instance()->service($group);
                if ($service !== false and count($items)) {
                    $avatar_size = apply_filters('social_items_avatar_size', array('width' => 24, 'height' => 24));
                    echo Social_View::factory('comment/social_item', compact('items', 'service', 'avatar_size'));
                }
            }
            echo '</div>';
        }
        if ($last_reply_time or count($social_items)) {
            echo '<div class="cf-clearfix"></div>';
        }
Exemplo n.º 3
0
_e('View', 'social');
?>
</span>
				<?php 
if ($status_url !== null) {
    ?>
				</a>
				<?php 
}
?>
			</span>
			<a href="<?php 
echo esc_url(get_comment_link(get_comment_ID()));
?>
" class="social-posted-when" target="_blank"><?php 
echo esc_html(Social_Date::span_comment(strtotime($comment->comment_date_gmt)));
?>
</a>
		</div>
	</div>
	<div class="social-comment-body">
		<?php 
if ($comment->comment_approved == '0') {
    ?>
		<em class="comment-awaiting-moderation"><?php 
    _e('Your comment is awaiting moderation.', 'social');
    ?>
</em><br />
		<?php 
}
?>