mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
ENHANCEMENT:added a clearfix to blogEntry.ss for the editpost links. added css requirements to php to detect subthemes css
This commit is contained in:
parent
fae45f3826
commit
248fef4424
@ -236,7 +236,7 @@ class BlogEntry_Controller extends Page_Controller {
|
||||
function init() {
|
||||
parent::init();
|
||||
|
||||
Requirements::themedCSS('blog');
|
||||
Requirements::themedCSS("blog","blog");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -234,7 +234,7 @@ class BlogTree_Controller extends Page_Controller {
|
||||
|
||||
$this->IncludeBlogRSS();
|
||||
|
||||
Requirements::themedCSS("blog");
|
||||
Requirements::themedCSS("blog","blog");
|
||||
}
|
||||
|
||||
function BlogEntries($limit = null) {
|
||||
|
@ -9,3 +9,8 @@
|
||||
padding: 7px;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.edit-post {
|
||||
clear:both;
|
||||
padding-top:10px;
|
||||
}
|
@ -18,7 +18,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<% if IsOwner %><p><a href="$EditURL" id="editpost" title="<% _t('EDITTHIS', 'Edit this post') %>"><% _t('EDITTHIS', 'Edit this post') %></a> | <a href="$Link(unpublishPost)" id="unpublishpost"><% _t('UNPUBLISHTHIS', 'Unpublish this post') %></a></p><% end_if %>
|
||||
<% if IsOwner %><p class="edit-post"><a href="$EditURL" id="editpost" title="<% _t('EDITTHIS', 'Edit this post') %>"><% _t('EDITTHIS', 'Edit this post') %></a> | <a href="$Link(unpublishPost)" id="unpublishpost"><% _t('UNPUBLISHTHIS', 'Unpublish this post') %></a></p><% end_if %>
|
||||
|
||||
<% if TrackBacksEnabled %>
|
||||
<% include TrackBacks %>
|
||||
|
Loading…
Reference in New Issue
Block a user