# functions.php

The brains behind this theme. Start here to figure things out.

Package
  ncp\wp\themes\planet_foundation
Since
  Planet Foundation 1.0

## Functions

`pf_add_custom_image_to_media( $sizes) : array`

Adds custom size to media editor

Parameters

Name | Type | Description
--- | --- | ---
$sizes |  | size of custom thumbnail

Returns

Type | Description
--- | ---
array | Modified size array

`pf_add_image_size() : void`

Adds another image size to the media upload options

`pf_add_schema_org_doctype(string $output) : string`

Adds itemscope for schema.org

Parameters

Name | Type | Description
--- | --- | ---
$output | string | lanaguage attributes for page or post so far

Returns

Type | Description
--- | ---
string | itemscope for schema.org

`pf_baw_hack_wp_title_for_home(string $title) : string`

For custom home pages when wp_title does not return anything

Parameters

Name | Type | Description
--- | --- | ---
$title | string | Title generated for page or post so far

Returns

Type | Description
--- | ---
string | $title Title for page

`pf_load_foundation() : void`

Load foundation libraries

Documentation was generated by phpDocumentor 2.3.0 .