mirror of
https://github.com/nickian/mautic-whitelabeler.git
synced 2025-10-03 19:04:35 +08:00
4.4.1 Support
This commit is contained in:
parent
213bba1817
commit
38e4c76237
9 changed files with 26057 additions and 3 deletions
|
@ -25,7 +25,7 @@ Mautic Whitelabeler makes customizing the core branding elements of [Mautic](htt
|
|||
|
||||
## Requirements
|
||||
|
||||
* Mautic versions 2.15.0 - 4.4.0 (Use previous [Whitelabeler 1.0](https://github.com/nickian/mautic-whitelabeler/releases) release for older versions of Mautic. Beta versions are not tested.)
|
||||
* Mautic versions 2.15.0 - 4.4.1 (Use previous [Whitelabeler 1.0](https://github.com/nickian/mautic-whitelabeler/releases) release for older versions of Mautic. Beta versions are not tested.)
|
||||
* Make sure you have installed Mautic using the correct zip file from the [Mautic releases page](https://github.com/mautic/mautic/releases). DO NOT use the "update" zip file. The whitelabeler will not work correctly with these versions.
|
||||
|
||||
* Apache server (will work on some nginx configurations, but not officially supported)
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
require_once('whitelabeler.php');
|
||||
$whitelabeler = new Whitelabeler;
|
||||
|
||||
$v1_path = '../4.3.1';
|
||||
$v2_path = '../4.4.0';
|
||||
$v1_path = '../4.4.0';
|
||||
$v2_path = '../4.4.1';
|
||||
|
||||
$compare = $whitelabeler->compareMauticVersions($v1_path, $v2_path);
|
||||
|
||||
|
|
4826
templates/4.4.1/app/bundles/CoreBundle/Assets/css/app.css
Normal file
4826
templates/4.4.1/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
1776
templates/4.4.1/app/bundles/CoreBundle/Assets/js/1a.content.js
Normal file
1776
templates/4.4.1/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>
|
Loading…
Add table
Add a link
Reference in a new issue