function wps_settings_welcome() { ?> <div class="wrap"> <h2><?php _e('WP Subdomains', 'wpro'); ?> </h2> <?php print wps_admin_notices(); ?> <p>This plugin was developed to make it easy for people to setup subdomains that point directly to categories or pages on their wordpress site.</p> </div> <div class="wrap"> <h2><?php _e('Configuration', 'wpro'); ?> </h2> <h4>Categories</h4> <p>Lists the categories configured as subdomains and categories that aren't. Shows their current Subdomain settings.</p> <h4>Pages</h4> <p>Lists pages that are configured to use WP Subdomains features.</p> <h4>Settings</h4> <p>General Plugin settings, you can enable and disable plugin features here.</p> </div> <div class="wrap"> <h2><?php _e('History & Credits', 'wpro'); ?> </h2> <p>Written by <a href="mailto:alex@casualgenius.com">Alex Stansfield</a> of <a href="http://casualgenius.com">Casual Genius</a>.</p> <p>Based on the <a href="http://www.biggnuts.com/wordpress-subdomains-plugin/">Subster Rejunevation</a> wordpress plugin by <a href="http://www.biggnuts.com/">Dax Herrera</a>. This plugin was subsequently updated by <a href="http://demp.se/y/2008/04/11/category-subdomains-plugin-for-wordpress-25/">Adam Dempsey</a> and <a href="http://blog.youontop.com/wordpress/wordpress-category-as-subdomain-plugin-41.html">Gilad Gafni</a>.</p> <p>This version of WP Subdomains originally started as a few bug fixes but as I found more and more things to add I realised only a rewrite would enable me to make the changes I wanted for my site.</p> </div> <div class="wrap"> <h2><?php _e('Copyright & Disclaimer', 'wpro'); ?> </h2> <p>Use of this application will be at your own risk. No guarantees or warranties are made, direct or implied. The creators cannot and will not be liable or held accountable for damages, direct or consequential. By using this application it implies agreement to these conditions.</p> </div> <?php }
function wps_admin_tabs($current = '', $print = true) { $wps_admin_menu = array('' => __('Welcome'), 'settings' => __('Settings'), 'categories' => __('Categories'), 'pages' => __('Pages')); if ($print) { wps_admin_style(); echo '<h1>WP Subdomains</h1>'; echo '<div id="icon-themes" class="icon32" style="margin-top:-2px;"><br /></div>'; echo '<h2 class="nav-tab-wrapper">'; foreach ($wps_admin_menu as $tab => $name) { $class = $tab == $current ? ' nav-tab-active' : ''; if ($tab) { $tab = '_' . $tab; } echo "<a class='nav-tab{$class}' href='?page=wps{$tab}'>{$name}</a>"; } echo '</h2>'; echo wps_admin_notices(); } else { return $wps_admin_menu; } }