Beispiel #1
0
				<div class='lastnews'>
                    <div class="brokenhover"></div>
                    <div class="lastnews-left">
                        <a href="board/topic?id=<?php 
    echo $data_news->latest_topics_index[$i]['id'];
    ?>
&page=1/<?php 
    echo $data_news->latest_topics_index[$i]['title'];
    ?>
" class="lastnews-left-title">
                            <label class="skinnytip" data-text="<div class='miniinfo'>Read This</div>"><?php 
    echo $data_news->latest_topics_index[$i]['title'];
    ?>
</label><br>
                            <label style="color:#3CA4CE;">Comments:</label> <?php 
    echo total_comments($data_news->latest_topics_index[$i]['id']);
    ?>
                        </a>
                    </div>
                    <div class="lastnews-right">
                       <a class="lastnews-right-text" href="board/topic?id=<?php 
    echo $data_news->latest_topics_index[$i]['id'];
    ?>
&page=1/<?php 
    echo $data_news->latest_topics_index[$i]['title'];
    ?>
">Read All...</a>
                    </div>
				</div>
				<?php 
}
Beispiel #2
0
?>
			</article>

			<section class="footnote">
				<!-- Unfortunately, CSS means everything's got to be inline. -->
				<p>This article is my <?php 
echo numeral(article_number(article_id()), true);
?>
 oldest. It is <?php 
echo count_words(article_markdown());
?>
 words long<?php 
if (comments_open()) {
    ?>
, and it’s got <?php 
    echo total_comments() . pluralise(total_comments(), ' comment');
    ?>
 for now.<?php 
}
?>
 <?php 
echo article_custom_field('attribution');
?>
</p>
			</section>
		</section>

		<?php 
if (comments_open()) {
    ?>
		<section class="comments">
Beispiel #3
0
								</div>
								<div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
									<div class="statistic-item text-center"><?php 
    echo _n('Thread', 'Threads', get_total_threads(), 'luna');
    ?>
: <strong><?php 
    total_threads();
    ?>
</strong></div>
								</div>
								<div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
									<div class="statistic-item text-center"><?php 
    echo _n('Comment', 'Comments', get_total_comments(), 'luna');
    ?>
: <strong><?php 
    total_comments();
    ?>
</strong></div>
								</div>
								<div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
									<div class="statistic-item text-center"><?php 
    _e('Newest user', 'luna');
    ?>
: <strong><?php 
    newest_user();
    ?>
</strong></div>
								</div>
								<div class="col-lg-2 col-md-4 col-sm-6 col-xs-12">
									<div class="statistic-item text-center">
												<?php 
Beispiel #4
0
        $author = $_POST['username'] ? $_POST['username'] : $_SESSION['username'];
        $replypassword = $_POST['replypassword'] ? md5($_POST['replypassword']) : "";
        if ($_GET['load'] == "read") {
            //评论
            $sql = "insert into " . $DBPrefix . "comments(author,password,logId,ip,content,postTime,isSecret,parent) values('{$author}','{$replypassword}','" . $id . "','" . getip() . "',\"" . encode($_POST['message']) . "\",'" . time() . "','" . $_POST['isSecret'] . "','{$postid}')";
        } else {
            $sql = "insert into " . $DBPrefix . "guestbook(author,password,homepage,email,ip,content,postTime,isSecret,parent) values('{$author}','{$replypassword}','" . encode($_POST['homepage']) . "','" . encode($_POST['email']) . "','" . getip() . "',\"" . encode($_POST['message']) . "\",'" . time() . "','" . $_POST['isSecret'] . "','" . $_POST['postid'] . "')";
        }
        //echo $sql;
        $DMF->query($sql);
        //更新cache
        if ($_GET['load'] == "read") {
            //评论
            recentComments_recache();
            //更新LOGS评论数量
            total_comments($id, 1);
        } else {
            recentGbooks_recache();
        }
        echo "<script language=javascript> \n";
        if ($_GET['load'] == "read") {
            echo " opener.location.href='index.php?load=" . $_GET['load'] . "&page=" . $_GET['page'] . "&id={$id}#comm_top';\n";
        } else {
            echo " opener.location.href='index.php?load=" . $_GET['load'] . "&page=" . $_GET['page'] . "';\n";
        }
        echo " window.close();\n";
        echo "</script> \n";
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Beispiel #5
0
                        $DMF->query($sql);
                        //echo $sql."<br>";
                        $del_id++;
                    }
                }
                $sql = "delete from {$op_table} where id='" . $postid . "'";
                $DMF->query($sql);
                //echo $sql."<br>";
                //exit;
                $del_id++;
                //更新cache
                if ($_GET['load'] == "read") {
                    //评论
                    recentComments_recache();
                    //更新LOGS评论数量
                    total_comments($id, "-" . $del_id);
                } else {
                    recentGbooks_recache();
                }
                echo "<script language=javascript> \n";
                if ($_GET['load'] == "read") {
                    echo " opener.location.href='index.php?load=" . $_GET['load'] . "&page=" . $_GET['page'] . "&id={$id}';\n";
                } else {
                    echo " opener.location.href='index.php?load=" . $_GET['load'] . "&page=" . $_GET['page'] . "';\n";
                }
                echo " window.close();\n";
                echo "</script> \n";
            }
        }
    }
}
Beispiel #6
0
			<?php 
echo article_markdown();
?>
			<?php 
if (user_authed() && user_authed_role() == 'administrator') {
    echo "<a href='/admin/posts/edit/" . article_id() . "' target='_blank'>Edit Article</a>";
}
?>
		</article>

		<?php 
if (has_comments()) {
    ?>
		<section id="comments">
			<h2><?php 
    echo total_comments(article_id());
    ?>
 comments</h2>
			<ul class="commentlist">
				<?php 
    $i = 0;
    while (comments()) {
        $i++;
        ?>
				<li>
					<header>
						<h2 data-id="<?php 
        echo $i;
        ?>
"><?php 
        echo comment_name();
					article
				</span>
				<span class="footer-meta__words">
					<span class="icon-stat"><i class="fa fa-file-text-o"></i> <?php 
echo count_words(article_html());
?>
</span>
					words
				</span>
				<?php 
if (comments_open()) {
    ?>
				<span class="footer-meta__comments">
					<span class="icon-stat"><i class="fa fa-comments-o"></i></span>
					<a href="#article-comments"><?php 
    echo total_comments();
    ?>
 comments</a>
				</span>
				<?php 
}
?>
				<!--
				<a class="footer-meta__tweet" href="http://twitter.com/share?url=<?php 
echo full_url();
?>
&text=<?php 
echo article_title();
if (site_meta('twitter_account')) {
    ?>
&via=<?php