'
. __('You are not currently authenticated with the Foursquare API.')
. '
';
$foursquare_settings[] = '
'
. __('To display your Foursquare checkins, WP Quadratum needs to be authorised to access your Foursquare account information; this is a simple, safe and secure 3 step process. QP Quadratum never sees your account login information and cannot store any personally identifiable information.')
. '
'
. sprintf (__('Step 1. Register this WordPress site as a Foursquare application on the Foursquare OAuth Consumer Registration page'), 'https://foursquare.com/oauth/register')
. '
'
. __('If you\'re not currently logged into your Foursquare account, you\'ll need to login with the Foursquare account whose checkins you want WP Quadratum to display.')
. '
'
. '
' . __('The Application Name is a label you want to use to identify this connection to your Foursquare account') . '
'
. '
' . sprintf (__('The Application Web Site is the URL of this Wordpress site, which is %s'), get_bloginfo ('url')) . '
'
. '
' . sprintf (__('The Callback URL should be set to %s'), plugins_url() . '/wp-quadratum/includes/wp-quadratum-callback.php') . '
'
. ''
. __('Once you have successfully registered your site, you\'ll be provided with two keys, the client id and the client secret')
. ''
. '
'
. __('Step 2. Copy and paste the supplied Client ID and Client Secret below')
. '
';
$foursquare_settings[] = '
' . __('Foursquare Client ID') . '
Your Foursquare API Client ID
';
$foursquare_settings[] = '
' . __('Foursquare Client Secret') . '
Your Foursquare API Client Secret
';
$foursquare_settings[] = '
'
. __('Step 3. You should now be authorised and ready to go; click on the Connect button below.')
. '
'
. __('You are currently successfully authenticated with the Foursquare API.')
. '
';
}
if ($auth_plugin_installed) {
if ($auth_plugin_active) {
$helper = new WPNokiaAuthHelper ();
$nokia_settings[] = '
'
. __('WP Nokia Auth is installed and active')
. '
';
$nokia_settings[] = '
' . __('App ID') . '
';
$nokia_settings[] = '
' . __('App Token') . '
';
$nokia_settings[] = '
' . __('App Secret') . '
';
}
else {
$nokia_settings[] = '
'
. __('WP Nokia Auth is installed but not currently active')
. '
';
}
}
else {
$nokia_settings[] = '
'
. sprintf (__('You can use the WP Nokia Auth plugin to manage your Nokia Location Platform API credentials. Or you can obtain Nokia Location API credentials from the Nokia API Registration site.'), 'http://wordpress.org/extend/plugins/wp-nokia-auth/', 'http://api.developer.nokia.com/')
. '
';
$nokia_settings[] = '
' . __('Application ID') . '
' . __('Enter your registered Nokia Location API App ID') . '
';
$nokia_settings[] = '
' . __('Application Token') . '
' . __('Enter your registered Nokia Location API App Token') . '
';
$nokia_settings[] = '
' . __('Application Secret') . '
' . __('Enter your registered Nokia Location API App Secret') . '
';
return $postbox_wrap;
}
function admin_wrap ($title, $content) {
?>
'
. __('For help and support with WP Quadratum, here\'s what you can do:')
. '
'
. '
'
. sprintf (__('Firstly ... take a look at this before firing off a question.'), 'http://www.vicchi.org/2012/03/31/asking-for-wordpress-plugin-help-and-support-without-tears/')
. '
'
. '
'
. __('Then ... ask a question on the WordPress support forum; this is by far the best way so that other users can follow the conversation.')
. '
'
. '
'
. __('Or ... ask me a question on Twitter; I\'m @vicchi.')
. '
'
. '
'
. sprintf (__('Or ... drop me an email instead.'), $email_address)
. '
'
. '
'
. ''
. '
'
. __('But ... help and support is a two way street; here\'s what you might want to do:')
. '
'
. '
'
. sprintf (__('If you like this plugin and use it on your WordPress site, or if you write about it online, link to the plugin and drop me an email telling me about this.'), $email_address)
. '
'
. __('WP Quadratum is both free as in speech and free as in beer. No donations are required; here\'s why.')
. '
'
. '
'
. '';
return $this->admin_postbox ('wp-quadratum-support', __('Help & Support'), $content);
}
/**
* Emits the plugin's colophon side-box for the plugin's admin settings/options page.
*/
function admin_show_colophon() {
$content = '
"When it comes to software, I much prefer free software, because I have very seldom seen a program that has worked well enough for my needs and having sources available can be a life-saver" … Linus Torvalds
';
$content .= '
'
. __('For the inner nerd in you, the latest version of WP Quadratum was written using TextMate on a MacBook Pro running OS X 10.7.3 Lion and tested on the same machine running MAMP (Mac/Apache/MySQL/PHP) before being let loose on the author\'s blog.')
. '
';
$content .= '
'
. __('The official home for WP Quadratum is on Gary\'s Codeage; it\'s also available from the official WordPress plugins repository. If you\'re interested in what lies under the hood, the code is also on GitHub to download, fork and otherwise hack around.')
. '
';
$content .= '
'
. __('WP Quadratum is named after both the Latin words quattor, meaning four and quadratum, meaning square.')
. '