/** * tarski_credits() - Outputs the site feed and Tarski credits. * * @since 1.5 */ function tarski_credits() { if (detectWPMU()) { $current_site = get_current_site(); } include TARSKIDISPLAY . "/credits.php"; }
<div class="primary content"> <p><?php _e('Powered by <a href="http://wordpress.org/">WordPress</a> and <a href="http://tarskitheme.com/">Tarski</a>', 'tarski'); if (detectWPMU()) { echo ' | ' . sprintf(__('Hosted by %s', 'tarski'), '<a href="http://' . $current_site->domain . $current_site->path . '">' . $current_site->site_name . '</a>'); } ?> </p> </div>
<div class="postbox"> <h3><?php _e('Tarski Updates', 'tarski'); ?> </h3> <div class="inside"> <?php echo tarski_update_notifier(); ?> <?php if (!detectWPMU() || detectWPMUadmin()) { ?> <?php if (can_get_remote()) { ?> <label for="update-on"><input type="radio" id="update-on" name="update_notification" value ="on" <?php if (get_tarski_option('update_notification')) { echo 'checked="checked" '; } ?> /> <?php _e('Update notification on (recommended)', 'tarski'); ?> </label> <label for="update-off"><input type="radio" id="update-off" name="update_notification" value ="off" <?php if (!get_tarski_option('update_notification')) { echo 'checked="checked" '; } ?>
} ?> /> <?php } } } ?> </div> <p><?php printf(__('Choose a header image by clicking on it. The current image is the %s one.', 'tarski'), '<span class="highlight">' . __('highlighted', 'tarski') . '</span>'); ?> </p> <?php if (!detectWPMU()) { ?> <div class="tip"> <p><?php printf(__('You can upload your own header images (.gif, .jpg or .png) to %s.', 'tarski'), '<code>wp-content/themes/' . get_template() . '/headers/</code>'); ?> </p> <p><?php printf(__('Make sure that you upload a thumbnail file as well. If your image is named %1$s, the corresponding thumbnail file should be named %2$s.', 'tarski'), '<code>' . __('example', 'tarski') . '.jpg</code>', '<code>' . __('example', 'tarski') . '-thumb.jpg</code>'); ?> </p> </div> <?php } ?> </div></div>
/** * detectWPMUadmin() - Detect whether the current user is a WPMU site administrator. * * @since 2.0 * @return boolean */ function detectWPMUadmin() { if (detectWPMU()) { return is_site_admin(); } }