Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Feeds
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
MickGe
Feeds
Commits
699daf58
Commit
699daf58
authored
12 years ago
by
Andrew Dolgov
Browse files
Options
Downloads
Patches
Plain Diff
add several HOOK_PREFS_TAB_SECTION hook points
parent
24e811ad
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
classes/pluginhost.php
+1
-1
1 addition, 1 deletion
classes/pluginhost.php
classes/pref/feeds.php
+12
-0
12 additions, 0 deletions
classes/pref/feeds.php
classes/pref/prefs.php
+12
-0
12 additions, 0 deletions
classes/pref/prefs.php
with
25 additions
and
1 deletion
classes/pluginhost.php
+
1
−
1
View file @
699daf58
...
@@ -9,7 +9,7 @@ class PluginHost {
...
@@ -9,7 +9,7 @@ class PluginHost {
const
HOOK_ARTICLE_BUTTON
=
1
;
const
HOOK_ARTICLE_BUTTON
=
1
;
const
HOOK_ARTICLE_FILTER
=
2
;
const
HOOK_ARTICLE_FILTER
=
2
;
const
HOOK_PREFS_TAB
=
3
;
const
HOOK_PREFS_TAB
=
3
;
const
HOOK_PREFS_SECTION
=
4
;
const
HOOK_PREFS_
TAB_
SECTION
=
4
;
const
HOOK_PREFS_TABS
=
5
;
const
HOOK_PREFS_TABS
=
5
;
const
HOOK_FEED_PARSED
=
6
;
const
HOOK_FEED_PARSED
=
6
;
const
HOOK_UPDATE_TASK
=
7
;
const
HOOK_UPDATE_TASK
=
7
;
...
...
This diff is collapsed.
Click to expand it.
classes/pref/feeds.php
+
12
−
0
View file @
699daf58
...
@@ -1414,6 +1414,10 @@ class Pref_Feeds extends Handler_Protected {
...
@@ -1414,6 +1414,10 @@ class Pref_Feeds extends Handler_Protected {
print
"<button dojoType=
\"
dijit.form.Button
\"
onclick=
\"
return displayDlg('pubOPMLUrl')
\"
>"
.
print
"<button dojoType=
\"
dijit.form.Button
\"
onclick=
\"
return displayDlg('pubOPMLUrl')
\"
>"
.
__
(
'Display published OPML URL'
)
.
"</button> "
;
__
(
'Display published OPML URL'
)
.
"</button> "
;
global
$pluginhost
;
$pluginhost
->
run_hooks
(
$pluginhost
::
HOOK_PREFS_TAB_SECTION
,
"hook_prefs_tab_section"
,
"prefFeedsOPML"
);
print
"</div>"
;
# pane
print
"</div>"
;
# pane
if
(
strpos
(
$_SERVER
[
'HTTP_USER_AGENT'
],
"Firefox"
)
!==
false
)
{
if
(
strpos
(
$_SERVER
[
'HTTP_USER_AGENT'
],
"Firefox"
)
!==
false
)
{
...
@@ -1453,6 +1457,10 @@ class Pref_Feeds extends Handler_Protected {
...
@@ -1453,6 +1457,10 @@ class Pref_Feeds extends Handler_Protected {
print
"<a href=
\"
$bm_url
\"
class='bookmarklet'>"
.
__
(
'Share with Tiny Tiny RSS'
)
.
"</a>"
;
print
"<a href=
\"
$bm_url
\"
class='bookmarklet'>"
.
__
(
'Share with Tiny Tiny RSS'
)
.
"</a>"
;
global
$pluginhost
;
$pluginhost
->
run_hooks
(
$pluginhost
::
HOOK_PREFS_TAB_SECTION
,
"hook_prefs_tab_section"
,
"prefFeedsBookmarklets"
);
print
"</div>"
;
#pane
print
"</div>"
;
#pane
print
"<div dojoType=
\"
dijit.layout.AccordionPane
\"
title=
\"
"
.
__
(
'Published & shared articles / Generated feeds'
)
.
"
\"
>"
;
print
"<div dojoType=
\"
dijit.layout.AccordionPane
\"
title=
\"
"
.
__
(
'Published & shared articles / Generated feeds'
)
.
"
\"
>"
;
...
@@ -1477,6 +1485,10 @@ class Pref_Feeds extends Handler_Protected {
...
@@ -1477,6 +1485,10 @@ class Pref_Feeds extends Handler_Protected {
print
"<button dojoType=
\"
dijit.form.Button
\"
onclick=
\"
return clearArticleAccessKeys()
\"
>"
.
print
"<button dojoType=
\"
dijit.form.Button
\"
onclick=
\"
return clearArticleAccessKeys()
\"
>"
.
__
(
'Unshare all articles'
)
.
"</button> "
;
__
(
'Unshare all articles'
)
.
"</button> "
;
global
$pluginhost
;
$pluginhost
->
run_hooks
(
$pluginhost
::
HOOK_PREFS_TAB_SECTION
,
"hook_prefs_tab_section"
,
"prefFeedsPublishedGenerated"
);
print
"</div>"
;
#pane
print
"</div>"
;
#pane
global
$pluginhost
;
global
$pluginhost
;
...
...
This diff is collapsed.
Click to expand it.
classes/pref/prefs.php
+
12
−
0
View file @
699daf58
...
@@ -366,6 +366,10 @@ class Pref_Prefs extends Handler_Protected {
...
@@ -366,6 +366,10 @@ class Pref_Prefs extends Handler_Protected {
}
}
}
}
global
$pluginhost
;
$pluginhost
->
run_hooks
(
$pluginhost
::
HOOK_PREFS_TAB_SECTION
,
"hook_prefs_tab_section"
,
"prefPrefsAuth"
);
print
"</div>"
;
#pane
print
"</div>"
;
#pane
print
"<div dojoType=
\"
dijit.layout.AccordionPane
\"
selected=
\"
true
\"
title=
\"
"
.
__
(
'Preferences'
)
.
"
\"
>"
;
print
"<div dojoType=
\"
dijit.layout.AccordionPane
\"
selected=
\"
true
\"
title=
\"
"
.
__
(
'Preferences'
)
.
"
\"
>"
;
...
@@ -594,6 +598,10 @@ class Pref_Prefs extends Handler_Protected {
...
@@ -594,6 +598,10 @@ class Pref_Prefs extends Handler_Protected {
print
"</table>"
;
print
"</table>"
;
global
$pluginhost
;
$pluginhost
->
run_hooks
(
$pluginhost
::
HOOK_PREFS_TAB_SECTION
,
"hook_prefs_tab_section"
,
"prefPrefsPrefsInside"
);
print
'</div>'
;
# inside pane
print
'</div>'
;
# inside pane
print
'<div dojoType="dijit.layout.ContentPane" region="bottom">'
;
print
'<div dojoType="dijit.layout.ContentPane" region="bottom">'
;
...
@@ -621,6 +629,10 @@ class Pref_Prefs extends Handler_Protected {
...
@@ -621,6 +629,10 @@ class Pref_Prefs extends Handler_Protected {
<label for='prefs_show_advanced'>"
.
<label for='prefs_show_advanced'>"
.
__
(
"Show additional preferences"
)
.
"</label>"
;
__
(
"Show additional preferences"
)
.
"</label>"
;
global
$pluginhost
;
$pluginhost
->
run_hooks
(
$pluginhost
::
HOOK_PREFS_TAB_SECTION
,
"hook_prefs_tab_section"
,
"prefPrefsPrefsOutside"
);
print
"</form>"
;
print
"</form>"
;
print
'</div>'
;
# inner pane
print
'</div>'
;
# inner pane
print
'</div>'
;
# border container
print
'</div>'
;
# border container
...
...
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