Добрый вечер.Вопрос такого характера. Имеется сайт на Drupal 6
Имеется тема Хамелеон Выводится ссылки таким образом Главная|Название сайта или допустим Администрация|Название сайта
Я уже все перепробовал и page Title Может что то в самой теме не так помогите Вот код
/**
* file
* A slim, CSS-driven theme which does not depend on a template engine like phptemplate
*/
/**
* Implementation of hook_theme. Auto-discover theme functions.
*/
function chameleon_theme($existing, $type, $theme, $path) {
return drupal_find_theme_functions($existing, array($theme));
}
function chameleon_page($content, $show_blocks = TRUE, $show_messages = TRUE) {
$language = $GLOBALS['language']->language;
$direction = $GLOBALS['language']->direction ? 'rtl' : 'ltr';
if (theme_get_setting('toggle_favicon')) {
drupal_set_html_head('');
}
$title = drupal_get_title();
// Get blocks before so that they can alter the header (JavaScript, Stylesheets etc.)
$blocks_left = theme_blocks('left');
$blocks_right = theme_blocks('right');
$output = "\n";
$output .= "\n";
$output .= "\n";
$output .= drupal_get_html_head();
$output .= " ". ($title ? strip_tags($title) ." | ". variable_get("site_name", "Drupal") : variable_get("site_name", "Drupal") ." | ". variable_get("site_slogan", "")) ."\n";
$output .= drupal_get_css();
$output .= drupal_get_js();
$output .= "";
$output .= "\n";
$output .= "
if ($logo = theme_get_setting('logo')) {
$output .= " ";
}
if (theme_get_setting('toggle_name')) {
$output .= " ". l(variable_get('site_name', 'drupal'), "") ."";
}
if (theme_get_setting('toggle_slogan')) {
$output .= "
";
}
$output .= "
\n";
$primary_links = theme('links', menu_primary_links(), array('class' => 'links', 'id' => 'navlist'));
$secondary_links = theme('links', menu_secondary_links(), array('class' => 'links', 'id' => 'subnavlist'));
if (isset($primary_links) || isset($secondary_links)) {
$output .= '
\n";
}
$output .= "
$blocks_left | \n";
if ($title) { $title"; if ($tabs = theme('menu_local_tasks')) { if ($show_messages) { $output .= theme('help'); $output .= $content; if ($footer = variable_get('site_footer', '')) { $footer
\n"; $output .= " |
$blocks_right |
\n";
$output .= theme_closure();
$output .= " \n";
$output .= "\n";
return $output;
}
function chameleon_node($node, $teaser = 0, $page = 0) {
$output = "
if (!$page) {
$output .= "
". ($teaser ? l($node->title, "node/$node->nid") : check_plain($node->title)) ."
\n";
}
$output .= "
if ($teaser && $node->teaser) {
$output .= $node->teaser;
}
elseif (isset($node->body)) {
$output .= $node->body;
}
$output .= "
\n";
$submitted['node_submitted'] = theme_get_setting("toggle_node_info_$node->type") ? array(
'title' => t("By !author at date", array('!author' => theme('username', $node), 'date' => format_date($node->created, 'small'))),
'html' => TRUE) : array();
$terms = array();
if (module_exists('taxonomy')) {
$terms = taxonomy_link("taxonomy terms", $node);
}
$links = array_merge($submitted, $terms);
if (isset($node->links)) {
$links = array_merge($links, $node->links);
}
if (count($links)) {
$output .= '
\n";
}
$output .= "
\n";
return $output;
}
function chameleon_comment($comment, $node, $links = array()) {
$submitted['comment_submitted'] = array(
'title' => t('By !author at date', array('!author' => theme('username', $comment), 'date' => format_date($comment->timestamp, 'small'))),
'html' => TRUE);
$output = "
$output .= "
". l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid")) ."
\n";
$output .= "
if (!empty($signature)) {
$output .= "
$output .= "
\n";
$output .= $signature ."\n";
$output .= "
\n";
}
$output .= "
\n";
$output .= "
\n";
$output .= "
\n";
return $output;
}
function chameleon_help() {
if ($help = menu_get_active_help()) {
return '
';
}
}
Добрый вечер.Вопрос такого характера. Имеется сайт на Drupal 6
Имеется тема Хамелеон Выводится ссылки таким образом Главная|Название сайта или допустим Администрация|Название сайта
Я уже все перепробовал и page Title Может что то в самой теме не так помогите Вот код
/**
* file
* A slim, CSS-driven theme which does not depend on a template engine like phptemplate
*/
/**
* Implementation of hook_theme. Auto-discover theme functions.
*/
function chameleon_theme($existing, $type, $theme, $path) {
return drupal_find_theme_functions($existing, array($theme));
}
function chameleon_page($content, $show_blocks = TRUE, $show_messages = TRUE) {
$language = $GLOBALS['language']->language;
$direction = $GLOBALS['language']->direction ? 'rtl' : 'ltr';
if (theme_get_setting('toggle_favicon')) {
drupal_set_html_head('');
}
$title = drupal_get_title();
// Get blocks before so that they can alter the header (JavaScript, Stylesheets etc.)
$blocks_left = theme_blocks('left');
$blocks_right = theme_blocks('right');
$output = "\n";
$output .= "\n";
$output .= "\n";
$output .= drupal_get_html_head();
$output .= " ". ($title ? strip_tags($title) ." | ". variable_get("site_name", "Drupal") : variable_get("site_name", "Drupal") ." | ". variable_get("site_slogan", "")) ."\n";
$output .= drupal_get_css();
$output .= drupal_get_js();
$output .= "";
$output .= "\n";
$output .= "
if ($logo = theme_get_setting('logo')) {
$output .= " ";
}
if (theme_get_setting('toggle_name')) {
$output .= " ". l(variable_get('site_name', 'drupal'), "") ."";
}
if (theme_get_setting('toggle_slogan')) {
$output .= "
";
}
$output .= "
\n";
$primary_links = theme('links', menu_primary_links(), array('class' => 'links', 'id' => 'navlist'));
$secondary_links = theme('links', menu_secondary_links(), array('class' => 'links', 'id' => 'subnavlist'));
if (isset($primary_links) || isset($secondary_links)) {
$output .= '
\n";
}
$output .= "
$blocks_left | \n";
if ($title) { $title"; if ($tabs = theme('menu_local_tasks')) { if ($show_messages) { $output .= theme('help'); $output .= $content; if ($footer = variable_get('site_footer', '')) { $footer
\n"; $output .= " |
$blocks_right |
\n";
$output .= theme_closure();
$output .= " \n";
$output .= "\n";
return $output;
}
function chameleon_node($node, $teaser = 0, $page = 0) {
$output = "
if (!$page) {
$output .= "
". ($teaser ? l($node->title, "node/$node->nid") : check_plain($node->title)) ."
\n";
}
$output .= "
if ($teaser && $node->teaser) {
$output .= $node->teaser;
}
elseif (isset($node->body)) {
$output .= $node->body;
}
$output .= "
\n";
$submitted['node_submitted'] = theme_get_setting("toggle_node_info_$node->type") ? array(
'title' => t("By !author at date", array('!author' => theme('username', $node), 'date' => format_date($node->created, 'small'))),
'html' => TRUE) : array();
$terms = array();
if (module_exists('taxonomy')) {
$terms = taxonomy_link("taxonomy terms", $node);
}
$links = array_merge($submitted, $terms);
if (isset($node->links)) {
$links = array_merge($links, $node->links);
}
if (count($links)) {
$output .= '
\n";
}
$output .= "
\n";
return $output;
}
function chameleon_comment($comment, $node, $links = array()) {
$submitted['comment_submitted'] = array(
'title' => t('By !author at date', array('!author' => theme('username', $comment), 'date' => format_date($comment->timestamp, 'small'))),
'html' => TRUE);
$output = "
$output .= "
". l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid")) ."
\n";
$output .= "
if (!empty($signature)) {
$output .= "
$output .= "
\n";
$output .= $signature ."\n";
$output .= "
\n";
}
$output .= "
\n";
$output .= "
\n";
$output .= "
\n";
return $output;
}
function chameleon_help() {
if ($help = menu_get_active_help()) {
return '
';
}
}
Вложение | Размер |
---|---|
tekstovyy_dokument_3.txt | 5.47 КБ |
Комментарии
Добрый вечер.Вопрос такого характера. Имеется сайт на Drupal 6
Имеется тема Хамелеон Выводится ссылки таким образом Главная|Название сайта или допустим Администрация|Название сайта
Я уже все перепробовал и page Title Может что то в самой теме не так помогите Код прикрепил