/[drupal]/contributions/themes/MyTree/drupal5_methods.php
ViewVC logotype

Contents of /contributions/themes/MyTree/drupal5_methods.php

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


Revision 1.1 - (show annotations) (download) (as text)
Sat Jun 20 15:50:36 2009 UTC (5 months, 1 week ago) by vigilianty
Branch: MAIN
CVS Tags: DRUPAL-6--1-1, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
*** empty log message ***
1 <?php
2
3 /* Drupal 5 methods definitons */
4
5 function MyTree_regions() {
6 return array(
7 'right' => t('Right sidebar'),
8 'content' => t('Content'),
9 'navigation' => t('Menu'),
10 'banner1' => t('Banner 1'),
11 'banner2' => t('Banner 2'),
12 'banner3' => t('Banner 3'),
13 'banner4' => t('Banner 4'),
14 'banner5' => t('Banner 5'),
15 'banner6' => t('Banner 6'),
16 'user1' => t('User 1'),
17 'user2' => t('User 2'),
18 'user3' => t('User 3'),
19 'user4' => t('User 4'),
20 'copyright' => t('Copyright'),
21 'top1' => t('Top 1'),
22 'top2' => t('Top 2'),
23 'top3' => t('Top 3'),
24 'bottom1' => t('Bottom 1'),
25 'bottom2' => t('Bottom 2'),
26 'bottom3' => t('Bottom 3'));
27 }
28
29 function _phptemplate_variables($hook, $vars) {
30 if ($hook == 'page') {
31 drupal_add_js(path_to_theme() .'/script.js', 'theme');
32 $vars['scripts'] = drupal_get_js();
33 return $vars;
34 }
35 return array();
36 }
37
38 function MyTree_breadcrumb($breadcrumb) {
39 return art_breadcrumb_woker($breadcrumb);
40 }
41
42 function MyTree_comment_wrapper($content, $type = null) {
43 return art_comment_woker($content, $type = null);
44 }
45
46 function MyTree_menu_local_tasks() {
47 return art_menu_local_tasks();
48 }
49
50 /**
51 * Generate the HTML representing a given menu item ID as a tab.
52 *
53 * @param $mid
54 * The menu ID to render.
55 * @param $active
56 * Whether this tab or a subtab is the active menu item.
57 * @param $primary
58 * Whether this tab is a primary tab or a subtab.
59 *
60 * @ingroup themeable
61 */
62 function MyTree_menu_local_task($mid, $active, $primary) {
63 $link = menu_item_link($mid, FALSE);
64 return '<a href="?q='.$link['href'].'" class="Button">'
65 .'<span class="btn">'
66 .'<span class="l"></span>'
67 .'<span class="r"></span>'
68 .'<span class="t">'.$link['title'].'</span>'
69 .'</span>'
70 .'</a>';
71 }

  ViewVC Help
Powered by ViewVC 1.1.2