예제 #1
0
파일: manage.php 프로젝트: sebadorn/aestas3
			<?php 
        if ($status == ae_UserModel::STATUS_SUSPENDED) {
            ?>
				<a title="delete" class="entry-delete icon-add-before icon-before-trash" href="<?php 
            echo $linkDelete;
            ?>
"></a>
			<?php 
        }
        ?>
			</div>
		</div>


	<?php 
    }
    ?>


<?php 
}
?>

</form>

<nav class="manage-page-navigation">
	<?php 
echo ae_SiteBuilder::pagination($numPages, $pageOffset, $linkBase);
?>
</nav>
예제 #2
0
파일: admin.php 프로젝트: sebadorn/aestas3
if (!ae_Security::isLoggedIn()) {
    header('Location: index.php?error=not_logged_in');
    exit;
}
$area = 'dashboard';
if (!isset($_GET['area'])) {
    $area = 'dashboard';
} else {
    if (!ae_Security::isValidArea($_GET['area'])) {
        $msg = sprintf('Area "%s" is not a valid area.', htmlspecialchars($_GET['area']));
        ae_Log::warning($msg);
    } else {
        $area = $_GET['area'];
    }
}
$sb = new ae_SiteBuilder();
include_once 'sb_params.php';
?>
<!DOCTYPE html>

<html>
<?php 
$sb->render('templates/head.php', $paramsHead);
?>
<body>

<?php 
$sb->render('templates/nav.php', $paramsNav);
?>

<section class="main-body">
예제 #3
0
파일: index.php 프로젝트: sebadorn/aestas3
<?php

require_once 'core/autoload.php';
require_once 'core/config.php';
ae_Permalink::init();
$sb = new ae_SiteBuilder();
$sb->render('themes/' . THEME . '/index.php');
예제 #4
0
    echo $co->getDatetime('d.m.y \\u\\m H:i');
    ?>
</time>
			</a>
		</div>
		<div class="comment-content"><?php 
    echo $co->getContent();
    ?>
</div>
	</div>

	<hr />
<?php 
}
?>

</section>

<section class="comments comment-form">
	<h4>Schreib’ was</h4>

	<?php 
$placeholders = array('author-name' => 'Name (optional)', 'author-email' => 'E-Mail (optional)', 'author-url' => 'Website (optional)', 'content' => 'Kommentar');
echo ae_SiteBuilder::commentForm($post->getId(), 'absenden', $placeholders);
?>

	<div class="comment-code">
		<span>Verwendbares HTML</span>
		<code>&lt;a href=""&gt;</code>, <code>&lt;blockquote&gt;</code>, <code>&lt;code&gt;</code>, <code>&lt;del&gt;</code>, <code>&lt;em&gt;</code>, <code>&lt;strong&gt;</code>
	</div>
</section>
예제 #5
0
<?php 
    }
    ?>

	<footer class="post-footer">
		<?php 
    $sb->render('post-tags.php', $post->getTags());
    ?>
	</footer>
</article>

<?php 
}
?>


<?php 
$numPages = ceil($postList->getTotalNumItems() / POSTS_PER_PAGE);
$linkBase = preg_replace(';page/[0-9]+$;i', '', $_SERVER['REQUEST_URI']);
if ($linkBase[mb_strlen($linkBase) - 1] !== '/') {
    $linkBase .= '/';
}
$linkBase .= 'page/';
?>

<nav class="page-navigation">
	<?php 
echo ae_SiteBuilder::pagination($numPages, POSTS_OFFSET + 1, $linkBase, 9, 1);
?>
</nav>
예제 #6
0
파일: index.php 프로젝트: sebadorn/aestas3
            $content = 'search';
        } else {
            $content = 'all-posts';
        }
    }
}
// HTTP 404: Not found
if ($content == '404') {
    header('HTTP/1.0 404 Not Found');
}
define('GRAVATAR_BASE', 'https://secure.gravatar.com/avatar/');
define('GRAVATAR_SIZE', 48);
define('IS_SINGLE_POST', $content == 'single-post');
define('POSTS_OFFSET', max(ae_Permalink::getPostOffset() - 1, 0));
define('POSTS_PER_PAGE', 5);
$sb = new ae_SiteBuilder();
$sb->setBasePath('themes/' . THEME);
?>
<!DOCTYPE html>

<html>
<?php 
include 'head.php';
?>
<body>

<?php 
$sb->render('header.php');
$sb->render('sidebar.php');
?>