Skip to content

Commit

Permalink
Merge pull request FortAwesome#73 from arnaudgaudin/stylageWidgetsDivers
Browse files Browse the repository at this point in the history
stylageWidgetsDivers
  • Loading branch information
lioshi committed Feb 13, 2012
2 parents 0393e41 + c7973fb commit 6b06c18
Show file tree
Hide file tree
Showing 15 changed files with 515 additions and 252 deletions.
Expand Up @@ -15,11 +15,13 @@
'dateCreated' => $articles->created_at,
'dateModified' => $articles->updated_at,
'articleBody' => $articles->getText(),
'articleSection' => $titreBloc,
'uploadFile' => $articles->getFiles(),
'uploadFileTitle' => $articles->getTitleFile()
'articleSection' => $titreBloc
);

//ajout des options de fichiers
if($articles->getFiles() != null) $articleOpts['uploadFile'] = $articles->getFiles();
if($articles->getTitleFile() != null) $articleOpts['uploadFileTitle'] = $articles->getTitleFile();

$html.= get_partial('global/schema/Thing/CreativeWork/Article', $articleOpts);
}else{
$html.= get_partial('global/schema/Thing/CreativeWork/Article', array('container' => 'article', 'articleBody' => '{{actualites_du_cabinet}}'));
Expand Down
4 changes: 2 additions & 2 deletions dmFrontPlugin/templates/_navigationWrapper.php
@@ -1,7 +1,7 @@
<?php
/*
* _navigationWrapper.php
* v1.3
* v1.4
* Permet d'afficher une navigation de page (à améliorer avec gestion intégrée des tableaux
*
* Variables disponibles :
Expand All @@ -18,7 +18,7 @@
if(!isset($container)) $container = 'div';

//déclaration des propriétés par défaut du container
$ctnOpts = array('class' => array('navigation'));
$ctnOpts = array('class' => array('navigationWrapper'));
switch ($placement) {
case 'top':
$ctnOpts['class'][] = 'navigationTop';
Expand Down
Expand Up @@ -220,10 +220,10 @@
$htmlFooter = '';

// rajout stef (attention à modifier une fois l'upload de fichier multiples implémenté)
if(isset($uploadFile) && isset($uploadFileTitle)) {
if(isset($uploadFile)) {
$htmlFooter.= _open('div.fileWrapper');
$htmlFooter.= _tag('h5.title',__('Download file, click the link below'));
$htmlFooter.= ($uploadFileTitle != null) ? _link($uploadFile)->text($uploadFileTitle) : _link($uploadFile)->text($uploadFile->file);
$htmlFooter.= (isset($uploadFileTitle) && $uploadFileTitle != null) ? _link($uploadFile)->text($uploadFileTitle) : _link($uploadFile)->text($uploadFile->file);
$htmlFooter.= _close('div.fileWrapper');
}
// fin rajout stef
Expand Down
117 changes: 115 additions & 2 deletions themesFmk/_framework/SPLessCss/Elements/Itemprop/_Itemprop.less
Expand Up @@ -7,18 +7,131 @@

//ce fichier contient la définitions de tous les champs par défaut définits en microdata (cf http://schema.org/docs/full.html)

//http://schema.org/Thing
//CIBLEURS GÉNÉRAUX DES ITEMSCOPE ET ITEMPROP
.itemscope, .itemprop {
//affiché en block dans les listings
.elements .element & { display: block; }
}

//débuggage alignements des différents éléments constitutifs des itemprops
.type, .value, .separator, .dash, .ellipsis { line-height: @gridBaseline; vertical-align: top; }

//séparateur de type &#160;:&#160;
.separator { }

//tiret de type &#160;-&#160;
.dash { }

//ellipsis de type &#160;(...)
.ellipsis {}


//http://schema.org/Article


//SCHEMAS
//http://schema.org/docs/full.html


//THING
//http://schema.org/Thing

.name, .title {
.isLess & { background-color: #DE789C; }

.elements .element & {
display: block;
font-size: @fontSizeH6Px;
}
}

.description, .teaser {
.isLess & { background-color: fadeout(#AEDCEB, 50%); }

.elements .element & { display: block; }
//une fois que l'article est affiché en pleine page
#dm_content article & { font-weight: bold; }
}



//ARTICLE
//http://schema.org/Article

//stylage minimal de la date
.date {
.isLess & { background-color: #93E6C3; }
font-size: @fontSizeSmall;
line-height: @gridBaseline;
vertical-align: top;

.elements .element & { display: block; }
//uniquement dans le contenu où on a la place horizontale
#dm_content .elements .element & { margin-left: @offM; }
}



//PERSON
//http://schema.org/Person

.contactPoints {
}

.jobTitle {
.isLess & { background-color: fadeout(#AEF5B0, 25%); }
}



//ORGANIZATION
//http://schema.org/Organization

.address {
}



//CONTACTPOINT
//http://schema.org/ContactPoint

.contactType {
}

//styalge minimal de l'email
.email {
//on réduit la taille et la largeur lorsque que le type est inclut avec value
.value {
display: inline;
vertical-align: top;
font-size: @fontSizeSmall;
line-height: @gridBaseline;
word-spacing: -0.05em;
letter-spacing: -0.05em;
}
}

.faxNumber {
}

.telephone {
}



//POSTALADDRESS
//http://schema.org/PostalAddress

.streetAddress {
}

.postalCode {
}

.addressLocality {
}

.addressRegion {
}

.addressCountry {
}

0 comments on commit 6b06c18

Please sign in to comment.