Subversion Repositories Sites.obs-saisons.fr

Compare Revisions

No changes between revisions

Ignore whitespace Rev 93 → Rev 94

/trunk/themes/ods/ods.info
1,4 → 1,4
; $Id: garland.info,v 1.5 2007/07/01 23:27:32 goba Exp $
; $Id: ods,v 1.5 2007/07/01 23:27:32 goba Exp $
name = ODS
description = Template du nouveau site ods
version = VERSION
7,7 → 7,6
stylesheets[all][] = style.css
stylesheets[print][] = print.css
 
; Information added by drupal.org packaging script on 2010-06-02
version = "6.17"
project = "drupal"
datestamp = "1275505216"
/trunk/themes/ods/style.css
12,12 → 12,12
*/
body {
margin: 0;
margin-top: 20px;
margin-top: 0px;
padding: 0;
background: transparent;
font: 12px/170% Verdana, sans-serif;
color: #494949;
background-color: #BFAF83;
background-color: #C6B895;
}
 
input {
308,6 → 308,36
/**background: #d2e6f3 url(images/bg-navigation.png) repeat-x 50% 100%; **/
}
 
@font-face {
/* On donne un nom (au choix) à la fonte téléchargée */
font-family: "BorisBlackBloxx";
/* On indique le chemin du fichier de fonte à télécharger */
/* L'indication du format n'est pas obligatoire */
src: url("font/BorisBlackBloxx.ttf") format("truetype");
}
 
.titre_site {
font-family: BorisBlackBloxx, Cursive;
margin-left: 490px;
font-size: 14px;
}
 
.titre_site #observatoire {
color: #0396A6;
font-size: 30px;
}
 
.titre_site #des {
color: #0396A6;
font-size: 20px
}
 
.titre_site #saisons {
color: #FF7F00;
text-transform: uppercase;
font-size: 40px
}
 
#header-region .block {
display: block;
margin: 0 1em;
416,10 → 446,6
background-color: #FFFFFF;
}
 
#right {
}
 
#sidebar-left {
-moz-border-radius-topright: 50px 50px;
-moz-border-radius-bottomright: 50px 50px;
451,7 → 477,7
}
 
