Created
June 16, 2011 10:11
-
-
Save luniki/1028992 to your computer and use it in GitHub Desktop.
Stud.IP createQuestion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="modalshadow"> | |
<div class="messagebox messagebox_modal"> | |
<?= formatReady($question) ?> | |
<div style="margin-top: 1em;"> | |
<? if ($content) : ?> | |
<?= $content instanceof Flexi_Template ? $this->render_partial($content) : $content ?> | |
<? else : ?> | |
<a href="<?= $approvalLink ?>"> | |
<?= makebutton('ja') ?> | |
</a> | |
<a href="<?= $disapprovalLink ?>" style="margin-left: 1em;"> | |
<?= makebutton('nein') ?> | |
</a> | |
<? endif ?> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createDialog($title, $content) | |
{ | |
return $GLOBALS['template_factory']->render('shared/question', array('question' => $title, 'content' => $content)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment