UW 2014 "Boundless" Wordpress theme
Clone or download
Permalink
Failed to load latest commit information.
assets Merge pull request #104 from uweb/Contact-Widget-Fix Aug 6, 2018
docs updated ReadMe / documentation processor ShowDown to 1.8.6 Aug 2, 2018
inc Added comment to template functions Jun 26, 2018
js defaulting youtube shortcode to rel=0 Sep 19, 2018
less Change uw.search.less to show the dropdown menu on mobile search Aug 21, 2018
setup defaulting youtube shortcode to rel=0 Sep 19, 2018
templates Content Page Noheader Nov 16, 2017
widgets Merge pull request #104 from uweb/Contact-Widget-Fix Aug 6, 2018
.gitignore Adjusted UW widget cards to remove whitespace and CSS bug fixes Sep 15, 2015
404.php updated spacing on 404 page to test slack integration Apr 16, 2015
README.md Merge pull request #109 from uweb/tagboard-shortcode Aug 22, 2018
application.php added a template helper for the title and added a class based on the … Dec 3, 2014
archive.php Feature: adds catagory/tag title to the top of archive pages Jan 27, 2016
breadcrumbs.php Added mobile menu to homepages. Sep 29, 2014
comments.php Moving template files away from lorem ipsum Aug 12, 2014
content-archive.php Adjusted thumbnail on posts to be square Feb 24, 2016
content-image.php Feature: adds photo credit to image pages Oct 26, 2015
content-page-noheader.php Delete function_exists and just leave the function call Jun 27, 2018
content-page.php Delete function_exists and just leave the function call Jun 27, 2018
content-pdf.php Adjusted attachement page for PDFs to have a download button and adju… Apr 7, 2016
content.php Bug Fix: added support for coauthors plugin Mar 17, 2016
footer.php Change any instances of MyUW in the theme to the new url Aug 22, 2018
functions.php suppress_updates() fix Jul 10, 2018
gruntfile.js added uw.custom-link.js and modified gruntfile.js for UW-2014 Jun 26, 2017
header-image.php Setting URL scheme for background image. Dec 31, 2014
header.php Remove the aria-role from the Skip to Main Content link Sep 18, 2018
image.php removed unneeded uw-body-wrap div Nov 10, 2014
index.php changed index.php back to origin Jun 19, 2017
menu-mobile.php All menus use dropdown from front May 6, 2016
package-lock.json added class.uw-custom-link.php and uw.custom-link.less to UW-2014 Jun 26, 2017
package.json Mobile Sidebar Toggle Button Mar 6, 2017
page.php Mobile Sidebar Toggle Button Mar 6, 2017
screenshot.png CSS updates Sep 8, 2014
search.php Adjusted for no results on search, with new terminology May 18, 2015
searchform.php test end May 19, 2016
sidebar.php Adding post format gallery for posts that require no sidebar. Oct 2, 2014
style.css run grunt Aug 21, 2018
style.dev.css run grunt Aug 21, 2018
thinstrip.php fixed the issue of descriptive 'aia label' attribute. Jul 12, 2017
uw.css defaulting youtube shortcode to rel=0 Sep 19, 2018
uw.js defaulting youtube shortcode to rel=0 Sep 19, 2018

README.md

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)
  • readmore: Choose whether to show the "Read More" link or not. Options: on, off. (Default: on)

Example:

  [blogroll number=3 trim=true readmore='off']

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/embed/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)
  • color : Background color of the tiles. Options: tan (Default: none)
  • empty : (Add this to [tile], not [box]). If tile has no content, allow it to be transparent, but take up the normal amount of space. Options: true (_Default: false)

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. Changing the type will change how the calendar is displayed. A list of all spud types can be found here. (Default: none)
  • base : The full url of the desired base calendar. This can be embedded on your site with the spud type='main' (Default: none)
    [trumba name='my web name' type='desired spud type' base='teaser base url']

Example:

    [trumba name='sea_campus' type='main' base='https://www.washington.edu/calendar']

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)

Tagboard

This shortcode embeds a Tagboard feed onto the page. Tagboards that you wish to embed should already be embeddable. You can check that your Tagboard is embeddable by visiting the Tagboard's dashboard and looking for the embed icon.

Attributes:

  • slug : the ID of your Tagboard. This can be found by visiting your Tagboard's dashboard and looking for the 6-digit ID at the end of the url. (Default: none)
  • layout : the layout of the Tagboard. Options: grid, waterfall, carousel (Default: grid)
  • post-count : the number of posts to display (Default: 50)
  • mobile-count : the number of posts to display on mobile (Default: 50)
  • toolbar : whether or not the toolbar is displayed. Options: default, none. (Default: default)
  • feed-type : auto or default. Choosing auto will only show featured posts. If toolbar="default", choosing default will allow the user to show latest posts or featured posts. (Default: default)

Example:

      [tagboard slug="435487" layout="waterfall" post-count="30" mobile-count="15" toolbar="none" feed-type="auto"]

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+