#right {
width: 215px;
width: 210px;
float: right;
background-color: #FFFFFF;
}
600,7 → 626,7
*/
ul.primary-links {
margin: 0;
margin: -20px 0 0;
margin: -25px 0 0;
padding: 0;
float: right; /* LTR */
position: relative;
611,26 → 637,32
ul.primary-links li {
margin: 0;
padding: 0;
height: 25px;
float: left; /* LTR */
background-image: none;
-moz-border-radius-topright: 1em;
-moz-border-radius-topleft: 1em;
background-color: #FFFFFF;
margin-right: 3px;
}
 
ul.primary-links > li:nth-child(1) {
li.lien_primaire_1 {
width: 20px;
background-color : #6C9ED8;
}
 
ul.primary-links > li:nth-child(2) {
li.lien_primaire_1 a img {
padding-top: 2px;
}
li.lien_primaire_2 {
background-color : #800000;
}
 
ul.primary-links > li:nth-child(3) {
li.lien_primaire_3 {
background-color : #9AC343;
}
 
ul.primary-links > li:nth-child(4) {
li.lien_primaire_4 {
background-color : #EF7B1D;
}
 
639,16 → 671,15
margin: 0 1em;
font-weight: bold;
color: #FFFFFF;
/** background: transparent url(images/bg-navigation-item.png) no-repeat 50% 0;**/
padding-top: 2px;
}
 
ul.primary-links li a:hover, ul.primary-links li a.active {
color: #fff;
/** background: transparent url(images/bg-navigation-item-hover.png) no-repeat 50% 0;**/
}
 
ul.primary-links li.active-trail {
height:30px;
height:35px;
margin:-10px 0 0;
}
 
/trunk/themes/ods/page.tpl.php
17,11 → 17,18
</div>
<div class="titre_site">
<span id="observatoire">Observatoire </span>
<span id="des">des</span>
<span id="saisons"> Saisons</span>
</div>
<div id="wrapper" class="zone_principale">
<div class="navigation_niveau_1">
<div class="navigation_niveau_1">
<?php if (isset($primary_links)) : ?>
<?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
<?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
<?php endif; ?>
<?php if (isset($secondary_links)) : ?>
<?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
<?php endif; ?>
62,12 → 69,8
<?php print $feed_icons ?>
</div><!-- centre -->
<div id="footer">
<?php print $footer_message ?>
</div><!-- pied de page -->
<div id="right">
<div id="right">
<?php if ($right): ?>
<div id="sidebar-right" class="sidebar">
<?php print $right ?>
74,6 → 77,10
</div><!-- zone droite -->
<?php endif; ?>
</div>
<div id="footer">
<?php print $footer_message ?>
</div><!-- pied de page -->
</div> <!--fermeture div zone-principale-->
</body>
/trunk/themes/ods/screenshot.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/trunk/themes/ods/template.php
25,6 → 25,78
}
 
/**
* Return a themed set of links.
*
* @param $links
* A keyed array of links to be themed.
* @param $attributes
* A keyed array of attributes
* @return
* A string containing an unordered list of links.
*/
function ods_links($links, $attributes = array('class' => 'links')) {
global $language;
$output = '';
 
if (count($links) > 0) {
$output = '<ul'. drupal_attributes($attributes) .'>';
 
$num_links = count($links);
$i = 1;
 
foreach ($links as $key => $link) {
$class = $key;
 
// Add first, last and active classes to the list of links to help out themers.
if ($i == 1) {
$class .= ' first';
}
if ($i == $num_links) {
$class .= ' last';
}
if (isset($link['href']) && ($link['href'] == $_GET['q'] || ($link['href'] == '<front>' && drupal_is_front_page()))
&& (empty($link['language']) || $link['language']->language == $language->language)) {
$class .= ' active';
}
$class .= ' lien_primaire_'.$i;
$output .= '<li'. drupal_attributes(array('class' => $class)) .'>';
 
if (isset($link['href'])) {
if($i == 1) {
$link['html'] = true;
$link['title'] = '<img class="icone_acceuil" alt="'.$link['title'].'" src="'.base_path().path_to_theme().'/images/accueil.png" />';
}
// Pass in $link as $options, they share the same keys.
$output .= l($link['title'], $link['href'], $link);
}
else if (!empty($link['title'])) {
// Some links are actually not links, but we wrap these in <span> for adding title and class attributes
if (empty($link['html'])) {
$link['title'] = check_plain($link['title']);
}
$span_attributes = '';
if (isset($link['attributes'])) {
$span_attributes = drupal_attributes($link['attributes']);
}
$output .= '<span'. $span_attributes .'>'. $link['title'] .'</span>';
}
 
$i++;
$output .= "</li>\n";
}
 
$output .= '</ul>';
}
 
return $output;
}
 
/**
* Return a themed breadcrumb trail.
*
* @param $breadcrumb
52,7 → 124,7
/**
* Add a "Comments" heading above comments except on forum pages.
*/
function garland_preprocess_comment_wrapper(&$vars) {
function ods_preprocess_comment_wrapper(&$vars) {
if ($vars['content'] && $vars['node']->type != 'forum') {
$vars['content'] = '<h2 class="comments">'. t('Comments') .'</h2>'. $vars['content'];
}
/trunk/themes/ods/images/accueil.png
Cannot display: file marked as a binary type.
svn:mime-type = image/png
/trunk/themes/ods/images/accueil.png
New file
Property changes:
Added: svn:mime-type
+image/png
\ No newline at end of property
/trunk/themes/ods/page-node-15.tpl.php
23,8 → 23,13
<div id="header-region" class="clear-block">
<?php print $header; ?>
</div>
<div class="titre_site">
<span id="observatoire">Observatoire </span>
<span id="des">des</span>
<span id="saisons"> Saisons</span>
</div>
<div id="wrapper" class="zone_principale">
<div class="navigation_niveau_1">