FC Templates: small mistake with new changes

More
12 years 7 months ago #30812 by Rehne
Hi,

at the new changes in the templates there are a small mistake....

thoe code $i%2
Code:
$li_item_classes = $i%2 ? 'even' : 'odd'
;
must be change in ($i+$leadnum)%2
Code:
$li_item_classes = ($i+$leadnum)%2 ? 'even' : 'odd';

Regards

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #30815 by ggppdk
mmm, actually i think it is correct since full code is:
Code:
for ($i=$leadnum; $i<$count; $i++) : $li_item_classes = $i%2 ? 'even' : 'odd'; ... endif;


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #30820 by Rehne

ggppdk wrote: mmm, actually i think it is correct since full code is:

Code:
for ($i=$leadnum; $i<$count; $i++) : $li_item_classes = $i%2 ? 'even' : 'odd'; ... endif;


mmmm ... i have done several tests before i posted this
and in all views with with only one leading item and one intro item ... the one intro item become the class even with css style margin-left.

Regards

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #30821 by ggppdk
mmm , yes right , initial value of $i depends on leading items number so it should

$li_item_classes = ($i-$leadnum)%2 ? 'even' : 'odd';

or with same effect :

$li_item_classes = ($i+$leadnum)%2 ? 'even' : 'odd';


thanks will commit ;)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.365 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save