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

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

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


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

  ViewVC Help
Powered by ViewVC 1.1.2