aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views/default
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-03 10:13:22 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-03 10:13:22 +0000
commitd599fe0cfb93bad66a194ffd11e44a97867c0fa0 (patch)
tree199ac8cf01326cfd25a57dc4944f71001052987a /mod/blog/views/default
parent19079b69b1363e182d6cca4d8b2b01db436690c8 (diff)
downloadelgg-d599fe0cfb93bad66a194ffd11e44a97867c0fa0.tar.gz
elgg-d599fe0cfb93bad66a194ffd11e44a97867c0fa0.tar.bz2
Blog: extended comment form, etc.
git-svn-id: https://code.elgg.org/elgg/trunk@388 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views/default')
-rw-r--r--mod/blog/views/default/blog/css.php20
-rw-r--r--mod/blog/views/default/object/blog.php47
2 files changed, 59 insertions, 8 deletions
diff --git a/mod/blog/views/default/blog/css.php b/mod/blog/views/default/blog/css.php
index 1aa20f8e0..2808508d6 100644
--- a/mod/blog/views/default/blog/css.php
+++ b/mod/blog/views/default/blog/css.php
@@ -22,6 +22,13 @@
}
+.blog-post a {
+
+ text-decoration: underline;
+ color: #777;
+
+}
+
.blog-post h3 {
font-size: 200%;
@@ -29,10 +36,23 @@
}
+.blog-post h3 a {
+
+ text-decoration: none;
+
+}
+
.blog-post .strapline {
font-size: 130%;
margin-bottom: 20px;
color: #aaa;
+}
+
+.blog-post .strapline a {
+
+ text-decoration: none;
+ color: #aaa;
+
} \ No newline at end of file
diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php
index ee88a0888..b023d76e5 100644
--- a/mod/blog/views/default/object/blog.php
+++ b/mod/blog/views/default/object/blog.php
@@ -17,7 +17,7 @@
?>
<div class="blog-post">
- <h3><?php echo $vars['entity']->title; ?></h3>
+ <h3><a href="<?php echo $vars['url']; ?>mod/blog/read.php?blogpost=<?php echo $vars['entity']->getGUID(); ?>"><?php echo $vars['entity']->title; ?></a></h3>
<p class="strapline">
<span style="float:right">
<?php
@@ -28,12 +28,7 @@
?>
</span>
- <?php
-
- $owner = get_entity($vars['entity']->getOwner());
- echo $owner->name;
-
- ?>
+ <a href="<?php echo $vars['url']; ?>mod/blog/?username=<?php echo $vars['entity_owner']->username; ?>"><?php echo $vars['entity_owner']->name; ?></a>
</p>
<p>
<?php
@@ -52,7 +47,43 @@
</div>
<?php
-
+
+ // If we've been asked to display the full view
+ if (isset($vars['full']) && $vars['full'] == true) {
+
+?>
+
+ <div class="blog-comments">
+
+<?php
+
+ // Display comments if any
+ echo elgg_view('object/blog-comments',array('comments' => $vars['comments']));
+
+?>
+ <form action="<?php echo $vars['url']; ?>action/blog/comment/add" method="post">
+ <h3>
+ <?php echo elgg_echo("blog:comment:add"); ?>
+ </h3>
+ <p>
+ <label><?php echo elgg_echo("blog:comment:text"); ?>
+ <?php
+
+ echo elgg_view("input/longtext",array('internalname' => 'comment'));
+
+ ?>
+ </label>
+ </p>
+ <p>
+ <input type="submit" value="<?php echo elgg_echo("save"); ?>" />
+ </p>
+ </form>
+
+ </div>
+
+<?php
+
+ }
}
?> \ No newline at end of file