Skip to content

jh1uw/uw-2014

 
 

Repository files navigation

UW 2014 Theme

The UW 2014 Theme is available to anyone wishing to apply the Boundless UW brand to their website.
This is an overview of the custom widgets, plugins and various features it includes.

Table of contents


Quick Start


Download the UW 2014 theme into the wp-content/themes folder of your local WordPress install. Next, log into the WordPress dashboard and go the Appearance -> Themes page. From here you can activate the UW 2014 theme.

Bugs and feature requests


All bugs and feature requests can be issued at the UW Web Team's GitHub account or emailed directly to the UW web team at uweb@uw.edu.

Widgets


UW Blogroll

Display the most recent posts on your blog.

Options:

  • Title : The title of the widget (Default: Blogroll)
  • Excerpt : Uses the excerpt for text if it exists in the post (Default: true)
  • Image : Uses the featured image in the respective post (Default: hide)
  • Author : Shows the authro (Default: show)
  • Post type : Pulls a specific post type (Default: post)
  • Category : Pulls from a category ID (Default: none)
  • Category name : Pulls from a category name (Default: none)
  • Mini blogroll : Creates a minified version of the blogroll for tighter spaces (Default: false)
  • Date : Shows the published date (Default: show)
  • Number of posts to display : The number of post titles to show in the blogroll (Default: 2)

UW Campus Map

Embed the location of a UW campus building on your page using the UW branded campus map.

Options:

  • Title : The title of the widget (Default: None)
  • Building code : The UW campus building code for the desired building to embed, ie: 'kne' for Kane Hall. (Default: None)

UW Recent Posts

Similar to the default WordPress widget Recent Posts but with different options and layout.

Options:

  • Title : The title of the widget (Default: None)
  • Number of posts to display : The number of posts to show (Default: 1)
  • Display more link : Display an anchor tag that links to the blogroll page (Default: false)

UW Related Posts

Uses the WordPress JetPack API to show a list of posts related to the one currently being views.
Requires the JetPack Plugin to be installed otherwise it will not appear in the Widgets admin area.

Options:

  • Title : The title of the widget (Default: None)

Requires the JetPack Plugin to be installed.

UW RSS

Similar to the WordPress RSS widget except with a branded layout that displays RSS images.

Options:

  • Title : The title of the widget (Default: None)
  • Blurb : A small blurb that is shown before the RSS feed (Default: None)
  • RSS URL : The URL of the RSS feed to display (Default: None)
  • Number of items to display : The number of items in the RSS feed to display (Default: 10)

UW Single Image

Displays a single image with a blurb of text below it.

Options:

  • Title : The title of the widget (Default: Image Widget)
  • Select an image : Select an image from the WordPress media library (Default: None)
  • Featured text : A small blurb that is shown below the image (Default: None)
  • Link : A URL for the More link text (Default: None)
  • More link : The text to display in the more link (Default: Read more)

UW Top Posts

Shows the most popular posts on your blog.

Options:

  • Title : The title of the widget (Default: Image Widget)
  • Number of items to display : The number of items in the RSS feed to display (Default: 1)

Requires JetPack to be installed.

UW Twitter

Shows the latest tweets from a specific Twitter account.

Options:

  • Title : The title of the widget (Default: UW Twitter Feed)
  • Screen name : The title of the widget (Default: twitter_)
  • Number of tweets to show: The number of items in the RSS feed to display (Default: 5)

In order to have the widget display in the widgets a TWITTER_OAUTH_TOKEN constant must be defined in your wp-config.php file.
Requires a Twitter API key.

UW Contact Card

Displays a multiple list of contacts for the group/department.

Options:

  • Title : The title of the widget (Default: Contact us)
  • Name : The person's name (Default: None)
  • Title : The person's job title (Default: None)
  • Phone number : The person's phone number (Default: None)
  • Email : The person's email (Default: None)

UW Image Card

Displays one of three styles of branded card. Both text and image can be customized.

