$this->layout = 'base';
?>
-<div class="row">
- <p class="well">
- <?= __d("Home","Hello and welcome to Comptoir du libre.")?>
- </p>
-</div>
+<p class="well">
+ <?= __d("Home", "Hello and welcome to Comptoir du libre.") ?>
+</p>
<div class="row">
- <div class="col-xs-offset-1 col-xs-10 col-sm-offset-1 col-sm-10 col-md-10 col-md-offset-1 col-lg-10 main">
+ <div class="col-xs-offset-1 col-xs-10 col-sm-offset-1 col-sm-10 col-md-10 col-md-offset-1 col-lg-10">
+
+ <h2><?= __d("Home", "Top downloads") ?></h2>
- <div class="row">
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <h2><?= __d("Home","Top downloads")?></h2>
- </div>
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<?php if (isset($softwares)) : ?>
- <div class="row">
- <?php echo $this->Lists->softwares(\Cake\Utility\Hash::extract($softwares->softwares, '{n}'),true); ?>
+ <?php echo $this->Lists->softwares(\Cake\Utility\Hash::extract($softwares->softwares, '{n}'), true); ?>
<?php endif; ?>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
- <h2><?= __d("Home","Last added")?></h2>
- </div>
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
+ <h2><?= __d("Home", "Last added") ?></h2>
+
<?php if (isset($lastAdded)) : ?>
- <div class="row">
- <?php echo $this->Lists->softwares(\Cake\Utility\Hash::extract($lastAdded->softwares, '{n}'),true); ?>
- </div>
+ <?php echo $this->Lists->softwares(\Cake\Utility\Hash::extract($lastAdded->softwares, '{n}'), true); ?>
<?php endif; ?>
- </div>
- </div>
</div>
</div>
<?= $this->element("Navigation/navbarFixedTop") ?>
<div class="container-fluid">
<?= $this->fetch("content")?>
- <div class="row">
- <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
+
<?= $this->element("Pages/footer") ?>
- </div>
- </div>
</div>
</body>
</html>
<?= $this->element("Navigation/navbarFixedTop") ?>
<div class="container-fluid">
-
-
-
-
</div> <!-- .container-fluid -->
</body>
</html>
-
<head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
- <meta name="description" content="">
- <meta name="author" content="">
- <link rel="icon" href="../../favicon.ico">
-
- <title><?= __("Comptoir du libre") ?></title>
-
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
+ <meta name="description" content="">
+ <meta name="author" content="">
+ <link rel="icon" href="../../favicon.ico">
+ <title><?= __("Comptoir du libre") ?></title>
<?= $this->Html->charset() ?>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
<?= $this->Html->meta('icon') ?>
- <?= $this->Html->css('bootstrap/css/bootstrap.css')?>
- <?= $this->Html->css('bootstrap/css/bootstrap.min.css')?>
-
- <?= $this->Html->script('https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js')?>
- <?= $this->Html->script('bootstrap/js/bootstrap.min.js')?>
-<?= $this->Html->script('https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML') ?>
- <?= $this->Html->css('dashboard.css')?>
- <?= $this->Html->css('caroussel.css')?>
+ <?= $this->Html->css('bootstrap/css/bootstrap.css') ?>
+ <?= $this->Html->css('bootstrap/css/bootstrap.min.css') ?>
+ <?= $this->Html->script('https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js') ?>
+ <?= $this->Html->script('bootstrap/js/bootstrap.min.js') ?>
+ <?= $this->Html->script('https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML') ?>
+ <?= $this->Html->css('dashboard.css') ?>
+ <?= $this->Html->css('caroussel.css') ?>
<?= $this->Html->css('base.css') ?>
<?= $this->Html->css('cake.css') ?>
-
-
-
<?= $this->fetch('meta') ?>
<?= $this->fetch('css') ?>
<?= $this->fetch('script') ?>
-
-
-
-
-
-
- </head>
\ No newline at end of file
+</head>
\ No newline at end of file
<?php if (!empty( $softwares ) ): ?>
<div class="row">
- <div class="col-xs-offset-1 col-xs-10 col-sm-offset-1 col-sm-10 col-md-offset-1 col-md-10 col-lg-offset-1 col-lg-10 main">
- <div class="row">
- <div class="col-xs-12 col-md-12 col-lg-12">
+ <div class="col-xs-offset-1 col-xs-10 col-sm-offset-1 col-sm-10 col-md-offset-1 col-md-10 col-lg-offset-1 col-lg-10">
<h2>
<?= __d("ElementProject","Software list for Comptoir du libre")?>
</h2>
- </div>
- </div>
- <section class="row">
+ <section>
<?= $this->Lists->softwares($softwares)?>
</section>
</div>
?>
<div class="container-fluid" id="page-wrapper">
<div class="row">
- <div
- class="col-xs-offset-1 col-xs-10 col-sm-offset-1 col-sm-10 col-md-offset-1 col-md-10 col-lg-offset-1 col-lg-10 main">
+ <div class="col-xs-offset-1 col-xs-10 col-sm-offset-1 col-sm-10 col-md-offset-1 col-md-10 col-lg-offset-1 col-lg-10">
<div class="row">
+<!-- --------------------------------------------------------------------------------------------------------------------------------------------
+ ----------------------------------------------------------------- Overview ----------------------------------------------------------------
+-- ------------------------------------------------------------------------------------------------------------------------------------------ -->
<section>
<div class="overview-entity ">
<div class=" col-xs-12 col-sm-4 col-md-4 col-lg-4 hidden-xs">
</div>
</div>
</section>
+<!-- --------------------------------------------------------------------------------------------------------------------------------------------
+ ----------------------------------------------------------------- End overview ------------------------------------------------------------
+-- ------------------------------------------------------------------------------------------------------------------------------------------ -->
</div>
<div class="row">
]
); ?>
</section>
- </div>
-
+ </div>
<div class="row">
<section>
<?php
</div>
</div>
</div>
-</div>
</div>
\ No newline at end of file
'software' =>
'<li {{attrsColumn}}>
<div {{attrsBlock}}>
- <div>
- <h3>{{softwareName}}</h3>
- </div>
+ <h3>{{softwareName}}</h3>
<div>
{{LinkImage}}
</div>
- <div>
- <p {{attrsDescription}}>{{softwareDescription}}</p>
- </div>
+ <p {{attrsDescription}}>{{softwareDescription}}</p>
</div>
</li>',
'user' => '<li {{attrsColumn}}>
<div {{attrsBlock}}>
- <div>
- <h3 {{attrsTitle}}>{{name}}</h3>
- </div>
+ <h3 {{attrsTitle}}>{{name}}</h3>
<div>
{{LinkImage}}
</div>
}
/**
- * Definite css and bootstrap according to home page (4 col) or other pages (6 col) for softwareBlock.
+ * Define css and bootstrap according to home page (4 col) or other pages (6 col) for softwareBlock.
* //!\\ Bootstrap and customise Css Have to be on different html tags !
*/
- if ($limit == false){
- $attrsColumn = $this->templater()->formatAttributes(['class' => "col-xs-12 col-sm-4 col-md-3 col-lg-2"]);
- $attrsBlock = $this->templater()->formatAttributes(['class' => 'software-unit-all backgroundUnit list-unstyled']);
- } else{
- $attrsColumn = $this->templater()->formatAttributes(['class' => 'col-xs-12 col-sm-6 col-md-3 col-lg-3']);
- $attrsBlock = $this->templater()->formatAttributes(['class' => 'software-unit-home backgroundUnit list-unstyled']);
+ if ($limit == false) {
+ $attrsColumn = $this->templater()->formatAttributes(['class' => "col-xs-12 col-sm-4 col-md-3 col-lg-2"]);
+ $attrsBlock = $this->templater()->formatAttributes(['class' => 'software-unit-all backgroundUnit']);
+ } else {
+ $attrsColumn = $this->templater()->formatAttributes(['class' => 'col-xs-12 col-sm-6 col-md-3 col-lg-3']);
+ $attrsBlock = $this->templater()->formatAttributes(['class' => 'software-unit-home backgroundUnit']);
}
$result .= $this->formatTemplate('software', [
]);
}
}
-
- return null !== $result ? $this->Html->tag('ul', $result, ['class' => 'list-unstyled']) : null;
+ return null !== $result ? $this->Html->tag('ul', $result, ['class' => 'row list-unstyled']) : null;
}
/**
'link' => $participateLink
]
);
-
return $header . $softwareDisplay . $footer;
}
* Definite css and bootstrap according to home page (4 col) or other pages (6 col) for UsersBlock.
* //!\\ Bootstrap and customise Css Have to be on different html tags !
*/
- if ($limit == false){
- $attrsColumn = $this->templater()->formatAttributes(['class' => "col-xs-12 col-sm-4 col-md-3 col-lg-2"]);
+ if ($limit == false) {
+ $attrsColumn = $this->templater()->formatAttributes(['class' => "col-xs-12 col-sm-4 col-md-3 col-lg-2"]);
$attrsBlock = $this->templater()->formatAttributes(['class' => 'user-unit-all backgroundUnit list-unstyled']);
- } else{
- $attrsColumn = $this->templater()->formatAttributes(['class' => 'col-xs-12 col-sm-6 col-md-3 col-lg-3']);
+ } else {
+ $attrsColumn = $this->templater()->formatAttributes(['class' => 'col-xs-12 col-sm-6 col-md-3 col-lg-3']);
$attrsBlock = $this->templater()->formatAttributes(['class' => 'user-unit-home backgroundUnit list-unstyled']);
}
['title' => $options["titleSeeAll"]],
['escape' => false]);
}
-
$userDisplay = ($limit == true) ? $this->users(array_slice($users, 0, Configure::read("MAX_DISPLAY")), $limit) : $this->users($users, $limit);
}
'link' => $participateLink
]
);
-
return $header . $userDisplay . $footer;
}
'link' => $participateLink
]
);
-
return $header . $screenshotDisplay . $footer;
}
$result = "";
if (!empty($reviews)) {
foreach ($reviews as $review) {
-
$starsElement = "";
for ($stars = 0; $stars < $review->evaluation; $stars++) {
$starsElement .= $this->formatTemplate('stars',
'comment' => $this->Text->truncate($review->comment, 350, ['ellipsis' => '...', 'exact' => false]),
]);
-
}
}
-
return $result;
}
-
public function reviewBlock($items, array $options, $limit = true)
{
$link = "";
min-height: 17em;
padding: 15px;
max-width: 25em;
+ margin: 0 0 20px 0;
}
.software-unit-all {
}
/*
- *********************************** 800px
+ *********************************** 768px
*/
-@media (min-width: 800px) {
+@media (min-width: 768px) {
.size-box {
min-height: 18em;
}
.software-unit-home {
height: 19em;
padding: 15px;
+ margin: 0 0 45px 0;
}
.software-unit-all {