Commit 5ba63578 authored by raphael's avatar raphael
Browse files

Création du module api

parents
<?php
/**
* Api Module
*
* @author Tibor Katelbach <oceatoon@mail.com>
* @version 0.0.3
*
*/
class ApiModule extends CWebModule
{
public function init()
{
// this method is called when the module is being created
// you may place code here to customize the module or the application
Yii::app()->setComponents(array(
'errorHandler'=>array(
'errorAction'=>'/'.$this->id.'/error'
)
));
Yii::app()->homeUrl = Yii::app()->createUrl($this->id);
Yii::app()->theme = "ph-dori";
Yii::app()->language = (isset(Yii::app()->session["lang"])) ? Yii::app()->session["lang"] : 'fr';
// import the module-level models and components
$this->setImport(array(
'citizenToolKit.models.*',
$this->id.'.models.*',
$this->id.'.components.*',
$this->id.'.messages.*',
));
}
public function beforeControllerAction($controller, $action)
{
if (parent::beforeControllerAction($controller, $action))
{
// this method is called before any module controller action is performed
// you may place customized code here
return true;
}
else
return false;
}
private $_assetsUrl;
public function getAssetsUrl()
{
if ($this->_assetsUrl === null)
$this->_assetsUrl = Yii::app()->getAssetManager()->publish(
Yii::getPathOfAlias($this->id.'.assets') );
return $this->_assetsUrl;
}
}
This diff is collapsed.
#cityDetail .col-sm-4,#cityDetail .col-sm-8{
padding:5px !important;
}
#cityDetail .panel{
margin-bottom:10px !important;
}
.panel-title{
font-family: "Homestead";
}
.link-to-directory{
cursor:pointer;
}
.link-to-directory:hover{
text-decoration: underline;
}
.btn-to-directory{
width:100%;
margin-top: 10px;
font-weight: 500;
}
#btn-communecter{
width: auto;
font-size: 20px;
border-radius: 10px;
border: none;
position: absolute;
top: 10px;
right: 5%;
z-index:1;
background-color: rgba(255, 255, 255, 0.63);
padding-bottom: 5px;
box-shadow: 0px 0px 3px 3px RGBA(114, 114, 114, 0.31);
}
#btn-communecter small{
font-size:16px;
word-break: normal;
}
#btn-communecter:hover{
background-color: #E33551;
color:white !important;
}
h1.cityName-header{
background-color: rgba(255, 255, 255, 0.63);
padding: 30px;
margin-bottom: -3px;
font-size: 32px;
}
h1.you-live{
font-size: 18px !important;
padding: 10px;
border-radius: 0px;
margin: -5px -5px 5px;
font-weight: 300 !important;
margin-bottom: 0px;
}
.why-communect{
font-size:17px;
font-weight: 300;
margin-top:7px;
}
.margin-top-20{
margin-top:20px !important;
}
.btn-discover-more {
font-size:17px;
white-space: unset;
}
.info-why{
font-weight: 300;
height: 80px;
}
@media screen and (max-width: 1024px) {
#btn-communecter{
font-size:17px;
}
h1.you-live{
font-size:26px !important;
}
}
#pod-local-actors .list-group-item {
position: relative;
padding: 10px 5px;
margin-bottom: -1px;
background-color: #FFF;
border: 1px solid #DDD;
display: inline-block;
height: 125px;
text-align: center;
font-family: "homestead";
font-size: 17px;
border-radius: 0px;
border-right: 0px;
border-top: 0px;
margin-top: 1px;
}
#pod-local-actors .list-group-item:hover {
z-index: 1;
text-decoration: none !important;
-moz-box-shadow: 0px 0px 5px -1px #656565;
-webkit-box-shadow: 0px 0px 5px -1px #656565;
-o-box-shadow: 0px 0px 5px -1px #656565;
box-shadow: 0px 0px 5px -1px #656565;
filter:progid:DXImageTransform.Microsoft.Shadow(color=#656565, Direction=NaN, Strength=5);
}
#pod-local-actors .list-group-item .badge {
font-size: 14px;
font-family: Helvetica;
width: 50px;
height: 20px;
border-radius: 20px;
padding-top: 5px;
top: 11px;
right: 20px;
text-align: center;
}
.pod-local-actors .list-group-item .badge {
font-size: 14px;
font-family: Helvetica;
width: 50px;
height: 20px;
border-radius: 20px;
padding-top: 5px;
top: 11px;
right: 20px;
text-align: center;
}
.leaflet-popup-content .pod-local-actors .list-group-item {
position: relative;
display: block;
padding: 10px 5px;
margin-bottom: -1px;
background-color: #FFF;
width: 50%;
text-align: center;
height: 60px;
border: 1px solid #DDD;
font-weight: 500;
}
/*view randomOrga*/
#div-discover .btn-discover{
border-radius: 60px;
font-size: 50px;
font-weight: 200;
border: 1px solid transparent;
width: 90px;
height: 90px;
}
#div-discover .btn-discover:hover{
background-color: white !important;
border-color: #2BB0C6 !important;
color: #2BB0C6 !important;
}
#div-participate .btn-participate{
border-radius: 60px;
font-size: 50px;
font-weight: 200;
border: 1px solid transparent;
width: 120px;
height: 120px;
padding-top:20px;
}
#div-participate .btn-participate:hover{
background-color: white !important;
border-color: #E33551 !important;
color: #E33551 !important;
}
@media screen and (max-width: 768px) {
h1.cityName-header{
margin-top:0px;
}
#pod-local-actors .list-group-item{
height:90px;
font-size:13px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 300;
text-transform: capitalize;
}
#btn-communecter{
top:10px;
}
}
\ No newline at end of file
.main-menu-left{
position: fixed !important;
top: 70px;
z-index: 1;
}
.menu-button-left{
font-size:15px;
margin-bottom:5px;
color:#3C5665;
font-weight:300;
}
.menu-button-left:hover{
/*color:#2BB0C6;*/
}
.menu-button-left.selected{
/*color:#2BB0C6;*/
font-weight: 600;
}
.main-menu-left hr{
margin-top:5px;
margin-bottom:5px;
border-top: 1px solid rgba(72, 72, 72, 0.1) !important;
}
.moduleLabel{
margin-left:0px !important;
}
.lbl-btn-menu-name, .lbl-btn-menu-name-add, .lbl-btn-menu-name-city{
display: none;
font-size: 15px !important;
text-align: left;
padding: 0px;
border-radius: 26px;
z-index: 0;
width: 100px;
font-weight: 300;
/*font-family: "homestead";*/
}
.lbl-btn-menu-name-add, .lbl-btn-menu-name-city{
display: inline;
}
.text-green-success{
color:#7ACF5B;
}
.hover-menu{
width: 17%;
height: 400px;
position: fixed;
top: 0px;
left: 0px;
z-index: 1;
overflow: visible;
/*background-color: red;*/
}
.hover-menu.HM-right-side{
left: unset;
right: 0px;
height: 0px;
}
.explain ul{
list-style: none;
font-size: 1.5em;
}
.drop-up-btn-add{
display:none;
position: fixed;
bottom: 75px;
right: 25px;
height: 220px;
background-color: transparent;
width: 300px;
z-index:10;
}
.drop-up-btn-add button{
padding-right:6px;
}
.btn-menu-add1{
position:absolute !important;
top:15px;
right:15px;
}
.btn-menu-add2{
position:absolute !important;
top:65px;
right:15px;
}
.btn-menu-add3{
position:absolute !important;
top:115px;
right:15px;
}
.btn-menu-add4{
position:absolute !important;
top:165px;
right:15px;
}
.hover-info{
display: none;
margin-top: 130px;
position: fixed !important;
top: 0px;
left: 0px;
z-index: 12;
overflow: visible;
border: 0px solid #3C5665;
border-radius:5px;
background-color: white;
-moz-box-shadow: 0px 0px 5px 0px #353535 !important;
-webkit-box-shadow: 0px 0px 5px 0px #353535 !important;
-o-box-shadow: 0px 0px 5px 0px #353535 !important;
box-shadow: 0px 0px 5px 0px #353535 !important;
filter:progid:DXImageTransform.Microsoft.Shadow(color=#2BB0C6, Direction=NaN, Strength=5) !important;
}
.explain ul{
list-style: none;
font-size: 1.3em;
}
.infoVersion{
display: none;
position: fixed;
bottom: 185px;
left : 20px;
}
.homeShortcuts{position:absolute;top:420px;right:20px;}
.homeShortcuts ul{list-style: none; }
.homeShortcuts a{color: #9D9396;}
.homeShortcuts a:hover{ color: #00B8EB;}
#menu-bottom{
position:fixed;
bottom:0px;
left:0px;
height:40px;
width:100%;
background-color:white;
z-index: 10;
-moz-box-shadow: 0px -2px 5px -2px #353535 !important;
-webkit-box-shadow: 0px -2px 5px -2px #353535 !important;
-o-box-shadow: 0px -2px 5px -2px #353535 !important;
box-shadow: 0px -2px 5px -2px #353535 !important;
filter:progid:DXImageTransform.Microsoft.Shadow(color=#2BB0C6, Direction=NaN, Strength=5) !important;
}
#menu-bottom .btn-menu-add {
border-radius: 0px;
right: 0px;
bottom: 0px;
height: 40px;
}
@media screen and (max-width: 767px) {
#searchBarPostalCode{
position: absolute;
left: 40px !important;
bottom: 39px !important;
margin-top: 10px;
width: 100% !important;
margin-left: 0px;
font-family: "homestead";
font-size: 22px !important;
border-radius: 0px !important;
height: 45px;
text-align: center;
margin: 0px !important;
padding-left: 15px !important;
}
#input-communexion {
width: 100%;
}
#input-communexion .search-loader {
position: relative;
left: 41px !important;
width: 100% !important;
max-width: 100% !important;
font-weight: 600;
font-size: 12px;
background-color: rgb(255, 255, 255);
padding: 5px;
border-radius: 0px 5px 0px 0px;
text-align: left;
bottom: 82px !important;
height: 30px !important;
max-height: 30px !important;
-moz-box-shadow: 0px -2px 5px -2px #353535 !important;
-webkit-box-shadow: 0px -2px 5px -2px #353535 !important;
-o-box-shadow: 0px -2px 5px -2px #353535 !important;
box-shadow: 0px -2px 5px -2px #353535 !important;
filter:progid:DXImageTransform.Microsoft.Shadow(color=#2BB0C6, Direction=NaN, Strength=5) !important;
}
.btn-start-new-communexion {
bottom: 40px !important;
left: unset !important;
right: 0px !important;
border-radius: 0% !important;
width: 43px !important;
padding: 11px 3px 3px 15px !important;
box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.39) !important;
height: 43px !important;
}
#menu-bottom .input-global-search{
left: 40px;
height: 40px;
/* top: 75px; */
bottom: 0px;
position: absolute;
width: 80%;
z-index: 1;
border: 0px;
}
.main-top-menu .dropdown-result-global-search {
bottom: 40px;
right: 5%;
width: 90%;
top: unset;
border-radius: 10px 10px 0px 0px;
-moz-box-shadow: 0px -9px 12px 3px rgba(66, 66, 66, 0.37) !important;
-webkit-box-shadow: 0px -9px 12px 3px rgba(66, 66, 66, 0.37) !important;
-o-box-shadow: 0px -9px 12px 3px rgba(66, 66, 66, 0.37) !important;
box-shadow: 0px -9px 12px 3px rgba(66, 66, 66, 0.37) !important;
filter:progid:DXImageTransform.Microsoft.Shadow(color=#2BB0C6, Direction=NaN, Strength=5) !important;
}
.drop-up-btn-add {
bottom: 40px;
right: 0px;
background-color: rgba(255, 255, 255, 0.8);
}
}
#iframe-kkbb {
width: 400px;
height: 400px;
position: fixed;
z-index: 1000;
top: 0px;
left: 0px;
}
ul{ font-weight: 300; font-size:14px; color:#3C5665 !important;}
h3{ font-weight: 300;}
.explainTitle{cursor:pointer; background-color: #656565; padding: 10px; text-align: center; color: #fff; margin:0px;border-top: 1px solid #666;}
.explainTitle:hover{opacity: 0.8}
.explainDesc{ padding: 10px; }
.caretExplain{position: relative;top: 0px;color:#656565;}
.fa-caret-down{font-size:56px;line-height: 10px;}
.globale-announce{
position: fixed;
bottom: 0px;
background-color: rgb(255, 255, 255);
z-index: 1;
width: 400px;
margin-left: 20%;
padding-top: 10px !important;
font-size: 16px;
border-radius: 10px 10px 0px 0px;
padding: 10px;
border-radius: 10px 10px 0px 0px;
-moz-box-shadow: 0px -2px 5px -2px #353535 !important;
-webkit-box-shadow: 0px -2px 5px -2px #353535 !important;
-o-box-shadow: 0px -2px 5px -2px #353535 !important;
box-shadow: 0px -2px 5px -2px #353535 !important;
filter:progid:DXImageTransform.Microsoft.Shadow(color=#2BB0C6, Direction=NaN, Strength=5) !important;
}
#btn-close-globale-announce{
width: 30px;
height: 30px;
border-radius: 20px;
position: absolute;
right: 5px;
top: 4px;
text-align: center;
padding: 0px;
}
.main-menu-right{
border-radius: 7px;
padding-right: 40px;
}
.main-menu-right button.menu-button{
font-size: 14px;
height: 35px;
min-width: 35px;
background-color: #fff;
font-family: unset;
text-transform: capitalize;
-moz-box-shadow: 0px 0px 5px 0px rgba(66, 66, 66, 0.79) !important;
-webkit-box-shadow: 0px 0px 5px 0px rgba(66, 66, 66, 0.79) !important;
-o-box-shadow: 0px 0px 5px 0px rgba(66, 66, 66, 0.79) !important;
box-shadow: 0px 0px 5px 0px rgba(66, 66, 66, 0.79) !important;
}
.main-menu-right button.menu-button:hover{
-moz-box-shadow: 0px 0px 5px 2px rgba(66, 66, 66, 0.79) !important;
-webkit-box-shadow: 0px 0px 5px 2px rgba(66, 66, 66, 0.79) !important;
-o-box-shadow: 0px 0px 5px 2px rgba(66, 66, 66, 0.79) !important;
box-shadow: 0px 0px 5px 2px rgba(66, 66, 66, 0.79) !important;
}
.main-menu-right .lbl-btn-menu-name{
font-size: 15px;
font-weight: 300;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
text-transform: none;
}
button.btn-menu5{
right: 27px;
top: 70px;
/*background-color: #32454E !important;*/
font-size: 21px;
min-width: 42px;
height: 43px;
padding-left: 4px;
z-index:0 !important;
}
button.btn-menu6{
right: 27px;
top: 140px;
/*background-color: #32454E !important;*/
font-size: 20px;
min-width: 42px;
height: 43px;
padding-left: 6px;
z-index: 0 !important;
}
button.btn-menu6 i{
font-size:16px;
}
button.btn-menu7{
right: 27px;
top: 183px;
/*background-color: #32454E !important;*/
font-size: 20px;
min-width: 42px;