Comments number on front-page
parent
3112eac72f
commit
510091bc10
|
|
@ -3,7 +3,8 @@
|
||||||
<label for="url">Video URL</label>
|
<label for="url">Video URL</label>
|
||||||
<br /><input class="txt" type="text" name="url" id="url" value="{editUrl}" size="80" />
|
<br /><input class="txt" type="text" name="url" id="url" value="{editUrl}" size="80" />
|
||||||
<div style="color: rgb(136, 136, 136); margin-bottom: 5px; font-size: 11px; font-weight: bold;">
|
<div style="color: rgb(136, 136, 136); margin-bottom: 5px; font-size: 11px; font-weight: bold;">
|
||||||
This is the URL from the video sites YouTube, Vimeo, Yahoo, Daily Motion or even an Slide Share Presentation.<br>
|
This is the URL from the video sites YouTube, Vimeo, Yahoo, Daily Motion <br />
|
||||||
|
or even an Slide Share Presentation.<br />
|
||||||
<span style="font-size: 10px; font-weight: normal;">(ie. http://youtube.com/watch?v=HcBFLN9cli0)</span>
|
<span style="font-size: 10px; font-weight: normal;">(ie. http://youtube.com/watch?v=HcBFLN9cli0)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -116,11 +116,13 @@ $template = new plantillas($conf->template);
|
||||||
|
|
||||||
$register["title"] = stripslashes($register["title"]);
|
$register["title"] = stripslashes($register["title"]);
|
||||||
$register["description"] = stripslashes($register["description"]);
|
$register["description"] = stripslashes($register["description"]);
|
||||||
|
|
||||||
|
$comment = new comments();
|
||||||
|
|
||||||
switch ($tumble->getType($register["id_post"])) {
|
switch ($tumble->getType($register["id_post"])) {
|
||||||
case "1":
|
case "1":
|
||||||
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}");
|
$input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}", "{Comments_Number}");
|
||||||
$output = array($formatedDate, $permalink, $register["title"], $register["description"], $conf->urlGelato);
|
$output = array($formatedDate, $permalink, $register["title"], $register["description"], $conf->urlGelato, $comment->countComments($register["id_post"]));
|
||||||
|
|
||||||
$template->cargarPlantilla($input, $output, "template_regular_post");
|
$template->cargarPlantilla($input, $output, "template_regular_post");
|
||||||
$template->mostrarPlantilla();
|
$template->mostrarPlantilla();
|
||||||
|
|
|
||||||
|
|
@ -292,4 +292,17 @@ color: #ccc;
|
||||||
#commentForm #btnAdd {
|
#commentForm #btnAdd {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.totalComments h3 {
|
||||||
|
margin: 0 10px 0 0;
|
||||||
|
font-size: 10pt;
|
||||||
|
font-weight: normal;
|
||||||
|
text-align: right;
|
||||||
|
color: #999;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.totalComments a {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,8 @@
|
||||||
<div class="regular">
|
<div class="regular">
|
||||||
<h2><a href="{Permalink}">{Title}</a></h2>
|
<h2><a href="{Permalink}">{Title}</a></h2>
|
||||||
{Body}
|
{Body}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="totalComments">
|
||||||
|
<h3><a href="{Permalink}#comments">( {Comments_Number} ) comments</a></h3>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
Loading…
Reference in New Issue