diff --git a/admin/themes/admin/template_add_video.htm b/admin/themes/admin/template_add_video.htm index ddd658d..712275c 100644 --- a/admin/themes/admin/template_add_video.htm +++ b/admin/themes/admin/template_add_video.htm @@ -3,7 +3,8 @@
- This is the URL from the video sites YouTube, Vimeo, Yahoo, Daily Motion or even an Slide Share Presentation.
+ This is the URL from the video sites YouTube, Vimeo, Yahoo, Daily Motion
+ or even an Slide Share Presentation.
(ie. http://youtube.com/watch?v=HcBFLN9cli0)
diff --git a/index.php b/index.php index 8b6b958..4b361c2 100644 --- a/index.php +++ b/index.php @@ -116,11 +116,13 @@ $template = new plantillas($conf->template); $register["title"] = stripslashes($register["title"]); $register["description"] = stripslashes($register["description"]); - + + $comment = new comments(); + switch ($tumble->getType($register["id_post"])) { case "1": - $input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}"); - $output = array($formatedDate, $permalink, $register["title"], $register["description"], $conf->urlGelato); + $input = array("{Date_Added}", "{Permalink}", "{Title}", "{Body}", "{URL_Tumble}", "{Comments_Number}"); + $output = array($formatedDate, $permalink, $register["title"], $register["description"], $conf->urlGelato, $comment->countComments($register["id_post"])); $template->cargarPlantilla($input, $output, "template_regular_post"); $template->mostrarPlantilla(); diff --git a/themes/tumblr/style.css b/themes/tumblr/style.css index 6dd5ef1..b1083aa 100644 --- a/themes/tumblr/style.css +++ b/themes/tumblr/style.css @@ -292,4 +292,17 @@ color: #ccc; #commentForm #btnAdd { margin: 0; float: right; -} \ No newline at end of file +} + +.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; +} diff --git a/themes/tumblr/template_regular_post.htm b/themes/tumblr/template_regular_post.htm index 572ad38..746653e 100644 --- a/themes/tumblr/template_regular_post.htm +++ b/themes/tumblr/template_regular_post.htm @@ -9,5 +9,8 @@

{Title}

{Body} -
+ +
+

( {Comments_Number} ) comments

+
\ No newline at end of file