Skip to content

Instantly share code, notes, and snippets.

@luniki
Created June 16, 2011 10:11
Show Gist options
  • Save luniki/1028992 to your computer and use it in GitHub Desktop.
Save luniki/1028992 to your computer and use it in GitHub Desktop.
Stud.IP createQuestion
<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>
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