Add blog post directly from a page (bug #792645)
authorSon Nguyen <son.nguyen@catalyst.net.nz>
Thu, 28 Jun 2012 21:00:45 +0000 (09:00 +1200)
committerSon Nguyen <son.nguyen@catalyst.net.nz>
Thu, 28 Jun 2012 21:00:45 +0000 (09:00 +1200)
commit5f5aa85abb77aef335807aa3983762da48bc7c11
treee1d76de79663cd3b5bf4f3902c9c2267aff97842
parent662aec08d3cd011e3ebe43a271374f8984cacbe3
Add blog post directly from a page (bug #792645)

Three blocktypes have been updated
1. Blog block (entire journal) -> add shortcut "New entry" to this blog
2. recentposts block (most recent journal entries):
if there is only one journal -> add shortcut "New entry"
if more than on -> display a dropdown list of blogs to select
(these blogs are taken from the block configuration)
3. taggedposts block (tagged journal entries):
    all journals owned by this user will be displayed in the dropdown
list

*Note: Javascript code has been removed from the template.
*Note: Call initialization js code of all blocks

Change-Id: Ibdd63dfee39787f74d872a6a31b3286c63dee70a
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>
htdocs/artefact/blog/blocktype/blog/lib.php
htdocs/artefact/blog/blocktype/recentposts/js/recentposts.js [new file with mode: 0644]
htdocs/artefact/blog/blocktype/recentposts/lib.php
htdocs/artefact/blog/blocktype/recentposts/theme/raw/recentposts.tpl
htdocs/artefact/blog/blocktype/taggedposts/js/taggedposts.js [new file with mode: 0644]
htdocs/artefact/blog/blocktype/taggedposts/lib.php
htdocs/artefact/blog/blocktype/taggedposts/theme/raw/taggedposts.tpl
htdocs/artefact/blog/lang/en.utf8/artefact.blog.php
htdocs/artefact/blog/post.php
htdocs/artefact/blog/theme/raw/blog.tpl
htdocs/theme/raw/static/style/style.css