diff options
Diffstat (limited to 'mod/blog/views')
-rw-r--r-- | mod/blog/views/default/blog/css.php | 58 | ||||
-rw-r--r-- | mod/blog/views/default/blog/forms/edit.php | 89 | ||||
-rw-r--r-- | mod/blog/views/default/blog/notfound.php | 21 | ||||
-rw-r--r-- | mod/blog/views/default/blog/view.php | 26 | ||||
-rw-r--r-- | mod/blog/views/default/object/blog-comment.php | 50 | ||||
-rw-r--r-- | mod/blog/views/default/object/blog-comments.php | 52 | ||||
-rw-r--r-- | mod/blog/views/default/object/blog.php | 88 |
7 files changed, 0 insertions, 384 deletions
diff --git a/mod/blog/views/default/blog/css.php b/mod/blog/views/default/blog/css.php deleted file mode 100644 index 2808508d6..000000000 --- a/mod/blog/views/default/blog/css.php +++ /dev/null @@ -1,58 +0,0 @@ -<?php
-
- /**
- * Elgg blog CSS extender
- *
- * @package ElggBlog
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Ben Werdmuller <ben@curverider.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
-?>
-
-.blog-post {
-
- margin-bottom: 30px;
- border: 0px;
- border-bottom: 1px;
- border-style: solid;
- border-color: #aaa;
-
-}
-
-.blog-post a {
-
- text-decoration: underline;
- color: #777;
-
-}
-
-.blog-post h3 {
-
- font-size: 200%;
- margin-bottom: 15px;
-
-}
-
-.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/blog/forms/edit.php b/mod/blog/views/default/blog/forms/edit.php deleted file mode 100644 index ff8ae8767..000000000 --- a/mod/blog/views/default/blog/forms/edit.php +++ /dev/null @@ -1,89 +0,0 @@ -<?php
-
- /**
- * Elgg blog edit/add page
- *
- * @package ElggBlog
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Ben Werdmuller <ben@curverider.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- *
- * @uses $vars['object'] Optionally, the blog post to edit
- */
-
- // Set title, form destination
- if (isset($vars['entity'])) {
- $title = sprintf(elgg_echo("blog:editpost"),$object->title);
- $action = "blog/edit";
- $title = $vars['entity']->title;
- $body = $vars['entity']->description;
- $tags = $vars['entity']->tags;
- } else {
- $title = elgg_echo("blog:addpost");
- $action = "blog/add";
- $tags = "";
- $title = "";
- $description = "";
- }
-
- // Just in case we have some cached details
- if (isset($vars['blogtitle'])) {
- $title = $vars['blogtitle'];
- $body = $vars['blogbody'];
- $tags = $vars['blogtags'];
- }
-
-?>
-
- <h2>
- <?php echo $title; ?>
- </h2>
- <form action="<?php echo $vars['url']; ?>action/<?php echo $action; ?>" method="post">
-
- <p>
- <label><?php echo elgg_echo("title"); ?><br />
- <?php
-
- echo elgg_view("input/text", array(
- "internalname" => "blogtitle",
- "value" => $title,
- ));
-
- ?>
- </label>
- </p>
- <p>
- <label><?php echo elgg_echo("blog:text"); ?><br />
- <?php
-
- echo elgg_view("input/longtext",array(
- "internalname" => "blogbody",
- "value" => $body,
- ));
- ?>
- </label>
- </p>
- <p>
- <label><?php echo elgg_echo("tags"); ?><br />
- <?php
-
- echo elgg_view("input/tags", array(
- "internalname" => "blogtags",
- "value" => $tags,
- ));
-
- ?>
- </p>
- <p>
- <?php
-
- if (isset($vars['entity'])) {
- ?><input type="hidden" name="blogpost" value="<?php echo $vars['entity']->getGUID(); ?>" /><?php
- }
-
- ?>
- <input type="submit" value="<?php echo elgg_echo('save'); ?>" />
- </p>
-
- </form>
\ No newline at end of file diff --git a/mod/blog/views/default/blog/notfound.php b/mod/blog/views/default/blog/notfound.php deleted file mode 100644 index ae716df89..000000000 --- a/mod/blog/views/default/blog/notfound.php +++ /dev/null @@ -1,21 +0,0 @@ -<?php
-
- /**
- * Elgg blog not found page
- *
- * @package ElggBlog
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Ben Werdmuller <ben@curverider.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
-?>
-
- <p>
- <?php
-
- echo elgg_echo("blog:notfound");
-
- ?>
- </p>
\ No newline at end of file diff --git a/mod/blog/views/default/blog/view.php b/mod/blog/views/default/blog/view.php deleted file mode 100644 index 24d0bde7d..000000000 --- a/mod/blog/views/default/blog/view.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php
-
- /**
- * Elgg blog view page
- *
- * @package ElggBlog
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Ben Werdmuller <ben@curverider.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- *
- * @uses $vars['posts'] An array of posts to view
- */
-
- // If there are any posts to view, view them
- if (is_array($vars['posts']) && sizeof($vars['posts']) > 0) {
-
- foreach($vars['posts'] as $post) {
-
- echo elgg_view_entity($post);
-
- }
-
- }
-
-?>
\ No newline at end of file diff --git a/mod/blog/views/default/object/blog-comment.php b/mod/blog/views/default/object/blog-comment.php deleted file mode 100644 index 344eb5a9c..000000000 --- a/mod/blog/views/default/object/blog-comment.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php
-
- /**
- * Elgg blog individual comment view
- *
- * @package ElggBlog
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Ben Werdmuller <ben@curverider.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- *
- * @uses $vars['entity'] The comment to view
- */
-
-
-?>
-
- <li>
- <div class="blog-comment">
- <p class="blog-comment-text"><?php echo elgg_view("output/longtext",array("value" => $vars['entity']->value)); ?></p>
- <p class="blog-comment-byline">
- <?php
-
- if ($owner = get_entity($vars['entity']->owner_guid)) {
- echo $owner->name;
- }
-
- ?>, <?php echo date("F j, g:i a",$vars['entity']->time_created); ?>
- </p>
- <?php
-
- if ($vars['entity']->canEdit()) {
-?>
- <p class="blog-comment-menu">
- <?php
-
- echo elgg_view("output/confirmlink",array(
- 'href' => $vars['url'] . "action_handler.php?action=blog/comments/delete&comment_id=" . $vars['entity']->id,
- 'text' => elgg_echo('delete'),
- 'confirm' => elgg_echo('deleteconfirm'),
- ));
-
- ?>
- </p>
-<?php
- }
-
- ?>
- </div>
- </li>
\ No newline at end of file diff --git a/mod/blog/views/default/object/blog-comments.php b/mod/blog/views/default/object/blog-comments.php deleted file mode 100644 index 188214ff1..000000000 --- a/mod/blog/views/default/object/blog-comments.php +++ /dev/null @@ -1,52 +0,0 @@ -<?php
-
- /**
- * Elgg blog aggregate comments view
- *
- * @package ElggBlog
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Ben Werdmuller <ben@curverider.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- *
- * @uses $vars['comments'] Array of comments
- */
-
-?>
-
- <div class="blog-comments">
-
-<?php
- if (isset($vars['comments']) && is_array($vars['comments']) && sizeof($vars['comments']) > 0) {
-
- echo "<h3>". elgg_echo("comments") ."</h3><ol>";
- foreach($vars['comments'] as $comment) {
-
- echo elgg_view("object/blog-comment",array('entity' => $comment));
-
- }
- echo "</ol>";
-
- }
-
-?>
- <form action="<?php echo $vars['url']; ?>action/blog/comments/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="hidden" name="blogpost_guid" value="<?php echo $vars['entity']->getGUID(); ?>" />
- <input type="submit" value="<?php echo elgg_echo("save"); ?>" />
- </p>
- </form>
-
- </div>
\ No newline at end of file diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php deleted file mode 100644 index e6b6b7129..000000000 --- a/mod/blog/views/default/object/blog.php +++ /dev/null @@ -1,88 +0,0 @@ -<?php
-
- /**
- * Elgg blog individual post view
- *
- * @package ElggBlog
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Ben Werdmuller <ben@curverider.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- *
- * @uses $vars['entity'] Optionally, the blog post to view
- */
-
- if (isset($vars['entity'])) {
-
-?>
-
- <div class="blog-post">
- <h3><a href="<?php echo $vars['entity']->getURL(); ?>"><?php echo $vars['entity']->title; ?></a></h3>
- <p class="strapline">
- <?php
-
- echo sprintf(elgg_echo("blog:strapline"),
- date("F j",$vars['entity']->time_created)
- );
-
- ?>
- </p>
- <p style="float: left">
- <?php
- echo elgg_view("profile/icon",array('entity' => $vars['entity']->getOwnerEntity(), 'size' => 'medium'));
- ?><br />
- <a href="<?php echo $vars['url']; ?>pg/blog/<?php echo $vars['entity']->getOwnerEntity()->username; ?>"><?php echo $vars['entity']->getOwnerEntity()->name; ?></a>
- </p>
- <p style="margin-left: 110px; min-height: 110px">
- <?php
-
- echo nl2br($vars['entity']->description);
-
- ?>
- </p>
- <p style="margin-left: 110px">
- <?php
-
- echo elgg_view('output/tags', array('tags' => $vars['entity']->tags));
-
- ?>
- </p>
- <p style="margin-left: 110px">
- <?php
-
- if ($vars['entity']->canEdit()) {
-
- ?>
- <a href="<?php echo $vars['url']; ?>mod/blog/edit.php?blogpost=<?php echo $vars['entity']->getGUID(); ?>"><?php echo elgg_echo("edit"); ?></a>
- <?php
-
- echo elgg_view("output/confirmlink", array(
- 'href' => $vars['url'] . "action_handler.php?action=blog/delete&blogpost=" . $vars['entity']->getGUID(),
- 'text' => elgg_echo('delete'),
- 'confirm' => elgg_echo('deleteconfirm'),
- ));
-
- // Allow the menu to be extended
- echo elgg_view("editmenu",array('entity' => $vars['entity']));
-
- ?>
- <?php
- }
-
- ?>
- </p>
- </div>
-
-<?php
-
- // If we've been asked to display the full view
- if (isset($vars['full']) && $vars['full'] == true) {
- echo elgg_view('object/blog-comments',array('entity' => $vars['entity'], 'comments' => $vars['entity']->getAnnotations('comment')));
- }
-
- // Display comments if any
- // echo elgg_view('object/blog-comments',array('entity' => $vars['entity'], 'comments' => $vars['comments']));
-
- }
-
-?>
\ No newline at end of file |