Exemplo n.º 1
0
<?php

$MODULE = get_modules('filter_namespace', 'blogster');
if (is_file($file = $MODULE['uri_path'] . '/library.php')) {
    include_once $file;
}
if (class_exists('blogster_library')) {
    $BLIB = new blogster_library();
    $COMMENTS = $BLIB->getComments(0, 5);
    ?>
	<div class="panel">
		<div class="panel-heading <?php 
    echo theme_class();
    ?>
"><?php 
    _e('Recents Comments');
    ?>
</div>
		<?php 
    if ($COMMENTS) {
        foreach ($COMMENTS as $C) {
            $ARTICLE = $BLIB->getSpeNews($C['REF_ART']);
            $timespan = get_instance()->date->timespan($C['DATE']);
            if ($C['OFFLINE_AUTEUR'] != '') {
                ?>
		<div class="panel-body">
			<div class="clearfix m-b"> <small class="text-muted pull-right"><?php 
                echo $timespan;
                ?>
</small> <a href="#" class="thumb-sm pull-left m-r"> <img src="<?php 
                echo img_url('avatar_default.jpg');
Exemplo n.º 2
0
<?php

$MODULE = get_modules('filter_namespace', 'blogster');
if (is_file($file = $MODULE['uri_path'] . '/library.php')) {
    include_once $file;
}
if (class_exists('blogster_library')) {
    $BLOGSTER = new blogster_library();
    $article_publies = $BLOGSTER->countNews('published');
    $commentaires = $BLOGSTER->countComments();
    $brouillons = $BLOGSTER->countNews('draft');
    ?>
	<div class="panel">
		<div class="panel-heading <?php 
    echo theme_class();
    ?>
"><?php 
    _e('Blogster Statistics');
    ?>
</div>
		<?php 
    if ($brouillons == 0 && $article_publies == 0 && $commentaires == 0) {
        ?>
			<div class="panel-body"><?php 
        _e('There is not any registered activity');
        ?>
</div>
			<?php 
    } else {
        ?>
		<ul class="list-group no-radius">