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() {
|
function init() {
|
||||||
parent::init();
|
parent::init();
|
||||||
|
|
||||||
Requirements::themedCSS('blog');
|
Requirements::themedCSS("blog","blog");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -234,7 +234,7 @@ class BlogTree_Controller extends Page_Controller {
|
|||||||
|
|
||||||
$this->IncludeBlogRSS();
|
$this->IncludeBlogRSS();
|
||||||
|
|
||||||
Requirements::themedCSS("blog");
|
Requirements::themedCSS("blog","blog");
|
||||||
}
|
}
|
||||||
|
|
||||||
function BlogEntries($limit = null) {
|
function BlogEntries($limit = null) {
|
||||||
|
@ -8,4 +8,9 @@
|
|||||||
background-color: #f77;
|
background-color: #f77;
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.edit-post {
|
||||||
|
clear:both;
|
||||||
|
padding-top:10px;
|
||||||
}
|
}
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
</div>
|
</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 %>
|
<% if TrackBacksEnabled %>
|
||||||
<% include TrackBacks %>
|
<% include TrackBacks %>
|
||||||
|
Loading…
Reference in New Issue
Block a user