bezpośrednio w folderze templatki mam plik functions.php (artisteer sobie taki robi). W nim jest funkcja:
Kod PHP:
function artxBlock($caption, $content, $classes = '') {
$hasCaption = ($GLOBALS['artx_settings']['block']['has_header'] && null !== $caption && strlen(trim($caption)) > 0);
$hasContent = (null !== $content && strlen(trim($content)) > 0);
if (!$hasCaption && !$hasContent) return '';
ob_start(); ?>
<?php ob_start(); ?>
<div class="art-box art-block">
<div class="art-box-body art-block-body ">
<?php echo str_replace('class="art-box art-block">', 'class="art-box art-block' . $classes . '">', ob_get_clean()); ?>
<?php if ($hasCaption): ?>
<div class="art-bar art-blockheader">
<h3 class="t">
<?php echo $caption; ?>
</h3>
</div>
<?php endif; ?>
<?php if ($hasContent): ?>
<div class="art-box art-blockcontent">
<div class="art-box-body art-blockcontent-body">
<?php echo artxPostprocessBlockContent($content); ?>
<div class="cleared"></div>
</div>
</div>
<?php endif; ?>
<div class="cleared">
</div>
</div>
</div>
<?php
return ob_get_clean();
}
chciałbym linię <div class="art-box-body art-blockcontent-body">
zastąpić
<div class="art-box-body art-blockcontent-body <?php echo ($params->get('moduleclass_sfx'))?>">
rozwiązanie(tak jak pisałem w pierwszym poście) <?php echo ($params->get('moduleclass_sfx')) ?>
nie działa bo wyrzuca błąd:
Call to a member function get() on a non-object in <ścieżka do templatki>