<header class="sectionHeader">
<h2 class="sectionTitle">{lang}wcf.user.recentActivity{/lang}</h2>
- {if $canFilterByFollowedUsers}{*todo*}
+ {if $canFilterByFollowedUsers}
<nav class="jsMobileNavigation buttonGroupNavigation jsOnly jsRecentActivitySwitchContext">
<ul class="buttonGroup">
<li><a href="#" class="button small{if !$filteredByFollowedUsers} active{/if}">{lang}wcf.user.recentActivity.scope.all{/lang}</a></li>
</option>
<!-- /user.profileComment -->
- <!-- todo: find better category -->
<option name="user.tag.canViewTag">
<categoryname>user.message</categoryname>
<optiontype>boolean</optiontype>
});
if (this._container.children('li').length) {
- // todo: remove recentActivitiesMore in 3.0
- this._loadButton = $('<li class="recentActivitiesMore showMore"><button class="small">' + WCF.Language.get('wcf.user.recentActivity.more') + '</button></li>').appendTo(this._container);
+ this._loadButton = $('<li class="showMore"><button class="small">' + WCF.Language.get('wcf.user.recentActivity.more') + '</button></li>').appendTo(this._container);
this._loadButton = this._loadButton.children('button').click($.proxy(this._click, this));
}
else {
- // todo: remove recentActivitiesMore in 3.0
- $('<li class="recentActivitiesMore showMore"><small>' + WCF.Language.get('wcf.user.recentActivity.noMoreEntries') + '</small></li>').appendTo(this._container);
+ $('<li class="showMore"><small>' + WCF.Language.get('wcf.user.recentActivity.noMoreEntries') + '</small></li>').appendTo(this._container);
}
if (WCF.User.userID) {
success: $.proxy(this._success, this)
});
- // todo: remove recentActivitiesMore in 3.0
- var $container = $('<li class="likeListMore recentActivitiesMore showMore"><button class="small">' + WCF.Language.get('wcf.like.likes.more') + '</button><small>' + WCF.Language.get('wcf.like.likes.noMoreEntries') + '</small></li>').appendTo(this._container);
+ var $container = $('<li class="likeListMore showMore"><button class="small">' + WCF.Language.get('wcf.like.likes.more') + '</button><small>' + WCF.Language.get('wcf.like.likes.noMoreEntries') + '</small></li>').appendTo(this._container);
this._loadButton = $container.children('button').click($.proxy(this._click, this));
this._noMoreEntries = $container.children('small').hide();
$editor->update(['cumulativeLikes' => $cumulativeLikes]);
}
- /**
- * @inheritDoc
- */
- public function sendNotification(Like $like) {
- /* @todo
- if ($this->getDecoratedObject()->userID != WCF::getUser()->userID) {
- $notificationObject = new LikeUserNotificationObject($like);
- UserNotificationHandler::getInstance()->fireEvent(
- 'like',
- 'com.woltlab.wcf.likeableArticle.notification',
- $notificationObject,
- [$this->getDecoratedObject()->userID],
- ['objectID' => $this->getDecoratedObject()->articleID]
- );
- }
- */
- }
-
/** @noinspection PhpMissingParentCallCommonInspection */
/**
* @inheritDoc
* @inheritDoc
*/
public function getFormattedMessage() {
- // @todo
$message = SearchResultTextParser::getInstance()->parse($this->getDecoratedObject()->getFormattedContent());
if ($this->getImage()) {
*/
public function getLink() {
if ($this->controller) {
- // todo: use a unified method for this
$controllerParts = explode('\\', $this->controller);
$controllerName = $controllerParts[count($controllerParts) - 1];
$controllerName = preg_replace('/(page|action|form)$/i', '', $controllerName);