forked from betovarg/Drupal-Skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.php
More file actions
22 lines (17 loc) · 710 Bytes
/
template.php
File metadata and controls
22 lines (17 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
function manatibase_feed_icon($url, $title) {
if ($image = theme('image', 'sites/all/themes/manatibase/images/feed-icon.png', t('Syndicate content'), $title)) {
return '<a href="'. check_url($url) .'" class="feed-icon">'. $image .'</a>';
}
}
function manatibase_preprocess_page(&$vars, $hook) {
$vars['right'] = theme('blocks', 'right');
// Add per content type pages - ejemplo page-article.tpl.php
if(isset($vars['node'])) {
// Add template naming suggestion. It should alway use hyphens.
$vars['template_files'][] = 'page-'. str_replace('_', '-', $vars['node']->type);
}
}
function manatibase_preprocess_node(&$vars, $hook) {
$vars['right'] = theme('blocks', 'right');
}