Options:

  • Title : The title of the widget (Default: Image Widget)
  • Select an image : Select an image from the WordPress media library (Default: None)
  • Featured text : A small blurb that is shown below or on top of the image (Default: None)
  • Link : A URL for the More link text (Default: None)
  • More link : The text to display in the more link (Default: Read more)
  • Card style : Choose one of three styles (Default: None)

Shortcodes


Button

Displays a branded call to action button. See some examples.

Attributes:

  • color : The color of the button. Options: gold or gray (Default: gray)
  • type: Adjusts the image of the button. Options: plus, go, external, play (Default: go)
  • small: Adjusts the size of the button. Options: small, large (Default: large)
  • url: The URL where the button links to (Default: None)

Example:

  [button color=gold type=plus small=true url="http://uw.edu"]Button Text[/button]`

Blogroll

This is a shortcode that wraps the WordPress get_posts function and templates out a blogroll. Any parameter you can pass to get_posts will be understood along with the following.

Attributes:

  • excerpt : Choose whether to show the excerpt in the blogroll. Options: show, hide. (Default: hide)
  • trim : Whether or not to trim the words via WordPress wp_trim_words function. Options: true, false. (_Default: _false)
  • image: Choose whether to show the featured image thumbnail. Options: show, hide. (Default: hide)
  • author: Choose whether to show the author. Options: show, hide. (Default: show)
  • date: Choose whether to show the publish date. Options: show, hide. (Default: show)
  • titletag: The html element for the post titles. (Default: h2)
  • post_type: The post type to look for.(Default: post)
  • number: The maximum number of results to return (Default: 5)
  • mini: Use the miniture template instead of the default one. (Default: false)
  • category: The WordPress category ID to limit the results from. (Default: None)
  • category_name: The WordPress category name to limit the results from. (Default: None)

Example:

  [blogroll number=3 trim=true]

iFrame

Embed iframes into your post or page content without adjusting WordPress privileges.
The iframe url is tested against a list of allowed domains. If the domain is not in the list the iframe will not render.

Attributes:

  • src : The source URL of the embedded iframe (Default: none)
  • height : The width of the embedded iframe (_Default: WordPress's embed size width setting )
  • width : The height of the embedded iframe (_Default: WordPress's embed size height setting )

Example:

    [iframe src="https://www.youtube.com/watch?v=0h33Y9Zw8oQ" height="500" width="700"]

Allowed domains:

  uw.edu,
    washington.edu,
    uwtv.org,
    tvw.org,
    google.com,
    youtube.com,
    excition.com,
    pgcalc.com,
    matchinggifts.com,
    docs.google.com,
    surveygizmo.com,
    uwregents.wufoo.com,
    depts.washington.edu,
    online.gifts.washington.edu,
    secure.gifts.washington.edu,
    payroll.gifts.washington.edu,
    helperapps.gifts.washington.edu,

Intro

This shortcode creates an italicized block of introduction text for the content.

No attributes.

Example:

  [intro] A block on introductory text for the content. [/intro]

RSS

This is a shortcode embeds an RSS blogroll into the body content. It behaves similarly to the UW RSS Widget.

Attributes:

  • url : The URL to parse for the RSS feed. (Default: None)
  • number: The maximum number of results to return (Default: 5)
  • title: The title for the RSS blogroll in the content (Default: None)
  • heading: The html element for the post titles. (Default: h3)
  • show_image: Choose whether to show the RSS thumbnail. Options: true, false. (Default: true)
  • show_date: Choose whether to show the publish date. Options: true, false. (Default: true)
  • show_more: Choose whether to show the author. Options: true, false. (Default: true)

Example:

  [rss url="http://www.washington.edu/marketing/topic/wordpress/feed" number=3 title="Web Team Updates" heading="h2" show_image="false" show_date="false"]

Tile box

Display branded tiles to structure content in elegantly. See an example of tiles here.
Each tile is setup as a series of shortcodes wrapped in [box] shortcode.

Attributes:

  • alignment : How the text is aligned in each tile. Options: centered or none (Default: none)

Example:

[box alignment=centered]
    [tile] Text for tile one [/tile]
    [tile] Text for tile two [/tile]
    [tile] Text for tile three [/tile]
    [tile] Text for tile four [/tile]
  [/box]

Trumba

Display a Trumba calendar spud in the post or page content.

Attributes:

  • name : Required Trumba web name of the desired calendar (Default: none)
  • type : The Trumba spud type of the desired calendar (Default: none)
  • base : The Trumba teaser base url of the desired calendar (Default: none)

Example:

    [trumba name='my web name' type='desired spud type' base='teaser base url']

Twitter

This is a shortcode embeds a Twitter feed for a desired username. It behaves similarly to the UW Twitter Widget.

Attributes:

  • Title : The title of the widget (Default: UW Twitter Feed)
  • Screen name : The title of the widget (Default: twitter_)
  • Number of tweets to show: The number of items in the RSS feed to display (Default: 5)

Example:

  [twitter title="Twitter feed" count=10 name=uw]

In order to have the shortcode display a TWITTER_OAUTH_TOKEN constant must be defined in your wp-config.php file.
Requires a Twitter API key.

YouTube

Embed a YouTube video or playlist into your post content.

Attributes:

  • type : Pick whether to display a single video or playlist. Options: single, playlist. (Default: None)
  • id : The youtube video or playlist id (Default: None)
  • max-results (OPTIONAL): The maximum number of results to return for a playlist (Default: None)

Example:

  [youtube type='playlist' id='PLgNkGpnjFWo9CN_HeVtujhMnUXK05iwgZ' max-results='10']

Slideshow

Embed a slideshow into your post content. Requires the UW Slideshow Plugin (https://github.com/uweb/uw-slideshow).

Attributes:

  • id : Enter the ID of the slideshow you have created via the Dashboard > Slideshows. (Default: None)
  • simple : The youtube video or playlist id (Default: None)

Example:

  [slideshow simple='true' id='1234']

Subpage List

This shortcode lists out all the subpages relative to the current page. There are two views this shortcode can render: list or grid. The list view displays all the subpages as anchor tags in an HTML list element. The grid view displays all the subpages as boxes, with their title, excerpt and author if available.

Attributes:

  • link : The text in the anchor tag that will link to the subpage (Default: Read more)
  • tilebox : Enable the grid layout of the subpages ( Default: false )

Example:

 [subpage-list link="More information here" tilebox=true ]

Accordion

This is an accessible version of the accordion menu based off of Nicolas Hoffmann's accessible jQuery accordion

Example:

  [accordion name='Accessible Accordion']
    [section title='Example'] Section[/section]
    [section title='Example'] Section[/section]
    [section title='Example'] Section[/section]
   [/accordion]

Custom Menu

This shortcode pulls in a custom menu that can be created under Dashboard > Appearance > Menus. Icons can be added in the class field in the menu builder. View the full set of icons for more information.

Example:

  [custommenu menu=Menu-name-here]

Attributes:

  • menu : Enter the name of the menu found in Dashboard > Appearance > Menus. (Default: Main menu)

Features


UW Widget Visibility

This feature provides granular control over where each widget appears on your site. It is based on the JetPack Widget Visibilityj plugin and allows you to choose specific pages, authors, categories etc. to show a widget on. Follow the link for a brief tutorial on its usage.

UW Media Credit

This feature allows images to have author credits next to them. When an image is selected in the Media Library a field for Media Credit will appear next to its other attributes. This credit will always appear after the image caption.

Creators


Dane Odekirk
Jon Swanson
Kilian Frey

Contributors


Ben Erickson

License


GPL-2.0+

About

UW 2014 "Boundless" Wordpress theme

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 54.9%
  • CSS 31.8%
  • PHP 12.9%
  • HTML 0.4%