/** * Preprocess variables for the html template. */ function kindisch_preprocess_html(&$vars) { global $theme_key; // add custom Google fonts // drupal_add_css('http://fonts.googleapis.com/css?family=Gloria+Hallelujah|Permanent+Marker', // array('group' => CSS_THEME)); // Two examples of adding custom classes to the body. // Add a body class for the active theme name. // $vars['classes_array'][] = drupal_html_class($theme_key); // Browser/platform sniff - adds body classes such as ipad, webkit, chrome etc. $vars['classes_array'][] = css_browser_selector(); }
/** * Override or insert variables into the html template. */ function sky_preprocess_html(&$vars) { global $theme_key; $theme_name = 'sky'; // Load the media queries styles $media_queries_css = array($theme_name . '.responsive.style.css', $theme_name . '.responsive.gpanels.css'); load_subtheme_media_queries($media_queries_css, $theme_name); // Add a class for the active color scheme if (module_exists('color')) { $class = check_plain(get_color_scheme_name($theme_key)); $vars['classes_array'][] = 'color-scheme-' . drupal_html_class($class); } // Add class for the active theme $vars['classes_array'][] = drupal_html_class($theme_key); // Browser sniff and add a class, unreliable but quite useful $vars['classes_array'][] = css_browser_selector(); // Add theme settings classes $settings_array = array('font_size', 'box_shadows', 'body_background', 'menu_bullets', 'content_corner_radius', 'tabs_corner_radius', 'image_alignment'); foreach ($settings_array as $setting) { $vars['classes_array'][] = theme_get_setting($setting); } // Fonts $fonts = array('bf' => 'base_font', 'snf' => 'site_name_font', 'ssf' => 'site_slogan_font', 'ptf' => 'page_title_font', 'ntf' => 'node_title_font', 'ctf' => 'comment_title_font', 'btf' => 'block_title_font'); $families = get_font_families($fonts, $theme_key); if (!empty($families)) { foreach ($families as $family) { $vars['classes_array'][] = $family; } } // Headings styles if (theme_get_setting('headings_styles_caps') == 1) { $vars['classes_array'][] = 'hs-caps'; } if (theme_get_setting('headings_styles_weight') == 1) { $vars['classes_array'][] = 'hs-fwn'; } if (theme_get_setting('headings_styles_shadow') == 1) { $vars['classes_array'][] = 'hs-ts'; } }
/** * Override or insert variables into the html template. */ function at_commerce_preprocess_html(&$vars) { global $theme_key; $theme_name = 'at_commerce'; $path_to_theme = drupal_get_path('theme', $theme_name); // Add a class for the active color scheme if (module_exists('color')) { $class = check_plain(get_color_scheme_name($theme_key)); $vars['classes_array'][] = 'color-scheme-' . drupal_html_class($class); } // Add class for the active theme $vars['classes_array'][] = drupal_html_class($theme_key); // Add browser and platform classes $vars['classes_array'][] = css_browser_selector(); // Add theme settings classes $settings_array = array('body_background', 'header_layout', 'menu_bullets', 'main_menu_alignment', 'corner_radius_form_input_text', 'corner_radius_form_input_submit'); foreach ($settings_array as $setting) { $vars['classes_array'][] = at_get_setting($setting); } // Special case for PIE htc rounded corners, not all themes include this if (at_get_setting('ie_corners') == 1) { drupal_add_css($path_to_theme . '/css/ie-htc.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'preprocess' => FALSE)); } // Custom settings for AT Commerce // Content displays $show_frontpage_grid = at_get_setting('content_display_grids_frontpage') == 1 ? TRUE : FALSE; $show_taxopage_grid = at_get_setting('content_display_grids_taxonomy_pages') == 1 ? TRUE : FALSE; if ($show_frontpage_grid == TRUE || $show_taxopage_grid == TRUE) { drupal_add_js($path_to_theme . '/scripts/equalheights.js'); } if ($show_frontpage_grid == TRUE) { $cols_fpg = at_get_setting('content_display_grids_frontpage_colcount'); $vars['classes_array'][] = $cols_fpg; drupal_add_js($path_to_theme . '/scripts/eq.fp.grid.js'); } if ($show_taxopage_grid == TRUE) { $cols_tpg = at_get_setting('content_display_grids_taxonomy_pages_colcount'); $vars['classes_array'][] = $cols_tpg; drupal_add_js($path_to_theme . '/scripts/eq.tp.grid.js'); } // Do stuff for the slideshow if (at_get_setting('show_slideshow') == 1) { // Add some js and css drupal_add_css($path_to_theme . '/css/styles.slideshow.css', array('preprocess' => TRUE, 'group' => CSS_THEME, 'media' => 'screen', 'every_page' => TRUE)); drupal_add_js($path_to_theme . '/scripts/jquery.flexslider-min.js'); drupal_add_js($path_to_theme . '/scripts/slider.options.js'); // Add some classes to do evil hiding of elements with CSS... if (at_get_setting('show_slideshow_navigation_controls') == 0) { $vars['classes_array'][] = 'hide-ss-nav'; } if (at_get_setting('show_slideshow_direction_controls') == 0) { $vars['classes_array'][] = 'hide-ss-dir'; } // Write some evil inline CSS in the head, oh er.. $slideshow_width = check_plain(at_get_setting('slideshow_width')); $slideshow_css = '.flexible-slideshow,.flexible-slideshow .article-inner,.flexible-slideshow .article-content,.flexslider {max-width: ' . $slideshow_width . 'px;}'; drupal_add_css($slideshow_css, array('group' => CSS_DEFAULT, 'type' => 'inline')); } // Draw stuff drupal_add_js($path_to_theme . '/scripts/draw.js'); }
/** * Preprocess variables for the html template. */ function commons_beehive_preprocess_html(&$variables, $hook) { global $theme_key; $site_name = variable_get('site_name', 'Commons'); // Add a class to the body so we can adjust styles for the new menu item. if (module_exists('commons_search_solr_user')) { $variables['classes_array'][] = 'people-search-active'; } $palette = variable_get('commons_beehive_palette', 'default'); if ($palette != 'default') { $variables['classes_array'][] = 'palette-active'; $variables['classes_array'][] = drupal_html_class($palette); } // Browser/platform sniff - adds body classes such as ipad, webkit, chrome // etc. $variables['classes_array'][] = css_browser_selector(); }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html class="<?php echo css_browser_selector(); ?> " xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:v='urn:schemas-microsoft-com:vml'> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <link rel="stylesheet" href="<?php print ADMIN_STATIC_FILES_URL; ?> css/iframe.css" type="text/css" media="screen" /> <title><? print($config['name']) ?>configuration</title> <? include('header_scripts.php'); ?> <? $no_config = $params['no_config']; if($no_config == false){ $no_config= $config['no_config']; } if($no_config == false){ $no_config= url_param('no_config'); } ?> </head> <body id="iframe_body"> <div class="mw_iframe_inside_holder"> <!--<div class="mw_iframe_header">
function afficher_navigateurs_alertes($hr_avant='',$chemin_image='./_img',$hr_apres='') { $tab_infos = css_browser_selector(); // array( 'nav_modele' , 'nav_version' ); $alertes = ''; $alerte_ancien = '<div class="astuce">Votre navigateur est dépassé ! Utilisez une version récente pour une navigation plus sure, rapide et efficace.</div>'; if($tab_infos['nav_modele']=='explorer') { if($tab_infos['nav_version']<8) $alertes .= '<div class="danger">Votre navigateur est trop ancien pour utiliser <em>SACoche</em> ! Internet Explorer est utilisable à partir de sa version 8.</div>'; elseif($tab_infos['nav_version']<9) $alertes .= '<div class="danger">Votre navigateur dysfonctionne ! L\'usage d\'Internet Explorer est déconseillé avant sa version 9.</div>'; } elseif($tab_infos['nav_modele']=='firefox') { if($tab_infos['nav_version']<3) $alertes .= '<div class="danger">Votre navigateur est trop ancien pour utiliser <em>SACoche</em> ! Firefox est utilisable à partir de sa version 3.</div>'; elseif($tab_infos['nav_version']<4) $alertes .= $alerte_ancien; } elseif($tab_infos['nav_modele']=='opera') { if($tab_infos['nav_version']<9) $alertes .= '<div class="danger">Votre navigateur est trop ancien pour utiliser <em>SACoche</em> ! Opéra est utilisable à partir de sa version 9.</div>'; elseif($tab_infos['nav_version']<11) $alertes .= $alerte_ancien; } elseif($tab_infos['nav_modele']=='safari') { if($tab_infos['nav_version']<3) $alertes .= '<div class="danger">Votre navigateur est trop ancien pour utiliser <em>SACoche</em> ! Safari est utilisable à partir de sa version 3.</div>'; elseif($tab_infos['nav_version']<5) $alertes .= $alerte_ancien; } return ($alertes) ? $hr_avant.$alertes.'<div class="astuce">Installez '.implode(' ou ',afficher_navigateurs_modernes($chemin_image)).'.</div>'.$hr_apres : '' ; }
/** * Override or insert variables into the html template. */ function at_commerce_preprocess_html(&$vars) { global $theme_key; $theme_name = 'at_commerce'; $path_to_theme = drupal_get_path('theme', $theme_name); // Load the media queries styles $media_queries_css = array($theme_name . '.responsive.style.css', $theme_name . '.responsive.gpanels.css'); load_subtheme_media_queries($media_queries_css, $theme_name); // Load IE specific stylesheets $ie_files = array('IE 6' => 'ie-6.css', 'lte IE 7' => 'ie-lte-7.css', 'IE 8' => 'ie-8.css', 'lte IE 9' => 'ie-lte-9.css'); load_subtheme_ie_styles($ie_files, $theme_name); // Add a class for the active color scheme if (module_exists('color')) { $class = check_plain(get_color_scheme_name($theme_key)); $vars['classes_array'][] = 'color-scheme-' . drupal_html_class($class); } // Add class for the active theme $vars['classes_array'][] = drupal_html_class($theme_key); // Add browser and platform classes $vars['classes_array'][] = css_browser_selector(); // Add theme settings classes $settings_array = array('font_size', 'body_background', 'header_layout', 'menu_bullets', 'main_menu_alignment', 'image_alignment', 'site_name_case', 'site_name_weight', 'site_name_alignment', 'site_name_shadow', 'site_slogan_case', 'site_slogan_weight', 'site_slogan_alignment', 'site_slogan_shadow', 'page_title_case', 'page_title_weight', 'page_title_alignment', 'page_title_shadow', 'node_title_case', 'node_title_weight', 'node_title_alignment', 'node_title_shadow', 'comment_title_case', 'comment_title_weight', 'comment_title_alignment', 'comment_title_shadow', 'block_title_case', 'block_title_weight', 'block_title_alignment', 'block_title_shadow', 'corner_radius_form_input_text', 'corner_radius_form_input_submit'); foreach ($settings_array as $setting) { $vars['classes_array'][] = theme_get_setting($setting); } // Font family settings $fonts = array('bf' => 'base_font', 'snf' => 'site_name_font', 'ssf' => 'site_slogan_font', 'mmf' => 'main_menu_font', 'ptf' => 'page_title_font', 'ntf' => 'node_title_font', 'ctf' => 'comment_title_font', 'btf' => 'block_title_font'); $families = get_font_families($fonts, $theme_key); if (!empty($families)) { foreach ($families as $family) { $vars['classes_array'][] = $family; } } // Add Noggin module settings extra classes, not all designs can support header images if (module_exists('noggin')) { if (variable_get('noggin:use_header', FALSE)) { $va = theme_get_setting('noggin_image_vertical_alignment'); $ha = theme_get_setting('noggin_image_horizontal_alignment'); $vars['classes_array'][] = 'ni-a-' . $va . $ha; $vars['classes_array'][] = theme_get_setting('noggin_image_repeat'); $vars['classes_array'][] = theme_get_setting('noggin_image_width'); } } // Special case for PIE htc rounded corners, not all themes include this if (theme_get_setting('ie_corners') == 1) { drupal_add_css($path_to_theme . '/css/ie-htc.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'preprocess' => FALSE)); } // Custom settings for AT Commerce // Content displays $show_frontpage_grid = theme_get_setting('content_display_grids_frontpage') == 1 ? TRUE : FALSE; $show_taxopage_grid = theme_get_setting('content_display_grids_taxonomy_pages') == 1 ? TRUE : FALSE; if ($show_frontpage_grid == TRUE || $show_taxopage_grid == TRUE) { drupal_add_js($path_to_theme . '/js/equalheights.js'); } if ($show_frontpage_grid == TRUE) { $cols_fpg = theme_get_setting('content_display_grids_frontpage_colcount'); $vars['classes_array'][] = $cols_fpg; drupal_add_js($path_to_theme . '/js/eq.fp.grid.js'); } if ($show_taxopage_grid == TRUE) { $cols_tpg = theme_get_setting('content_display_grids_taxonomy_pages_colcount'); $vars['classes_array'][] = $cols_tpg; drupal_add_js($path_to_theme . '/js/eq.tp.grid.js'); } // Do stuff for the slideshow if (theme_get_setting('show_slideshow') == 1) { // Add some js and css drupal_add_css($path_to_theme . '/css/styles.slideshow.css', array('preprocess' => TRUE, 'group' => CSS_THEME, 'media' => 'screen', 'every_page' => TRUE)); drupal_add_js($path_to_theme . '/js/jquery.flexslider-min.js'); drupal_add_js($path_to_theme . '/js/slider.options.js'); // Add some classes to do evil hiding of elements with CSS... if (theme_get_setting('show_slideshow_navigation_controls') == 0) { $vars['classes_array'][] = 'hide-ss-nav'; } if (theme_get_setting('show_slideshow_direction_controls') == 0) { $vars['classes_array'][] = 'hide-ss-dir'; } // Write some evil inline CSS in the head, oh er.. $slideshow_width = check_plain(theme_get_setting('slideshow_width')); $slideshow_css = '.flexible-slideshow,.flexible-slideshow .article-inner,.flexible-slideshow .article-content,.flexslider {max-width: ' . $slideshow_width . 'px;}'; drupal_add_css($slideshow_css, array('group' => CSS_DEFAULT, 'type' => 'inline')); } // Draw stuff drupal_add_js($path_to_theme . '/js/draw.js'); }
break;*/ } //echo "mod: ".$mod."<br />"; //echo "pagina: ".$pagina."<br />"; require "include/css_browser_selector.php"; require "class/config.php"; require "class/base_datos.php"; require "class/contribuciones.php"; require "include/config.php"; require "include/conexion_bd.php"; require "include/idiomas.php"; require_once 'include/recaptcha/recaptchalib.php'; //reCAPTCHA $publickey = "6LcFmf0SAAAAADnlFgt1u92lCrAWGMhbXnKoYyN4"; //reCAPTCHA $classBrowserSelector = css_browser_selector(); $onload = ''; /*if($mod == "4"){ require("include/paypal.php"); require("class/ipnlistener.php"); $formapago = $_REQUEST["formapago"]; echo "formapago: ".$formapago."<br />"; if ($formapago == "paypal"){ $onload = "document.forms['paypalform'].submit()"; } if ($formapago == "banco"){ $onload = "document.location.href='index.php'"; } }*/ ?>