Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bluecheese-3334807
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
bluecheese-3334807
Commits
5ba09ac2
Commit
5ba09ac2
authored
11 years ago
by
Neil Drumm
Browse files
Options
Downloads
Patches
Plain Diff
[
#2159813
] Remove comment form title hack.
parent
d7af48ff
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
template.php
+0
-10
0 additions, 10 deletions
template.php
tpl/comment-wrapper.tpl.php
+1
-1
1 addition, 1 deletion
tpl/comment-wrapper.tpl.php
with
1 addition
and
11 deletions
template.php
+
0
−
10
View file @
5ba09ac2
...
...
@@ -39,16 +39,6 @@ function bluecheese_preprocess_comment(&$variables) {
$variables
[
'title_attributes_array'
][
'class'
][]
=
'comment-title'
;
}
/**
* Implementation of template_preprocess_comment_wrapper().
*/
function
bluecheese_preprocess_comment_wrapper
(
&
$variables
)
{
if
(
!
empty
(
$variables
[
'content'
][
'comment_form'
])
&&
empty
(
$variables
[
'comment_form_title'
]))
{
// Generate the 'Add new comment' form title if not present
$variables
[
'comment_form_title'
]
=
t
(
'Add new comment'
);
}
}
/**
* Process variables for aggregator-item.tpl.php.
*
...
...
This diff is collapsed.
Click to expand it.
tpl/comment-wrapper.tpl.php
+
1
−
1
View file @
5ba09ac2
...
...
@@ -13,7 +13,7 @@ $comments = render($content['comments']);
<?php
print
$comments
;
?>
<?php
if
(
$content
[
'comment_form'
])
:
?>
<h2
class=
"title comment-form"
>
<?php
print
$comment_form_title
;
?>
</h2>
<h2
class=
"title comment-form"
>
<?php
print
t
(
'Add new comment'
)
;
?>
</h2>
<?php
print
render
(
$content
[
'comment_form'
]);
?>
<?php
endif
;
?>
</section>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment