Example #1
0
 public static function formatTimestamp($stamp)
 {
     wfProfileIn(__METHOD__);
     $ago = time() - strtotime($stamp) + 1;
     if ($ago < 7 * 86400) {
         $res = parent::formatTimestamp($stamp);
     } else {
         $res = '';
     }
     wfProfileOut(__METHOD__);
     return $res;
 }
Example #2
0
 public function __construct()
 {
     parent::__construct('hot-spots');
 }
            print FeedRenderer::getActionLabel($row);
            print ActivityFeedRenderer::formatTimestamp($row['timestamp']);
            ?>
</span><?php 
            print FeedRenderer::getDiffLink($row);
            ?>
</cite>
					<table><?php 
            print FeedRenderer::getDetails($row);
            ?>
</table>
				<?php 
        } else {
            ?>
					<table class="wallfeed"><?php 
            print FeedRenderer::getDetails($row);
            ?>
</table>
				<?php 
        }
        ?>
				<?php 
        // copied from feed.tmpl.php, BugId:97673
        global $wgEnableAchievementsInActivityFeed, $wgEnableAchievementsExt;
        if (!empty($wgEnableAchievementsInActivityFeed) && !empty($wgEnableAchievementsExt)) {
            if (isset($row['Badge'])) {
                $badge = unserialize($row['Badge']);
                $ownerBadge = array('badge' => $badge);
                AchBadge::renderForActivityFeed($ownerBadge, true);
            }
        }
		<li class="activity-type-<?php 
        echo UserContributionsRenderer::getIconType($row);
        ?>
">
			<?php 
        print FeedRenderer::getSprite($row, $assets['blank']);
        ?>
			<a href="<?php 
        echo htmlspecialchars($row['url']);
        ?>
" class="title" rel="nofollow"><?php 
        echo htmlspecialchars($row['title']);
        ?>
</a>
			<cite><?php 
        echo FeedRenderer::formatTimestamp($row['timestamp']);
        ?>
</cite>
			<?php 
        echo FeedRenderer::getDiffLink($row);
        ?>

		</li>
<?php 
    }
    ?>
	</ul>
<?php 
} else {
    echo wfMsgExt('myhome-user-contributions-empty', array('parse'));
}
 public function __construct()
 {
     parent::__construct('user-contributions');
 }
 public function __construct()
 {
     parent::__construct('activity');
 }
Example #7
0
"><?php 
            print $title;
            ?>
</a></strong><br />
<?php 
        } else {
            ?>
			<span class="title"><?php 
            print $title;
            ?>
</span>
<?php 
        }
        ?>
			<cite><span class="timeago" title="<?php 
        echo wfTimestamp(TS_ISO_8601, $row['timestamp']);
        ?>
"><?php 
        print ActivityFeedRenderer::formatTimestamp($row['timestamp']);
        ?>
</span> <?php 
        print wfMsg("myhome-feed-by", FeedRenderer::getUserPageLink($row));
        ?>
</cite>
		</li>
<?php 
    }
    ?>
	</ul>
<?php 
}
Example #8
0
        if (isset($row['url'])) {
            ?>
			<strong><a href="<?php 
            print htmlspecialchars($row['url']);
            ?>
"><?php 
            print htmlspecialchars($row['title']);
            ?>
</a></strong>
<?php 
        } else {
            ?>
			<span class="title"><?php 
            print htmlspecialchars($row['title']);
            ?>
</span>
<?php 
        }
        ?>
			<cite><?php 
        print ActivityFeedRenderer::formatTimestamp($row['timestamp']);
        print FeedRenderer::getDiffLink($row);
        ?>
</cite>
		</li>
<?php 
    }
    ?>
	</ul>
<?php 
}