index.php 9.01 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
	#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;
	}
	#menu-left ul li a{
		width: 100%;
	    float: left;
	    padding: 5px 20px;
	    text-align: left;
	    font-size: 16px;
	    border-bottom: 1px solid #ccc;
	    color: #354C57;
	}
	#menu-left ul li a.active, #menu-left ul li a:hover{
		text-decoration: none;
		background-color:#E5344D;
		color: white;
		font-size: 18px;
	}
	.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
56 57 58
	ul.subMenu{
		padding-left:15px;
	}
Tibor Katelbach's avatar
Tibor Katelbach committed
59
</style>
Clément Damiens's avatar
 
Clément Damiens committed
60 61 62 63 64 65 66 67 68 69
<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">
		<li class="">
			<a href="javascript:" class="link-docs-menu active" data-type="welcome" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
70
				<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
71 72 73 74
			</a>
		</li>
		<li class="">
			<a href="javascript:" class="link-docs-menu" data-type="about" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
75
				<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","A<span class='text-red'>BO</span>UT<span class='text-red'>CO</span>NNAITRE"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
76 77 78 79
			</a>
			<ul class="subMenu">
				<li class="">
					<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
80
						<?php echo Yii::t("common","Open Atlas"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
81 82 83 84
					</a>
				</li>
				<li class="">
					<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
85
						<?php echo Yii::t("docs","Philosophy"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
86 87 88 89
					</a>
				</li>
				<li class="">
					<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
90
						<?php echo Yii::t("docs","Projects"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
91 92 93 94
					</a>
				</li>
				<li class="">
					<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
95
						<?php echo Yii::t("docs","Keywords"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
96 97 98 99
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="partners" data-dir="panels">
Clément Damiens's avatar
doc up  
Clément Damiens committed
100
						<?php echo Yii::t("docs","Community"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
101 102 103 104
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="history" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
105
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","History"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
106 107 108 109
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="commandement" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
110
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","10 Commands"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
111 112 113 114
					</a>
				</li>
				<li class="">
					<a href="https://github.com/pixelhumain/buildingCommons/blob/master/codeSocialOpenSystem.md" target="_blank" class="">
Clément Damiens's avatar
doc up  
Clément Damiens committed
115
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Social code"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
116 117 118 119
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="financement" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
120
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Finances"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
121 122 123 124 125 126 127
					</a>
				</li>
			</ul>
		</li>
		<li role="separator" class="divider"></li>
		<li class="">
			<a href="javascript:" class="link-docs-menu" data-type="modules">
Clément Damiens's avatar
doc up  
Clément Damiens committed
128
				<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","HOW <span class='text-red'>TO</span> USE<span class='text-red'>CO</span>MPRENDRE"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
129 130 131 132
			</a>
			<ul class="subMenu">
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="elements">
Clément Damiens's avatar
doc up  
Clément Damiens committed
133
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Elements"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
134 135 136 137
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="modules">
Clément Damiens's avatar
doc up  
Clément Damiens committed
138
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Modules"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
139 140 141 142
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="import" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
143
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Data play"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
144 145 146 147
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="faq">
Clément Damiens's avatar
doc up  
Clément Damiens committed
148
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","FAQ"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
149 150 151 152 153 154
					</a>
				</li>
			</ul>
		</li>
		<li class="">
			<a href="javascript:" class="link-docs-menu" data-type="help" data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
155
				<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","<span class='text-red'>CO</span>NTRIBUTE<span class='text-red'>CO</span>NSTRUIRE"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
156 157 158 159
			</a>
		</li>
		<li class="">
			<a href="javascript:" class="link-docs-menu" data-type="code" data-lang="true">
Clément Damiens's avatar
doc up  
Clément Damiens committed
160
				<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","<span class='text-red'>CO</span>DING<span class='text-red'>CO</span>GEEK"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
161 162 163 164
			</a>
			<ul class="subMenu">
				<li class="">
					<a href="api" target="_blank" >
Clément Damiens's avatar
doc up  
Clément Damiens committed
165
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Play with API"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
166 167
					</a>
				</li>
Tibor Katelbach's avatar
Tibor Katelbach committed
168
				
Clément Damiens's avatar
 
Clément Damiens committed
169 170
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="openSourceWeUse"  data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
171
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Open Source We use"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
172 173 174 175 176 177 178 179 180
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="ocdb"  data-dir="<?php echo Yii::app()->language ?>">
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("common","OCDB"); ?>
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="rd">
Clément Damiens's avatar
doc up  
Clément Damiens committed
181
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","R&D"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
182 183 184 185
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="roadmap"  data-dir="<?php echo Yii::app()->language ?>">
Clément Damiens's avatar
doc up  
Clément Damiens committed
186
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","RoadMap"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
187 188 189 190
					</a>
				</li>
			</ul>
		</li>
Tibor Katelbach's avatar
Tibor Katelbach committed
191
		
Clément Damiens's avatar
 
Clément Damiens committed
192 193
		<li class="">
			<a href="javascript:" class="link-docs-menu" data-type="contact" data-lang="true">
Clément Damiens's avatar
doc up  
Clément Damiens committed
194
				<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","<span class='text-red'>CO</span>MMUNICATE<span class='text-red'>CO</span>MMUNIQUER"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
195 196 197 198
			</a>
			<ul class="subMenu">
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="contact" data-dir="panels">
Clément Damiens's avatar
doc up  
Clément Damiens committed
199
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Contact"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
200 201 202 203
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="philosophy">
Clément Damiens's avatar
doc up  
Clément Damiens committed
204
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Share"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
205 206 207 208
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="affiches" data-dir="communication">
Clément Damiens's avatar
doc up  
Clément Damiens committed
209
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Drawings"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
210 211 212 213
					</a>
				</li>
				<li class="">
					<a href="javascript:" class="link-docs-menu" data-type="video" data-dir="">
Clément Damiens's avatar
doc up  
Clément Damiens committed
214
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Videos"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
215 216
					</a>
				</li>
Clément Damiens's avatar
doc up  
Clément Damiens committed
217
				<!--<li class="">
Clément Damiens's avatar
 
Clément Damiens committed
218
					<a href="javascript:" class="link-docs-menu" data-type="media">
Clément Damiens's avatar
doc up  
Clément Damiens committed
219
						<i class="fa fa-angle-right"></i> <?php echo Yii::t("docs","Medias"); ?>
Clément Damiens's avatar
 
Clément Damiens committed
220
					</a>
Clément Damiens's avatar
doc up  
Clément Damiens committed
221
				</li>-->
Clément Damiens's avatar
 
Clément Damiens committed
222 223 224 225 226
			</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
227 228 229
</div>
<script type="text/javascript">
jQuery(document).ready(function() {
Clément Damiens's avatar
 
Clément Damiens committed
230 231 232 233 234 235
	navInDocs("welcome", mainLanguage);
	$(".link-docs-menu").click(function(){
		navInDocs($(this).data("type"), $(this).data("dir"), $(this).data("get"));
		$(".link-docs-menu").removeClass("active").find("i").removeClass("fa-angle-down").addClass("fa-angle-right");
		$(this).addClass("active").find("i").removeClass("fa-angle-right").addClass("fa-angle-down");
	});
Tibor Katelbach's avatar
Tibor Katelbach committed
236
});
Clément Damiens's avatar
 
Clément Damiens committed
237 238 239 240 241 242 243 244 245 246 247 248 249
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>