<h3>{lang}wcf.menu.page.navigation{/lang}</h3>
<ol>
{foreach from=$__wcf->getBoxHandler()->getBoxByIdentifier('com.woltlab.wcf.MainMenu')->getMenu()->getMenuItemNodeList() item=menuItemNode}
- {if $menuItemNode->getDepth() == 1 || $menuItemNode->getParentNode()->isActiveNode()}
+ {if $menuItemNode->getDepth() == 1 || $menuItemNode->getParentNode()->isActiveNode()}
<li>
<a href="{$menuItemNode->getURL()}">{lang}{$menuItemNode->title}{/lang}</a>
<li><a href="{$menuItemNode->getURL()}">{lang}{$menuItemNode->title}{/lang}</a></li>
{/foreach}
</ol>
-
+
<h3>{lang}wcf.menu.page.location{/lang}</h3>
<ol class="breadcrumbs">
{assign var=__breadcrumbsDepth value=0}
{if $relatedArticle->getImage()}
<div class="box128">
<div class="articleListImage">{@$relatedArticle->getImage()->getThumbnailTag('tiny')}</div>
- {/if}
-
+ {/if}
+
<div>
<div class="containerHeadline">
<h3 class="articleListTitle">{$relatedArticle->getTitle()}</h3>
</div>
</div>
- {if $relatedArticle->getImage()}
+ {if $relatedArticle->getImage()}
</div>
{/if}
</a>
{include file='commentList'}
</ul>
</section>
- {/if}
+ {/if}
{/if}
{if MODULE_LIKE && ARTICLE_ENABLE_LIKE}
{if !$sidebar|empty}
{if !$sidebarOrientation|isset || $sidebarOrientation == 'left'}
{@$sidebar}
- {/if}
+ {/if}
{/if}
{if !$sidebarLeft|empty}
{foreach from=$__wcf->getBoxHandler()->getBoxes('sidebarLeft') item=box}
{@$box->render()}
{/foreach}
-
+
{event name='boxesSidebarLeftBottom'}
-
+
{if MODULE_WCF_AD && $__disableAds|empty}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.sidebar.bottom')}{/if}
{/content}
</div>
{capture assign='contentDescription'}{PAGE_DESCRIPTION|language}{/capture}
{elseif $__wcf->getActivePage() != null && $__wcf->getActivePage()->getTitle()}
{capture assign='contentTitle'}{$__wcf->getActivePage()->getTitle()}{/capture}
- {/if}
+ {/if}
{/if}
-
+
{if !$contentTitle|empty}
<header class="contentHeader">
<div class="contentHeaderTitle">
{@$box->render()}
{/foreach}
{/content}
- </div>
+ </div>
</div>
{/hascontent}
<script data-relocate="true">
//<![CDATA[
if (document.referrer) {
- $('#errorMessage').append('<br><br><a href="' + document.referrer + '">{lang}wcf.page.error.backward{/lang}</a>');
+ $('#errorMessage').append('<br><br><a href="' + document.referrer + '">{lang}wcf.page.error.backward{/lang}</a>');
}
//]]>
</script>
<small class="innerError">
{if $errorType[$option->optionName] == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
- {else}
+ {else}
{lang}{@$langPrefix}error.{$errorType[$option->optionName]}{/lang}
{/if}
</small>
<small class="innerError">
{if $error == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
- {else}
+ {else}
{lang}{@$langPrefix}error.{$error}{/lang}
{/if}
</small>
};
this._queryServer($parameters);
}
- }
+ }
}, this));
},
<div class="paginationTop">
{content}
{assign var='linkParameters' value=''}
- {if $categoryID}{capture append=linkParameters}&categoryID={@$categoryID}{/capture}{/if}
+ {if $categoryID}{capture append=linkParameters}&categoryID={@$categoryID}{/capture}{/if}
{if $title}{capture append=linkParameters}&title={@$title|rawurlencode}{/capture}{/if}
{if $content}{capture append=linkParameters}&content={@$content|rawurlencode}{/capture}{/if}
{if $username}{capture append=linkParameters}&username={@$username|rawurlencode}{/capture}{/if}
</div>
</section>
</div>
-
- {include file='pageFooter'}
+
+ {include file='pageFooter'}
</div>
{include file='pageMenuMobile'}
-
+
{event name='footer'}
-
+
<!-- JAVASCRIPT_RELOCATE_POSITION -->
-
+
<a id="bottom"></a>
-
+
</body>
</html>
<small class="innerError">
{if $error == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
- {else}
+ {else}
{lang}{@$langPrefix}error.{$error}{/lang}
{/if}
</small>
{/if}
</dd>
</dl>
- {/foreach}
+ {/foreach}
{/if}
{if $action != 'edit' || !$page->requireObjectID}
{if $searchTemplateName}{capture append=linkParameters}&searchTemplateName={@$searchTemplateName|rawurlencode}{/capture}{/if}
{if $application}{capture append=linkParameters}&application={$application}{/capture}{/if}
- {pages print=true assign=pagesLinks controller="TemplateList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder$linkParameters"}
+ {pages print=true assign=pagesLinks controller="TemplateList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder$linkParameters"}
{/content}
</div>
{/hascontent}
var html = '<img src="' + WCF.String.escapeHTML(source) + '"' + (className ? ' class="' + className + '"' : '') + '>';
if (link) {
- html = '<a href="' + WCF.String.escapeHTML(link) + '">' + html + '</a>';
+ html = '<a href="' + WCF.String.escapeHTML(link) + '">' + html + '</a>';
}
this.modal.close();
}
elData(element, 'value', date.getTime());
- var format = (isTimeOnly) ? 'formatTime' : ('formatDate' + (isDateTime ? 'Time' : ''));
+ var format = (isTimeOnly) ? 'formatTime' : ('formatDate' + (isDateTime ? 'Time' : ''));
value = DateUtil[format](date);
}
}
cell.classList[selectable ? 'remove' : 'add']('otherMonth');
- date.setDate(date.getDate() + 1);
+ date.setDate(date.getDate() + 1);
}
elData(_dateGrid, 'month', month);
buttonGroupNavigation.appendChild(buttons);
var listItem = elCreate('li');
- listItem.className = 'mediaCheckbox';
+ listItem.className = 'mediaCheckbox';
buttons.appendChild(listItem);
var a = elCreate('a');
innerError.className = 'innerError';
innerError.textContent = Language.get('wcf.global.filter.error.noMatches');
DomUtil.insertAfter(innerError, this._container);
- }
+ }
}
}
};
}
var navigation = elBySel('.jsMobileNavigation', message);
- var quickOptions = elBySel('.messageQuickOptions', message);
+ var quickOptions = elBySel('.messageQuickOptions', message);
if (quickOptions) {
quickOptions.addEventListener(WCF_CLICK_EVENT, function (event) {
var value = elData(element, attribute);
return (value === "1" || value === "true");
- };
+ };
/**
* Shorthand function to hide an element by setting its 'display' value to 'none'.
else {
throw new UserInputException('customURL_0');
}
- }
+ }
foreach ($this->customURL as $languageID => $customURL) {
$this->validateCustomUrl($languageID, $customURL);
foreach ($category->getChildCategories() as $category) {
if ($category->isAccessible()) {
$categoryIDs[] = $category->categoryID;
- }
+ }
}
}
* @return string
*/
public function render() {
- if (!$this->hasContent()) return '';
+ if (!$this->hasContent()) return '';
WCF::getTPL()->assign([
'box' => $this
* @throws SystemException
*/
public function getGuestDialog() {
- $captchaObjectType = null;
+ $captchaObjectType = null;
if (CAPTCHA_TYPE) {
$captchaObjectType = CaptchaHandler::getInstance()->getObjectTypeByName(CAPTCHA_TYPE);
}
}
- return ($this->location != '');
+ return ($this->location != '');
}
}
}
parent::readParameters();
if (!WCF::getUser()->userID) {
- throw new IllegalLinkException();
+ throw new IllegalLinkException();
}
$this->title = WCF::getLanguage()->get('wcf.user.menu.community.notification');
foreach ($notifications['notifications'] as $notification) {
$this->items->append($notification['event']);
- }
+ }
}
}
}
if ($value = WCF::getLanguage()->get(PAGE_TITLE)) {
$this->addTag('og:site_name', 'og:site_name', $value, true);
- }
+ }
}
/**
}
$this->content = WCF::getTPL()->fetch('boxArticleCategories', 'wcf', ['categoryList' => $categoryList, 'activeCategory' => $activeCategory]);
- }
+ }
}
}
* application
* @var string
*/
- protected $application = 'wcf';
+ protected $application = 'wcf';
/**
* @inheritDoc
*/
public function reset() {
$this->usesMobileBrowser = 0;
- $this->usesNoMobileBrowser = 0;
+ $this->usesNoMobileBrowser = 0;
}
/**
*/
public function setData(Condition $condition) {
$this->usesMobileBrowser = $condition->usesMobileBrowser;
- $this->usesNoMobileBrowser = !$condition->usesMobileBrowser;
+ $this->usesNoMobileBrowser = !$condition->usesMobileBrowser;
}
/**
// split before each target node
foreach ($targetNodes as $targetNode) {
- DOMUtil::splitParentsUntil($targetNode, $element);
+ DOMUtil::splitParentsUntil($targetNode, $element);
}
$ancestors = [];
foreach ($targetNodes as $targetNode) {
$thumbnail->cropThumbnailImage($maxWidth, $maxHeight);
}
- $thumbnail->setImagePage($maxWidth, $maxHeight, 0, 0);
+ $thumbnail->setImagePage($maxWidth, $maxHeight, 0, 0);
}
while ($thumbnail->nextImage());
}
* @return IRequestRoute[]
**/
public function getRoutes() {
- return $this->routes;
+ return $this->routes;
}
/**
* @param boolean $hideSession if true, database won't be updated
*/
public function changeUser(User $user, $hideSession = false) {
- $eventParameters = ['user' => $user, 'hideSession' => $hideSession];
+ $eventParameters = ['user' => $user, 'hideSession' => $hideSession];
EventHandler::getInstance()->fireAction($this, 'beforeChangeUser', $eventParameters);
- $user = $eventParameters['user'];
+ $user = $eventParameters['user'];
$hideSession = $eventParameters['hideSession'];
// skip changeUserVirtual, if session will not be persistent anyway
* @inheritDoc
*/
public function getComments() {
- return 0;
+ return 0;
}
/**
* @inheritDoc
*/
public function getFormattedMessage() {
- return $this->getMessage();
+ return $this->getMessage();
}
/**
* @inheritDoc
*/
public function __toString() {
- return $this->getFormattedMessage();
+ return $this->getFormattedMessage();
}
/**
* @inheritDoc
*/
public function getTime() {
- return $this->getNotification()->time;
+ return $this->getNotification()->time;
}
/**
* @inheritDoc
*/
public function getUserID() {
- return $this->getAuthorID();
+ return $this->getAuthorID();
}
/**
* @inheritDoc
*/
public function getUsername() {
- return $this->getAuthor()->username;
+ return $this->getAuthor()->username;
}
}
* @inheritDoc
*/
public function getRelatedObjectID() {
- return $this->followUserID;
+ return $this->followUserID;
}
}
/* indentation for checkbox descriptions */
+ small:not(.innerError) {
margin-left: 24px;
- }
+ }
}
> label:not(:first-child) {
@include screen-lg {
margin-bottom: 60px;
}
- }
+ }
}
.boxTitle {
}
}
}
- }
+ }
}
.boxesTop {
border-bottom: 1px solid $wcfContentBorderInner;
-}
-
+}
+
.boxesBottom {
border-top: 1px solid $wcfContentBorderInner;
}
max-height: 100px;
overflow: hidden;
}
- }
+ }
}
/* styling for boxes in <contentTop>/<contentBottom> position */
float: left;
width: 30%;
}
- }
+ }
}
.boxesContentTop:not(:first-child) {
@include screen-sm-down {
&:not(:last-child) {
margin-bottom: 40px;
- }
+ }
}
@include screen-md-up {
+ .section {
margin-top: 20px;
- }
+ }
}
&:not(.sectionContainerList) {
@include wcfFontHeadline;
}
- }
+ }
}
/* styling for container headlines */
border-top-width: 1px;
border-top-style: solid;
margin-top: 0;
- }
+ }
}
/* inline infos */
> div {
margin-left: 36px;
}
- }
+ }
}
.nextArticleButton {
@include screen-md-up {
margin-left: 50%;
padding-left: 10px;
- }
+ }
.articleNavigationArticleImage {
order: 1;
flex: 0 0 calc(100%/6 - 10px);
max-width: calc(100%/6 - 10px);
}
- }
+ }
}
}
.attachmentThumbnailImage {
img {
opacity: 1;
- }
+ }
}
}
flex: 0 0 auto;
margin-left: 5px;
}
- }
+ }
}
.sortablePlaceholder {
@include screen-md-up {
padding: 10px 20px;
- }
+ }
}
@include screen-md-up {
.messageFooter {
padding: 0 20px;
}
- }
+ }
}
.messageQuoteItemList {
}
> .elementPointer {
- display: none;
+ display: none;
}
}
@include screen-sm-down {
> span:not(.icon) {
display: none;
- }
+ }
}
}
.icon {
margin-right: 3px;
}
- }
+ }
.jsShareFacebook {
background-color: $shareFacebookBackground;
padding: 1px;
}
}
- }
+ }
}
}
ALTER TABLE wcf1_media_content ADD FOREIGN KEY (mediaID) REFERENCES wcf1_media (mediaID) ON DELETE CASCADE;
ALTER TABLE wcf1_media_content ADD FOREIGN KEY (languageID) REFERENCES wcf1_language (languageID) ON DELETE CASCADE;
-ALTER TABLE wcf1_menu ADD FOREIGN KEY (packageID) REFERENCES wcf1_package (packageID) ON DELETE CASCADE;
+ALTER TABLE wcf1_menu ADD FOREIGN KEY (packageID) REFERENCES wcf1_package (packageID) ON DELETE CASCADE;
ALTER TABLE wcf1_menu_item ADD FOREIGN KEY (menuID) REFERENCES wcf1_menu (menuID) ON DELETE CASCADE;
ALTER TABLE wcf1_menu_item ADD FOREIGN KEY (parentItemID) REFERENCES wcf1_menu_item (itemID) ON DELETE SET NULL;