'image', '#path' => $path, '#alt' => t('!site_name logo', array( '!site_name' => $site_name, )) ); return l(render($image), '', array( 'html' => TRUE, 'attributes' => array( 'id' => 'logo', 'rel' => 'home', 'title' => t('Return to the !site_name home page', array( '!site_name' => $site_name, )), ), )); } /** * Returns the rendered site name. * * @ingroup themeable */ function theme_blockify_site_name($variables) { $title = drupal_get_title(); $site_name = $variables['site_name']; // If there is no page title set for this page, use an h1 for the site name. $tag = ($title !== '') ? 'span' : 'h1'; $link = array( '#theme' => 'link', '#path' => '', '#text' => '' . $site_name . '', '#prefix' => '<' . $tag . ' id="site-name">', '#suffix' => '', '#options' => array( 'attributes' => array( 'title' => t('Return to the !site_name home page', array( '!site_name' => $site_name, )), 'rel' => 'home', ), 'html' => TRUE, ), ); return render($link); } /** * Returns the rendered site slogan. * * @ingroup themeable */ function theme_blockify_site_slogan($variables) { return '' . $variables['site_slogan'] . ''; } /** * Returns the rendered page title. * * @ingroup themeable */ function theme_blockify_page_title($variables) { if ($variables['page_title'] !== '') { $title_attributes_array = array( 'class' => array('title'), 'id' => array('page-title'), ); $title_attributes = drupal_attributes($title_attributes_array); return '' . $variables['page_title'] . ''; } } /** * Returns the rendered breadcrumb. * * @ingroup themeable */ function theme_blockify_breadcrumb($variables) { return theme('breadcrumb', $variables); } /** * Returns the rendered action items. * * @ingroup themeable */ function theme_blockify_local_actions($variables) { $actions = render($variables['menu_local_actions']); if (!empty($actions)) { return ''; } } /** * Returns the rendered feed icons. * * @ingroup themeable */ function theme_blockify_feed_icons($variables) { return $variables['feed_icons']; } /** * Returns the rendered menu local tasks. * * @ingroup themeable */ function theme_blockify_menu_local_tasks($variables) { $tabs = theme('menu_local_tasks', $variables); if (!empty($tabs)) { return '
' . $tabs . '
'; } }