Skip to content

Instantly share code, notes, and snippets.

@wodka
Created November 19, 2014 12:48
Show Gist options
  • Save wodka/df7f4ecae541a19fcce7 to your computer and use it in GitHub Desktop.
Save wodka/df7f4ecae541a19fcce7 to your computer and use it in GitHub Desktop.
<?php
$theme = new Theme();
$theme->setTemplate('pixit');
$c = new ThemeComponent();
$c->setBlock('content');
$c->setComponent('cite');
$c->addOption(new ThemeComponentOption('author', 'Michi'));
$c->addOption(new ThemeComponentOption('cite', 'geht schon richtig gut'));
$theme->addComponent($c);
$c = new ThemeComponent();
$c->setBlock('content');
$c->setComponent('cite');
$c->addOption(new ThemeComponentOption('author', 'Michi2'));
$c->addOption(new ThemeComponentOption('cite', 'geht schon richtig gut'));
$theme->addComponent($c);
$c = new ThemeComponent();
$c->setBlock('content');
$c->setComponent('cite');
$c->addOption(new ThemeComponentOption('author', 'Michi3'));
$c->addOption(new ThemeComponentOption('cite', 'geht schon richtig gut'));
$theme->addComponent($c);
return new Response($this->get('ls.theme.render')->render($theme, $article));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment