index.php 9.84 KB
Newer Older
Tibor Katelbach's avatar
Tibor Katelbach committed
1
<style type="text/css">
Clément Damiens's avatar
 
Clément Damiens committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
	#menu-left{
		position: fixed;
    	z-index: 100000;
	    bottom: 0;
	    top: 60px;
	    left: 0;
	    padding: 0;
	    overflow-y: scroll;
	}
	#header-doc{
		position: fixed;
		z-index: 100000;
		top: 0px;
		left: 0px;
		height: 60px;
		right: 0px;
		padding-top: 10px;
		background-color: white;
	}
	#header-doc h2{
		float: left;
	    color: #354C57;
	    font-size: 20px;
	    font-variant: small-caps;
	    line-height: 41px;
	    padding: 0px 10px;
	}
	#menu-left ul li{
		list-style: none;
	}
Clément Damiens's avatar
 
Clément Damiens committed
32 33 34 35 36 37 38 39
	#menu-left > ul > li > a{
		font-size: 20px;
	}
	ul.subMenu > li > a{
		font-size:16px;
	}
	#menu-left > ul > li > a, ul.subMenu > li > a{
		color: #354C57;
Clément Damiens's avatar
 
Clément Damiens committed
40 41 42 43 44
		width: 100%;
	    float: left;
	    padding: 5px 20px;
	    text-align: left;
	}
Clément Damiens's avatar
 
Clément Damiens committed
45 46 47 48
	#menu-left ul li .subMenu, #menu-left > ul > li > a{
		border-bottom: 1px solid #ccc;
	}
	#menu-left > ul > li > a.active, #menu-left > ul > li > a:hover{
Clément Damiens's avatar
 
Clément Damiens committed
49 50 51
		text-decoration: none;
		background-color:#E5344D;
		color: white;
Clément Damiens's avatar
 
Clément Damiens committed
52 53 54 55 56 57 58 59 60 61
		font-size: 22px;
	}
	ul.subMenu > li > a.active, ul.subMenu > li > a:hover{
		border-left: 4px solid #E5344D;
		color: #E5344D;
		font-size:18px;
		text-decoration: none;
	}
	#menu-left ul li a.active span.text-red, #menu-left ul li a:hover span.text-red{
		color:#354C57 !important;
Clément Damiens's avatar
 
Clément Damiens committed
62 63 64 65 66 67 68 69 70 71
	}
	.close-modal{
		top: 10px !important;
    	right: 10px !important;
     	z-index: 100000000000000 !important;
    	position: fixed !important;
	}
	.close-modal .lr, .close-modal .rl{
		height: 40px !important;
	}
Clément Damiens's avatar
doc up  
Clément Damiens committed
72
	ul.subMenu{
Clément Damiens's avatar
 
Clément Damiens committed
73 74 75 76 77
		/*display:none;*/

	}
	ul.subMenu{
		padding-left: 30px
Clément Damiens's avatar
doc up  
Clément Damiens committed
78
	}
Tibor Katelbach's avatar
Tibor Katelbach committed
79
</style>
Clément Damiens's avatar
 
Clément Damiens committed
80 81 82 83 84 85 86 87
<div id="header-doc" class="shadow2">
	<button id="show-menu-xs" class="visible-xs tooltips" data-placement="bottom" data-title="Menu"><i class="fa fa-menu"></i></button>
	<h2><i class="fa fa-book"></i><?php echo Yii::t("docs", "All you need to know about") ?></h2>
	<img src="<?php echo Yii::app()->theme->baseUrl; ?>/assets/img/LOGOS/CO2/logo-head-search.png" 
                     class="logo-menutop main pull-left hidden-xs hidden-sm" height=30>
</div>
<div id="menu-left" class="col-md-3 col-sm-2 hidden-xs shadow2">
	<ul class="col-md-12 col-sm-12 col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
88 89
		<li class="col-xs-12 no-padding">
			<a href="javascript:" class="link-docs-menu active down-menu" data-type="welcome" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
90
				<i class="fa fa-angle-down"></i> <?php echo Yii::t("docs","WEL<span class='text-red'>CO</span>ME"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
91 92
			</a>
		</li>
Clément Damiens's avatar
 
Clément Damiens committed
93 94 95
		<li class="col-xs-12 no-padding">
			<a href="javascript:" class="link-docs-menu down-menu" data-type="about" data-dir="<?php echo Yii::app()->language ?>">
				<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","A<span class='text-red'>BO</span>UT"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
96
			</a>
Clément Damiens's avatar
 
Clément Damiens committed
97 98 99
			<ul class="subMenu col-xs-12 no-padding">
				<li class="col-xs-12 no-padding">
					<a href="javascript:" class="link-docs-menu" data-type="openatlas" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
100
						<?php echo Yii::t("common","Open Atlas"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
101 102
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
103
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
104
					<a href="javascript:" class="link-docs-menu" data-type="philosophy" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
105
						<?php echo Yii::t("docs","Philosophy"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
106 107
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
108 109
				<li class="col-xs-12 no-padding">
					<a href="javascript:" class="link-docs-menu" data-type="projects" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
110
						<?php echo Yii::t("docs","Projects"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
111 112
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
113
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
114
					<a href="javascript:" class="link-docs-menu" data-type="keywords" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
115
						<?php echo Yii::t("docs","Keywords"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
116 117
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
118
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
119
					<a href="javascript:" class="link-docs-menu" data-type="partners" data-dir="panels">
Clément Damiens's avatar
doc up  
Clément Damiens committed
120
						<?php echo Yii::t("docs","Community"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
121 122
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
123
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
124
					<a href="javascript:" class="link-docs-menu" data-type="history" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
 
Clément Damiens committed
125
						<?php echo Yii::t("docs","History"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
126 127
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
128
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
129
					<a href="javascript:" class="link-docs-menu" data-type="commandement" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
 
Clément Damiens committed
130
						<?php echo Yii::t("docs","10 Commands"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
131 132
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
133
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
134
					<a href="https://github.com/pixelhumain/buildingCommons/blob/master/codeSocialOpenSystem.md" target="_blank" class="">
Clément Damiens's avatar
 
Clément Damiens committed
135
						<?php echo Yii::t("docs","Social code"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
136 137
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
138
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
139
					<a href="javascript:" class="link-docs-menu" data-type="financement" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
 
Clément Damiens committed
140
						<?php echo Yii::t("docs","Funding"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
141 142 143 144
					</a>
				</li>
			</ul>
		</li>
Clément Damiens's avatar
 
Clément Damiens committed
145 146 147
		<li class="col-xs-12 no-padding">
			<a href="javascript:" class="link-docs-menu down-menu" data-type="modules">
				<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","HOW <span class='text-red'>TO</span> USE"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
148
			</a>
Clément Damiens's avatar
 
Clément Damiens committed
149 150
			<ul class="subMenu col-xs-12 no-padding">
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
151
					<a href="javascript:" class="link-docs-menu" data-type="elements">
Clément Damiens's avatar
 
Clément Damiens committed
152
						 <?php echo Yii::t("docs","The elements"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
153 154
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
155
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
156
					<a href="javascript:" class="link-docs-menu" data-type="modules">
Clément Damiens's avatar
 
Clément Damiens committed
157
						<?php echo Yii::t("docs","Applications"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
158 159
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
160
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
161
					<a href="javascript:" class="link-docs-menu" data-type="import" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
 
Clément Damiens committed
162
						<?php echo Yii::t("docs","Game of data"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
163 164
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
165
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
166
					<a href="javascript:" class="link-docs-menu" data-type="faq">
Clément Damiens's avatar
 
Clément Damiens committed
167
						<?php echo Yii::t("docs","FAQ"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
168 169 170 171
					</a>
				</li>
			</ul>
		</li>
Clément Damiens's avatar
 
Clément Damiens committed
172 173 174
		<li class="col-xs-12 no-padding">
			<a href="javascript:" class="link-docs-menu down-menu" data-type="help" data-dir="<?php echo Yii::app()->language ?>">
				<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","<span class='text-red'>CO</span>NTRIBUTE"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
175 176
			</a>
		</li>
Clément Damiens's avatar
 
Clément Damiens committed
177 178 179
		<li class="col-xs-12 no-padding">
			<a href="javascript:" class="link-docs-menu down-menu" data-type="5w" data-dir="<?php echo Yii::app()->language ?>">
				<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","<span class='text-red'>CO</span>DING"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
180
			</a>
Clément Damiens's avatar
 
Clément Damiens committed
181 182
			<ul class="subMenu col-xs-12 no-padding">
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
183
					<a href="api" target="_blank" >
Clément Damiens's avatar
 
Clément Damiens committed
184
						<?php echo Yii::t("docs","Play with API"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
185 186
					</a>
				</li>
Tibor Katelbach's avatar
Tibor Katelbach committed
187
				
Clément Damiens's avatar
 
Clément Damiens committed
188
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
189
					<a href="javascript:" class="link-docs-menu" data-type="openSourceWeUse"  data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
 
Clément Damiens committed
190
						<?php echo Yii::t("docs","Open Source We use"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
191 192
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
193
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
194
					<a href="javascript:" class="link-docs-menu" data-type="ocdb"  data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
 
Clément Damiens committed
195
						<?php echo Yii::t("common","OCDB"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
196 197
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
198
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
199
					<a href="javascript:" class="link-docs-menu" data-type="rd">
Clément Damiens's avatar
 
Clément Damiens committed
200
					 <?php echo Yii::t("docs","Research&Dev"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
201 202
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
203
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
204
					<a href="javascript:" class="link-docs-menu" data-type="roadmap"  data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
 
Clément Damiens committed
205
						<?php echo Yii::t("docs","RoadMap"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
206 207 208 209
					</a>
				</li>
			</ul>
		</li>
Tibor Katelbach's avatar
Tibor Katelbach committed
210
		
Clément Damiens's avatar
 
Clément Damiens committed
211 212 213
		<li class="col-xs-12 no-padding">
			<a href="javascript:" class="link-docs-menu down-menu"  data-type="contact" data-dir="panels">
				<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","<span class='text-red'>CO</span>MMUNICATE"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
214
			</a>
Clément Damiens's avatar
 
Clément Damiens committed
215 216
			<ul class="subMenu no-padding">
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
217
					<a href="javascript:" class="link-docs-menu" data-type="contact" data-dir="panels">
Clément Damiens's avatar
 
Clément Damiens committed
218
						<?php echo Yii::t("docs","Contact"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
219 220
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
221
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
222
					<a href="javascript:" class="link-docs-menu" data-type="affiches" data-dir="communication">
Clément Damiens's avatar
 
Clément Damiens committed
223
						<?php echo Yii::t("docs","Drawings"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
224 225
					</a>
				</li>
Clément Damiens's avatar
 
Clément Damiens committed
226
				<li class="col-xs-12 no-padding">
Clément Damiens's avatar
 
Clément Damiens committed
227
					<a href="javascript:" class="link-docs-menu" data-type="video" data-dir="">
Clément Damiens's avatar
 
Clément Damiens committed
228
					 <?php echo Yii::t("docs","Videos"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
229 230
					</a>
				</li>
Clément Damiens's avatar
doc up  
Clément Damiens committed
231
				<!--<li class="">
Clément Damiens's avatar
 
Clément Damiens committed
232
					<a href="javascript:" class="link-docs-menu" data-type="media">
Clément Damiens's avatar
doc up  
Clément Damiens committed
233
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Medias"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
234
					</a>
Clément Damiens's avatar
doc up  
Clément Damiens committed
235
				</li>-->
Clément Damiens's avatar
 
Clément Damiens committed
236 237 238 239 240
			</ul>
		</li>
	</ul>
</div>
<div id="container-docs" class="col-sm-offset-2 col-md-offset-3 col-md-9 col-sm-10 col-xs-12 no-padding">
Tibor Katelbach's avatar
Tibor Katelbach committed
241 242 243
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
Clément Damiens's avatar
 
Clément Damiens committed
244 245
	navInDocs("welcome", mainLanguage);
	$(".link-docs-menu").click(function(){
Clément Damiens's avatar
 
Clément Damiens committed
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
		if($(this).hasClass("down-menu")){
			//$(".subMenu").hide(700);
			//$(this).parent().find(".subMenu").show(700);
			$("#menu-left > ul > li > a").removeClass("active").find("i").removeClass("fa-angle-down").addClass("fa-angle-right");
			$(".subMenu .link-docs-menu").removeClass("active");
			$(this).addClass("active").find("i").removeClass("fa-angle-right").addClass("fa-angle-down");
		}else{
			$(".subMenu .link-docs-menu").removeClass("active");
			$(this).addClass("active");
			if(!$(this).parents().eq(2).find(".link-docs-menu:first").hasClass("active")){
				$("#menu-left > ul > li > a").removeClass("active").find("i").removeClass("fa-angle-down").addClass("fa-angle-right");
				$(this).parents().eq(2).find(".link-docs-menu:first").addClass("active").find("i").removeClass("fa-angle-right").addClass("fa-angle-down");
			}
			
		}
Clément Damiens's avatar
 
Clément Damiens committed
261 262
		navInDocs($(this).data("type"), $(this).data("dir"), $(this).data("get"));
	});
Tibor Katelbach's avatar
Tibor Katelbach committed
263
});
Clément Damiens's avatar
 
Clément Damiens committed
264 265 266 267 268 269 270 271 272 273 274 275 276
function navInDocs(page, dir, get){
	showLoader('#container-docs');
	add="";
	if(notNull(dir) && dir !="")
		add="|"+dir;
	//if(notNull(lang))
	//	add=mainLanguage;
	//else
	//	add="panels";
	ajaxPost('#container-docs' ,baseUrl+'/'+moduleId+"/default/view/page/"+page+"/dir/docs"+add,
			 null,function(){},"html");
}
</script>