/**
  * Return the post URL.
  *
  * @uses get_url_in_content() to get the URL in the post meta (if it exists) or
  * the first link found in the post content.
  *
  * Falls back to the post permalink if no URL is found in the post.
  *
  * @since 1.0.0
  *
  * @return string The Link format URL.
  */
 function shrake_get_link_url()
 {
     return shrake_theme()->post_media->get_link_url();
 }
/**
 * Set up theme defaults and registers support for various WordPress features.
 *
 * @since 2.0.0
 */
function shrake_setup_page_types()
{
    // Add support for page types and get the theme object.
    $page_types = shrake_theme()->page_types->add_support();
    // Register the grid page template.
    $page_types->register('grid', array('archive_template' => 'templates/archive-grid.php', 'single_template' => 'templates/single-grid.php'));
    // Register the list page template.
    $page_types->register('list', array('archive_template' => 'templates/archive-list.php', 'single_template' => 'templates/single-list.php'));
}
/**
 * Adds custom classes to the array of post classes.
 *
 * @since 1.0.0
 *
 * @param array $classes Classes for the post element.
 * @return array
 */
function shrake_post_classes($classes)
{
    $classes[] = shrake_theme()->archive_content->get_mode();
    return array_unique($classes);
}