本文整理汇总了PHP中wp_register函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_register函数的具体用法?PHP wp_register怎么用?PHP wp_register使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wp_register函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: pickle_top_utility
function pickle_top_utility()
{
//the utility html starts here
?>
<div class="top_container">
<div class="top_container_content">
<div id="login">
<span class="loginout"><?php
wp_loginout();
?>
</span>
<span class="register"><?php
wp_register('| ', '');
?>
</span>
</div>
<div id="greeting">
<p>Please tell us what pickle pleases you. <span style="color:red;">Join Here</span></p>
</div>
<div class="search_form_container">
<?php
get_search_form();
?>
</div>
</div>
</div>
<?php
//the utility html ends here
}
开发者ID:jhgreenblatt,项目名称:Pickle--Please,代码行数:29,代码来源:functions.php
示例2: widget_chaostheory_meta
function widget_chaostheory_meta($args)
{
extract($args);
if (empty($title)) {
$title = __('Meta', 'chaostheory');
}
?>
<?php
echo $before_widget;
?>
<?php
echo $before_title . $title . $after_title;
?>
<ul>
<?php
wp_register();
?>
<li><?php
wp_loginout();
?>
</li>
<?php
wp_meta();
?>
</ul>
<?php
echo $after_widget;
}
开发者ID:darrylivan,项目名称:caraccidentlawyerflagstaff.com,代码行数:28,代码来源:widgets.php
示例3: get_sidebar
function get_sidebar($index)
{
if (!dynamic_sidebar($index)) {
if (!dynamic_sidebar('Default Sidebar')) {
?>
<div class="sidebarbox widget_meta">
<h3 class="sidebar-title"><span>Meta</span></h3>
<ul>
<?php
wp_register();
?>
<li><?php
wp_loginout();
?>
</li>
<?php
wp_meta();
?>
</ul>
</div>
<?php
}
}
}
开发者ID:rajveerbeniwal,项目名称:rooms-dhkh,代码行数:26,代码来源:sidebar-generator.php
示例4: widget_simple_login
function widget_simple_login($args)
{
extract($args);
$options = get_option('widget_simple_login');
$title = apply_filters('widget_title', $options['title']);
switch ($options['redirectto']) {
case "site":
$redirect = "/";
break;
case "custom":
$redirect = $options['customredirect'];
break;
case "actual":
$redirect = $_SERVER['REQUEST_URI'];
break;
case "admin":
//default setting
//default setting
default:
$redirect = "";
}
echo $before_widget;
echo $before_title . $title . $after_title;
echo "\t<ul>\n\t\t";
wp_register();
echo "\n\t\t<li>";
wp_loginout($redirect);
echo "</li>\n\t</ul>\n";
echo $after_widget;
}
开发者ID:sriram911,项目名称:pls,代码行数:30,代码来源:simple_login.php
示例5: widget
/**
* create the widget's public face
*/
public function widget($args, $instance)
{
if (!isset($instance['title'])) {
$instance['title'] = '';
}
$text = __('Admin', 'teaberry');
$title = $instance['title'] == '' ? $text : $instance['title'];
$title = apply_filters('widget_title', $title);
/* before and after widget args */
echo $args['before_widget'];
if (!empty($title)) {
echo $args['before_title'] . $title . $args['after_title'];
}
echo '<ul>';
echo wp_register('<li>', '</li>', false);
$redirect = is_home() ? false : get_permalink();
/* show different link based on user status */
if (is_user_logged_in()) {
$url = wp_logout_url($redirect);
$text = __('Logout', 'teaberry');
echo '<li><a href="' . $url . '" title="Logout">' . $text . '</a></li>';
} else {
$url = wp_login_url($redirect);
$text = __('Login', 'teaberry');
echo '<li><a href="' . $url . '" title="Login">' . $text . '</a></li>';
}
echo '</ul>';
echo $args['after_widget'];
}
开发者ID:honeymustard,项目名称:teaberry,代码行数:32,代码来源:widgets.php
示例6: widget_thematic_meta
function widget_thematic_meta($args)
{
extract($args);
if (empty($title)) {
$title = __('Meta', 'thematic');
}
?>
<?php
echo $before_widget;
?>
<?php
echo thematic_before_title() . $title . thematic_after_title();
?>
<ul>
<?php
wp_register();
?>
<li><?php
wp_loginout();
?>
</li>
<?php
wp_meta();
?>
</ul>
<?php
echo $after_widget;
}
开发者ID:sandesh247,项目名称:sandesh247.com,代码行数:28,代码来源:widgets.php
示例7: ons_display_open_header
function ons_display_open_header()
{
?>
<div class="loginout">
<span><?php
wp_loginout($redirect);
?>
</span>
<span> | </span>
<span><?php
wp_register('', '');
?>
</span>
</div>
<!-- header links -->
<div style="position: absolute; top: 25px;">
<img id="Image-Maps_7201206261231527" src="/wp-content/uploads/2012/06/transparent.png"" usemap="#Image-Maps_7201206261231527" border="0" width="1000" height="100" alt="">
<map id="_Image-Maps_7201206261231527" name="Image-Maps_7201206261231527">
<area shape="rect" coords="5,25,188,115" href="http://neighbourhoodstudy.ca/" alt="Ottawa Neighbourhood Study" title="Ottawa Neighbourhood Study">
<area shape="rect" coords="197,53,348,120" href="http://ottawa.ca/en/health_safety/about/oph/index.html" alt="Ottawa Public Health" title="Ottawa Public Health">
<area shape="rect" coords="353,53,477,120" href="http://www.uottawa.ca/" alt="University of Ottawa" title="University of Ottawa">
<area shape="rect" coords="478,53,622,120" href="http://www.coalitionottawa.ca" alt="Coalition of Community and Health" title="Coalition of Community and Health">
<area shape="rect" coords="622,53,715,120" href="http://www.ibm.com" alt="IBM" title="IBM">
<area shape="rect" coords="716,53,844,120" href="http://www.champlainlhin.on.ca" alt="Champlain Local Health" title="Champlain Local Health">
<area shape="rect" coords="847,53,991,120" href="http://www.unitedway.org" alt="United Way" title="United Way">
</map>
</div>
<?php
}
开发者ID:neighbourhoodstudy,项目名称:ons-web,代码行数:32,代码来源:functions.php
示例8: widget
function widget($args, $instance)
{
extract($args);
$title = apply_filters('widget_title', $instance['title']);
$meta = $instance['meta'];
if (!is_user_logged_in() || is_user_logged_in() && $meta) {
echo $before_widget;
if ($title) {
echo $before_title . $title . $after_title;
}
if (!is_user_logged_in()) {
wp_connect();
} else {
$url = is_singular() ? get_permalink() : '';
?>
<ul>
<?php
wp_register();
?>
<li><?php
wp_loginout($url);
?>
</li>
</ul>
<?php
}
echo $after_widget;
}
}
开发者ID:liangwei1988,项目名称:wordpress,代码行数:29,代码来源:widget.php
示例9: suffusion_sbtab_meta
function suffusion_sbtab_meta()
{
echo '<ul>';
wp_register();
?>
<li><?php
wp_loginout();
?>
</li>
<li class="rss"><a href="<?php
bloginfo('rss2_url');
?>
" title="<?php
echo esc_attr(__('Syndicate this site using RSS 2.0', 'suffusion'));
?>
"><?php
_e('Entries <abbr title="Really Simple Syndication">RSS</abbr>', 'suffusion');
?>
</a></li>
<li class="rss"><a href="<?php
bloginfo('comments_rss2_url');
?>
" title="<?php
echo esc_attr(__('The latest comments to all posts in RSS', 'suffusion'));
?>
"><?php
_e('Comments <abbr title="Really Simple Syndication">RSS</abbr>', 'suffusion');
?>
</a></li>
<?php
wp_meta();
echo '</ul>';
}
开发者ID:kevinaxu,项目名称:99boulders,代码行数:33,代码来源:sidebar-tabs.php
示例10: widget
/**
* Widget
* Display the widget in the sidebar
* Save output to the cache if empty
*
* @param array sidebar arguments
* @param array instance
*/
public function widget($args, $instance)
{
extract($args);
// Print the widget wrapper
echo $before_widget;
if (is_user_logged_in()) {
// Get current user instance
global $current_user;
// Print title
$title = $instance['title_user'] ? $instance['title_user'] : __('Hey %s!', 'jigoshop');
if ($title) {
echo $before_title . sprintf($title, ucwords($current_user->display_name)) . $after_title;
}
// Create the default set of links
$links = apply_filters('jigoshop_widget_logout_user_links', array(__('My Account', 'jigoshop') => get_permalink(jigoshop_get_page_id('myaccount')), __('Change Password', 'jigoshop') => get_permalink(jigoshop_get_page_id('change_password')), __('Logout', 'jigoshop') => wp_logout_url(home_url())));
} else {
// Print title
$title = $instance['title_guest'] ? $instance['title_guest'] : __('Login', 'jigoshop');
if ($title) {
echo $before_title . $title . $after_title;
}
do_action('jigoshop_widget_login_before_form');
// Get redirect URI
$redirect_to = apply_filters('jigoshop_widget_login_redirect', get_permalink(jigoshop_get_page_id('myaccount')));
$fields = array();
// Support for other plugins which uses GET parameters
$fields = apply_filters('jigoshop_get_hidden_fields', $fields);
echo "<form action='" . esc_url(wp_login_url($redirect_to)) . "' method='post' class='jigoshop_login_widget'>";
foreach ($fields as $key => $value) {
echo '<input type="hidden" name="' . $key . '" value="' . $value . '" />';
}
// Username
echo "\n\t\t\t<p>\n\t\t\t\t<label for='log'>" . __('Username', 'jigoshop') . "</label>\n\t\t\t\t<input type='text' name='log' id='log' class='input-text username' />\n\t\t\t</p>\n\t\t\t";
// Password
echo "\n\t\t\t<p>\n\t\t\t\t<label for='pwd'>" . __('Password', 'jigoshop') . "</label>\n\t\t\t\t<input type='password' name='pwd' id='pwd' class='input-text password' />\n\t\t\t</p>\n\t\t\t";
echo "\n\t\t\t<p>\n\t\t\t\t<input type='submit' name='submit' value='" . __('Login', 'jigoshop') . "' class='input-submit' />\n\t\t\t\t<a class='forgot' href='" . esc_url(wp_lostpassword_url($redirect_to)) . "'>" . __('Forgot it?', 'jigoshop') . "</a>\n\t\t\t</p>\n\t\t\t";
if (Jigoshop_Base::get_options()->get('jigoshop_enable_signup_form') == 'yes') {
echo '<p class="register">';
wp_register(__('New user?', 'jigoshop') . ' ', '');
echo '</p>';
}
echo "</form>";
do_action('jigoshop_widget_login_after_form');
$links = apply_filters('jigoshop_widget_login_user_links', array());
}
// Loop & print out the links
if ($links) {
echo "\n\t\t\t<nav role='navigation'>\n\t\t\t\t<ul class='pagenav'>";
foreach ($links as $title => $href) {
$href = esc_url($href);
echo "<li><a title='Go to {$title}' href='{$href}'>{$title}</a></li>";
}
echo "\n\t\t\t\t</ul>\n\t\t\t</nav>";
}
// Print closing widget wrapper
echo $after_widget;
}
开发者ID:ashik968,项目名称:digiplot,代码行数:65,代码来源:user_login.php
示例11: widget
function widget($args, $instance)
{
extract($args);
$title = apply_filters('widget_title', empty($instance['title']) ? __('Meta', 'tfuse') : $instance['title'], $instance, $this->id_base);
$before_widget = ' <div id="meta-' . $args['widget_id'] . '" class="widget-container widget_meta">';
$after_widget = '</div>';
$before_title = '<h3 class="widget-title">';
$after_title = '</h3>';
echo $before_widget;
$title = tfuse_qtranslate($title);
if ($title) {
echo $before_title . $title . $after_title;
}
?>
<ul>
<?php
wp_register();
?>
<li><?php
wp_loginout();
?>
</li>
<li><a href="<?php
bloginfo('rss2_url');
?>
" title="<?php
echo esc_attr(__('Syndicate this site using RSS 2.0', 'tfuse'));
?>
"><?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', 'tfuse'));
?>
"><?php
_e('Comments <abbr title="Really Simple Syndication">RSS</abbr>');
?>
</a></li>
<li><a href="http://wordpress.org/" title="<?php
echo esc_attr(__('Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'tfuse'));
?>
">WordPress.org</a></li>
<?php
wp_meta();
?>
</ul>
<?php
echo $after_widget;
}
开发者ID:shimion,项目名称:stlucks,代码行数:56,代码来源:TF_Widget_Meta.php
示例12: clp_display
/**
*
* Display the login form with shortcode
*
*/
public function clp_display()
{
$eol = "\n";
ob_start();
echo '<div class="a5_custom_login_container" style="margin: 5px; padding: 20px;">' . $eol;
if (!is_user_logged_in()) {
$formargs['redirect'] = isset(self::$options['redirect']) && !empty(self::$options['redirect']) ? self::$options['redirect'] : home_url($_SERVER['REQUEST_URI']);
$formargs['form_id'] = isset(self::$options['form_id']) && !empty(self::$options['form_id']) ? self::$options['form_id'] : 'loginform';
$formargs['label_username'] = isset(self::$options['label_username']) && !empty(self::$options['label_username']) ? self::$options['label_username'] : __('Username');
$formargs['label_password'] = isset(self::$options['label_password']) && !empty(self::$options['label_password']) ? self::$options['label_password'] : __('Password');
$formargs['label_remember'] = isset(self::$options['label_remember']) && !empty(self::$options['label_remember']) ? self::$options['label_remember'] : __('Remember Me');
$formargs['label_log_in'] = isset(self::$options['label_log_in']) && !empty(self::$options['label_log_in']) ? self::$options['label_log_in'] : __('Log In');
$formargs['id_username'] = isset(self::$options['id_username']) && !empty(self::$options['id_username']) ? self::$options['id_username'] : 'user_login';
$formargs['id_password'] = isset(self::$options['id_password']) && !empty(self::$options['id_password']) ? self::$options['id_password'] : 'user_pass';
$formargs['id_remember'] = isset(self::$options['id_remember']) && !empty(self::$options['id_remember']) ? self::$options['id_remember'] : 'rememberme';
$formargs['id_submit'] = isset(self::$options['id_submit']) && !empty(self::$options['id_submit']) ? self::$options['id_submit'] : 'wp-submit';
$formargs['remember'] = isset(self::$options['hide_remember']) && !empty(self::$options['hide_remember']) ? false : true;
$formargs['value_username'] = isset(self::$options['value_username']) && !empty(self::$options['value_username']) ? self::$options['value_username'] : NULL;
$formargs['value_remember'] = isset(self::$options['value_remember']) && !empty(self::$options['value_remember']) ? true : false;
if (isset(self::$options['title']) && !empty(self::$options['title'])) {
$title_tag = ' title="' . self::$options['title'] . '"';
}
if (isset(self::$options['logo']) && !empty(self::$options['logo'])) {
$img_tag = '<img src="' . self::$options['logo'] . '"' . $title_tag . ' />';
}
if (isset($img_tag)) {
echo isset(self::$options['url']) && !empty(self::$options['url']) ? '<a href="' . self::$options['url'] . '"' . $title_tag . '>' . $img_tag . '</a>' : $img_tag;
}
if (isset(self::$options['login_message']) && !empty(self::$options['login_message'])) {
echo self::$options['login_message'];
}
wp_login_form($formargs);
if (isset(self::$options['login_footer']) && !empty(self::$options['login_footer'])) {
echo self::$options['login_footer'];
}
} else {
wp_loginout(home_url());
echo ' | ';
wp_register('', '');
}
echo '</div>' . $eol;
$output = ob_get_contents();
if (!empty(self::$options['_login_form_top'])) {
$output = str_replace(self::$options['_login_form_top'], self::$options['login_form_top'], $output);
}
if (!empty(self::$options['_login_form'])) {
$output = str_replace(self::$options['_login_form'], self::$options['login_form'], $output);
}
if (!empty(self::$options['_login_form_bottom'])) {
$output = str_replace(self::$options['_login_form_bottom'], self::$options['login_form_bottom'], $output);
}
ob_end_clean();
return $output;
}
开发者ID:SayenkoDesign,项目名称:gogo-racing.com,代码行数:59,代码来源:CLP_ShortcodeClass.php
示例13: add_login_logout_link
function add_login_logout_link($items, $args)
{
$loginoutlink = wp_loginout('index.php', false);
if (!is_user_logged_in()) {
$registerlink = wp_register('', '', false);
$items .= '<li class="menu-item login">' . $loginoutlink . '</li>' . '<li class="menu-item register">' . $registerlink . '</li>';
} else {
$items .= '<li class="menu-item login">' . $loginoutlink . '</li>';
}
return $items;
}
开发者ID:kajidipes,项目名称:saedi-works,代码行数:11,代码来源:functions.php
示例14: widget
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
wp_register();
?>
<li><?php
wp_loginout();
?>
</li>
<li><a rel="nofollow" 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 rel="nofollow" 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 rel="nofollow" href="http://wordpress.org/" title="<?php
echo esc_attr(__('Powered by WordPress, state-of-the-art semantic personal publishing platform.'));
?>
">WordPress.org</a></li>
<?php
wp_meta();
?>
</ul>
<?php
echo $after_widget;
}
开发者ID:kitfrench,项目名称:Futurestep,代码行数:48,代码来源:class-meta-widget.php
示例15: widget_iblog_meta
function widget_iblog_meta()
{
?>
<!--sidebox start -->
<div id="meta" class="dbx-box">
<h3 class="dbx-handle"><?php
_e('Meta', TDOMAIN);
?>
</h3>
<div class="dbx-content">
<ul>
<?php
wp_register();
?>
<li class="login"><?php
wp_loginout();
?>
</li>
<?php
wp_meta();
?>
<li class="rss"><a href="<?php
bloginfo('rss2_url');
?>
"><?php
_e('Entries (RSS)', TDOMAIN);
?>
</a></li>
<li class="rss"><a href="<?php
bloginfo('comments_rss2_url');
?>
"><?php
_e('Comments (RSS)', TDOMAIN);
?>
</a></li>
<li class="wordpress"><a href="http://www.wordpress.org" title="<?php
_e('Powered by WordPress', TDOMAIN);
?>
">WordPress</a></li>
</ul>
</div>
</div>
<!--sidebox end -->
<?php
}
开发者ID:JustDevZero,项目名称:Wordpress,代码行数:46,代码来源:functions.php
示例16: widget
public function widget($args, $instance)
{
/** This filter is documented in wp-includes/default-widgets.php */
$title = apply_filters('widget_title', empty($instance['title']) ? __('Meta') : $instance['title'], $instance, $this->id_base);
echo $args['before_widget'];
if ($title) {
echo $args['before_title'] . $title . $args['after_title'];
}
?>
<ul>
<?php
wp_register();
?>
<li><?php
wp_loginout();
?>
</li>
<li><a href="<?php
bloginfo('rss2_url');
?>
"><?php
_e('Entries <abbr title="Really Simple Syndication">RSS</abbr>');
?>
</a></li>
<li><a href="<?php
bloginfo('comments_rss2_url');
?>
"><?php
_e('Comments <abbr title="Really Simple Syndication">RSS</abbr>');
?>
</a></li>
<?php
/**
* Filter the "Powered by WordPress" text in the Meta widget.
*
* @since 3.6.0
*
* @param string $title_text Default title text for the WordPress.org link.
*/
echo apply_filters('widget_meta_poweredby', sprintf('<li><a href="%s" title="%s">%s</a></li>', esc_url(__('https://wordpress.org/')), esc_attr__('Powered by WordPress, state-of-the-art semantic personal publishing platform.'), _x('WordPress.org', 'meta widget link text')));
wp_meta();
?>
</ul>
<?php
echo $args['after_widget'];
}
开发者ID:Blair2004,项目名称:the-margo,代码行数:46,代码来源:widget.meta.php
示例17: ro_userpanel
function ro_userpanel($args)
{
global $user_identity, $user_email, $post, $wpdb;
extract($args);
$title = htmlspecialchars("User Panel");
echo $before_widget . $before_title . $title . $after_title;
if ($user_identity) {
echo '<p align="center">';
echo $user_identity;
echo '</p>';
echo '<ul>';
wp_register();
echo '<li><a href="' . get_option('siteurl') . '/wp-login.php?action=logout&redirect_to=' . get_option('home') . '" title="Logout">Logout</a></li></ul>';
wp_meta();
echo '</ul><br /><br />';
} else {
echo '
<p align="center">
<form name="loginform" id="loginform" action="' . get_option('siteurl') . '/wp-login.php" method="post">
<div>User Name</div>
<input type="text" name="log" id="log" value="" size="20" tabindex="1" />
<div>Password</div>
<input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" />
<div>Remember Me <input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" checked="checked" /><br /><input type="submit" name="submit" id="submit" value="Login" tabindex="4" /></div>
<div><a href="' . get_option('siteurl') . '/wp-register.php">Register</a></div>
<input type="hidden" name="redirect_to" value="' . get_option('home') . '" /></form></p>';
}
$todaydate = date('Y-m-d', time()) . '%';
$todayc = $wpdb->get_results("SELECT * FROM `wp_users` WHERE `user_registered` LIKE '{$todaydate}'");
$timestamp = strtotime("Yesterday");
$ytddate = date('Y-m-d', $timestamp) . '%';
$ytdc = $wpdb->get_results("SELECT * FROM `wp_users` WHERE `user_registered` LIKE '{$ytddate}'");
$get_latestacc = $wpdb->get_row("SELECT * FROM `wp_users` ORDER BY `wp_users`.`ID` DESC LIMIT 1");
$get_allwp = $wpdb->get_results("SELECT * FROM `wp_users` WHERE `wp_users`.`user_login` != 'admin'");
echo '
<h4>Membership</h4>
<ul>
<li><img src="' . get_option('siteurl') . '/wp-content/plugins/Ro-Module/images/ur-moderator.gif" alt="membership" title="Membership" /> Latest: <strong>' . $get_latestacc->user_login . '</strong></li>
<li><img src="' . get_option('siteurl') . '/wp-content/plugins/Ro-Module/images/ur-author.gif" alt="membership" title="Membership" /> Today: <strong>' . count($todayc) . '</strong></li>
<li><img src="' . get_option('siteurl') . '/wp-content/plugins/Ro-Module/images/ur-admin.gif" alt="membership" title="Membership" /> Yesterday: <strong>' . count($ytdc) . '</strong></li>
<li><img src="' . get_option('siteurl') . '/wp-content/plugins/Ro-Module/images/ur-guest.gif" alt="membership" title="Membership" /> Overall: <strong>' . count($get_allwp) . '</strong></li>
</ul>
';
echo $after_widget;
}
开发者ID:AtsutaneDotNet,项目名称:WP-RO-Module,代码行数:45,代码来源:Ro-Widget.php
示例18: login_form
public function login_form()
{
if ($_REQUEST['login'] == 'failed') {
echo " <strong>ERROR</strong>: Invalid username or incorrect password.";
}
if (!is_user_logged_in()) {
// Display WordPress login form:
$args = array('redirect' => wplfta_get_options('wplfta_after_login_link'), 'form_id' => 'loginform-wplfta', 'label_username' => __(wplfta_get_options('wplfta_user_txt')), 'label_password' => __(wplfta_get_options('wplfta_password_txt')), 'label_remember' => __(wplfta_get_options('wplfta_remember_me_text')), 'label_log_in' => __(wplfta_get_options('wplfta_submit_buton_text')), 'remember' => true);
wp_login_form($args);
} else {
// If logged in:
wp_loginout(home_url());
// Display "Log Out" link.
echo " | ";
wp_register('', '');
// Display "Site Admin" link.
}
}
开发者ID:artsmorgan,项目名称:roiWP,代码行数:18,代码来源:class.php
示例19: widget
function widget($args, $instance)
{
extract($args);
$title = apply_filters('widget_title', empty($instance['title']) ? __('Meta', 'suffusion') : $instance['title']);
echo $before_widget;
if ($title) {
echo $before_title . $title . $after_title;
}
?>
<ul>
<?php
wp_register();
?>
<li><?php
wp_loginout();
?>
</li>
<li class="rss"><a href="<?php
bloginfo('rss2_url');
?>
" title="<?php
echo esc_attr(__('Syndicate this site using RSS 2.0', 'suffusion'));
?>
"><?php
_e('Entries <abbr title="Really Simple Syndication">RSS</abbr>', 'suffusion');
?>
</a></li>
<li class="rss"><a href="<?php
bloginfo('comments_rss2_url');
?>
" title="<?php
echo esc_attr(__('The latest comments to all posts in RSS', 'suffusion'));
?>
"><?php
_e('Comments <abbr title="Really Simple Syndication">RSS</abbr>', 'suffusion');
?>
</a></li>
<?php
wp_meta();
?>
</ul>
<?php
echo $after_widget;
}
开发者ID:jpsutton,项目名称:suffusion,代码行数:44,代码来源:suffusion-meta.php
示例20: meta_sidebar_module
function meta_sidebar_module($args)
{
extract($args);
echo $before_module . $before_title . $title . $after_title;
?>
<ul>
<?php
wp_register();
?>
<li><?php
wp_loginout();
?>
</li>
<li><a href="<?php
bloginfo('rss2_url');
?>
" title="<?php
_e('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
_e('The latest comments to all posts in RSS');
?>
"><?php
_e('Comments <abbr title="Really Simple Syndication">RSS</abbr>');
?>
</a></li>
<li><a href="http://wordpress.org/" title="<?php
_e('Powered by Wordpress, state-of-the-art semantic personal publishing platform.');
?>
">WordPress</a></li>
<?php
wp_meta();
?>
</ul>
<?php
echo $after_module;
}
开发者ID:64kbytes,项目名称:stayinba,代码行数:44,代码来源:meta.php
注:本文中的wp_register函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论