I bob. Analitik qism. Axborot markazlari va ularni hozirgi davrdagi vazifalari


Download 287.04 Kb.
bet13/14
Sana19.06.2023
Hajmi287.04 Kb.
#1624085
1   ...   6   7   8   9   10   11   12   13   14
Bog'liq
To‘lqinov Sardorxon LOYIXA ISH

' . t('You are here') . '

';
$output .= '
' . implode(' › ', $breadcrumb) . '
';
return $output;
}}
function garland_preprocess_maintenance_page(&$vars) {
garland_preprocess_html($vars);
}
function garland_preprocess_html(&$vars) {
if (theme_get_setting('garland_width') == 'fluid') {
$vars['classes_array'][] = 'fluid-width';
}
drupal_add_css(path_to_theme() . '/fix-ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lt IE 7', '!IE' => FALSE), 'preprocess' => FALSE));
}
function garland_process_html(&$vars) {
if (module_exists('color')) {
_color_html_alter($vars);
}}
function garland_preprocess_page(&$vars) {
$vars['tabs2'] = array(
'#theme' => 'menu_local_tasks',
'#secondary' => $vars['tabs']['#secondary'],
);
unset($vars['tabs']['#secondary']);
if (isset($vars['main_menu'])) {
$vars['primary_nav'] = theme('links__system_main_menu', array(
'links' => $vars['main_menu'],
'attributes' => array(
'class' => array('links', 'inline', 'main-menu'),
),
'heading' => array(
'text' => t('Main menu'),
'level' => 'h2',
'class' => array('element-invisible'),
)));
}
else {
$vars['primary_nav'] = FALSE;
}
if (isset($vars['secondary_menu'])) {
$vars['secondary_nav'] = theme('links__system_secondary_menu', array(
'links' => $vars['secondary_menu'],
'attributes' => array(
'class' => array('links', 'inline', 'secondary-menu'),
),
'heading' => array(
'text' => t('Secondary menu'),
'level' => 'h2',
'class' => array('element-invisible'),
)));
}
else {
$vars['secondary_nav'] = FALSE;
}
$site_fields = array();
if (!empty($vars['site_name'])) {
$site_fields[] = $vars['site_name'];
}
if (!empty($vars['site_slogan'])) {
$site_fields[] = $vars['site_slogan'];
}
$vars['site_title'] = implode(' ', $site_fields);
if (!empty($site_fields)) {
$site_fields[0] = '' . $site_fields[0] . '';
}
$vars['site_html'] = implode(' ', $site_fields);
$slogan_text = $vars['site_slogan'];
$site_name_text = $vars['site_name'];
$vars['site_name_and_slogan'] = $site_name_text . ' ' . $slogan_text;
}
function garland_preprocess_node(&$vars) {
$vars['submitted'] = $vars['date'] . ' — ' . $vars['name'];
}
function garland_preprocess_comment(&$vars) {
$vars['submitted'] = $vars['created'] . ' — ' . $vars['author'];
}
function garland_preprocess_block(&$vars) {
$vars['title_attributes_array']['class'][] = 'title';
$vars['classes_array'][] = 'clearfix';
}
function garland_process_page(&$vars) {
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}}
function garland_preprocess_region(&$vars) {
if ($vars['region'] == 'header') {
$vars['classes_array'][] = 'clearfix';
}}
function garland_form_system_theme_settings_alter(&$form, &$form_state) {


$form['garland_width'] = array(
'#type' => 'radios',
'#title' => t('Content width'),
'#options' => array(
'fluid' => t('Fluid width'),
'fixed' => t('Fixed width'),
),
'#default_value' => theme_get_setting('garland_width'),
'#description' => t('Specify whether the content will wrap to a fixed width or will fluidly expand to the width of the browser window.'),
'#weight' => -2,
); }

Download 287.04 Kb.

Do'stlaringiz bilan baham:
1   ...   6   7   8   9   10   11   12   13   14




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling