| Current Path : /home/jeromecohp/www/administrator/components/com_emailbeautifier/views/cp/tmpl/ |
| Current File : /home/jeromecohp/www/administrator/components/com_emailbeautifier/views/cp/tmpl/default.php |
<?php
/**
* @package EmailBeautifier
* @subpackage com_emailbeautifier
*
* @author Techjoomla <extensions@techjoomla.com>
* @copyright Copyright (C) 2009 - 2022 Techjoomla. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
// No direct access.
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Language\Text;
$xml = Factory::getXML(JPATH_COMPONENT . '/emailbeautifier.xml');
$currentversion = (string) $xml->version;
HTMLHelper::_('behavior.multiselect');
HTMLHelper::_('formbehavior.chosen', 'select');
?>
<script type="text/javascript">
function vercheck()
{
callXML('<?php echo $currentversion;?>');
if(document.getElementById('NewVersion').innerHTML.length<220){
document.getElementById('NewVersion').style.display='inline';
}
}
function callXML(currversion)
{
if (window.XMLHttpRequest){
xhttp=new XMLHttpRequest();
}
/*Internet Explorer 5/6*/
else{
xhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xhttp.open("GET", "<?php echo Uri::base();?>index.php?option=com_emailbeautifier&task=cp.getVersion",false);
xhttp.send("");
latestver=xhttp.responseText;
if(latestver!=null){
if(currversion == latestver){
document.getElementById('NewVersion').
innerHTML= '<span style="display:inline;color:#339F1D;"> <?php echo Text::_("COM_EMAILBEAUTIFIER_LAT_VERSION");?> <b>'+latestver+'</b></span>';
}
else{
document.getElementById('NewVersion').innerHTML='<span style="display:inline; color:#FF0000;"> <?php echo Text::_("COM_EMAILBEAUTIFIER_LAT_VERSION");?> <b>'+latestver+'</b></span>';
}
}
}
</script>
<?php
if (! empty($this->extra_sidebar))
{
$this->sidebar .= $this->extra_sidebar;
}
?>
<div class="<?php echo EB_WRAPPER_CLASS;?> cp">
<?php if (!empty($this->sidebar)): ?>
<div id="j-sidebar-container" class="span2">
<?php echo $this->sidebar; ?>
</div>
<div id="j-main-container" class="span10">
<?php else : ?>
<div id="j-main-container">
<?php endif;?>
<div class="row-fluid">
<div class="span6">
<div class="icon-wrapper">
<div class="row-fluid">
<div class="span3 icon">
<a class="thumbnail btn" href="index.php?option=com_emailbeautifier&view=templates">
<img src="<?php echo Uri::base()?>components/com_emailbeautifier/images/icons/eb_icon_48.png" alt="Dashboard"/>
<span><?php echo Text::_("COM_EMAILBEAUTIFIER_MANAGE_TEMPLATE");?></span>
</a>
</div>
</div>
</div>
</div>
<div class="span6">
<?php
$versionHTML = '<span class="label label-info">' .
Text::_('COM_EMAILBEAUTIFIER_HAVE_INSTALLED_VER') . ': ' . $this->version .
'</span>';
if ($this->latestVersion)
{
if ($this->latestVersion->version > $this->version)
{
$versionHTML = '<div class="alert alert-error">' .
'<i class="icon-puzzle install"></i>' .
Text::_('COM_EMAILBEAUTIFIER_HAVE_INSTALLED_VER') . ': ' . $this->version .
'<br/>' .
'<i class="icon icon-info"></i>' .
Text::_("COM_EMAILBEAUTIFIER_NEW_VER_AVAIL") . ': ' .
'<span class="jbolo_latest_version_number">' .
$this->latestVersion->version .
'</span>
<br/>' .
'<i class="icon icon-warning"></i>' .
'<span class="small">' .
Text::_("COM_EMAILBEAUTIFIER_LIVE_UPDATE_BACKUP_WARNING") . '
</span>' . '
</div>
<div>
<a href="index.php?option=com_installer&view=update" class="jbolo-btn-wrapper btn btn-small btn-primary">' .
Text::sprintf('COM_EMAILBEAUTIFIER_LIVE_UPDATE_TEXT', $this->latestVersion->version) . '
</a>
<a href="' . $this->latestVersion->infourl . '/?utm_source=clientinstallation&utm_medium=dashboard&utm_term=jbolo&utm_content=updatedetailslink&utm_campaign=jbolo_ci' . '" target="_blank" class="jbolo-btn-wrapper btn btn-small btn-info">' .
Text::_('COM_EMAILBEAUTIFIER_LIVE_UPDATE_KNOW_MORE') . '
</a>
</div>';
}
}
?>
<div class="row-fluid">
<?php if (!$this->downloadid): ?>
<div class="">
<div class="clearfix pull-right">
<div class="alert alert-warning">
<?php echo Text::sprintf('COM_EMAILBEAUTIFIER_LIVE_UPDATE_DOWNLOAD_ID_MSG', '<a href="https://techjoomla.com/my-account/add-on-download-ids" target="_blank">' . Text::_('COM_EMAILBEAUTIFIER_LIVE_UPDATE_DOWNLOAD_ID_MSG2') . '</a>'); ?>
</div>
</div>
</div>
<?php endif; ?>
<div class="">
<div class="clearfix pull-right">
<?php echo $versionHTML; ?>
</div>
</div>
</div>
<div class="clearfix"> </div>
<h4 style='color:#3399FF;'>
<?php echo '<span class="icon-brush"></span> ';?>
<?php echo Text::_('COM_EMAILBEAUTIFIER_PROD_INTRO_ABOUT');?>
</h4>
<h6><?php echo Text::_('COM_EMAILBEAUTIFIER_ABOUT2');?></h6>
</div>
</div>
<hr class="hr hr-condensed"/>
<div class="row-fluid">
<div class="span4 pull-left">
<a href="https://techjoomla.com/support-tickets/?utm_source=clientinstall&utm_medium=dashboard&utm_content=text&utm_campaign=emailbeautifier_ci" target="_blank"><?php echo Text::_("COM_EMAILBEAUTIFIER_TECHJ_SUP"); ?></a>
<br />
<a href="http://twitter.com/techjoomla" target="_blank"><?php echo Text::_("COM_EMAILBEAUTIFIER_FOL_ON_TWIT"); ?></a>
<br />
<a href="http://www.facebook.com/techjoomla" target="_blank"><?php echo Text::_("COM_EMAILBEAUTIFIER_FOL_ON_FB"); ?></a>
<br />
<a href="http://extensions.joomla.org/extensions/extension/contacts-and-feedback/email/email-beautifier" target="_blank">
<?php echo Text::_("COM_EMAILBEAUTIFIER_JED_FED"); ?>
</a>
</div>
<div class="span4 center">
<?php echo Text::_("COM_EMAILBEAUTIFIER_PROD_INTRO"); ?>
<br />
<?php echo Text::sprintf("COM_EMAILBEAUTIFIER_COPYRIGHT", date('Y')); ?>
<br />
<!-- <?php echo Text::_("COM_EMAILBEAUTIFIER_VERSION") . ' ' . $currentversion; ?>
<br />
<span class="latestbutton" style="color: #0B55C4; cursor: pointer;" onclick="vercheck();">
<?php echo Text::_('COM_EMAILBEAUTIFIER_CHECK_LATEST_VERSION');?>
</span>
<span id='NewVersion' style='padding-top: 5px; color: #000000; font-weight: bold; padding-left: 5px;'></span>
-->
</div>
<div class="span4 pull-right">
<a href='https://techjoomla.com/?utm_source=clientinstall&utm_medium=dashboard&utm_content=logo&utm_campaign=emailbeautifier_ci' target='_blank'>
<img src="<?php echo Uri::base() ?>components/com_emailbeautifier/images/icons/techjoomla.png" alt="TechJoomla" style="vertical-align:text-top;"/>
</a>
</div>
</div>
</div>
</div>