\n";
print( $sya_authorplugins_style );
}
/**
* Plugin credits in WP footer
*
* @since 1.1.1
* @author scripts@schloebe.de
*/
function sya_plugin_footer() {
$plugin_data = get_plugin_data( SYA_PLUGINFULLDIR . 'simple-yearly-archive.php' );
$plugin_data['Title'] = $plugin_data['Name'];
if ( !empty($plugin_data['Plugin URI']) && !empty($plugin_data['Name']) )
$plugin_data['Title'] = '' . $plugin_data['Name'] . '';
if ( basename($_SERVER['REQUEST_URI']) == 'simple-yearly-archive.php' ) {
printf('%1$s ' . __('plugin') . ' | ' . __('Version') . ' %2$s | ' . __('Author') . ' %3$s
', $plugin_data['Title'], $plugin_data['Version'], $plugin_data['Author']);
}
}
/**
* Initialization of author plugins stuff
*
* @since 1.1.1
* @author scripts@schloebe.de
*/
function sya_authorplugins_init() {
global $wp_version;
if( version_compare($wp_version, '2.5', '>=') ) {
add_action('in_admin_footer', 'sya_plugin_footer');
}
}
if ( basename($_SERVER['REQUEST_URI']) == 'simple-yearly-archive.php' ) {
add_action( "admin_print_scripts", 'sya_authorplugins_head' );
}
add_action( 'admin_init', 'sya_authorplugins_init', 1 );
?>