Overview
Comment:Put current category URL in "view site" link
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: 3b57ab0c162eb3a81deec5a8df7ed5d75d9e8b79a406311b8553968bf7d33595
User & Date: bohwaz on 2021-03-31 03:13:35
Other Links: branch diff | manifest | tags
Context
2021-03-31
13:32
Update possible issues check-in: c1136e28a7 user: bohwaz tags: dev, 1.1.0-beta1
03:13
Put current category URL in "view site" link check-in: 3b57ab0c16 user: bohwaz tags: dev
02:59
Restrict CSS to web-content class check-in: 1a3c5b7f6b user: bohwaz tags: dev
Changes

Modified src/templates/web/index.tpl from [5fb447fd22] to [ecc94b7c86].

9
10
11
12
13
14
15
16

17
18
19
20
21
22
23
9
10
11
12
13
14
15

16
17
18
19
20
21
22
23







-
+







	<ul>
		<li class="current"><a href="./">Gestion du site web</a></li>
		{if $session->canAccess($session::SECTION_WEB, $session::ACCESS_ADMIN)}
			{*<li><a href="theme.php">Thèmes</a></li>*}
			<li><a href="config.php">Configuration</a></li>
		{/if}
		{if !$config.site_disabled}
			<li><a href="{$www_url}" target="_blank">Voir le site en ligne</a></li>
			<li><a href="{if $cat}{$cat->url()}{else}{$www_url}{/if}" target="_blank">Voir le site en ligne</a></li>
		{/if}
	</ul>
</nav>

<nav class="breadcrumbs">
	<ul>
		<li><a href="?p=">Racine du site</a></li>

Modified src/www/admin/web/index.php from [64b1dc7c32] to [5baaa10463].

27
28
29
30
31
32
33
34

35
36
27
28
29
30
31
32
33

34
35
36







-
+


$title = $cat ? sprintf('Gestion du site web : %s', $cat->title) : 'Gestion du site web';
$type_page = Page::TYPE_PAGE;
$type_category = Page::TYPE_CATEGORY;
$breadcrumbs = $cat ? $cat->getBreadcrumbs() : [];

$parent = $cat ? $cat->parent : null;

$tpl->assign(compact('categories', 'pages', 'title', 'current_path', 'parent', 'type_page', 'type_category', 'order_date', 'breadcrumbs'));
$tpl->assign(compact('categories', 'pages', 'title', 'current_path', 'parent', 'type_page', 'type_category', 'order_date', 'breadcrumbs', 'cat'));

$tpl->display('web/index.tpl');