Hallo,
ich habe den jsvisit counter auf Joomla installiert und eingerichter. Soweit läuft alles prima.
Allerdings möchte ich die Darstellung anders haben. Der Zähler wird immer als Tabelle mit den Werten untereinander dargestellt, so wie im Anhang unter "Counter.jpg".
Ich möchte jedoch, dass die Wete in einer Zeile dargestellt werden, so wie im Anhang unter "Counter-alt.jpg".
Ich vermute, dass man das in der Datei "layout3.php" ändern kann, aber ich weiss nicht wie und an welcher Stelle.
Kann mir jemand dabei helfen?
Unten der Script der Datei "layout3.php":
PHP
<?php
// @formatter:off
// no direct access
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Language\Text;
defined('_JEXEC') or die();
$flag_dir = URI::base() . "media/mod_jsvisit_counter/flags/";
?>
<div class="jsvisitcounter<?php echo $moduleclass_sfx ?>">
<?php
if ($today II $yesterday II $this_week II $last_week II $this_month II $last_month)
echo "<div class='" . $layout_class ."' style='width: 85%;'>";
else
echo "<div>";
?>
<?php if ($today) : ?>
<div class="table_row">
<span class="col-left"><?php echo Text::_('MOD_JSVISIT_COUNTER_TODAY'); ?>:</span>
<span class="col-right"><?php echo $today; ?></span>
</div>
<?php endif; ?>
<?php if ($yesterday) : ?>
<div class="table_row">
<span class="col-left"><?php echo Text::_('MOD_JSVISIT_COUNTER_YESTERDAY'); ?>:</span>
<span class="col-right"><?php echo $yesterday; ?></span>
</div>
<?php endif; ?>
<?php if ($this_week) : ?>
<div class="table_row">
<span class="col-left"><?php echo Text::_('MOD_JSVISIT_COUNTER_THIS_WEEK'); ?>:</span>
<span class="col-right"><?php echo $this_week; ?></span>
</div>
<?php endif; ?>
<?php if ($last_week) : ?>
<div class="table_row">
<span class="col-left"><?php echo Text::_('MOD_JSVISIT_COUNTER_LAST_WEEK'); ?>:</span>
<span class="col-right"><?php echo $last_week; ?></span>
</div>
<?php endif; ?>
<?php if ($this_month) : ?>
<div class="table_row">
<span class="col-left"><?php echo Text::_('MOD_JSVISIT_COUNTER_THIS_MONTH'); ?>:</span>
<span class="col-right"><?php echo $this_month; ?></span>
</div>
<?php endif; ?>
<?php if ($last_month) : ?>
<div class="table_row">
<span class="col-left"><?php echo Text::_('MOD_JSVISIT_COUNTER_LAST_MONTH'); ?>:</span>
<span class="col-right"><?php echo $last_month; ?></span>
</div>
<?php endif; ?>
<?php if ($totals) : ?>
<div class="table_row">
<span class="col-left"><?php echo Text::_('MOD_JSVISIT_COUNTER_TOTAL'); ?>:</span>
<span class="col-right"><?php echo $totals; ?></span>
</div>
<?php endif; ?>
</div>
<div class="table" style="width: 90%;">
</div>
<?php if (count($countries) == 0) { ?>
<div class="table">
<span class="table_row"></span>
</div>
<?php } ?>
<?php if (count($countries)) : ?>
<div class="<?php echo $layout_class; ?>">
<?php
foreach ($countries as $country)
{
?>
<div class="table_row">
<span class="table-cell33"><img src="<?php echo $flag_dir . $country['flag']; ?>" title="<?php echo $country['count']; ?>" alt="<?php echo Text::_($country['name']); ?>" /></span>
<span class="table-cell33"><?php echo $country['percent']; ?></span>
<span class="table-cell33"><?php echo Text::_($country['name']); ?></span>
</div>
<?php
}
?>
<div class="table_row">
<span class="table-cell33"><br /><strong><?php echo Text::_('MOD_JSVISIT_COUNTER_TOTAL'); ?>:</strong></span>
<span class="table-cell33"><br /><strong><?php echo $total_countries; ?></strong></span>
<span class="table-cell33"><br /><strong>
<?php if ($total_countries > 1) echo Text::_('MOD_JSVISIT_COUNTER_COUNTRIES');
else echo Text::_('MOD_JSVISIT_COUNTER_COUNTRY'); ?></strong></span>
</div>
</div>
<?php endif; ?>
</div>
Alles anzeigen
Vielen Dank.
Grüße
Thomas