/[drupal]/contributions/themes/mobi/template.php
ViewVC logotype

Diff of /contributions/themes/mobi/template.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by deekayen, Mon Apr 16 21:40:08 2007 UTC revision 1.1.4.1 by deekayen, Fri Jun 12 21:45:14 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2    // $Id$
3    
4  /**  /**
5   * @return string   * @return string
# Line 9  function phptemplate_breadcrumb($breadcr Line 10  function phptemplate_breadcrumb($breadcr
10          }          }
11          return '';          return '';
12  }  }
13    
14    /**
15     * Override formatting of primary and secondary links.
16     *
17     * @return string
18     */
19    function phptemplate_links($links) {
20      $output = '';
21    
22      if (count($links) > 0) {
23        $num_links = count($links);
24        $i = 1;
25    
26        foreach ($links as $link) {
27          $html = isset($link['html']) && $link['html'];
28    
29          $link['query'] = isset($link['query']) ? $link['query'] : NULL;
30          $link['fragment'] = isset($link['fragment']) ? $link['fragment'] : NULL;
31    
32          if (isset($link['href'])) {
33            $output .= l($link['title'], $link['href'], array(
34              'attributes' => array('accesskey' => $i),
35              'query' => $link['query'],
36              'fragment' => $link['fragment'],
37              'absolute' => FALSE,
38              'html' => $html)
39            );
40          }
41          else if ($link['title']) {
42            if (!$html) {
43              $link['title'] = check_plain($link['title']);
44            }
45            $output .= $link['title'];
46          }
47          $output .= ' | ';
48          $i++;
49        }
50      }
51      return empty($output) ? '' : substr($output, 0, -3);
52    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.4.1

  ViewVC Help
Powered by ViewVC 1.1.3