Example #1
0
    /**
     * @param array $args
     * @param array $instance
     */
    public function widget($args, $instance)
    {
        /** This filter is documented in hq-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 
        hq_register();
        ?>
			<li><?php 
        hq_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 HiveQueen" text in the Meta widget.
         *
         * @since 0.0.1
         *
         * @param string $title_text Default title text for the HiveQueen.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 HiveQueen, state-of-the-art semantic personal publishing platform.'), _x('HiveQueen.org', 'meta widget link text')));
        hq_meta();
        ?>
			</ul>
<?php 
        echo $args['after_widget'];
    }
Example #2
0
</h3>
					<ul>
						<?php 
        //TODO: Goyo no archives: hq_get_archives( array( 'type' => 'monthly' ) );
        ?>
					</ul>
				</aside>

				<aside id="meta" class="widget">
					<h3 class="widget-title"><?php 
        _e('Meta', 'hivequeen');
        ?>
</h3>
					<ul>
						<?php 
        hq_register();
        ?>
						<li><?php 
        hq_loginout();
        ?>
</li>
						<?php 
        //TODO: Goyo no meta: hq_meta();
        ?>
					</ul>
				</aside>

			<?php 
    }
    // end sidebar widget area
    ?>