Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Authy for WP
Commits
a317a5a8
Commit
a317a5a8
authored
Dec 01, 2012
by
Erick Hitter
Browse files
Basic menu page structure
parent
9c38918e
Changes
1
Show whitespace changes
Inline
Side-by-side
authy-wp.php
View file @
a317a5a8
...
@@ -30,6 +30,8 @@ class Authy_WP {
...
@@ -30,6 +30,8 @@ class Authy_WP {
// Oh look, a singleton
// Oh look, a singleton
private
static
$__instance
=
null
;
private
static
$__instance
=
null
;
protected
$admin_page
=
'wp-for-authy'
;
/**
/**
* Singleton implementation
* Singleton implementation
*
*
...
@@ -53,7 +55,28 @@ class Authy_WP {
...
@@ -53,7 +55,28 @@ class Authy_WP {
/**
/**
*
*
*/
*/
private
function
setup
()
{}
private
function
setup
()
{
// Commong plugin elements
add_action
(
'admin_menu'
,
array
(
$this
,
'action_admin_menu'
)
);
}
/**
* COMMON PLUGIN ELEMENTS
*/
/**
*
*/
public
function
action_admin_menu
()
{
add_users_page
(
'Authy for WP'
,
'Authy for WP'
,
'activate_plugins'
,
$this
->
admin_page
,
array
(
$this
,
'plugin_settings_page'
)
);
}
/**
*
*/
public
function
plugin_settings_page
()
{
//
}
}
}
Authy_WP
::
instance
();
Authy_WP
::
instance
();
\ No newline at end of file
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