Please could anyone help me with some php/joomla code.
I am basically trying to create an if/else statement (i think!) to check if rounded
"corners-flexable-width" is enabled, or if "rounded corners-fixed-width" is enabled in a joomla module.
If the flexable-width is enabled in the module, then I want the flexable-width code to output, or if
the fixed-width is enabled in the module, then I want the fixed-width code to be outputted.
The code I have is as follows, it outputs both IF statements, I want it to only output the
statement which is true.
If that makes sense, Im sorry my php is hopeless and im trying to
customize some code I came across -
I am basically trying to create an if/else statement (i think!) to check if rounded
"corners-flexable-width" is enabled, or if "rounded corners-fixed-width" is enabled in a joomla module.
If the flexable-width is enabled in the module, then I want the flexable-width code to output, or if
the fixed-width is enabled in the module, then I want the fixed-width code to be outputted.
The code I have is as follows, it outputs both IF statements, I want it to only output the
statement which is true.
If that makes sense, Im sorry my php is hopeless and im trying to
customize some code I came across -
PHP Code:
<?php if($this->roundedflexablewidth):?>
<div class="roundedflexablewidth">
<div>
<div>
<div>
<?php endif; ?>
<?php if(isset($news_code_html_tab[(($b*$this->news_column)+$c)]))echo $news_code_html_tab[(($b*$this->news_column)+$c)];?>
<?php if($this->roundedflexablewidth):?>
</div>
</div>
</div>
</div>
<?php endif; ?>
"If flexable width isnt enabled in the module, then display the following -"
<?php if($this->roundedfixedwidth):?>
<div class="roundedfixedwidth">
<div>
<?php endif; ?>
<?php if(isset($news_code_html_tab[(($b*$this->news_column)+$c)]))echo $news_code_html_tab[(($b*$this->news_column)+$c)];?>
<?php if($this->roundedfixedwidth):?>
</div>
</div>
<?php endif; ?>
Comment