forked from services/mlmmj-light-web-ecg
Get and display list description if you edit a list (Preparation for #6)
This commit is contained in:
@@ -71,6 +71,20 @@ $prefix = file_get_contents("$lists_path/$domain/$list_name/control/prefix");
|
|||||||
// Remove trailing empty symbols
|
// Remove trailing empty symbols
|
||||||
$prefix = trim($prefix);
|
$prefix = trim($prefix);
|
||||||
|
|
||||||
|
# Check whether there is a listdescription file
|
||||||
|
if (file_exists("$lists_path/$domain/$list_name/control/listdescription"))
|
||||||
|
{
|
||||||
|
// Get list description
|
||||||
|
$listdescription = file_get_contents("$lists_path/$domain/$list_name/control/listdescription");
|
||||||
|
// Remove trailing empty symbols
|
||||||
|
$listdescription = trim($listdescription);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$listdescription = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Load page
|
// Load page
|
||||||
$smarty->assign("headline", $headline);
|
$smarty->assign("headline", $headline);
|
||||||
$smarty->assign("web_url", $web_url);
|
$smarty->assign("web_url", $web_url);
|
||||||
@@ -79,6 +93,7 @@ $smarty->assign("list_name", $list_name);
|
|||||||
$smarty->assign("domain", $domain);
|
$smarty->assign("domain", $domain);
|
||||||
$smarty->assign("moderators", $moderators);
|
$smarty->assign("moderators", $moderators);
|
||||||
$smarty->assign("prefix", $prefix);
|
$smarty->assign("prefix", $prefix);
|
||||||
|
$smarty->assign("listdescription", $listdescription);
|
||||||
$smarty->assign("username", $_SESSION["username"]);
|
$smarty->assign("username", $_SESSION["username"]);
|
||||||
$smarty->assign("success", $success);
|
$smarty->assign("success", $success);
|
||||||
$smarty->display("edit_list.tpl");
|
$smarty->display("edit_list.tpl");
|
||||||
|
|||||||
@@ -96,6 +96,22 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
<table style="width: 100%; text-align: center; margin-top: 50px; padding: 0 25px 0 25px;">
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<div id="listdescription_header">
|
||||||
|
<div class="tooltip">
|
||||||
|
<img src="help.svg" width=15 height=15>
|
||||||
|
<span class="help_prefix">
|
||||||
|
This is the list description which is displayed in the overview.<br /><br />Can be left blank.
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
List description:
|
||||||
|
</div>
|
||||||
|
<textarea name="listdescription" id="listdescription" style="height: 100%; width: 100%;">{$listdescription|escape:'htmlall'}</textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div id="save_btn">
|
<div id="save_btn">
|
||||||
<input type="submit" name="submit" value="Save">
|
<input type="submit" name="submit" value="Save">
|
||||||
|
|||||||
Reference in New Issue
Block a user