Skip to content

Commit

Permalink
Remove createCommunityPost button on main page
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvialf committed Jan 16, 2024
1 parent 353039f commit 263528c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 45 deletions.
50 changes: 13 additions & 37 deletions desktop/php/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,19 @@
<div class="row row-overflow">
<!-- Page d'accueil du plugin -->
<div class="col-xs-12 eqLogicThumbnailDisplay">
<div class="row">
<div class="col-sm-10">
<legend><i class="fas fa-cog"></i> {{Gestion}}</legend>
<!-- Boutons de gestion du plugin -->
<div class="eqLogicThumbnailContainer">
<div class="cursor eqLogicAction logoPrimary" data-action="add">
<i class="fas fa-plus-circle"></i>
<br>
<span>{{Ajouter}}</span>
</div>
<div class="cursor eqLogicAction logoSecondary" data-action="gotoPluginConf">
<i class="fas fa-wrench"></i>
<br>
<span>{{Configuration}}</span>
</div>
</div>
<legend><i class="fas fa-cog"></i> {{Gestion}}</legend>
<!-- Boutons de gestion du plugin -->
<div class="eqLogicThumbnailContainer">
<div class="cursor eqLogicAction logoPrimary" data-action="add">
<i class="fas fa-plus-circle"></i>
<br>
<span>{{Ajouter}}</span>
</div>
<div class="cursor eqLogicAction logoSecondary" data-action="gotoPluginConf">
<i class="fas fa-wrench"></i>
<br>
<span>{{Configuration}}</span>
</div>
<?php
// à conserver
// sera afficher uniquement si l'utilisateur est en version 4.4 ou supérieur
$jeedomVersion = jeedom::version() ?? '0';
$displayInfoValue = version_compare($jeedomVersion, '4.4.0', '>=');
if ($displayInfoValue) {
?>
<div class="col-sm-2">
<legend><i class=" fas fa-comments"></i> {{Community}}</legend>
<div class="eqLogicThumbnailContainer">
<div class="cursor eqLogicAction logoSecondary" data-action="createCommunityPost">
<i class="fas fa-ambulance"></i>
<br>
<span style="color:var(--txt-color)">{{Créer un post Community}}</span>
</div>
</div>
</div>
<?php
}
?>
</div>
<legend><i class="fas fa-table"></i> {{Mes templates}}</legend>
<?php
Expand Down Expand Up @@ -230,4 +206,4 @@
<!-- Inclusion du fichier javascript du plugin (dossier, nom_du_fichier, extension_du_fichier, id_du_plugin) -->
<?php include_file('desktop', 'template', 'js', 'template'); ?>
<!-- Inclusion du fichier javascript du core - NE PAS MODIFIER NI SUPPRIMER -->
<?php include_file('core', 'plugin.template', 'js'); ?>
<?php include_file('core', 'plugin.template', 'js'); ?>
25 changes: 17 additions & 8 deletions plugin_info/info.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
{
"id" : "template",
"name" : "Template",
"id": "template",
"name": "Template",
"pluginVersion": "0.1",
"specialAttributes" : {
"object" : {
"toto" : {"name" : {"fr_FR" : "Plop je suis un attribut spécial"},"type" : "input"},
"toto2" : {"name" : {"fr_FR" : "Plop je suis un attribut spécial number"},"type" : "number"}
"specialAttributes": {
"object": {
"toto": {
"name": {
"fr_FR": "Plop je suis un attribut spécial"
},
"type": "input"
},
"toto2": {
"name": {
"fr_FR": "Plop je suis un attribut spécial number"
},
"type": "number"
}
},
"user": {
"toto": {
Expand Down Expand Up @@ -62,7 +72,6 @@
"rpi",
"docker",
"diy",
"mobile",
"v4"
"mobile"
]
}

0 comments on commit 263528c

Please sign in to comment.