'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 = "";