Skip to content

Commit

Permalink
ENHANCEMENT:added a clearfix to blogEntry.ss for the editpost links. …
Browse files Browse the repository at this point in the history
…added css requirements to php to detect subthemes css
  • Loading branch information
Jeremy Bridson committed Jul 9, 2012
1 parent fae45f3 commit 248fef4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/BlogEntry.php
Expand Up @@ -236,7 +236,7 @@ class BlogEntry_Controller extends Page_Controller {
function init() {
parent::init();

Requirements::themedCSS('blog');
Requirements::themedCSS("blog","blog");
}

/**
Expand Down
2 changes: 1 addition & 1 deletion code/BlogTree.php
Expand Up @@ -234,7 +234,7 @@ function init() {

$this->IncludeBlogRSS();

Requirements::themedCSS("blog");
Requirements::themedCSS("blog","blog");
}

function BlogEntries($limit = null) {
Expand Down
5 changes: 5 additions & 0 deletions css/blog.css
Expand Up @@ -8,4 +8,9 @@
background-color: #f77;
padding: 7px;
font-weight:bold;
}

.edit-post {
clear:both;
padding-top:10px;
}
2 changes: 1 addition & 1 deletion templates/Layout/BlogEntry.ss
Expand Up @@ -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 %>
Expand Down

0 comments on commit 248fef4

Please sign in to comment.