/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); // assign sorting parameters WCF::getTPL()->assign(array('sortField' => $this->sortField, 'sortOrder' => $this->sortOrder)); }
/** * @see Form::assignVariables() */ public function assignVariables() { parent::assignVariables(); if ($this->success) { $l = 'wcf.contest.price.' . StringUtil::encodeHTML($this->success) . '.success'; WCF::getTPL()->append('userMessages', '<p class="success">' . WCF::getLanguage()->get($l) . '</p>'); } // display branding require_once WCF_DIR . 'lib/util/ContestUtil.class.php'; ContestUtil::assignVariablesBranding(); // save price position if ($this->entry->isOwner()) { require_once WCF_DIR . 'lib/form/ContestPricePositionForm.class.php'; new ContestPricePositionForm($this->entry); } // init form if ($this->action == 'edit') { require_once WCF_DIR . 'lib/form/ContestPriceEditForm.class.php'; new ContestPriceEditForm($this->entry); } else { if ($this->entry->isPriceable()) { require_once WCF_DIR . 'lib/form/ContestPriceAddForm.class.php'; new ContestPriceAddForm($this->entry); } } // become sponsor if ($this->entry->enableSponsorCheck && !$this->entry->isSponsor() && $this->entry->isSponsorable(false)) { WCF::getTPL()->append('additionalContentBecomeSponsor', '<p class="info">' . WCF::getLanguage()->get('wcf.contest.enableSponsorCheck.info') . '</p>'); } // if contest is finished, show todo list // who is able to pick the prices $isWinner = false; if ($this->entry->state == 'closed') { // need winners require_once WCF_DIR . 'lib/data/contest/solution/ContestSolutionList.class.php'; $solutionList = new ContestSolutionList(); $solutionList->sqlConditions .= 'contest_solution.contestID = ' . intval($this->contestID); $solutionList->sqlLimit = $this->countItems(); $solutionList->readObjects(); $winners = array(); foreach ($solutionList->getObjects() as $solution) { $winners[] = $solution->participantID; $isWinner = $isWinner || $solution->isOwner(); } if (count($winners)) { // init todo list require_once WCF_DIR . 'lib/data/contest/price/todo/ContestPriceTodoList.class.php'; $this->todoList = new ContestPriceTodoList(); $this->todoList->sqlConditions .= ' contest_solution.participantID IN (' . implode(',', $winners) . ') AND contest_solution.contestID = ' . intval($this->contestID); $this->todoList->sqlOrderBy = 'FIND_IN_SET(contest_solution.participantID, \'' . implode(',', $winners) . '\')'; $this->todoList->sqlLimit = $this->countItems(); $this->todoList->readObjects(); } } // which price is pickable be the current user NOW? $solution = null; $didPick = false; if ($isWinner) { foreach ($this->priceList->getObjects() as $price) { if ($price->isPickable()) { $solution = $price->pickableByWinner(); break; } else { if ($price->isOwner()) { $didPick = true; } } } } else { if ($this->entry->state == 'scheduled' && $this->entry->untilTime > TIME_NOW) { WCF::getTPL()->append('userMessages', '<p class="info">' . WCF::getLanguage()->get('wcf.contest.price.closed.info') . '</p>'); } else { if ($this->entry->enablePricechoice) { WCF::getTPL()->append('userMessages', '<p class="info">' . WCF::getLanguage()->get('wcf.contest.price.pick.info') . '</p>'); } } } $this->sidebar->assignVariables(); WCF::getTPL()->assign(array('entry' => $this->entry, 'isSponsor' => $this->isSponsor, 'contestID' => $this->contestID, 'userID' => $this->entry->userID, 'solution' => $solution, 'isWinner' => $isWinner, 'didPick' => $didPick, 'prices' => $this->priceList->getObjects(), 'todos' => $this->todoList ? $this->todoList->getObjects() : array(), 'templateName' => $this->templateName, 'allowSpidersToIndexThisPage' => true, 'contestmenu' => ContestMenu::getInstance())); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); $this->frame->assignVariables(); WCF::getTPL()->assign(array('commentID' => '#{commentID}', 'authorID' => '#{authorID}', 'authorName' => '#{authorName}', 'time' => '#{time}', 'message' => '#{message}', 'avatarPath' => '#{avatarPath}', 'avatarWidth' => '#{avatarWidth}', 'avatarHeight' => '#{avatarHeight}')); WCF::getTPL()->assign(array('userPermissions' => $this->userPermissions, 'modPermissions' => $this->modPermissions, 'entries' => $this->entryList->getObjects(), 'jsTemplateComment' => StringUtil::replace("\n", '', WCF::getTPL()->fetch('userGuestbookCommentBox')))); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('wbbExists' => $this->wbbExists, 'attachments' => $this->attachments, 'sortField' => $this->sortField, 'sortOrder' => $this->sortOrder, 'userID' => $this->userID, 'username' => $this->username, 'showOnlyImages' => $this->showOnlyImages, 'showOnlyMessageType' => $this->showOnlyMessageType, 'showOnlyFileType' => $this->showOnlyFileType, 'thisPage' => $this->thisPage . '&userID=' . $this->userID, 'tplError' => $this->tplError, 'tplWarning' => $this->tplWarning, 'tplInfo' => $this->tplInfo, 'attachmentInfo' => $this->am->getInfo($this->userID, $this->showOnlyImages, $this->showOnlyMessageType, $this->showOnlyFileType), 'attachmentTotalInfo' => $this->am->getTotalInfo(0), 'showThumbnails' => $this->showThumbnails, 'messageTypes' => $this->am->getMessageTypes($this->userID, $this->showOnlyFileType, $this->showOnlyImages), 'fileTypes' => $this->am->getFileTypes($this->userID, $this->showOnlyMessageType, $this->showOnlyImages))); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('permissions' => $this->board->getModeratorPermissions(), 'markedPosts' => $this->markedPosts, 'markedThreads' => $this->markedThreads, 'board' => $this->board, 'thread' => $this->thread, 'threadID' => $this->threadID, 'postID' => $this->postID, 'boardQuickJumpOptions' => Board::getBoardSelect(), 'similarThreads' => $this->similarThreads, 'showAvatar' => !WCF::getUser()->userID || WCF::getUser()->showAvatar, 'highlight' => $this->highlight, 'quotes' => $this->quotes, 'posts' => $this->postList->posts, 'polls' => $this->postList->polls, 'sidebarFactory' => $this->sidebarFactory, 'attachments' => $this->postList->attachments, 'allowSpidersToIndexThisPage' => true, 'enableRating' => $this->enableRating, 'tags' => $this->tags, 'sortOrder' => $this->sortOrder)); if (WCF::getSession()->spiderID) { @header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $this->thread->lastPostTime) . ' GMT'); } }
public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('contestID' => $this->contestID, 'users' => $this->interactionList->getObjects())); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); // assign variables WCF::getTPL()->assign(array('posts' => $this->postList->posts, 'attachments' => $this->postList->attachments, 'markedThreads' => 0, 'markedPosts' => $this->markedPosts, 'permissions' => Board::getGlobalModeratorPermissions(), 'page' => $this->pageName)); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('avatars' => $this->availableAvatars, 'avatarCategories' => $this->availableAvatarCategories, 'avatarCategoryID' => $this->avatarCategoryID, 'avatarCategory' => $this->avatarCategory, 'hasDefaultAvatars' => $this->hasDefaultAvatars)); }
/** * @see Page::assignVariables(), */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('user' => $this->user, 'gbData' => $this->gbData, 'cntEntries' => $this->cntEntries, 'cntViews' => $this->cntViews, 'userID' => $this->userID, 'lastVisitor' => $this->lastVisitor, 'visitorLastVisit' => $this->visitorLastVisit, 'locked' => UserGuestbookData::getLockInfo($this->userID))); }
/** * @see Form::assignVariables() */ public function assignVariables() { parent::assignVariables(); // display branding require_once WCF_DIR . 'lib/util/ContestUtil.class.php'; ContestUtil::assignVariablesBranding(); if (!$this->entry->enableOpenSolution && $this->entry->state != 'closed' && ($this->entry->state != 'scheduled' || !($this->entry->fromTime < TIME_NOW && TIME_NOW < $this->entry->untilTime))) { WCF::getTPL()->append('userMessages', '<p class="info">' . WCF::getLanguage()->get('wcf.contest.enableOpenSolution.info') . '</p>'); } if ($this->entry->enableParticipantCheck) { WCF::getTPL()->append('userMessages', '<p class="info">' . WCF::getLanguage()->get('wcf.contest.enableParticipantCheck.info') . '</p>'); } $this->sidebar->assignVariables(); WCF::getTPL()->assign(array('entry' => $this->entry, 'contestID' => $this->contestID, 'userID' => $this->entry->userID, 'solutions' => $this->solutionList->getObjects(), 'todos' => $this->todoList ? $this->todoList->getObjects() : array(), 'templateName' => $this->templateName, 'allowSpidersToIndexThisPage' => true, 'contestmenu' => ContestMenu::getInstance())); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('query' => $this->query, 'helpItems' => $this->helpItems, 'searchID' => $this->searchID, 'highlight' => $this->highlight)); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); // display branding require_once WCF_DIR . 'lib/util/ContestUtil.class.php'; ContestUtil::assignVariablesBranding(); // init form if ($this->action == 'edit') { require_once WCF_DIR . 'lib/form/ContestCommentEditForm.class.php'; new ContestCommentEditForm($this->entry); } else { if ($this->entry->isCommentable()) { require_once WCF_DIR . 'lib/form/ContestCommentAddForm.class.php'; new ContestCommentAddForm($this->entry); } } $this->sidebar->assignVariables(); WCF::getTPL()->assign(array('entry' => $this->entry, 'contestID' => $this->contestID, 'tags' => MODULE_TAGGING ? $this->entry->getTags(WCF::getSession()->getVisibleLanguageIDArray()) : array(), 'events' => $this->eventmixList->getObjects(), 'todos' => $this->todoList ? $this->todoList->getObjects() : array(), 'classes' => $this->entry->getClasses(), 'jurys' => $this->entry->getJurys(), 'participants' => $this->entry->getParticipants(), 'attachments' => $this->attachments, 'location' => $this->entry->location, 'action' => $this->action, 'commentID' => $this->commentID, 'previousEntry' => $this->previousEntry, 'nextEntry' => $this->nextEntry, 'templateName' => $this->templateName, 'allowSpidersToIndexThisPage' => true, 'contestmenu' => ContestMenu::getInstance())); }
/** * @see Form::assignVariables() */ public function assignVariables() { parent::assignVariables(); // display branding require_once WCF_DIR . 'lib/util/ContestUtil.class.php'; ContestUtil::assignVariablesBranding(); // save invitations if ($this->entry->isOwner()) { require_once WCF_DIR . 'lib/form/ContestJuryInviteForm.class.php'; new ContestJuryInviteForm($this->entry); } // init form if ($this->action == 'edit') { require_once WCF_DIR . 'lib/form/ContestJuryEditForm.class.php'; new ContestJuryEditForm($this->entry); } else { if ($this->entry->isJuryable()) { require_once WCF_DIR . 'lib/form/ContestJuryAddForm.class.php'; new ContestJuryAddForm($this->entry); } } if ($this->entry->state != 'closed') { WCF::getTPL()->append('userMessages', '<p class="info">' . WCF::getLanguage()->get('wcf.contest.jury.closed.info') . '</p>'); // init todo list require_once WCF_DIR . 'lib/data/contest/jury/todo/ContestJuryTodoList.class.php'; $this->todoList = new ContestJuryTodoList(); $this->todoList->sqlConditions .= 'contest_jury.contestID = ' . $this->contestID; $this->todoList->readObjects(); } $this->sidebar->assignVariables(); WCF::getTPL()->assign(array('entry' => $this->entry, 'isJury' => $this->isJury, 'contestID' => $this->contestID, 'userID' => $this->entry->userID, 'jurys' => $this->juryList->getObjects(), 'todos' => $this->todoList ? $this->todoList->getObjects() : array(), 'templateName' => $this->templateName, 'allowSpidersToIndexThisPage' => true, 'contestmenu' => ContestMenu::getInstance())); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); // display branding require_once WCF_DIR . 'lib/util/ContestUtil.class.php'; ContestUtil::assignVariablesBranding(); $this->sidebar->assignVariables(); WCF::getTPL()->assign(array('entries' => $this->entryList->getObjects(), 'description' => $this->description, 'classes' => $this->entryList->getClasses(), 'todos' => $this->todoList ? $this->todoList->getObjects() : array(), 'tags' => $this->entryList->getTags(), 'availableTags' => $this->tags, 'tagID' => $this->tagID, 'juryID' => $this->juryID, 'participantID' => $this->participantID, 'classID' => $this->classID, 'tag' => $this->tag, 'taggableID' => $this->taggable !== null ? $this->taggable->getTaggableID() : 0, 'allowSpidersToIndexThisPage' => true)); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('pageList' => $this->pageList, 'host' => $this->host, 'hostID' => $this->hostID)); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('styles' => $this->styles)); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('query' => $this->query, 'messages' => $this->messages, 'searchID' => $this->searchID, 'highlight' => $this->highlight, 'types' => SearchEngine::$searchTypeObjects, 'sortField' => $this->sortField, 'sortOrder' => $this->sortOrder, 'alterable' => $this->alterable)); }
/** * @see Form::assignVariables() */ public function assignVariables() { parent::assignVariables(); // display branding require_once WCF_DIR . 'lib/util/ContestUtil.class.php'; ContestUtil::assignVariablesBranding(); if ($this->entry->isOwner()) { require_once WCF_DIR . 'lib/form/ContestParticipantInviteForm.class.php'; new ContestParticipantInviteForm($this->entry); } // init form if ($this->action == 'edit') { require_once WCF_DIR . 'lib/form/ContestParticipantEditForm.class.php'; new ContestParticipantEditForm($this->entry); } else { if ($this->entry->isParticipantable()) { require_once WCF_DIR . 'lib/form/ContestParticipantAddForm.class.php'; new ContestParticipantAddForm($this->entry); } } if ($this->entry->enableParticipantCheck) { WCF::getTPL()->append('userMessages', '<p class="info">' . WCF::getLanguage()->get('wcf.contest.enableParticipantCheck.info') . '</p>'); } $this->sidebar->assignVariables(); WCF::getTPL()->assign(array('entry' => $this->entry, 'contestID' => $this->contestID, 'userID' => $this->entry->userID, 'participants' => $this->participantList->getObjects(), 'todos' => $this->todoList ? $this->todoList->getObjects() : array(), 'templateName' => $this->templateName, 'allowSpidersToIndexThisPage' => true, 'contestmenu' => ContestMenu::getInstance())); }
/** * @see Form::assignVariables() */ public function assignVariables() { parent::assignVariables(); // display branding require_once WCF_DIR . 'lib/util/ContestUtil.class.php'; ContestUtil::assignVariablesBranding(); // init form if ($this->action == 'edit') { require_once WCF_DIR . 'lib/form/ContestSponsortalkEditForm.class.php'; new ContestSponsortalkEditForm($this->entry); } else { if ($this->entry->isSponsortalkable()) { require_once WCF_DIR . 'lib/form/ContestSponsortalkAddForm.class.php'; new ContestSponsortalkAddForm($this->entry); } } $this->sidebar->assignVariables(); WCF::getTPL()->assign(array('entry' => $this->entry, 'contestID' => $this->contestID, 'userID' => $this->entry->userID, 'sponsortalks' => $this->sponsortalkList->getObjects(), 'templateName' => $this->templateName, 'allowSpidersToIndexThisPage' => true, 'contestmenu' => ContestMenu::getInstance())); }
/** * @see Page::assignVariables(); */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('tags' => $this->tags, 'tagObj' => $this->tagObj, 'tagID' => $this->tagID, 'taggedObjects' => $this->taggedObjects, 'taggable' => $this->taggable, 'taggableID' => $this->taggableID, 'availableTaggables' => $this->availableTaggables, 'allowSpidersToIndexThisPage' => true)); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('ugbData' => $this->ugbData, 'sortField' => $this->sortField, 'sortOrder' => $this->sortOrder, 'cntEntries' => $this->cntEntries)); }
public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('entries' => $this->entries, 'sidebarFactory' => $this->sidebarFactory)); }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('members' => $this->members)); }
/** * @see Form::assignVariables() */ public function assignVariables() { parent::assignVariables(); // display branding require_once WCF_DIR . 'lib/util/ContestUtil.class.php'; ContestUtil::assignVariablesBranding(); // save ratings if ($this->solutionObj->isRateable()) { require_once WCF_DIR . 'lib/form/ContestSolutionRatingUpdateForm.class.php'; new ContestSolutionRatingUpdateForm($this->solutionObj); } // init form if ($this->action == 'edit') { require_once WCF_DIR . 'lib/form/ContestSolutionCommentEditForm.class.php'; new ContestSolutionCommentEditForm($this->solutionObj); } else { if ($this->entry->isCommentable()) { require_once WCF_DIR . 'lib/form/ContestSolutionCommentAddForm.class.php'; new ContestSolutionCommentAddForm($this->solutionObj); } } if (!$this->entry->enableOpenSolution && $this->entry->state != 'closed' && ($this->entry->state != 'scheduled' || !($this->entry->fromTime < TIME_NOW && TIME_NOW < $this->entry->untilTime))) { WCF::getTPL()->append('userMessages', '<p class="info">' . WCF::getLanguage()->get('wcf.contest.enableOpenSolution.info') . '</p>'); } if ($this->entry->enableParticipantCheck) { WCF::getTPL()->append('userMessages', '<p class="info">' . WCF::getLanguage()->get('wcf.contest.enableParticipantCheck.info') . '</p>'); } $this->sidebar->assignVariables(); WCF::getTPL()->assign(array('entry' => $this->entry, 'solutionObj' => $this->solutionObj, 'contestID' => $this->contestID, 'solutionID' => $this->solutionID, 'userID' => $this->entry->userID, 'comments' => $this->commentList->getObjects(), 'ratings' => $this->ratingList->getObjects(), 'todos' => $this->todoList ? $this->todoList->getObjects() : array(), 'templateName' => $this->templateName, 'allowSpidersToIndexThisPage' => true, 'attachments' => $this->attachments, 'contestmenu' => ContestMenu::getInstance())); }