mirror of
https://github.com/nickian/mautic-whitelabeler.git
synced 2025-10-03 19:04:35 +08:00
4.4.12 and 5.0.4 support
This commit is contained in:
parent
4c7a736ae2
commit
8d13dfe46c
14 changed files with 51431 additions and 0 deletions
4826
templates/4.4.12/app/bundles/CoreBundle/Assets/css/app.css
Normal file
4826
templates/4.4.12/app/bundles/CoreBundle/Assets/css/app.css
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
1777
templates/4.4.12/app/bundles/CoreBundle/Assets/js/1a.content.js
Normal file
1777
templates/4.4.12/app/bundles/CoreBundle/Assets/js/1a.content.js
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,86 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* @copyright 2014 Mautic Contributors. All rights reserved
|
||||
* @author Mautic
|
||||
*
|
||||
* @link http://mautic.org
|
||||
*
|
||||
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
||||
*/
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<?php echo $view->render('MauticCoreBundle:Default:head.html.php'); ?>
|
||||
<body class="header-fixed">
|
||||
<!-- start: app-wrapper -->
|
||||
<section id="app-wrapper">
|
||||
<?php $view['assets']->outputScripts('bodyOpen'); ?>
|
||||
|
||||
<!-- start: app-sidebar(left) -->
|
||||
<aside class="app-sidebar sidebar-left">
|
||||
<?php echo $view->render('MauticCoreBundle:LeftPanel:index.html.php'); ?>
|
||||
</aside>
|
||||
<!--/ end: app-sidebar(left) -->
|
||||
|
||||
<!-- start: app-sidebar(right) -->
|
||||
<aside class="app-sidebar sidebar-right">
|
||||
<?php echo $view->render('MauticCoreBundle:RightPanel:index.html.php'); ?>
|
||||
</aside>
|
||||
<!--/ end: app-sidebar(right) -->
|
||||
|
||||
<!-- start: app-header -->
|
||||
<header id="app-header" class="navbar">
|
||||
<?php echo $view->render('MauticCoreBundle:Default:navbar.html.php'); ?>
|
||||
|
||||
<?php echo $view->render('MauticCoreBundle:Notification:flashes.html.php'); ?>
|
||||
</header>
|
||||
<!--/ end: app-header -->
|
||||
|
||||
<!-- start: app-footer(need to put on top of #app-content)-->
|
||||
<footer id="app-footer">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-xs-6 text-muted"> {{company_name}}{{footer_prefix}} {{footer}}</div>
|
||||
<div class="col-xs-6 text-muted text-right small">v<?php
|
||||
/** @var \Mautic\CoreBundle\Templating\Helper\VersionHelper $version */
|
||||
$version = $view['version'];
|
||||
echo $version->getVersion(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!--/ end: app-footer -->
|
||||
|
||||
<!-- start: app-content -->
|
||||
<section id="app-content">
|
||||
<?php $view['slots']->output('_content'); ?>
|
||||
</section>
|
||||
<!--/ end: app-content -->
|
||||
|
||||
</section>
|
||||
<!--/ end: app-wrapper -->
|
||||
|
||||
<script>
|
||||
Mautic.onPageLoad('body');
|
||||
<?php if ('dev' === $app->getEnvironment()): ?>
|
||||
mQuery( document ).ajaxComplete(function(event, XMLHttpRequest, ajaxOption){
|
||||
if(XMLHttpRequest.responseJSON && typeof XMLHttpRequest.responseJSON.ignore_wdt == 'undefined' && XMLHttpRequest.getResponseHeader('x-debug-token')) {
|
||||
if (mQuery('[class*="sf-tool"]').length) {
|
||||
mQuery('[class*="sf-tool"]').remove();
|
||||
}
|
||||
|
||||
mQuery.get(mauticBaseUrl + '_wdt/'+XMLHttpRequest.getResponseHeader('x-debug-token'),function(data){
|
||||
mQuery('body').append('<div class="sf-toolbar-reload">'+data+'</div>');
|
||||
});
|
||||
}
|
||||
});
|
||||
<?php endif; ?>
|
||||
</script>
|
||||
<?php $view['assets']->outputScripts('bodyClose'); ?>
|
||||
<?php echo $view->render('MauticCoreBundle:Helper:modal.html.php', [
|
||||
'id' => 'MauticSharedModal',
|
||||
'footerButtons' => true,
|
||||
]); ?>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* @copyright 2014 Mautic Contributors. All rights reserved
|
||||
* @author Mautic
|
||||
*
|
||||
* @link http://mautic.org
|
||||
*
|
||||
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
||||
*/
|
||||
?>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title><?php if (!empty($view['slots']->get('headerTitle', ''))): ?>
|
||||
<?php echo strip_tags(str_replace('<', ' <', $view['slots']->get('headerTitle', ''))); ?> |
|
||||
<?php endif; ?>
|
||||
<?php echo $view['slots']->get('pageTitle', '{{company_name}}'); ?>
|
||||
</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="<?php echo $view['assets']->getUrl('media/images/favicon.ico'); ?>" />
|
||||
<link rel="icon" sizes="192x192" href="<?php echo $view['assets']->getUrl('media/images/favicon.ico'); ?>">
|
||||
<link rel="apple-touch-icon" href="<?php echo $view['assets']->getUrl('media/images/apple-touch-icon.png'); ?>" />
|
||||
|
||||
<?php echo $view['assets']->outputSystemStylesheets(); ?>
|
||||
|
||||
<?php echo $view->render('MauticCoreBundle:Default:script.html.php'); ?>
|
||||
<?php $view['assets']->outputHeadDeclarations(); ?>
|
||||
</head>
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* @copyright 2014 Mautic Contributors. All rights reserved
|
||||
* @author Mautic
|
||||
*
|
||||
* @link http://mautic.org
|
||||
*
|
||||
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
||||
*/
|
||||
$extraMenu = $view['menu']->render('extra');
|
||||
?>
|
||||
<!-- start: sidebar-header -->
|
||||
<div class="sidebar-header">
|
||||
<!-- brand -->
|
||||
<a class="mautic-brand<?php echo (!empty($extraMenu)) ? ' pull-left pl-0 pr-0' : ''; ?>" href="#">
|
||||
<img src="<?php echo $view['assets']->getUrl('{{sidebar_image}}') ?>" style="width:100%; max-width:{{sidebar_width}}px; margin:{{margin_top}}px {{margin_right}}px 0 {{margin_left}}px;" />
|
||||
</a>
|
||||
<?php if (!empty($extraMenu)): ?>
|
||||
<div class="dropdown extra-menu">
|
||||
<a href="#" data-toggle="dropdown" class="dropdown-toggle">
|
||||
<i class="fa fa-chevron-down fa-lg"></i>
|
||||
</a>
|
||||
<?php echo $extraMenu; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<!--/ brand -->
|
||||
</div>
|
||||
<!--/ end: sidebar-header -->
|
||||
|
||||
<div class="sidebar-content">
|
||||
<div class="scroll-content slimscroll">
|
||||
<nav class="nav-sidebar">
|
||||
<?php echo $view['content']->getCustomContent('menu.above', $mauticTemplateVars); ?>
|
||||
<?php echo $view['menu']->render('main'); ?>
|
||||
|
||||
<ul class="nav sidebar-left-dark">
|
||||
<li class="hidden-xs">
|
||||
<a href="javascript:void(0)" data-toggle="minimize" class="sidebar-minimizer"><span class="direction icon pull-left fa"></span><span class="nav-item-name pull-left text"><?php echo $view['translator']->trans('mautic.core.menu.left.collapse'); ?></span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* @copyright 2014 Mautic Contributors. All rights reserved
|
||||
* @author Mautic
|
||||
*
|
||||
* @link http://mautic.org
|
||||
*
|
||||
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
||||
*/
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title><?php echo $view['slots']->get('pageTitle', '{{company_name}}'); ?></title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="<?php echo $view['assets']->getUrl('media/images/favicon.ico'); ?>" />
|
||||
<link rel="apple-touch-icon" href="<?php echo $view['assets']->getUrl('media/images/apple-touch-icon.png'); ?>" />
|
||||
<?php $view['assets']->outputSystemStylesheets(); ?>
|
||||
<?php echo $view->render('MauticCoreBundle:Default:script.html.php'); ?>
|
||||
<?php $view['assets']->outputHeadDeclarations(); ?>
|
||||
</head>
|
||||
<body>
|
||||
<section id="main" role="main">
|
||||
<div class="container" style="margin-top:100px;">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-lg-offset-4">
|
||||
<div class="panel" name="form-login">
|
||||
<div class="panel-body">
|
||||
<div class="mautic-logo img-circle mb-md text-center" style="width:{{login_logo_width}}px;">
|
||||
<img src="<?php echo $view['assets']->getUrl('{{login_logo}}') ?>" style="width:{{login_logo_width}}px; margin:{{login_logo_margin_top}}px 0 {{login_logo_margin_bottom}}px 0;" />
|
||||
</div>
|
||||
<div id="main-panel-flash-msgs">
|
||||
<?php echo $view->render('MauticCoreBundle:Notification:flashes.html.php'); ?>
|
||||
</div>
|
||||
<?php $view['slots']->output('_content'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-lg-offset-4 text-center text-muted">
|
||||
© <?php echo date('Y');?> {{company_name}}{{footer_prefix}}
|
||||
<p style="margin-top:1em;">{{footer}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php echo $view['security']->getAuthenticationContent(); ?>
|
||||
</body>
|
||||
</html>
|
4838
templates/5.0.4/app/bundles/CoreBundle/Assets/css/app.css
Normal file
4838
templates/5.0.4/app/bundles/CoreBundle/Assets/css/app.css
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
1805
templates/5.0.4/app/bundles/CoreBundle/Assets/js/1a.content.js
Normal file
1805
templates/5.0.4/app/bundles/CoreBundle/Assets/js/1a.content.js
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,66 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{ include('@MauticCore/Default/head.html.twig', {
|
||||
headerTitle: block('headerTitle') is defined ? block('headerTitle') : headerTitle|default(''),
|
||||
pageTitle: block('pageTitle') is defined ? block('pageTitle') : '{{company_name}}',
|
||||
})
|
||||
}}
|
||||
<body class="header-fixed">
|
||||
<section id="app-wrapper">
|
||||
{{ outputScripts('bodyOpen') }}
|
||||
|
||||
{{ include('@MauticCore/Notification/flashes.html.twig') }}
|
||||
|
||||
<aside class="app-sidebar sidebar-left">
|
||||
{{ include('@MauticCore/LeftPanel/index.html.twig') }}
|
||||
</aside>
|
||||
|
||||
<aside class="app-sidebar sidebar-right">
|
||||
{{ include('@MauticCore/RightPanel/index.html.twig') }}
|
||||
</aside>
|
||||
|
||||
<header id="app-header" class="navbar">
|
||||
{{ include('@MauticCore/Default/navbar.html.twig') }}
|
||||
</header>
|
||||
|
||||
<!-- start: app-footer(need to put on top of #app-content)-->
|
||||
<footer id="app-footer">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-xs-6 text-muted">© {{company_name}}{{footer_prefix}} {{footer}}</div>
|
||||
<div class="col-xs-6 text-muted text-right small">v{{ mauticAppVersion() }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!--/ end: app-footer -->
|
||||
|
||||
<section id="app-content">
|
||||
{% block _content %}
|
||||
{{ include('@MauticCore/Default/output.html.twig') }}
|
||||
{% endblock %}
|
||||
</section>
|
||||
|
||||
<script>
|
||||
Mautic.onPageLoad('body');
|
||||
{% if app.environment is same as 'dev' %}
|
||||
mQuery( document ).ajaxComplete(function(event, XMLHttpRequest, ajaxOption){
|
||||
if(XMLHttpRequest.responseJSON && typeof XMLHttpRequest.responseJSON.ignore_wdt == 'undefined' && XMLHttpRequest.getResponseHeader('x-debug-token')) {
|
||||
if (mQuery('[class*="sf-tool"]').length) {
|
||||
mQuery('[class*="sf-tool"]').remove();
|
||||
}
|
||||
|
||||
mQuery.get(mauticBaseUrl + '_wdt/'+XMLHttpRequest.getResponseHeader('x-debug-token'),function(data){
|
||||
mQuery('body').append('<div class="sf-toolbar-reload">'+data+'</div>');
|
||||
});
|
||||
}
|
||||
});
|
||||
{% endif %}
|
||||
</script>
|
||||
{{ outputScripts('bodyClose') }}
|
||||
{{ include('@MauticCore/Helper/modal.html.twig', {
|
||||
id: 'MauticSharedModal',
|
||||
footerButtons: true
|
||||
}) }}
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>
|
||||
{% if headerTitle is defined and headerTitle is not empty %}
|
||||
{{ headerTitle|replace({'<': ' <'})|striptags|purify }} |
|
||||
{% endif %}
|
||||
{{ pageTitle|default('{{company_name}}') }}
|
||||
</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="{{ getOverridableUrl('images/favicon.ico') }}" />
|
||||
<link rel="icon" sizes="192x192" href="{{ getOverridableUrl('images/favicon.ico') }}">
|
||||
<link rel="apple-touch-icon" href="{{ getOverridableUrl('images/apple-touch-icon.png') }}" />
|
||||
|
||||
{{ outputSystemStylesheets() }}
|
||||
|
||||
{% include('@MauticCore/Default/script.html.twig') %}
|
||||
|
||||
{{ outputHeadDeclarations() }}
|
||||
</head>
|
|
@ -0,0 +1,41 @@
|
|||
{% set extraMenu = menuRender('extra') %}
|
||||
<div class="sidebar-header">
|
||||
<!-- brand -->
|
||||
<a class="mautic-brand{{ extraMenu is empty ? '' : ' pull-left pl-0 pr-0' }}" href="#" style="padding:0; text-align:center;">
|
||||
<img src="{{sidebar_image}}" style="width:100%; max-width:{{sidebar_width}}px; margin:{{margin_top}}px {{margin_right}}px 0 {{margin_left}}px;" />
|
||||
</a>
|
||||
{% if extraMenu is not empty %}
|
||||
<div class="dropdown extra-menu">
|
||||
<a href="#" data-toggle="dropdown" class="dropdown-toggle">
|
||||
<i class="fa fa-chevron-down fa-lg"></i>
|
||||
</a>
|
||||
{{ extraMenu }}
|
||||
</div>
|
||||
{% endif %}
|
||||
<!--/ brand -->
|
||||
</div>
|
||||
<!--/ end: sidebar-header -->
|
||||
|
||||
<!-- start: sidebar-content -->
|
||||
<div class="sidebar-content">
|
||||
<!-- scroll-content -->
|
||||
<div class="scroll-content slimscroll">
|
||||
<!-- start: navigation -->
|
||||
<nav class="nav-sidebar">
|
||||
{{ customContent('menu.above', mauticTemplateVars is defined ? mauticTemplateVars : []) }}
|
||||
{{ menuRender('main') }}
|
||||
|
||||
<!-- start: left nav -->
|
||||
<ul class="nav sidebar-left-dark">
|
||||
<li class="hidden-xs">
|
||||
<a href="javascript:void(0)" data-toggle="minimize" class="sidebar-minimizer" aria-label="{% trans %}mautic.core.menu.left.collapse{% endtrans %}"><span class="direction icon pull-left fa"></span><span class="nav-item-name pull-left text">{% trans %}mautic.core.menu.left.collapse{% endtrans %}</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
<!--/ end: left nav -->
|
||||
|
||||
</nav>
|
||||
<!--/ end: navigation -->
|
||||
</div>
|
||||
<!--/ scroll-content -->
|
||||
</div>
|
||||
<!--/ end: sidebar-content -->
|
|
@ -0,0 +1,43 @@
|
|||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>{% block pageTitle %}{{company_name}}{% endblock %}</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="{{ getOverridableUrl('images/favicon.ico') }}" />
|
||||
<link rel="apple-touch-icon" href="{{ getOverridableUrl('images/apple-touch-icon.png') }}" />
|
||||
{{ outputSystemStylesheets() }}
|
||||
{{- include('@MauticCore/Default/script.html.twig') -}}
|
||||
{{ outputHeadDeclarations() }}
|
||||
</head>
|
||||
<body>
|
||||
<section id="main" role="main">
|
||||
<div class="container" style="margin-top:100px;">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-lg-offset-4">
|
||||
<div class="panel" name="form-login">
|
||||
<div class="panel-body">
|
||||
<div class="mautic-logo img-circle mb-md text-center" style="width:{{login_logo_width}}px;">
|
||||
<img src="{{login_logo}}" style="width:{{login_logo_width}}px; margin:{{login_logo_margin_top}}px 0 {{login_logo_margin_bottom}}px 0;" />
|
||||
</div>
|
||||
<div id="main-panel-flash-msgs">
|
||||
{{- include('@MauticCore/Notification/flashes.html.twig') -}}
|
||||
</div>
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-lg-offset-4 text-center text-muted">
|
||||
© {{ "now"|date("Y") }} {{company_name}}{{footer_prefix}}
|
||||
<p style="margin-top:1em;">{{footer}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ securityGetAuthenticationContext() }}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue