Commit 4d5d724d authored by Raph El's avatar Raph El
Browse files

Hotfix ° modif design Raffinerie

parent 53940661
......@@ -2,7 +2,7 @@
"slug" : "laRaffinerie3",
"host" : "www.laraffinerie.re",
"admin" : {
"email" : "notr@agora.org"
"email" : "contact@laraffinerie.re"
},
"welcomeTpl" : "costum.views.custom.laRaffinerie3.home",
"sourceKey" : true,
......
<footer class=" text-right col-xs-12 pull-left padding-10 footerRaffinerie"
style="height: 70px; background-color : white ; ">
<a href="#apropos" class="lbh">Présentation détaillé</a> -
<a href="#apropos" class="lbh">Présentation détaillée</a> -
<a href="#mention" class="lbh">Infos légales</a> -
<a href="#plan" class="lbh">Nous trouver</a> -
<a href="mailto:<?php echo Yii::app()->session["costum"]["admin"]["email"] ; ?>">Contact</a>
......
......@@ -22,25 +22,24 @@ $Parsedown = new Parsedown();
}
.table-container {
display: table;
table-layout: fixed;
width: 100%;
height: 100%;
}
display: table;
table-layout: fixed;
width: 100%;
height: 100%;
}
.table-container2 {
display: table;
table-layout: fixed;
width: 130px;
height: 130px;
font-size: 14px
}
.table-container .col-table-cell, .table-container2 .col-table-cell {
display: table-cell;
vertical-align: middle;
float: none;
}
display: table;
table-layout: fixed;
width: 130px;
height: 130px;
font-size: 20px;
}
.table-container .col-table-cell, .table-container2 .col-table-cell {
display: table-cell;
vertical-align: middle;
float: none;
}
</style>
<div class="col-xs-12 no-padding">
......@@ -175,7 +174,7 @@ $Parsedown = new Parsedown();
$tagAdmin[$keyP]++;
$strProjects .= "<li class='subProject ".$slugTag." '>".
"<a href='#@".$value["slug"]."' class='lbh' style='opacity: 0.8; background-color: ".$valPoles["color"]." ;'>".
"<a href='#@".$value["slug"]."' class='lbh titleFont1' style='opacity: 0.8; background-color: ".$valPoles["color"]." ;'>".
"<div class='table-container2 text-center no-padding'>".
"<div class='col-table-cell col-xs-12 no-padding'>".$value["name"]."</div>".
"</div></a>".
......
<?php
$cssAndScriptFilesTheme = array(
'/plugins/moment/min/moment.min.js' ,
'/plugins/moment/min/moment-with-locales.min.js',
// SHOWDOWN
'/plugins/showdown/showdown.min.js',
// MARKDOWN
'/plugins/to-markdown/to-markdown.js',
'/plugins/fullcalendar/fullcalendar/fullcalendar.min.js',
'/plugins/fullcalendar/fullcalendar/fullcalendar.css',
'/plugins/fullcalendar/fullcalendar/locale/'.Yii::app()->language.'.js',
);
HtmlHelper::registerCssAndScriptsFiles($cssAndScriptFilesTheme, Yii::app()->request->baseUrl);
$cssAndScriptFilesModule = array(
'/js/default/calendar.js',
'/js/links.js',
'/js/default/profilSocial.js'
);
HtmlHelper::registerCssAndScriptsFiles($cssAndScriptFilesModule, Yii::app()->getModule( "co2" )->getAssetsUrl());
HtmlHelper::registerCssAndScriptsFiles( array('/css/calendar.css'), Yii::app()->theme->baseUrl. '/assets');
HtmlHelper::registerCssAndScriptsFiles(array('/js/laRaffinerie/index.js'), Yii::app()->getModule( "costum" )->getAssetsUrl());
$type = Project::COLLECTION;
$elt = PHDB::findOne($type,array("slug" => "laRaffinerie"));
$idElt = (String)$elt["_id"] ;
$linksElt = Element::getAllLinks($elt["links"], $type, $idElt);
// COLORS
$colorCount = 0;
$bgColor1 = "#01809b";
$bgColorHover1 = "#01607b";
$projectColorDefault = "rgba(239,42,0, 1)";
$projectColor = [
'rgba(140,87,79, 1)',
'rgba(218,107,15, 1)',
'rgba(203,6,13,1)',
'rgba(216,20,104,1)',
'rgba(100,40,114, 1)',
'rgba(1,75,120,1)',
'rgba(60,141,158,1)',
'rgba(130,157,40,1)',
'rgba(1,121,96,1)',
'rgba(231,184,36,1)'
];
$eltByColor = array();
?>
<!-- CUSTOM STYLE -->
<style>
.customBtnTrigger{
background-color: <?php echo $bgColor1 ?>;
}
.customBtnTrigger:hover{
background-color: <?php echo $bgColorHover1 ?>;
}
.projectNavFirstLvl > li a:hover::after{
background-color: <?php echo $projectColorDefault ?>;
}
.projectNavSecondLvl .projectNavThirdLvl a:hover::after{
background-color: <?php echo $projectColorDefault ?>;
}
.projectNavSecondLvl > li a:hover::after{
background-color: <?php echo str_replace('1)','.82)',$projectColorDefault) ?>;
}
<?php
$i=1;
foreach ($projectColor as $key => $value) {
echo "
.projectNavSecondLvl .projectNavThirdLvl:nth-of-type(".$i.") a:hover::after{
background-color: ".str_replace('1)','.82)',$value).";
}
.projectNavSecondLvl > li:nth-of-type(".$i.") a:hover::after{
background-color: ".$value.";
}
";
$i++;
}
?>
.customBlockImg{
padding-bottom: 50%;
background-position: center;
background-size: cover;
}
</style>
<div class="project">
<a href="" class="projectNavTriggerMobile"><i class="fa fa-bars tooltips"></i></a>
<div class="projectNav">
<div class="projectNavContent">
<button class="toggleAllProjects">Ouvrir / Fermer sous-projets</button>
<?php
if(!empty($elt) && !empty($elt["links"])){
echo "
<ul class='projectNavFirstLvl'>
<li>
<a href='javascript:;' class='linkMenu linkOrganization'
data-key='".$idElt."'
data-col='".$type."'
data-color='".$projectColorDefault."';
>".$elt["name"]."</a>
</li>";
$eltByColor[$idElt] = $projectColorDefault;
// LEVEL 2
if(!empty($elt["links"]["projects"])){
echo "<ul class='projectNavSecondLvl'>";
foreach ($elt["links"]["projects"] as $idElt2 => $valElt2) {
$elt2 = Element::getElementById($idElt2, "projects");
if(!empty($elt2)){
$linksElt2 = Element::getAllLinks($elt2["links"], $type, $idElt);
$private = false ;
if( isset($elt2["preferences"]) &&
isset($elt2["preferences"]["private"]) &&
$elt2["preferences"]["private"] == true ){
$private = true ;
if( !empty(Yii::app()->session["userId"]) &&
!empty($elt2["links"]) &&
!empty($elt2["links"]["contributors"]) &&
!empty($elt2["links"]["contributors"][Yii::app()->session["userId"]]) &&
empty($elt2["links"]["contributors"][Yii::app()->session["userId"]]["toBeValidated"]) ) {
$private = false ;
}
}
//echo $private ;
if($private === false){
echo "
<li>
<i class='toggleProjects fa fa-plus' aria-hidden='true'></i>
<a href='javascript:;' class='linkMenu projectBgColorAfterHover projectBgColorAfterActive'
data-key='".$idElt2."'
data-slug='".$elt2["slug"]."'
data-col='".Project::CONTROLLER."'
data-img='".Yii::app()->createUrl(@$elt2['profilMediumImageUrl'])."'
data-color='".$projectColor[$colorCount]."'
>".$elt2["name"]."</a></li>";
$eltByColor[$idElt2] = $projectColor[$colorCount];
// LEVEL 3
if(!empty($elt2["links"]["projects"])){
echo "<ul class='projectNavThirdLvl'>";
foreach ($elt2["links"]["projects"] as $idElt3 => $valElt3) {
$elt3 = Element::getElementById($idElt3, "projects");
$linksElt3 = Element::getAllLinks($elt3["links"], $type, $idElt);
echo "
<li>
<a href='javascript:;' class='linkMenu'
data-key='".$idElt3."'
data-slug='".$elt3["slug"]."'
data-col='".Project::CONTROLLER."'
data-img='".Yii::app()->createUrl(@$elt3['profilMediumImageUrl'])."'
data-color='".str_replace('1)','.82)',$projectColor[$colorCount])."'
>".$elt3["name"]."</a></li>";
$eltByColor[$idElt3] = $projectColor[$colorCount];
}
echo "</ul>"; $colorCount++;
}
}
}
}
echo "</ul>";
}
echo "</ul>";
}
?>
</div>
</div>
<div class="projectMask">
<div class="projectMaskContent">
<div class="projectMaskCell">
<img src="http://bestanimations.com/Science/Gears/loadinggears/loading-gears-animation-10.gif" alt="">
</div>
</div>
</div>
<div class="projectWrapper">
<div class="projectHeader">
<a href="" class="projectAdmin" target="_blank"><i class="fa tooltips fa-cog" data-original-title="" title=""></i></a>
<p class="projectShortDescription"></p>
<div class="projectBanner"></div>
<div class="projectThumb"></div>
<div class="projectHeaderOptions">
<div class="row">
<div class="col-xs-12 col-md-6 col-md-push-6 projectHeaderOptionsCont1">
<div class="col col-xs-4">
<a href="https://chat.communecter.org/channel/laRaffinerie" target="_blank" class="customBtnFull projectBgColor projectBgColorHover" id="btnChatRaffinerie"><?php echo Yii::t("cooperation", "Chat");?></a>
</div>
<div class="col col-xs-4">
<a id="follows" href="#" data-isco="false" data-id="<?php echo $idElt ; ?>" class="customBtnFull customTabTrigger projectBgColor projectBgColorHover">S'inscrire</a>
</div>
<div class="col col-xs-4">
<a id="outils2" href="#" data-id="<?php echo $idElt ; ?>" class="customBtnFull customTabTrigger projectBgColor projectBgColorHover">Outils</a>
</div>
</div>
<div class="col-xs-12 col-md-6 col-md-pull-6 projectHeaderOptionsCont2">
<div class="col col-xs-4 customTabTriggerDescr"><a href="#projectDescription" class="customTabTrigger customBtnLine">À propos</a></div>
<div class="col col-xs-4 customTabTriggerProj" ><a href="#projectChildren" class="customTabTrigger customBtnLine">Projets</a></div>
<div class="col col-xs-4 customTabTriggerContacts"><a href="#projectContacts" class="customTabTrigger customBtnLine">Contacts</a></div>
</div>
</div>
</div>
</div>
<?php
//$description = getDescription($elt);
?>
<div id="descriptionMarkdown" class="hidden"><?php //echo (empty($description) ? "" : $description ); ?></div>
<div id="projectDescription" class="customBlock customTab">
<button class="closeCustomTab">X</button>
<div id="descriptionAbout"></div>
<button class="customBtnTrigger">Lire la suite <i class="fa fa-angle-down"></i></button>
</div>
<div id="projectChildren" class="customBlock customTab">
<button class="closeCustomTab">X</button>
<div class="row"></div>
</div>
<div id="projectContacts" class="customBlock customTab">
<button class="closeCustomTab">X</button>
<div class="row"></div>
</div>
<div class="projectInfos customBlock">
<div class="projectInfosHeader">
<ul class="row nav nav-tabs">
<li class="nav-tab col-xs-4 active projectBgColorActive projectBgColorHover"><a data-toggle="tab" href="#journal">Journal</a></li>
<li class="nav-tab col-xs-4 projectBgColorActive projectBgColorHover"><a data-toggle="tab" href="#agenda">Agenda</a></li>
<li class="nav-tab col-xs-4 projectBgColorActive projectBgColorHover"><a data-toggle="tab" href="#documents">Fichiers</a></li>
</ul>
</div>
<div class="projectInfosContent tab-content">
<div id="journal" class="tab-pane active row">
<div id="journalTimeline"></div>
</div>
<div id="agenda" class="tab-pane row">
<div id='profil-content-calendar' class='col-xs-12 margin-bottom-20'></div>
<div id='list-calendar' class='col-xs-12 margin-bottom-20'></div>
</div>
<div id="documents" class="tab-pane row"></div>
</div>
</div>
</div>
</div>
<?php
$edit = Authorisation::canEditItem(Yii::app()->session["userId"], $type, $idElt);
$thumbAuthor = @$element['profilThumbImageUrl'] ?
Yii::app()->createUrl('/'.@$elt['profilThumbImageUrl'])
: $this->module->assetsUrl.'/images/thumbnail-default.jpg';
$openEdition = Authorisation::isOpenEdition($idElt, $type, @$elt["preferences"]);
$iconColor = Element::getColorIcon($type) ? Element::getColorIcon($type) : "";
$params = array( "element" => @$elt,
"type" => @$type,
"edit" => @$edit,
"thumbAuthor"=>@$thumbAuthor,
"openEdition" => $openEdition,
"iconColor" => $iconColor
);
$this->renderPartial('dda.views.co.pod.modals', $params );
?>
<script type="text/javascript">
var subView="<?php echo @$_GET['idLaR']; ?>";
var elt = <?php echo json_encode(@$elt); ?> ;
var typeElt = <?php echo json_encode(@$type); ?> ;
var idElt = <?php echo json_encode(@$idElt); ?> ;
var color = <?php echo json_encode(@$idElt); ?> ;
var defaultBannerUrl = ` <?php echo Yii::app()->theme->baseUrl. '/assets/img/background-onepage/connexion-lines.jpg';?> `;
var hashUrlPage = "#welcome";
var eltByColor = <?php echo json_encode(@$eltByColor); ?> ;
jQuery(document).ready(function() {
var paramR = {
typeP : typeElt,
idP : idElt
};
if(typeof subView != "undefined" && subView != null && subView != ""){
paramR.typeC = typeElt;
paramR.idC = subView;
}
laRObj.init(paramR);
});
/*
A géré :
- isContributor()
*/
</script>
\ No newline at end of file
......@@ -21,7 +21,11 @@
</style>
<article class="">
<img class="img-responsive" src='<?php echo Yii::app()->getModule("costum")->assetsUrl ?>/images/laRaffinerie3/planaccess.jpg'>
<!-- <img class="img-responsive" src='<?php //echo Yii::app()->getModule("costum")->assetsUrl ?>/images/laRaffinerie3/planaccess.jpg'> -->
<div>
Adresse : 41 rue Thirel 97460, Saint-Paul, Réunion
</div>
<br/>
<div class="col-xs-12 mapBackground no-padding" id="mapRaffinerie"></div>
</article>
......@@ -33,7 +37,7 @@ jQuery(document).ready(function() {
var paramsRaffinerie = {
container : "mapRaffinerie",
activePopUp : true,
tile : "mapbox2"
tile : "mapbox"
};
mapRaffinerie = mapObj.init(paramsRaffinerie);
allMaps.maps[paramsRaffinerie.container]=mapRaffinerie;
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment