Exemple #1
0
    $app->theme->setTitle("Kmom01");
    $content = $app->fileContent->get('kmom01.md');
    $content = $app->textFilter->doFilter($content, 'shortcode, markdown');
    $byline = $app->fileContent->get('byline.md');
    $byline = $app->textFilter->doFilter($byline, 'shortcode, markdown');
    $app->views->add('me/page', ['content' => $content, 'byline' => $byline]);
    setComments('kmom01');
});
$app->router->add('kmom02', function () use($app) {
    $app->theme->setTitle("Kmom02");
    $content = $app->fileContent->get('kmom02.md');
    $content = $app->textFilter->doFilter($content, 'shortcode, markdown');
    $byline = $app->fileContent->get('byline.md');
    $byline = $app->textFilter->doFilter($byline, 'shortcode, markdown');
    $app->views->add('me/page', ['content' => $content, 'byline' => $byline]);
    setComments('kmom02');
});
$app->router->add('source', function () use($app) {
    $app->theme->addStylesheet('css/source.css');
    $app->theme->setTitle("källkod");
    $source = new \Mos\Source\CSource(['secure_dir' => '..', 'base_dir' => '..', 'add_ignore' => ['.htaccess']]);
    $app->views->add('me/source', ['content' => $source->View()]);
});
/**
 * Set comment function on a page that call this function
 *
 */
function setComments($pageTitle = "")
{
    global $app;
    $app->dispatcher->forward(['controller' => 'comment', 'action' => 'view', 'params' => array('page' => $pageTitle)]);
Exemple #2
0
Fichier : in.php Projet : frsd1/bth
    $app->theme->setTitle("Kmom02");
    $content = $app->fileContent->get('kmom02.md');
    $content = $app->textFilter->doFilter($content, 'shortcode, markdown');
    $byline = $app->fileContent->get('byline.md');
    $byline = $app->textFilter->doFilter($byline, 'shortcode, markdown');
    $app->views->add('me/page', ['content' => $content, 'byline' => $byline]);
    setComments('kmom02');
});
$app->router->add('kmom03', function () use($app) {
    $app->theme->setTitle("Kmom03");
    $content = $app->fileContent->get('kmom03.md');
    $content = $app->textFilter->doFilter($content, 'shortcode, markdown');
    $byline = $app->fileContent->get('byline.md');
    $byline = $app->textFilter->doFilter($byline, 'shortcode, markdown');
    $app->views->add('me/page', ['content' => $content, 'byline' => $byline]);
    setComments('kmom03');
});
$app->router->add('source', function () use($app) {
    $app->theme->addStylesheet('css/source.css');
    $app->theme->setTitle("Källkod");
    $source = new \Mos\Source\CSource(['secure_dir' => '..', 'base_dir' => '..', 'add_ignore' => ['.htaccess']]);
    $app->views->add('me/source', ['content' => $source->View()]);
});
/**
 * Set comment function on a page that call this function
 *
 */
function setComments($pageTitle = "")
{
    global $app;
    $app->dispatcher->forward(['controller' => 'comment', 'action' => 'view', 'params' => array('page' => $pageTitle)]);
Exemple #3
0
});
$app->router->add('source', function () use($app) {
    $app->theme->addStylesheet('css/source.css');
    $app->theme->setTitle("källkod");
    $source = new \Mos\Source\CSource(['secure_dir' => '..', 'base_dir' => '..', 'add_ignore' => ['.htaccess']]);
    $app->views->add('me/source', ['content' => $source->View()]);
});
/**
 * Set comment function on a page that call this function
 *
 */
function setComments($pageTitle = "")
{
    global $app;
    $app->dispatcher->forward(['controller' => 'comment', 'action' => 'view', 'params' => array('page' => $pageTitle)]);
    $app->views->add('comment/form', ['page' => $pageTitle, 'mail' => null, 'web' => null, 'name' => null, 'content' => null, 'output' => null, 'edit' => false], 'comment-form');
}
///module 3 theme///////
$app->router->add('tema', function () use($app) {
    $app->theme->setTitle("- PHPMVC - ");
    $content = $app->fileContent->get('tema.md');
    $content = $app->textFilter->doFilter($content, 'shortcode, markdown');
    $byline = $app->fileContent->get('byline.md');
    $byline = $app->textFilter->doFilter($byline, 'shortcode, markdown');
    $app->views->add('tema/page', ['content' => $content, 'byline' => $byline]);
    setComments();
});
//$app->url->setUrlType(\Anax\Url\CUrl::URL_CLEAN);
$app->navbar->configure(ANAX_APP_PATH . 'config/navbar_me.php');
$app->router->handle();
$app->theme->render();