Find Jobs
Hire Freelancers

Adjust Grid layout -> ROWS and COLUMNS are assigned using funtion elseif ($cnt == )

$10-30 USD

Completed
Posted about 8 years ago

$10-30 USD

Paid on delivery
I have a code that assigns: - 2 Columns for ROW called LATEST - 3 Columns for ROW called OLDER Code: if ($cnt == 1) { $out_.= '<div class="latest">'; $out_.= '<div class="row">'; } elseif ($cnt == 3) { $out_.= '<div class="older">'; $count_older = 1; } if ($cnt >= 3) { if ($count_older % 3 == 1) $out_.= '<div class="row">'; } $column_class = 'latest-col'; if ($cnt >= 3) $column_class = 'older-col'; $out_.= '<div class="' . $column_class . '">'; /* ----- Coding related to image container ------ */ $out_.= '</div>'; if ($cnt == 2) { $out_.= '</div></div><!-- latest -->'; } else if ($works_count == 1) { $out_.= '</div></div><!-- latest -->'; } else if ($cnt >= 3) { if (($count_older % 3 == 0) || ($works_count == $cnt)) $out_.= '</div><!--row-->'; if ($works_count == $cnt) $out_.= '</div><!-- older -->'; $count_older++; } I need to keep 2 Columns for ROW LATEST. and 2 Columns for ROW OLDER ------ instead of 2 as is set in the code above. Thank you
Project ID: 9779085

About the project

6 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi, This is a very straightforward task. I believe you need it done asap. I can do it quickly if you accept my bid. Looking forward...
$15 USD in 1 day
4.9 (73 reviews)
5.7
5.7
6 freelancers are bidding on average $25 USD for this job
User Avatar
Dear! I am really interested to work on this project, i am sure do quality work. I can start the work now , and can provide the best services from my end. Please come on chat to discuss more about the project. Thanks! Mr Khoa
$24 USD in 1 day
4.8 (37 reviews)
5.3
5.3
User Avatar
ROYAL ID offers a wide-ranging list of services to meet all your web design and development requirements. We are equipped and knowledgeable to better provide a face for your company on the Internet. Kindly let us know if you have any requirements to improve or maintain your website. The services that we provide includes : Static Websites Dynamic Websites E-commerce Websites with payment gateway Content Management System (CMS Website) Email Creation / Marketing Dedicated Hosting for the Websites Search Engine Optimization (Basic & Advanced) Google Ads Social Media Marketing Website Maintenance Graphics Designing (Logo, Brochure)
$25 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I have a lot of experience in writing, editing and manipulating php and js, especially in bigger projects/software products (like your excerpt seems to be). I will be definitely able to achieve what you require
$24 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ITALY
San Giovanni Ilarione, Italy
5.0
23
Payment method verified
Member since Aug 27, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.