</type>
<!-- /media -->
+ <!-- sitemap -->
+ <type>
+ <name>com.woltlab.wcf.sitemap.object.user</name>
+ <definitionname>com.woltlab.wcf.sitemap.object</definitionname>
+ <classname>wcf\system\sitemap\object\UserSitemapObject</classname>
+ <priority>0.5</priority>
+ <changeFreq>monthly</changeFreq>
+ <rebuildTime>259200</rebuildTime>
+ </type>
+ <!-- /sitemap -->
+
<!-- deprecated -->
<type>
<name>com.woltlab.wcf.page.controller</name>
<dl{if $errorField == 'priority'} class="formError"{/if}>
<dt><label for="priority">{lang}wcf.acp.sitemap.priority{/lang}</label></dt>
<dd>
- <input type="number" id="priority" name="priority" step="0.1" min="0" max="1" value="{$priority}" class="medium"/>
+ <input type="number" id="priority" name="priority" step="0.1" min="0" max="1" value="{$priority}" class="short"/>
{if $errorField == 'priority'}
<small class="innerError">
{lang}wcf.acp.sitemap.priority.error.{$errorType}{/lang}
--- /dev/null
+<?php
+namespace wcf\system\sitemap\object;
+use wcf\data\user\User;
+use wcf\data\DatabaseObject;
+
+/**
+ * User sitemap implementation.
+ *
+ * @author Joshua Ruesweg
+ * @copyright 2001-2017 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\Sitemap\Object
+ * @since 3.1
+ */
+class UserSitemapObject extends AbstractSitemapObjectObjectType {
+ /**
+ * @inheritDoc
+ */
+ public function getObjectClass() {
+ return User::class;
+ }
+
+ /**
+ * @inheritDoc
+ */
+ public function getLastModifiedColumn() {
+ return 'lastActivityTime';
+ }
+
+ /**
+ * @inheritDoc
+ */
+ public function canView(DatabaseObject $object) {
+ return self::getGuestUserProfile()->getPermission('user.profile.canViewUserProfile');
+ }
+}
<item name="wcf.acp.sitemap.isDisabled"><![CDATA[Sitemap deaktiviert]]></item>
<item name="wcf.acp.sitemap.enabled"><![CDATA[Sitemap aktiviert]]></item>
<item name="wcf.acp.sitemap.edit"><![CDATA[Sitemap bearbeiten]]></item>
+ <item name="wcf.acp.sitemap.objectType.com.woltlab.wcf.sitemap.object.user"><![CDATA[Benutzer]]></item>
</category>
<category name="wcf.acp.stat">
<item name="wcf.acp.sitemap.isDisabled"><![CDATA[Disable Sitemap]]></item>
<item name="wcf.acp.sitemap.enabled"><![CDATA[Sitemap enabled]]></item>
<item name="wcf.acp.sitemap.edit"><![CDATA[Edit Sitemap]]></item>
+ <item name="wcf.acp.sitemap.objectType.com.woltlab.wcf.sitemap.object.user"><![CDATA[User]]></item>
</category>
<category name="wcf.acp.stat">