function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', empty($instance['title']) ? __('Meta') : $instance['title'], $instance, $this->id_base); echo $before_widget; if ($title) { echo $before_title . $title . $after_title; } ?> <ul> <?php nxt_register(); ?> <li><?php nxt_loginout(); ?> </li> <li><a href="<?php bloginfo('rss2_url'); ?> " title="<?php echo esc_attr(__('Syndicate this site using RSS 2.0')); ?> "><?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?> </a></li> <li><a href="<?php bloginfo('comments_rss2_url'); ?> " title="<?php echo esc_attr(__('The latest comments to all posts in RSS')); ?> "><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?> </a></li> <li><a href="http://nxtclass.org/" title="<?php echo esc_attr(__('Powered by NXTClass, state-of-the-art semantic personal publishing platform.')); ?> ">NXTClass.org</a></li> <?php nxt_meta(); ?> </ul> <?php echo $after_widget; }
function widget($args, $instance) { //Get args and output the title extract($args); echo $before_widget; $title = apply_filters('widget_title', $instance['title']); if ($title) { echo $before_title . $title . $after_title; } //If logged in, show "Welcome, User!" if (is_user_logged_in()) { ?> <div style='text-align:center'> <?php $userdata = nxt_get_current_user(); echo __('Welcome') . ', ' . $userdata->display_name; ?> !<br /> <small> <a href="<?php echo get_option('siteurl'); ?> /nxt-admin/profile.php"><?php _e("Edit Profile"); ?> </a> | <a href=" <?php echo nxt_logout_url($_SERVER['REQUEST_URI']); ?> "><?php _e("Logout"); ?> </a> </small> </div> <?php //Otherwise, show the login form (with Facebook Connect button) } else { ?> <form name='loginform' id='loginform' action='<?php echo get_option('siteurl'); ?> /nxt-login.php' method='post'> <label>User:</label><br /> <input type='text' name='log' id='user_login' class='input' tabindex='20' /><input type='submit' name='nxt-submit' id='nxt-submit' value='Login' tabindex='23' /><br /> <label>Pass:</label><br /> <input type='password' name='pwd' id='user_pass' class='input' tabindex='21' /> <span id="forgotText"><a href="<?php echo get_option('siteurl'); ?> /nxt-login.php?action=lostpassword" rel="nofollow" ><?php _e('Forgot'); ?> ?</a></span><br /> <?php //echo "<input name='rememberme' type='hidden' id='rememberme' value='forever' />"; ?> <?php echo nxt_register('', ''); ?> <input type='hidden' name='redirect_to' value='<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?> ' /> </form> <?php global $opt_jfb_hide_button; if (!get_option($opt_jfb_hide_button)) { jfb_output_facebook_btn(); //jfb_output_facebook_init(); This is output in nxt_footer as of 1.5.4 //jfb_output_facebook_callback(); This is output in nxt_footer as of 1.9.0 } } echo $after_widget; }
<ul> <?php /* If this is the frontpage */ if (is_home() || is_page()) { ?> <?php nxt_list_bookmarks(); ?> <li><h2><?php _e('Meta'); ?> </h2> <ul> <?php nxt_register(); ?> <li><?php nxt_loginout(); ?> </li> <li><a href="http://validator.w3.org/check/referer" title="<?php esc_attr_e('This page validates as XHTML 1.0 Transitional'); ?> "><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?> </a></li> <li><a href="http://gmpg.org/xfn/"><abbr title="<?php esc_attr_e('XHTML Friends Network'); ?>