コード例 #1
0
ファイル: default-widgets.php プロジェクト: nxtclass/NXTClass
    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;
    }
コード例 #2
0
ファイル: sidebar.php プロジェクト: nxtclass/NXTClass
    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');
        ?>
"><?php 
        _e('XFN');
        ?>