Added dynamic community image with svg format
This commit is contained in:
parent
f634e55aac
commit
1aa385f1a5
@ -71,6 +71,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card card-content-center">
|
<div class="card card-content-center">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
<mx:image id="imageCommunity"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card card-content-half-r">
|
<div class="card card-content-half-r">
|
||||||
|
@ -137,6 +137,14 @@ Class AdminNode extends CoordinationObj
|
|||||||
asort($tabIcone);
|
asort($tabIcone);
|
||||||
$GLOBALS['SYSTEM_TEMPLATE']->MxSelect("icone", "iconeN", '', $tabIcone, 'Image de l\'espace', '', 'id="iconeN"', "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeIcon"), ENT_QUOTES)."\"", getMessage("txtNodeIcon"));
|
$GLOBALS['SYSTEM_TEMPLATE']->MxSelect("icone", "iconeN", '', $tabIcone, 'Image de l\'espace', '', 'id="iconeN"', "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeIcon"), ENT_QUOTES)."\"", getMessage("txtNodeIcon"));
|
||||||
|
|
||||||
|
/* recuperation de l'icone de la communauté */
|
||||||
|
if (file_exists($GLOBALS['CONF_DATA_PATH']."data/image/communities/".recupCommunity()."_logo.svg"))
|
||||||
|
{
|
||||||
|
$imgCommunity=$GLOBALS['CONF_DATA_PATH']."data/image/communities/".recupCommunity()."_logo.svg";
|
||||||
|
}else{
|
||||||
|
$imgCommunity=$GLOBALS['CONF_DATA_PATH']."data/image/communities/3_logo.svg";
|
||||||
|
}
|
||||||
|
|
||||||
/* Affichage des templates */
|
/* Affichage des templates */
|
||||||
# Affichage de la liste déroulante
|
# Affichage de la liste déroulante
|
||||||
# Détermine le chemin des icônes
|
# Détermine le chemin des icônes
|
||||||
@ -163,6 +171,7 @@ Class AdminNode extends CoordinationObj
|
|||||||
$GLOBALS['SYSTEM_TEMPLATE']->MxSelect("template", "template_name", '', $tabTemplate, '', '', 'id="template"', "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeTemplate"), ENT_QUOTES)."\"", getMessage("txtNodeTemplate"));
|
$GLOBALS['SYSTEM_TEMPLATE']->MxSelect("template", "template_name", '', $tabTemplate, '', '', 'id="template"', "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeTemplate"), ENT_QUOTES)."\"", getMessage("txtNodeTemplate"));
|
||||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxImage("screenTemplate", $GLOBALS['SYSTEM_TEMPLATE_PATH'].$GLOBALS['SYSTEM_TEMPLATE_DIR']."preview.png", getMessage("PreviewTemplate"));
|
$GLOBALS["SYSTEM_TEMPLATE"]->MxImage("screenTemplate", $GLOBALS['SYSTEM_TEMPLATE_PATH'].$GLOBALS['SYSTEM_TEMPLATE_DIR']."preview.png", getMessage("PreviewTemplate"));
|
||||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxImage("pictoObject", $GLOBALS['CONF_DATA_PATH']."data/image/icons/node/defaultnode.png", getMessage("PreviewPicto"));
|
$GLOBALS["SYSTEM_TEMPLATE"]->MxImage("pictoObject", $GLOBALS['CONF_DATA_PATH']."data/image/icons/node/defaultnode.png", getMessage("PreviewPicto"));
|
||||||
|
$GLOBALS["SYSTEM_TEMPLATE"]->MxImage("imageCommunity", $imgCommunity);
|
||||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("ctype", "text", "node_ctype", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeType"), ENT_QUOTES)."\"", getMessage("txtNodeType"));
|
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("ctype", "text", "node_ctype", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeType"), ENT_QUOTES)."\"", getMessage("txtNodeType"));
|
||||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("ctypereg", "text", "node_ctypereg", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeTypereg"), ENT_QUOTES)."\"", getMessage("txtNodeTypereg"));
|
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("ctypereg", "text", "node_ctypereg", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeTypereg"), ENT_QUOTES)."\"", getMessage("txtNodeTypereg"));
|
||||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("domain", "text", "node_domain", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeDomain"), ENT_QUOTES)."\"", getMessage("txtNodeDomain"));
|
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("domain", "text", "node_domain", "", "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeDomain"), ENT_QUOTES)."\"", getMessage("txtNodeDomain"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user