WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Hull.io

The Hull plugins makes it easy to integrate your wordpress blog with Hull.io and get social login, engagement features across all your websites

Authentication with hull.io

The plugin hooks the authentication mechanics of wordpress so the users can login with hull to your blog.

Simply add the following HTML to the login page of your theme so users can also login with hull:

<div data-hull-widget="identity@hull"></div>

Creating and using Widgets in your Theme

You can create widgets in individual javascript files inside your Theme.

Theme structure:

wp-content
└── themes
    └── my_theme
        ├── home.php
        ├── index.php
        ├── Hull
        │   └── widgets
        │       └── my_widget
        │           ├── main.js
        │           └── my_template.hbs
        ├── page.php
        └── single.php

wp-content/themes/my-theme/hull/my_widget/my_template/my_widget.hbs

Hello from my widget

and then, to use this widget inside your views :

<?php hull_widget('my_widget') ?>
=> <div data-hull-widget='my_widget'></div>

Widgets Helpers

hull_widget($name, $options=array(), $tagName = "div", $placeholder="")

  • $name: The widget's name
  • $options: array(key => val) translated to data-hull-$key="$val"
  • $tagName: name of the wrapping tag
  • $placeholder: Initial content placed inside your widget before first rendering

example

<?php hull_widget('identity', array('provider' => 'facebook')) >

hull_comments_widget($post_id, $options=array())

  • $post_id: the id of the WordPress post you want to display the comments for.
  • $options: same as hull_widget

example

<?php hull_comments_widget($post->ID) ?>

hull_reviews_widget($post_id, $options=array())

  • $post_id: the id of the WordPress post you want to display the reviews for.
  • $options: same as hull_widget

example

<?php hull_reviews_widget($post->ID) ?>

Requires: 3.0.1 or higher
Compatible up to: 3.4.2
Last Updated: 2013-9-23
Downloads: 164

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.