Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
d4672378
Commit
d4672378
authored
Jul 28, 2014
by
pupi1985
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added reshow hints which were missing for the question view and admin/hidden sections
parent
7ccba454
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
qa-lang-question.php
qa-include/qa-lang-question.php
+3
-0
qa-page-admin-hidden.php
qa-include/qa-page-admin-hidden.php
+8
-0
qa-page-question-view.php
qa-include/qa-page-question-view.php
+3
-0
No files found.
qa-include/qa-lang-question.php
View file @
d4672378
...
@@ -144,7 +144,10 @@
...
@@ -144,7 +144,10 @@
'reopen_button'
=>
'reopen'
,
'reopen_button'
=>
'reopen'
,
'reply_button'
=>
'reply'
,
'reply_button'
=>
'reply'
,
'reply_c_popup'
=>
'Reply to this comment'
,
'reply_c_popup'
=>
'Reply to this comment'
,
'reshow_a_popup'
=>
'Reshow this answer'
,
'reshow_button'
=>
'reshow'
,
'reshow_button'
=>
'reshow'
,
'reshow_c_popup'
=>
'Reshow this comment'
,
'reshow_q_popup'
=>
'Reshow this question'
,
'retag_button'
=>
'retag'
,
'retag_button'
=>
'retag'
,
'retag_cat_popup'
=>
'Change this question\'s category or tags'
,
'retag_cat_popup'
=>
'Change this question\'s category or tags'
,
'retag_popup'
=>
'Change this question\'s tags'
,
'retag_popup'
=>
'Change this question\'s tags'
,
...
...
qa-include/qa-page-admin-hidden.php
View file @
d4672378
...
@@ -132,16 +132,24 @@
...
@@ -132,16 +132,24 @@
$buttons
=
array
();
$buttons
=
array
();
$posttype
=
qa_strtolower
(
isset
(
$question
[
'obasetype'
])
?
$question
[
'obasetype'
]
:
$question
[
'basetype'
]);
if
(
!
qa_user_post_permit_error
(
'permit_hide_show'
,
$question
))
if
(
!
qa_user_post_permit_error
(
'permit_hide_show'
,
$question
))
// Possible values for the popup (enumerated to let text searches match in the future):
// question/reshow_q_popup, question/reshow_a_popup and question/reshow_c_popup
$buttons
[
'reshow'
]
=
array
(
$buttons
[
'reshow'
]
=
array
(
'tags'
=>
'name="admin_'
.
qa_html
(
$qhiddenpostid
[
$key
])
.
'_reshow" onclick="return qa_admin_click(this);"'
,
'tags'
=>
'name="admin_'
.
qa_html
(
$qhiddenpostid
[
$key
])
.
'_reshow" onclick="return qa_admin_click(this);"'
,
'label'
=>
qa_lang_html
(
'question/reshow_button'
),
'label'
=>
qa_lang_html
(
'question/reshow_button'
),
'popup'
=>
qa_lang_html
(
sprintf
(
'question/reshow_%s_popup'
,
$posttype
)),
);
);
if
((
!
qa_user_post_permit_error
(
'permit_delete_hidden'
,
$question
))
&&
!
$dependcounts
[
$qhiddenpostid
[
$key
]])
if
((
!
qa_user_post_permit_error
(
'permit_delete_hidden'
,
$question
))
&&
!
$dependcounts
[
$qhiddenpostid
[
$key
]])
// Possible values for the popup (enumerated to let text searches match in the future):
// question/delete_q_popup, question/delete_a_popup and question/delete_c_popup
$buttons
[
'delete'
]
=
array
(
$buttons
[
'delete'
]
=
array
(
'tags'
=>
'name="admin_'
.
qa_html
(
$qhiddenpostid
[
$key
])
.
'_delete" onclick="return qa_admin_click(this);"'
,
'tags'
=>
'name="admin_'
.
qa_html
(
$qhiddenpostid
[
$key
])
.
'_delete" onclick="return qa_admin_click(this);"'
,
'label'
=>
qa_lang_html
(
'question/delete_button'
),
'label'
=>
qa_lang_html
(
'question/delete_button'
),
'popup'
=>
qa_lang_html
(
sprintf
(
'question/delete_%s_popup'
,
$posttype
)),
);
);
if
(
count
(
$buttons
))
if
(
count
(
$buttons
))
...
...
qa-include/qa-page-question-view.php
View file @
d4672378
...
@@ -316,6 +316,7 @@
...
@@ -316,6 +316,7 @@
$buttons
[
'reshow'
]
=
array
(
$buttons
[
'reshow'
]
=
array
(
'tags'
=>
'name="q_doreshow"'
.
$clicksuffix
,
'tags'
=>
'name="q_doreshow"'
.
$clicksuffix
,
'label'
=>
qa_lang_html
(
'question/reshow_button'
),
'label'
=>
qa_lang_html
(
'question/reshow_button'
),
'popup'
=>
qa_lang_html
(
'question/reshow_q_popup'
),
);
);
if
(
$question
[
'deleteable'
])
if
(
$question
[
'deleteable'
])
...
@@ -494,6 +495,7 @@
...
@@ -494,6 +495,7 @@
$buttons
[
'reshow'
]
=
array
(
$buttons
[
'reshow'
]
=
array
(
'tags'
=>
'name="'
.
$prefix
.
'doreshow"'
.
$clicksuffix
,
'tags'
=>
'name="'
.
$prefix
.
'doreshow"'
.
$clicksuffix
,
'label'
=>
qa_lang_html
(
'question/reshow_button'
),
'label'
=>
qa_lang_html
(
'question/reshow_button'
),
'popup'
=>
qa_lang_html
(
'question/reshow_a_popup'
),
);
);
if
(
$answer
[
'deleteable'
])
if
(
$answer
[
'deleteable'
])
...
@@ -615,6 +617,7 @@
...
@@ -615,6 +617,7 @@
$buttons
[
'reshow'
]
=
array
(
$buttons
[
'reshow'
]
=
array
(
'tags'
=>
'name="'
.
$prefix
.
'doreshow"'
.
$clicksuffix
,
'tags'
=>
'name="'
.
$prefix
.
'doreshow"'
.
$clicksuffix
,
'label'
=>
qa_lang_html
(
'question/reshow_button'
),
'label'
=>
qa_lang_html
(
'question/reshow_button'
),
'popup'
=>
qa_lang_html
(
'question/reshow_c_popup'
),
);
);
if
(
$comment
[
'deleteable'
])
if
(
$comment
[
'deleteable'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment