YetiForceCompany/YetiForceCRM

View on GitHub
layouts/basic/modules/Vtiger/Footer.tpl

Summary

Maintainability
Test Coverage
{*<!--
/*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is:  vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
* Contributor(s): YetiForce S.A.
**********************************************************************************/

/*****************************************************************************************************************
****   Modifying this file or functions that affect the footer appearance will violate the license terms!!!      ****
******************************************************************************************************************/
-->*}
{strip}
    <!-- tpl-Base-Footer -->
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    </div>
    <input class="d-none noprint" type="hidden" id="activityReminder" value="{$ACTIVITY_REMINDER}" />
    {assign var="IS_ADMIN" value=$USER_MODEL->isAdminUser()}
    {if !empty($SHOW_FOOTER_BAR)}
        {assign var="DISABLE_BRANDING" value=\App\YetiForce\Shop::check('YetiForceDisableBranding')}
        {if $DISABLE_BRANDING}
            {assign var="URL_LINKEDIN" value=\App\Config::component('Branding', 'urlLinkedIn')}
            {assign var="URL_TWITTER" value=\App\Config::component('Branding', 'urlTwitter')}
            {assign var="URL_FACEBOOK" value=\App\Config::component('Branding', 'urlFacebook')}
            {assign var="URL_GITHUB" value=null}
            {assign var="FOOTER_NAME" value=\App\Config::component('Branding', 'footerName')}
        {else}
            {assign var="URL_LINKEDIN" value='https://www.linkedin.com/groups/8177576'}
            {assign var="URL_TWITTER" value='https://twitter.com/YetiForceEN'}
            {assign var="URL_FACEBOOK" value='https://www.facebook.com/YetiForce-CRM-158646854306054/'}
            {assign var="URL_GITHUB" value='https://github.com/YetiForceCompany/YetiForceCRM'}
            {assign var="FOOTER_NAME" value=''}
        {/if}
        <footer class="c-footer fixed-bottom js-footer{if App\Config::module('Users', 'IS_VISIBLE_USER_INFO_FOOTER')} c-footer--user-info-active{/if} {if $DISABLE_BRANDING} c-footer--limited {/if}" data-js="height">
            {if App\Config::module('Users', 'IS_VISIBLE_USER_INFO_FOOTER')}
                <div class="js-footer__user-info c-footer__user-info">
                    <p>
                        <span class="mr-1"> {$USER_MODEL->getName()}</span>(
                        <span>{$USER_MODEL->get('email1')}</span>
                        {if !empty($USER_MODEL->get('phone_crm_extension'))}
                            ,<span class="ml-1">{$USER_MODEL->get('phone_crm_extension')}</span>
                        {/if})
                    </p>
                </div>
            {/if}
            <div class="container-fluid px-0 px-md-1">
                <ul class="float-left pagination border-0">
                    {if !empty($URL_LINKEDIN)}
                        <li class="page-item">
                            <a class="page-link" href="{$URL_LINKEDIN}" target="_blank" rel="noreferrer noopener">
                                <span class="fab fa-linkedin fa-2x" title="Linkedin"></span>
                            </a>
                        </li>
                    {/if}
                    {if !empty($URL_TWITTER)}
                        <li class="page-item">
                            <a class="page-link" href="{$URL_TWITTER}" target="_blank" rel="noreferrer noopener">
                                <span class="fab fa-twitter-square fa-2x" title="Twitter"></span>
                            </a>
                        </li>
                    {/if}
                    {if !empty($URL_FACEBOOK)}
                        <li class="page-item">
                            <a class="page-link" href="{$URL_FACEBOOK}" target="_blank" rel="noreferrer noopener">
                                <span class="fab fa-facebook-square fa-2x" title="Facebook"></span>
                            </a>
                        </li>
                    {/if}
                    {if !empty($URL_GITHUB)}
                        <li class="page-item">
                            <a class="page-link" href="{$URL_GITHUB}" target="_blank" rel="noreferrer noopener">
                                <span class="fab fa-github-square fa-2x" title="Github"></span>
                            </a>
                        </li>
                    {/if}
                </ul>
                <div class="float-right p-0">
                    <ul class="pagination {if $DISABLE_BRANDING }mt-1{/if}">
                        {if !\App\YetiForce\Register::isRegistered()}
                            {if \App\Security\AdminAccess::isPermitted('Companies')}
                                {assign var="INFO_REGISTRATION_ERROR" value="<a href='{\App\Company::EDIT_VIEW_URL}'>{\App\Language::translate('LBL_YETIFORCE_REGISTRATION_CHECK_STATUS', $MODULE_NAME)}</a>"}
                            {else}
                                {assign var="INFO_REGISTRATION_ERROR" value=\App\Language::translate('LBL_YETIFORCE_REGISTRATION_CHECK_STATUS', $MODULE_NAME)}
                            {/if}
                            <li class="page-item">
                                <a class="page-link text-warning p-0 mr-md-1 text-danger js-popover-tooltip c-header__btn" role="button"
                                    data-content="{\App\Language::translateArgs('LBL_YETIFORCE_REGISTRATION_ERROR', $MODULE_NAME, $INFO_REGISTRATION_ERROR)}"
                                    title="{\App\Purifier::encodeHtml('<span class="yfi yfi-yeti-register-alert mr-1"></span>')}{\App\Language::translate('LBL_YETIFORCE_REGISTRATION', $MODULE_NAME)}"
                                    {if \App\Security\AdminAccess::isPermitted('Companies')}
                                        href="{\App\Company::EDIT_VIEW_URL}"
                                    {else}
                                        href="#"
                                    {/if}>
                                    <span class="yfi yfi-yeti-register-alert fa-2x">
                                    </span>
                                </a>
                            </li>
                        {/if}
                        {if !$DISABLE_BRANDING}
                            {if $IS_ADMIN}
                                <li class="page-item">
                                    <a class="page-link mr-md-1" href="index.php?module=YetiForce&parent=Settings&view=Shop" target="_blank" rel="noreferrer noopener">
                                        <span class="fas fa-shopping-cart fa-2x" title="{\App\Language::translate('LBL_YETIFORCE_SHOP')}"></span>
                                    </a>
                                </li>
                            {/if}
                            <li class="page-item">
                                <a class="page-link mr-md-1" href="https://doc.yetiforce.com" target="_blank" rel="noreferrer noopener">
                                    <span class="mdi mdi-book-open-page-variant fa-2x" title="doc.yetiforce.com"></span>
                                </a>
                            </li>
                            <li class="page-item u-cursor-pointer">
                                <a class="page-link js-show-modal" title="YetiForceCRM" role="button" data-url="index.php?module=AppComponents&view=YetiForceDetailModal" data-js="click">
                                    <span class="fas fa-info-circle fa-2x" title="YetiForceCRM"></span>
                                </a>
                            </li>
                        {/if}
                    </ul>
                </div>
                <div class="mx-auto w-75">
                    {assign var=SCRIPT_TIME value=round(microtime(true) - \App\Process::$startTime, 3)}
                    <p class="text-center">
                        {if !$DISABLE_BRANDING}
                            {assign var=FOOTVR value= '['|cat:\App\Language::translate('WEBLOADTIME')|cat:': '|cat:$SCRIPT_TIME|cat:'s.]'}
                            {assign var=FOOTOSP value='open source project'}
                            {if $IS_ADMIN}
                                {assign var=FOOTVR value= "[ver. {$YETIFORCE_VERSION}] {$FOOTVR}"}
                            {/if}
                            {if \App\Security\AdminAccess::isPermitted('Dependencies')}
                                {assign var=FOOTOSP value= '<em><a class="u-text-underline" href="index.php?module=Dependencies&view=Credits&parent=Settings">open source project</a></em>'}
                            {/if}
                            <span class="d-none d-sm-inline">
                                Copyright &copy; YetiForce S.A. All rights reserved. {$FOOTVR}
                                <br />
                                {\App\Language::translateArgs('LBL_FOOTER_CONTENT', '_Base', $FOOTOSP)}
                            </span>
                            <span class="d-inline d-sm-none text-center">&copy; YetiForce S.A. All rights reserved.</span>
                        {else}
                            {$FOOTER_NAME} [{\App\Language::translate('WEBLOADTIME')}: {$SCRIPT_TIME}s.]
                        {/if}
                    </p>
                </div>
            </div>
        </footer>
    {else}
        <div class="js-footer" data-js="height">
        </div>
    {/if}
    <!-- /tpl-Base-Footer -->
{/strip}