I was trying to change the pars time direction to right ,so i done the following.
1. Add a style in default.css for example:
.parsetime {
text-align:right;
direction:rtl;
}
2.Add class="parstime' to the default.tpl as follow:
but the parse time position doesn't changed.
I realized that if you delete the codes that i noticed in step 2 the parsetime wouldn't change and it will be shown.
because of these code in index.php
// Parse Time
if ($config->get('config_parse_time')) {
echo($language->get('text_time', round((time() + microtime()) - $time, 4)));
}
as you can see parse time is shown du to "echo" command in index.php and not in the default.tpl
This bug is not fixed in the OpenCart v0.7.9 RC3. How I can change output of the parse time?
I can change the parse time output only if I change codes in the /admin/index.php:
// Parse Time
if ($config->get('config_parse_time')) {
echo(''.$language->get('text_time', round((time() + microtime()) - $time, 2))).'';
}
Changes of codes for the parse time in the default.css and in the layout.tpl are not change it.
I can change the parse time output only if I change codes in the /admin/index.php:
// Parse Time
if ($config->get('config_parse_time')) {
echo(''.$language->get('text_time', round((time() + microtime()) - $time, 2))).'';
}
Changes of codes for the parse time in the default.css and in the layout.tpl are not change it.
Yea, actually it does appear to be bugged.
the main index.php has the code at the bottom of the file:
That code
- has no css class assigned
- it outside the entire structure.
- is bad
The code in catalog/template/default/layout.tpl is:
which does have a class, and is set to display inside the tags
But the conditional will never return true for isset as it is never being passed to the view
Going to move this to the bug reports section
the main index.php has the code at the bottom of the file:
Code: Select all
// Parse Time
if ($config->get('config_parse_time')) {
echo($language->get('text_time', round((time() + microtime()) - $time, 4)));
}
- has no css class assigned
- it outside the entire structure.
- is bad
The code in catalog/template/default/layout.tpl is:
Code: Select all
<?php if (isset($time)) { ?>
<div id="time"><?php echo $time; ?></div>
<?php } ?>
But the conditional will never return true for isset as it is never being passed to the view
Going to move this to the bug reports section
Please see the bug tracker for further development:
http://code.google.com/p/open-cart/issues/detail?id=89
http://code.google.com/p/open-cart/issues/detail?id=89
Who is online
Users browsing this forum: No registered users and 3 guests