Commit 22ae93e1 authored by Evonne Cheung's avatar Evonne Cheung Committed by Hugh Davenport
Browse files

artefact/blog: Theme update



Responsive theme

Bug #1041645

Change-Id: Ibd937026417063df63e9fdfbf5063bbe44d5a5f6
Signed-off-by: default avatarHugh Davenport <hugh@catalyst.net.nz>
parent 6358abad
{foreach from=$blogs->data item=blog}
{foreach from=$blogs->data item=blog}
<tr class="{cycle name=rows values='r0,r1'}">
<td>
<h4><a href="{$WWWROOT}artefact/blog/view/?id={$blog->id}">{$blog->title}</a></h4>
<div id="blogdesc">{$blog->description|clean_html|safe}</div>
</td>
<td class="valign"><a href="{$WWWROOT}artefact/blog/view/?id={$blog->id}">{$blog->postcount} {if $blog->postcount == 1}{str tag=post section=artefact.blog}{else}{str tag=posts section=artefact.blog}{/if}</a></td>
<td class="valign s"><a href="{$WWWROOT}artefact/blog/post.php?blog={$blog->id}" class="btn">{str tag=addpost section=artefact.blog}</a></td>
<td class="valign buttonscell right">
{if $blog->locked}
<span class="s dull">{str tag=submittedforassessment section=view}</span>
{else}
<a href="{$WWWROOT}artefact/blog/settings/?id={$blog->id}" title="{str tag=settings}"><img src="{theme_url filename='images/manage.gif'}" alt="{str tag=settings}"></a>
{$blog->deleteform|safe}
{/if}
</td>
<td colspan="2">
<div class="fr">
<span class="entries"><a href="{$WWWROOT}artefact/blog/view/?id={$blog->id}">{$blog->postcount}{if $blog->postcount == 1}{str tag=post section=artefact.blog}{else}{str tag=posts section=artefact.blog}{/if}</a></span>
<span class="newentry"><a href="{$WWWROOT}artefact/blog/post.php?blog={$blog->id}" class="btn">{str tag=addpost section=artefact.blog}</a></span>
<span class="btns2">
{if $blog->locked}
<span class="s dull">{str tag=submittedforassessment section=view}</span>
{else}
<a href="{$WWWROOT}artefact/blog/settings/?id={$blog->id}" title="{str tag=settings}"><img src="{theme_url filename='images/manage.gif'}" alt="{str tag=settings}"></a>
{$blog->deleteform|safe}
{/if}
</span>
</div>
<h4><a href="{$WWWROOT}artefact/blog/view/?id={$blog->id}">{$blog->title}</a></h4>
<div id="blogdesc">{$blog->description|clean_html|safe}</div>
</td>
</tr>
{/foreach}
{/foreach}
{foreach from=$posts item=post}
<tr id="posttitle_{$post->id}">
<th class="posttitle">{$post->title}</th>
<th id="poststatus{$post->id}" class="poststatus">
{if $post->published}
{str tag=published section=artefact.blog}
{else}
{str tag=draft section=artefact.blog}
{/if}
</th>
<th id="changepoststatus{$post->id}" class="changepoststatus">
{if !$post->locked}
{$post->changepoststatus|safe}
{/if}
</th>
<th class="controls">
{if $post->locked}
{str tag=submittedforassessment section=view}
{else}
<form name="edit_{$post->id}" action="{$WWWROOT}artefact/blog/post.php">
<input type="hidden" name="id" value="{$post->id}">
<input type="image" src="{theme_url filename="images/edit.gif"}" title="{str tag=edit}">
</form>
{$post->delete|safe}
{/if}
</th>
</tr>
<tr id="postdescription_{$post->id}">
<td colspan=4>{$post->description|clean_html|safe}</td>
</tr>
{if $post->files}
<tr id="postfiles_{$post->id}">
<td colspan=3>
<table class="attachments fullwidth">
<col width="5%">
<col width="40%">
<col width="55%">
<tbody>
<tr><th colspan=3>{str tag=attachedfiles section=artefact.blog}</th></tr>
{foreach from=$post->files item=file}
<tr class="{cycle values='r1,r0'}">
<td><img src="{$file->icon}" alt=""></td>
<td class="valign"><a href="{$WWWROOT}artefact/file/download.php?file={$file->attachment}">{$file->title}</a></td>
<td class="valign">{$file->description}</td>
</tr>
{/foreach}
</tbody>
</table>
</td>
</tr>
{/if}
<tr id="postdetails_{$post->id}"><td colspan=2 class="postdetails">{str tag=postedon section=artefact.blog} {$post->ctime}</td></tr>
{/foreach}
\ No newline at end of file
<div id="posttitle_{$post->id}" class="{if $post->published}published{else}draft{/if}">
<div class="fr">
<span id="poststatus{$post->id}" class="poststatus">
{if $post->published}
{str tag=published section=artefact.blog}
{else}
{str tag=draft section=artefact.blog}
{/if}
</span>
<span id="changepoststatus{$post->id}" class="changepoststatus">
{if !$post->locked}
{$post->changepoststatus|safe}
{/if}
</span>
<span class="controls">
{if $post->locked}
{str tag=submittedforassessment section=view}
{else}
<form name="edit_{$post->id}" action="{$WWWROOT}artefact/blog/post.php">
<input type="hidden" name="id" value="{$post->id}">
<input type="image" src="{theme_url filename="images/edit.gif"}" title="{str tag=edit}">
</form>
{$post->delete|safe}
{/if}
</span>
</div>
<h1 class="posttitle">{$post->title}</h1>
<div id="postdescription_{$post->id}" class="postdescription">
{$post->description|clean_html|safe}
</div>
{if $post->files}
<div id="postfiles_{$post->id}">
<table class="attachments fullwidth">
<col width="5%">
<col width="40%">
<col width="55%">
<tbody>
<tr><th colspan=3>{str tag=attachedfiles section=artefact.blog}</th></tr>
{foreach from=$post->files item=file}
<tr class="{cycle values='r1,r0'}">
<td><img src="{$file->icon}" alt=""></td>
<td class="valign"><a href="{$WWWROOT}artefact/file/download.php?file={$file->attachment}">{$file->title}</a></td>
<td class="valign">{$file->description}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
<div id="postdetails_{$post->id}" class="postdetails">
{str tag=postedon section=artefact.blog} {$post->ctime}
</div>
</div>
{/foreach}
/**
* CSS rules for the blog artefact plugin
*
* Copyright (C) 2006-2009 Catalyst IT
* Copyright (C) 2006-2012 Catalyst IT
* This file is distributed under the same terms as Mahara itself
*/
/* Blog list */
/*#bloglist .right a {
font-size: .9167em;
margin-left: 1em;
}*/
#bloglist td .addicon {
margin: 0;
}
#bloglist h4 {
margin: 0;
margin: 0 0 3px 0;
}
#bloglist #blogdesc p {
margin: 0;
font-size: .9167em;
line-height: 1.25em;
}
#blogdescription {
margin: 0 0 10px 0;
}
#blogdescription p {
margin: 0;
}
td a.btn-add{
margin-left:10px;
margin-right:10px;
margin: 5px 0 0 0;
}
td a.btn {
white-space: nowrap;
#bloglist .buttonscell form, #bloglist .buttonscell form div, #postlist form, #postlist form div {
display: inline;
vertical-align: top;
}
/* Post list */
#postlist th {
border-bottom: 1px dotted #d1d1d1;
font-size: 1em;
padding: 15px 5px 3px 5px;
vertical-align: bottom;
}
#postlist th.posttitle {
font-size: 1.8em;
line-height: 1.1667em;
}
#postlist th.poststatus {
color: #888;
#postlist .poststatus {
font-weight: bold;
font-style: italic;
white-space: nowrap;
margin: 1px 10px 0 10px;
display: block;
float: left;
}
#postlist th.poststatus input {
#postlist .changepoststatus {
font-size: .9167em;
vertical-align: top;
}
#postlist th.controls {
text-align: right;
#postlist .changepoststatus input {
padding: 0 3px;
height: 16px;
}
#postlist th.controls .btn-big-del {
background:url("../images/delete.gif") no-repeat scroll left center transparent;
border:0 none;
color:#FFFFFF;
cursor:pointer;
font-size:1%;
height:16px;
margin-left: 5px;
padding-left:0;
width:16px;
#postlist .published {
padding: 10px;
margin-bottom: 15px;
}
#postlist th.controls span.btn-big-del {
padding-bottom: 6px;
#postlist .draft {
padding: 10px;
margin-bottom: 15px;
}
#bloglist td.buttonscell form,
#bloglist td.buttonscell form div,
#postlist th form,
#postlist th form div {
display: inline;
#postlist .postdescription h1, #postlist .postdescription h2, #postlist .postdescription h3, #postlist .postdescription h4, #postlist .postdescription h5, #postlist .postdescription h6 {
margin: 5px 0 0 0;
}
#postlist p {
margin: 0 0 10px 0;
#postlist .postdescription p {
margin: 5px 0 15px 0;
}
#postlist td.postdetails {
#postlist .postdetails {
font-size: .9167em;
color: #888;
padding-bottom: 10px;
}
#postlist td h1,
#postlist td h2 {
font-size: 1.3333em !important;
margin: 10px 0 0 0;
padding-top: 5px;
}
#postlist td h3,
#postlist td h4 {
font-size: 1.1333em !important;
margin: 10px 0 0 0;
}
/* attachment files */
#postlist .attachments th {
padding: 3px 5px;
font-size: 1em;
border: 0;
}
.attachments .unselect {
.attachments input.unselect, .filebrowser input.unselect {
font-size: .9167em;
}
/* Insert Image Dialog */
#img_src[disabled=""] {
background-color: #F0F0EE;
}
background-color: #F0F0EE;
}
\ No newline at end of file
......@@ -12,11 +12,9 @@
{if $blog->get('tags')}<p class="tags s"><label>{str tag=tags}:</label> {list_tags owner=$blog->get('owner') tags=$blog->get('tags')}</p>{/if}</div>
{if $posts}
<table id="postlist" class="tablerenderer fullwidth nohead">
<tbody>
<div id="postlist">
{$posts.tablerows|safe}
</tbody>
</table>
</div>
<div id="blogpost_page_container" class="hidden">{$posts.pagination|safe}</div>
<script>
addLoadEvent(function() {literal}{{/literal}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment