first commit
This commit is contained in:
78
admin/templates/base.tpl
Normal file
78
admin/templates/base.tpl
Normal file
@@ -0,0 +1,78 @@
|
||||
{block functions}{/block}
|
||||
<!DOCTYPE html>
|
||||
<html lang="cs">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{block title}{/block}</title>
|
||||
{ifmodule COMPONENTS}
|
||||
<link rel="shortcut icon" href="/favicon.ico">
|
||||
{elsemodule}
|
||||
<link rel="shortcut icon" href="/templates/images/favicon.ico">
|
||||
{/ifmodule}
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=latin-ext" rel="stylesheet">
|
||||
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
|
||||
{block css}
|
||||
{block "css-entry"}
|
||||
{encore_entry_link_tags entry='app' build='admin'}
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
{block sentry}{/block}
|
||||
|
||||
<script>
|
||||
window.wpj = window.wpj || {ldelim}{rdelim};
|
||||
|
||||
var wpjConfig = {
|
||||
'nwAsTab': {if $dbcfg.nw_as_tab == 'Y'}true{else}false{/if}
|
||||
};
|
||||
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){ dataLayer.push(arguments); }
|
||||
|
||||
{if $view}
|
||||
{$_branch = getShopName()}
|
||||
{$_user = getAdminUser()}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-Q3V4S9PLK3', {
|
||||
'page_title': '{$view->getClassName()}',
|
||||
'wpj_admin_shop': '{$_branch}'
|
||||
})
|
||||
{if $_user}
|
||||
gtag('set', 'user_id', '{$_branch}-{$_user.login}');
|
||||
gtag('set', 'user_properties', {
|
||||
'wpj_admin_id': '{$_user.id}'
|
||||
});
|
||||
{/if}
|
||||
{/if}
|
||||
</script>
|
||||
|
||||
{block js}
|
||||
{block "js-entry"}
|
||||
{encore_entry_script_tags entry='app' build='admin'}
|
||||
{/block}
|
||||
{/block}
|
||||
</head>
|
||||
|
||||
<body {block body_class}{/block}>
|
||||
|
||||
{block body}
|
||||
{/block}
|
||||
|
||||
{block "js-onready"}
|
||||
{/block}
|
||||
|
||||
<script>
|
||||
{block onready}
|
||||
{/block}
|
||||
</script>
|
||||
|
||||
{if $view}
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Q3V4S9PLK3"></script>
|
||||
{/if}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user