Commit 4245c555 authored by Naomi Guyer's avatar Naomi Guyer Committed by Aaron Wells
Browse files

BUG - general styling fixes

Bug 1465107: Use Bootstrap CSS Framework

Change-Id: I754032b3288bf5ed743756019e6c1ff6d4c729bf
parent e0d6f1c6
{if ($editing)}
<div class="shortcut">
<span> <a class="btn" href="{$WWWROOT}artefact/blog/post.php?blog={$blogid}" target="_blank">{str tag='shortcutnewentry' section='artefact.blog'}</a> </span>
</div>
{/if}
{if !$options.hidetitle}
<h2>{$artefacttitle|safe}</h2>
{/if}
<div id="blogdescription">{$description|clean_html|safe}
{if $tags}<div class="tags">{str tag=tags}: {list_tags owner=$owner tags=$tags}</div>{/if}
</div>
<div id="postlist{if $blockid}_{$blockid}{/if}" class="postlist fullwidth">
{$posts.tablerows|safe}
</div>
{if $posts.pagination}
<div id="blogpost_page_container{if $blockid}_{$blockid}{/if}" class="hidden center">{$posts.pagination|safe}</div>
{/if}
{if $license}
<div class="bloglicense">
{$license|safe}
</div>
{/if}
{if $posts.pagination_js}
<script>
addLoadEvent(function() {literal}{{/literal}
{$posts.pagination_js|safe}
removeElementClass('blogpost_page_container{if $blockid}_{$blockid}{/if}', 'hidden');
{literal}}{/literal});
</script>
{/if}
{foreach from=$blogs->data item=blog}
<div class="{cycle name=rows values='r0,r1'} listrow">
<h3 class="title"><a href="{$WWWROOT}artefact/blog/view/index.php?id={$blog->id}">{$blog->title}</a></h3>
<div class="fr nowrap">
<span class="entries"><a href="{$WWWROOT}artefact/blog/view/index.php?id={$blog->id}">{str tag=nposts section=artefact.blog arg1=$blog->postcount}</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/index.php?id={$blog->id}" title="{str tag=settings}"><img src="{theme_image_url filename='btn_configure'}" alt="{str(tag=settingsspecific arg1=$blog->title)|escape:html|safe}"></a>
{$blog->deleteform|safe}
{/if}
</span>
</div>
<div id="blogdesc">{$blog->description|clean_html|safe}</div>
<div class="cb"></div>
</div>
{/foreach}
<h3 class="title">{$artefacttitle|safe}</h3>
<div class="detail">{$description|str_shorten_html:80:true|strip_tags|safe}</div>
{include file="header.tpl"}
{$form|safe}
{include file="footer.tpl"}
{if count($entryblogs)}
<div class="section fullwidth">
<h2>{str tag=blog section=artefact.blog}</h2>
</div>
{foreach from=$entryblogs item=blog}
<div class="{cycle name=rows values='r0,r1'} listrow">
<div id="entryblog" class="indent1">
<div class="importcolumn importcolumn1">
<h3 class="title">
{if $blog.description}<a class="blogtitle" href="" id="{$blog.id}">{/if}
{$blog.title|str_shorten_text:80:true}
{if $blog.description}</a>{/if}
</h3>
<div id="{$blog.id}_desc" class="detail hidden">{$blog.description|clean_html|safe}</div>
{if $blog.tags}
<div class="tags">
<strong>{str tag=tags}:</strong> {list_tags owner=0 tags=$blog.tags}
</div>
{/if}
<div class="posts">
<strong>{str tag=blogpost section=artefact.blog}:</strong> <a class="showposts" href="" id="{$blog.id}">{str tag=nposts section=artefact.blog arg1=count($blog.entryposts)}</a>
</div>
</div>
<div class="importcolumn importcolumn2">
{if $blog.duplicateditem}
<div class="duplicatedblog">
<strong>{str tag=duplicatedblog section=artefact.blog}:</strong> <a class="showduplicatedblog" href="" id="{$blog.duplicateditem.id}">{$blog.duplicateditem.title|str_shorten_text:80:true}</a>
<div id="{$blog.duplicateditem.id}_duplicatedblog" class="detail hidden">{$blog.duplicateditem.html|clean_html|safe}</div>
</div>
{/if}
{if $blog.existingitems}
<div class="existingblogs">
<strong>{str tag=existingblogs section=artefact.blog}:</strong>
{foreach from=$blog.existingitems item=existingitem}
<a class="showexistingblog" href="" id="{$existingitem.id}">{$existingitem.title|str_shorten_text:80:true}</a><br>
<div id="{$existingitem.id}_existingblog" class="detail hidden">{$existingitem.html|clean_html|safe}</div>
{/foreach}
</div>
{/if}
</div>
<div class="importcolumn importcolumn3">
{foreach from=$displaydecisions key=opt item=displayopt}
{if !$blog.disabled[$opt]}
<input id="decision_{$blog.id}_{$opt}" class="blogdecision" id="{$blog.id}" type="radio" name="decision_{$blog.id}" value="{$opt}"{if $blog.decision == $opt} checked="checked"{/if}>
<label for="decision_{$blog.id}_{$opt}">{$displayopt}<span class="accessible-hidden">({$blog.title})</span></label><br>
{/if}
{/foreach}
</div>
<div class="cb"></div>
</div>
<div id="{$blog.id}_posts" class="indent2 hidden">
{foreach from=$blog.entryposts item=post}
<div id="posttitle_{$post.id}" class="{cycle name=rows values='r0,r1'} listrow {if $post.published}published{else}draft{/if}">
<div class="importcolumn importcolumn1">
<h4 class="title">
{if $post.description}<a class="posttitle" href="" id="{$post.id}">{/if}
{$post.title|str_shorten_text:80:true}
{if $post.description}</a>{/if}
</h4>
<div id="{$post.id}_desc" class="detail hidden">
{$post.description|clean_html|safe}
</div>
<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>
{if $post.files}
<div id="postfiles">
<table class="cb attachments fullwidth">
<thead class="expandable-head">
<tr>
<td>
<a class="showpostfiles toggle expandable" id="{$blog.id}_{$post.id}" href="">{str tag=attachedfiles section=artefact.blog}</a>
<span class="fr">
<img class="fl" src="{theme_image_url filename='attachment'}" alt="{str tag=Attachments section=artefact.resume}">
{$post.files|count}
</span>
</td>
</tr>
</thead>
<tbody id="{$blog.id}_{$post.id}_postfiles" class="expandable-body hidden">
{foreach from=$post.files item=file}
<tr class="{cycle values='r1,r0'}">
<td><h3 class="title">{$file.title}</h3>
<div class="detail">{$file.description}</div></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
<div id="postdetails_{$post.id}" class="postdetails">
{str tag=postedon section=artefact.blog} {$post.ctime}
</div>
</div>
<div class="importcolumn importcolumn2">
{if $post.duplicateditem}
<div class="duplicatedpost">
<strong>{str tag=duplicatedpost section=artefact.blog}:</strong> <a class="showduplicatedpost" href="" id="{$post.duplicateditem.id}">{$post.duplicateditem.title|str_shorten_text:80:true}</a>
<div id="{$post.duplicateditem.id}_duplicatedpost" class="detail hidden">{$post.duplicateditem.html|clean_html|safe}</div>
</div>
{/if}
{if $post.existingitems}
<div class="existingposts">
<strong>{str tag=existingposts section=artefact.blog}:</strong>
{foreach from=$post.existingitems item=existingitem}
<a class="showexistingpost" href="" id="{$existingitem.id}">{$existingitem.title|str_shorten_text:80:true}</a><br>
<div id="{$existingitem.id}_existingpost" class="detail hidden">{$existingitem.html|clean_html|safe}</div>
{/foreach}
</div>
{/if}
</div>
<div class="importcolumn importcolumn3">
{foreach from=$displaydecisions key=opt item=displayopt}
{if !$post.disabled[$opt]}
<input id="decision_{$post.id}_{$opt}" class="postdecision" type="radio" name="decision_{$post.id}" value="{$opt}"{if $post.decision == $opt} checked="checked"{/if}>
<label for="decision_{$post.id}_{$opt}">{$displayopt}<span class="accessible-hidden">({$post.title})</span></label><br>
{/if}
{/foreach}
</div>
<div class="cb"></div>
</div>
{/foreach}
</div>
<div class="cb"></div>
</div>
{/foreach}
<script type="application/javascript">
jQuery(function() {
jQuery("a.blogtitle").click(function(e) {
e.preventDefault();
jQuery("#" + this.id + "_desc").toggleClass("hidden");
});
jQuery("a.posttitle").click(function(e) {
e.preventDefault();
jQuery("#" + this.id + "_desc").toggleClass("hidden");
});
jQuery("a.showduplicatedblog").click(function(e) {
e.preventDefault();
jQuery("#" + this.id + "_duplicatedblog").toggleClass("hidden");
});
jQuery("a.showexistingblog").click(function(e) {
e.preventDefault();
jQuery("#" + this.id + "_existingblog").toggleClass("hidden");
});
jQuery("a.showduplicatedpost").click(function(e) {
e.preventDefault();
jQuery("#" + this.id + "_duplicatedpost").toggleClass("hidden");
});
jQuery("a.showexistingpost").click(function(e) {
e.preventDefault();
jQuery("#" + this.id + "_existingpost").toggleClass("hidden");
});
jQuery("a.showposts").click(function(e) {
e.preventDefault();
jQuery("#" + this.id + "_posts").toggleClass("hidden");
});
jQuery("a.showpostfiles").click(function(e) {
e.preventDefault();
jQuery("#" + this.id + "_postfiles").toggleClass("hidden");
});
jQuery("input.blogdecision").change(function(e) {
e.preventDefault();
if (this.value == '1') {
// The import decision for the blog is IGNORE
// Set decision for its blogposts to be IGNORE as well
jQuery("#" + this.id + "_posts input.postdecision[value=1]").prop('checked', true);
}
});
});
</script>
{/if}
{include file="header.tpl"}
<div class="rbuttons">
<a class="btn" href="{$WWWROOT}artefact/blog/new/index.php">{str section="artefact.blog" tag="addblog"}</a>
</div>
<div id="myblogs" class="rel">
{if !$blogs->data}
<div>{str tag=youhavenoblogs section=artefact.blog}</div>
{else}
<div id="bloglist" class="fullwidth listing">
{$blogs->tablerows|safe}
</div>
{$blogs->pagination|safe}
{/if}
</div>
{include file="footer.tpl"}
{foreach from=$posts item=post}
<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_image_url filename="btn_edit"}" alt="{str(tag=editspecific arg1=$post->title)|escape:html|safe}" title="{str tag=edit}">
</form>
{$post->delete|safe}
{/if}
</span>
</div>
<h2>{$post->title}</h2>
<div id="postdetails_{$post->id}" class="postdetails postdate">
{str tag=postedon section=artefact.blog} {$post->ctime}
</div>
<div id="postdescription_{$post->id}" class="postdescription">
{$post->description|clean_html|safe}
</div>
{if $post->tags}<div id="posttags_{$post->id}" class="tags">{str tag=tags}: {list_tags owner=$post->author tags=$post->tags}</div>{/if}
{if $post->files}
<div id="postfiles_{$post->id}">
<table class="cb attachments fullwidth">
<thead class="expandable-head">
<tr>
<td colspan="2">
<a class="toggle" href="#">{str tag=attachedfiles section=artefact.blog}</a>
<span class="fr">
<img class="fl" src="{theme_image_url filename='attachment'}" alt="{str tag=Attachments section=artefact.resume}">
{$post->files|count}
</span>
</td>
</tr>
</thead>
<tbody class="expandable-body">
{foreach from=$post->files item=file}
<tr class="{cycle values='r1,r0'}">
<td class="icon-container"><img src="{$file->icon}" alt=""></td>
<td><h3 class="title"><a href="{$WWWROOT}artefact/file/download.php?file={$file->attachment}">{$file->title}</a> <span class="description">({$file->size|display_size})</span></h3>
<div class="detail">{$file->description}</div></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
</div>
{/foreach}
{**
* This template displays a blog post.
*}
{if $published}
<div id="blogpost">
{if $artefacttitle}<h3 class="title">{$artefacttitle|safe}</h3>{/if}
<div class="postdetails">{$postedbyon}</div>
{$artefactdescription|clean_html|safe}
{if isset($attachments)}
{if $artefacttags}<div class="tags">{str tag=tags}: {list_tags owner=$artefactowner tags=$artefacttags}</div>{/if}
<table class="cb attachments fullwidth" id="blockinstance-attachments-{$postid}{if $blockid}-{$blockid}{/if}">
<thead class="expandable-head">
<tr>
<td colspan="2">
<a class="toggle" href="#">{str tag=attachedfiles section=artefact.blog}</a>
<span class="fr">
<img class="fl" alt="{str tag=attachments section=artefact.blog}" src="{theme_image_url attachment}">
{$attachments|count}
</span>
</td>
</tr>
</thead>
<tbody class="expandable-body">
{foreach from=$attachments item=item}
<tr class="{cycle values='r0,r1'}">
<td class="icon-container"><img src="{$item->iconpath}" alt=""></td>
<td>
<h3 class="title"><a href="{$item->viewpath}">{$item->title}</a> <span class="description">({$item->size}) - <a href="{$item->downloadpath}">{str tag=Download section=artefact.file}</a></span></h3>
<div class="detail">{$item->description}</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
{if $license}
<div class="postlicense">
{$license|safe}
</div>
{/if}
</div>
<script type="application/javascript">
setupExpanders($j('#blockinstance-attachments-{$postid}-{$blockid}'));
</script>
{else}
<div>
{$notpublishedblogpost|safe}
</div>
{/if}
{include file="header.tpl"}
{$editform|safe}
{if $enablemultipleblogstext}<p class="s dull center">{str tag=enablemultipleblogstext section=artefact.blog arg1=$WWWROOT}</p>{/if}
{include file="footer.tpl"}
{include file="header.tpl"}
<div id="myblogs" class="rel">
<div class="rbuttons">
<a class="btn addpost" href="{$WWWROOT}artefact/blog/post.php?blog={$blog->get('id')}">{str section="artefact.blog" tag="addpost"}</a>
{if !$blog->get('locked')}
<a class="btn settings" href="{$WWWROOT}artefact/blog/settings/index.php?id={$blog->get('id')}">{str section="artefact.blog" tag="settings"}</a>
{/if}
</div>
<div id="blogdescription">{clean_html($blog->get('description'))|safe}</div>
{if $blog->get('tags')}<div class="tags">{str tag=tags}: {list_tags owner=$blog->get('owner') tags=$blog->get('tags')}</div>{/if}
{if $posts}
<div id="postlist" class="fullwidth">
{$posts.tablerows|safe}
</div>
<div id="blogpost_page_container" class="hidden">{$posts.pagination|safe}</div>
<script>
addLoadEvent(function() {literal}{{/literal}
{$posts.pagination_js|safe}
removeElementClass('blogpost_page_container', 'hidden');
{literal}}{/literal});
</script>
{else}
<div class="message">
{str tag=nopostsyet section=artefact.blog} {if !$blog->get('locked')}<a href="{$WWWROOT}artefact/blog/post.php?blog={$blog->get('id')}">{str tag=addone section=mahara}</a>{/if}
</div>
{/if}
{if $enablemultipleblogstext}
<p class="dull center">{str tag=enablemultipleblogstext section=artefact.blog arg1=$WWWROOT}</p>
{/if}
{if $hiddenblogsnotification}
<p class="dull center">{str tag=hiddenblogsnotification section=artefact.blog arg1=$WWWROOT}</p>
{/if}
</div>
{include file="footer.tpl"}
{foreach from=$posts item=post}
<div class="post">
<h3 class="title"><a href="{$WWWROOT}artefact/artefact.php?artefact={$post->id}&view={$options.viewid}">{$post->title}</a></h3>
<div class="postdetails">{$post->postedby}</div>
<div>{$post->description|clean_html|safe}
{if $post->tags}
<div class="tags">{str tag=tags}: {list_tags owner=$post->owner tags=$post->tags}</div>
{/if}</div>
{if $post->files}
<table class="cb attachments fullwidth" id="blockinstance-attachments-{$post->id}-{$options.blockid}">
<thead class="expandable-head">
<tr>
<td colspan="2">
<a class="toggle" href="#">{str tag=attachedfiles section=artefact.blog}</a>
<span class="fr">
<img class="fl" src="{theme_image_url filename='attachment'}" alt="{str tag=attachments section=artefact.blog}">
{$post->files|count}
</span>
</td>
</tr>
</thead>
<tbody class="expandable-body">
{foreach from=$post->files item=file}
<tr class="{cycle values='r0,r1'}">
<td class="icon-container"><img src="{$file->icon}" alt=""></td>
<td>
<h3 class="title">
<a href="{$WWWROOT}artefact/artefact.php?artefact={$file->attachment}&view={$options.viewid}">{$file->title}</a>
<span class="description">({$file->size|display_size}) - <a href="{$WWWROOT}artefact/file/download.php?file={$file->attachment}&view={$options.viewid}">{str tag=Download section=artefact.file}</a></span>
</h3>
<div class="detail">{$file->description}</div>
</td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
{if $options.viewid && ($post->commentcount || $post->commentcount === '0')}
<div class="comments">
{if $post->commentcount > 0}
{if !$options.editing}<a id="block_0{$post->id}{$options.blockid}" class="commentlink" href="{$WWWROOT}artefact/artefact.php?artefact={$post->id}&view={$options.viewid}">{/if}
{str tag=Comments section=artefact.comment} ({$post->commentcount})
{if !$options.editing}</a>{/if}
{else}
{if $post->allowcomments}
<span class="nocomments">{str tag=Comments section=artefact.comment} ({$post->commentcount})</span>
{/if}
{/if}
{if $post->allowcomments}
<a class="addcomment bar-before" href="{$WWWROOT}artefact/artefact.php?artefact={$post->id}&view={$options.viewid}">{str tag=addcomment section=artefact.comment}</a>
{/if}
</div>
<div class="feedbacktablewrapper">
<div id="feedbacktable_0{$post->id}{$options.blockid}" class="feedbacktable">
{$post->comments->tablerows|safe}
</div>
</div>
{/if}
</div>
<script type="application/javascript">
setupExpanders($j('#blockinstance-attachments-{$post->id}-{$options.blockid}'));
</script>
{/foreach}
{if $feedback}
<div class="viewfooter">
<table id="feedbacktable" class="feedbacktable fullwidth table">
<tbody>
{$feedback->tablerows|safe}
</tbody>
</table>
{$feedback->pagination|safe}
{if $enablecomments}
<a id="add_feedback_link" class="feedback" href="">{str tag=placefeedback section=artefact.comment}</a>
<script type="application/javascript">
var feedbacklinkinblock = true;
</script>
{/if}
</div>
{/if}
\ No newline at end of file
{if $position == 'blockinstance' && !$onview}
<tr>
<td>
{/if}
{foreach from=$data item=item}
<div class="{cycle name=rows values='r0,r1'}{if $item->highlight} highlight{/if}{if $item->makepublicform} private{/if}">
<div class="commentleft">
{if $item->author}
<a href="{$item->author->profileurl}">
<img src="{profile_icon_url user=$item->author maxheight=40 maxwidth=40}" valign="middle" alt="{str tag=profileimagetext arg1=$item->author|display_default_name}">
</a>
{else}
<img src="{profile_icon_url user=null maxheight=40 maxwidth=40}" valign="middle" alt="{str tag=profileimagetextanonymous}">
{/if}
</div>
<div class="commentrightwrap">
{if !$onview}
<div class="fr">
{if $item->makepublicform}<div class="makepublicbtn">{$item->makepublicform|safe}</div>{/if}
{if $item->canedit}
<form name="edit_{$post->id}" action="{$WWWROOT}artefact/comment/edit.php">
<input type="hidden" name="id" value="{$item->id}">
<input type="hidden" name="view" value="{$viewid}">
<input type="image" src="{theme_image_url filename="btn_edit"}" title="{str tag=edit}">
</form>
{/if}
{if $item->deleteform}{$item->deleteform|safe}{/if}
</div>
{/if}
{if $item->author}
<div class="author"><a href="{$item->author->profileurl}" class="username">{$item->author|display_name}</a><span class="postedon"> - {$item->date} {if $item->updated}[{str tag=Updated}: {$item->updated}]{/if}</span></div>
{else}
<div class="author">{$item->authorname}<span class="postedon"> - {$item->date}</span></div>
{/if}
{if $item->deletedmessage}
<div class="deleteddetails">{$item->deletedmessage}</div>
{else}
{if $item->ratingdata}
<div class="commentrating">
{for i $item->ratingdata->min_rating $item->ratingdata->max_rating}
{if !$item->ratingdata->export}
<input name="star{$item->id}" type="radio" class="star" {if $i === $item->ratingdata->value} checked="checked" {/if} disabled="disabled" />
{else}
<div class="star-rating star star-rating-applied star-rating-readonly{if $i <= $item->ratingdata->value} star-rating-on{/if}"><a>&nbsp;</a></div>
{/if}
{/for}
<div class="cb"></div>
</div>
{/if}
<div class="detail">{$item->description