-
AuthorPosts
-
March 19, 2011 at 2:23 pm #161661
Hi, I need 8 divs for manage the background rounded corners with transparency, 4 in the corners and 4 more in the sides, searching for the solution I found the file modules.php in <host>pluginssystemjat3jat3base-themesdefaulthtmlmodules.php,
the original function was[FONT=”Courier New”]function modChrome_JArounded($module, &$params, &$attribs)
{
$badge = preg_match (‘/badge/’, $params->get(‘moduleclass_sfx’))?”<span class=”badge”> </span>n”:””;
?>
<div class=”ja-module ja-box-br module<?php echo $params->get(‘moduleclass_sfx’); ?>” id=”Mod<?php echo $module->id; ?>”>
<div class=”ja-box-bl”><div class=”ja-box-tr”><div class=”ja-box-tl clearfix”>
<?php echo $badge; ?>
<?php if ($module->showtitle != 0) : ?>
<h3><span><?php echo $module->title; ?></span></h3>
<?php endif; ?>
<div class=”jamod-content ja-box-ct clearfix”>
<?php echo $module->content; ?>
</div>
</div></div></div>
</div>
<?php
}
[/FONT]
and now is:[FONT=”Courier New”]function modChrome_JArounded($module, &$params, &$attribs)
{
$badge = preg_match (‘/badge/’, $params->get(‘moduleclass_sfx’))?”<span class=”badge”> </span>n”:””;
?>
<div class=”ja-module ja-box-br module<?php echo $params->get(‘moduleclass_sfx’); ?>” id=”Mod<?php echo $module->id; ?>”>
<div class=”ja-box-bl”><div class=”ja-box-tr”><div class=”ja-box-th”><div class=”ja-box-bh”><div class=”ja-box-rv”><div class=”ja-box-lv”><div class=”ja-box-tl clearfix”>
<?php echo $badge; ?>
<?php if ($module->showtitle != 0) : ?>
<h3><span><?php echo $module->title; ?></span></h3>
<?php endif; ?>
<div class=”jamod-content ja-box-ct clearfix”>
<?php echo $module->content; ?>
</div>
</div></div></div></div></div></div></div>
</div>
<?php
}
[/FONT]what I did is correct???, or is a good practice???, maybe I should copy the file to another path???
I need some advice, thanksthuanlq Friendthuanlq
- Join date:
- October 2010
- Posts:
- 528
- Downloads:
- 0
- Uploads:
- 29
- Thanks:
- 8
- Thanked:
- 121 times in 99 posts
March 22, 2011 at 10:34 am #382687Hi Imolero,
This is correct, but it is not good practice. Please do as following:
– Copy the file “modules.php” in the folder “pluginssystemjat3jat3base-themesdefaulthtml”, paste to folder “templatesja templatehtml”
– Custom the file in template folder. -
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by imolero 13 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum