<span class="icon-bar"></span>
</button>
- <?php if ($this->request->here == $this->request->base): ?>
- <span class="navbar-brand cdl-navbar-logo">
+ <?php if ($this->isHere ("home", "index")): ?>
+ <span class="navbar-brand cdl-navbar-logo light-on">
<?= $this->Html->image(
"logos/Logo_comptoir_navbar.png",
["alt" => __d("ElementNavigation", "Comptoir du libre")]) ?>
<!-- /!\ without id = no button working -->
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
-
- <?php if ($this->request->isHere("Project")): ?>
+ <?php if ($this->isHere("Softwares")): ?>
<li class="light-on">
- <span class="navbar-text text-center"><?= __d("ElementNavigation", "All softwares") ?></span>
+ <strong class="navbar-text text-center"><?= __d("ElementNavigation", "All softwares") ?></strong>
<?php elseif (!$this->request->isHere("Project")): ?>
- <li>
+ <li class="light-off">
<?= $this->Html->link(__d("ElementNavigation", "All softwares"),
['controller' => 'Softwares', 'action' => 'index'],
['escape' => false]) ?>
<?php endif; ?>
</li>
- <?php if ($this->request->isHere("Users")): ?>
+ <?php if ($this->isHere("Users")): ?>
<li class="light-on">
- <span class="navbar-text text-center"><?= __d("ElementNavigation", "All users") ?></span>
+ <strong class="navbar-text text-center"><?= __d("ElementNavigation", "All users") ?></strong>
<?php elseif (!$this->request->isHere("Users")): ?>
- <li>
+ <li class="light-off">
<?= $this->Html->link(__d("ElementNavigation", "All users"),
['controller' => 'Users', 'action' => 'index'],
['escape' => false]) ?>
<?php endif; ?>
</li>
- <?php if ($this->request->isHere("Users", "providers")): ?>
+ <?php if ($this->isHere("Users", "providers")): ?>
<li class="light-on">
- <span
- class="navbar-text text-center"><?= __d("ElementNavigation", "All service providers") ?></span>
+ <strong class="navbar-text text-center"><?= __d("ElementNavigation", "All service providers") ?></strong>
<?php elseif (!$this->request->isHere("Users", "providers")): ?>
- <li>
+ <li class="light-off">
<?= $this->Html->link(__d("ElementNavigation", "All service providers"),
['controller' => 'Users', 'action' => 'providers'],
['escape' => false]) ?>
<?php endif; ?>
</li>
- <?php if ($this->request->isHere("participate")): ?>
+ <?php if ($this->isHere("Home","participate")): ?>
<li class="light-on">
- <span
- class="navbar-text text-center"><?= __d("ElementNavigation", "Participate") ?></span>
+ <strong class="navbar-text text-center"><?= __d("ElementNavigation", "participate") ?></strong>
<?php elseif (!$this->request->isHere("contact")): ?>
- <li>
+ <li class="light-off">
<?= $this->Html->link(__d("ElementNavigation", "Participate"),
['controller' => 'Home', 'action' => 'participate'],
['escape' => false]) ?>
<?php endif; ?>
</li>
- <?php if ($this->request->isHere("contact")): ?>
+ <?php if ($this->isHere("Home","contact")): ?>
<li class="light-on">
- <span
- class="navbar-text text-center"><?= __d("ElementNavigation", "Contact") ?></span>
+ <strong class="navbar-text text-center"><?= __d("ElementNavigation", "Contact") ?></strong>
<?php elseif (!$this->request->isHere("contact")): ?>
- <li>
+ <li class="light-off">
<?= $this->Html->link(__d("ElementNavigation", "Contact"),
['controller' => 'Home', 'action' => 'contact'],
['escape' => false]) ?>
protected $_defaultConfig = [
'templates' => [
- 'score_default' => '<{{tag}}{{attrs}}>{{score}}</{{tag}}>',
+ 'score_default' => '<{{tag}}{{attrs}}><abbr {{title}}>{{score}}</abbr></{{tag}}>',
'score_raw' => '{{score}}',
'prefix' => '<{{tag}} {{attrs}}>{{text}}</{{tag}}>',
'prefix_raw' => '{{text}}',
{
$score = $score !== null ? round($score, 0) : null;
$options = [];
+ $options2 = [];
$config += [
'thresholds' => (array)Configure::read('Softwares.scores')
// By default the title is set in english.
if (!array_key_exists("title", $config)) {
- $options['title'] = "This score is the mark of the software";
+ $options2['title'] = "This score is the mark of the software";
}else {
- $options['title'] = $config['title'];
+ $options2['title'] = $config['title'];
}
return $this->formatTemplate(
'attrs' => $this->templater()->formatAttributes($options),
'score' => $score == null ? "NA" : $score,
'tag' => $config['tag'],
+ 'title' => $this->templater()->formatAttributes($options2),
]
);
}
* =====================================================================================================================
*/
+/*
+*************** Page selector
+*/
+
+
+.light-on ,li.light-on {
+
+ background: #FFFFFF;
+ text-decoration: #0a4965;
+ border: 2px solid #E5E5E5;
+ border-radius: 5px;
+}
+
+.light-off{
+ color: #006C88;
+}
+
+strong {
+ color: #004455;
+}
+
.greynav{
background-color: #E1E3E9;
}
margin-top: 5em;
}
-/*
-*************** Page selector
-*/
-
-li.light-on {
- background-color: #FFFFFF ;
- text-decoration: #0a4965;
-}
-
-
/* =====================================================================================================================
*-------------------------------------------------- Page All Screenshot------------------------------------------------
* =====================================================================================================================