本文整理汇总了PHP中wp_meta函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_meta函数的具体用法?PHP wp_meta怎么用?PHP wp_meta使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wp_meta函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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>';
}
示例2: 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
}
}
}
示例3: 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;
}
示例4: 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;
}
示例5: 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;
}
示例6: 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;
}
示例7: 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
}
示例8: 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'];
}
示例9: 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;
}
示例10: 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;
}
示例11: 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;
}
示例12: widget
function widget($args, $instance)
{
extract($args);
$title = apply_filters('widget_title', empty($instance['title']) ? __('Meta Slim', 'mtt') : $instance['title'], $instance, $this->id_base);
$link1_title = empty($instance['link1_title']) ? false : $instance['link1_title'];
$link1_url = empty($instance['link1_url']) ? false : $instance['link1_url'];
$link1 = '';
if ($link1_title) {
if ($link1_url) {
$link1 = '<li><a href="' . $link1_url . '">' . $link1_title . '</a></li>';
} else {
$link1 = '<li>' . $link1_title . '</li>';
}
}
echo $before_widget;
if ($title) {
echo $before_title . $title . $after_title;
}
?>
<ul>
<?php
echo $link1;
?>
<?php
wp_register();
?>
<li><?php
wp_loginout();
?>
</li>
<?php
wp_meta();
?>
</ul>
<?php
echo $after_widget;
}
示例13: 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>
<?php
wp_meta();
?>
</ul>
<?php
echo $after_widget;
}
示例14: widget
function widget($args, $instance)
{
extract($args);
$title = apply_filters('widget_title', empty($instance['title']) ? __('Meta', 'bear-bones') : $instance['title'], $instance, $this->id_base);
echo $before_widget;
if ($title) {
echo $before_title . $title . $after_title;
}
?>
<ul class="<?php
echo $id;
?>
-widget__list widget__list">
<?php
wp_register();
?>
<li class="<?php
echo $id;
?>
-widget__item widget__item"><?php
wp_loginout();
?>
</li>
<li class="<?php
echo $id;
?>
-widget__item widget__item"><a href="<?php
bloginfo('rss2_url');
?>
" title="<?php
echo esc_attr(__('Syndicate this site using RSS 2.0', 'bear-bones'));
?>
"><?php
_e('Entries <abbr title="Really Simple Syndication">RSS</abbr>', 'bear-bones');
?>
</a></li>
<li class="<?php
echo $id;
?>
-widget__item widget__item"><a href="<?php
bloginfo('comments_rss2_url');
?>
" title="<?php
echo esc_attr(__('The latest comments to all posts in RSS', 'bear-bones'));
?>
"><?php
_e('Comments <abbr title="Really Simple Syndication">RSS</abbr>', 'bear-bones');
?>
</a></li>
<li class="<?php
echo $id;
?>
-widget__item widget__item"><a href="<?php
esc_attr_e('http://wordpress.org/', 'bear-bones');
?>
" title="<?php
echo esc_attr(__('Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'bear-bones'));
?>
"><?php
/* translators: meta widget link text */
_e('WordPress.org', 'bear-bones');
?>
</a></li>
<?php
wp_meta();
?>
</ul>
<?php
echo $after_widget;
}
示例15: sidebarDefaultText
function sidebarDefaultText()
{
echo '<div class="one_third">' . "\n" . '<aside class="widget widget_search">';
get_search_form();
echo '</aside>' . "\n" . '</div>' . "\n" . '<div class="one_third">' . "\n" . '<aside id="archives" class="widget widget_archive">' . "\n" . '<h5 class="widgettitle">' . __('Archives', 'cmsmasters') . '</h5>' . "\n" . '<ul>' . "\n";
wp_get_archives(array('type' => 'monthly'));
echo '</ul>' . "\n" . '</aside>' . "\n" . '</div>' . "\n" . '<div class="one_third">' . "\n" . '<aside id="meta" class="widget widget_meta">' . "\n" . '<h5 class="widgettitle">' . __('Meta', 'cmsmasters') . '</h5>' . "\n" . '<ul>' . "\n\t";
wp_register();
echo "\n\t" . '<li>';
wp_loginout();
echo '</li>' . "\n\t";
wp_meta();
echo '<li>' . '<a href="';
bloginfo('rss2_url');
echo '" title="' . __('Syndicate this site using RSS 2.0', 'cmsmasters') . '">' . __('Entries', 'cmsmasters') . ' ' . '<abbr title="' . __('Really Simple Syndication', 'cmsmasters') . '">' . __('RSS', 'cmsmasters') . '</abbr>' . '</a>' . '</li>' . "\n\t" . '<li>' . '<a href="';
bloginfo('comments_rss2_url');
echo '" title="' . __('The latest comments to all posts in RSS', 'cmsmasters') . '">' . __('Comments', 'cmsmasters') . ' ' . '<abbr title="' . __('Really Simple Syndication', 'cmsmasters') . '">' . __('RSS', 'cmsmasters') . '</abbr>' . '</a>' . '</li>' . "\n\t" . '<li>' . '<a href="http://wordpress.org/" title="' . __('Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'cmsmasters') . '">WordPress.org</a>' . '</li>' . "\r" . '</ul>' . "\n" . '</aside>' . "\n" . '</div>' . "\n";
}