2012-09-25, 20:40:02
Alright, well now I don't understand why my plugin is breaking the admin interface.
It's not showing its information in the Plugins tab, and it's generally causing problems in the admin interface.
I have a feeling once this plugin is working perfectly, I will have learned more about how GetSimple works so I won't have to ask stupid questions
Here's my code:
It's not showing its information in the Plugins tab, and it's generally causing problems in the admin interface.
I have a feeling once this plugin is working perfectly, I will have learned more about how GetSimple works so I won't have to ask stupid questions
Here's my code:
Code:
<?php
/*
Plugin Name: ViewSiteLink
Adds an obvious link in admin navigation that opens home page in new tab.
Version: 1.0
Author: Michel Staake
Author URI: http://michelstaake.me/
*/
$viewsitelink=viewsitelink(__FILE__, ".php");
register_plugin(
$viewsitelink,
'ViewSiteLink',
'1.0',
'Michel Staake',
'http://michelstaake.me/',
'Adds an obvious link in admin navigation that opens home page in new tab.',
'plugin',
'viewsitelink'
);
add_action('nav-tab','viewsitelink');
function viewsitelink() {
echo '<li class="rightnav"><a target="_blank" class="first" href="" style="
border-radius: 3px;
margin-left: 3px;
border-left: none;
">View Site</a></li>';
}
?>