Giter VIP home page Giter VIP logo

edudirect-widget-client's Introduction

WordPress EDUDirect Widget

WordPress plugin to embed the EDUDirect Widget via shortcodes.

Requirements

  1. Bower v1.2+
  2. PHP v5.3+
  3. WordPress 3.6+

Installation

If your project does not use Bower yet, initialize it:

$ bower init

Choose a release version, and plug it in:

$ bower install --save [email protected]:CMN/wp-edudirect-widget.git\#~0.0.1

Now symlink the plugin into the WordPress plugins directory:

$ cd path/to/plugins
$ ln -s ../../../bower_components/wp-edudirect-widget/wp-edudirect-widget

If you'd like to auto-activate this plugin (among others), you can use Eric Clemmons' Auto-Activate WordPress Plugin Script.

Usage

Within posts, use the shortcode directly:

Lorem ipsum dolor sit amet, consectetur adipisicing elit.
[edudirect_widget]
Pariatur, quas, atque commodi voluptatum fugit ...

Or within templates wrap your shortcode:

<?php get_header() ?>

<h3>Quick Degree Finder</h3>

<?php echo do_shortcode('[edudirect_widget]'); ?>

This will:

  1. Immediately output the HTML template.
  2. Call wp_enqueue_script with the named script edudirect_widget.
  3. Call add_filter to wp_footer to append initialization script.

Examples

Default:

[edudirect_widget]

Embedded Custom Template:

[edudirect_widget]<form action="...">...</form>[/edudirect_widget]

Custom Template in the Theme:

[edudirect_widget template="inc/edudirect-widget.php"]

Defaulted Selections:

[edudirect_widget degree=2 category=1 subject=30]

edudirect-widget-client's People

Contributors

ericclemmons avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.