Jump to content
покупайте без комиссии
Search In
  • More options...
Find results that contain...
Find results in...
  • Sign Up

Изменить вывод новостей Opencart 2.1.0.1


Recommended Posts

Добрый день, на главной выводиться новости один ряд, как его разбить на две колонки?

Вот tpl

<div class = "newhead">

   <h2> <? php echo $ heading_title; ?> </ H2>

   <span> <a class="border" href="<?php echo $all_href; ?> "> <? php echo $ all_title; ?> </a> </ SPAN>

</ DIV>

<div class = "row block_news">

      <? php foreach ($ all_news как $ news) {?>

      <div class = "product-thumb">

         <div class = "news ferer">

            <? php if ($ news ['thumb']) {?>

                                   <img src = "<? php echo $ news ['thumb'];?> alt =" <? php echo $ news ['title'];?> "title =" <? php echo $ news ['title '];?> "class =" img-news "/>

            <? php} else {?>

                                   <img src = "image / no-img-news.jpg" alt = "<? php echo $ news ['title'];?>" title = "<? php echo $ news ['title'];?> "class =" img-news "/>

                                   <? php}?>

                                   <div class = "newsinfo">

               <div class = "newdata"> <? php echo $ news ['date_added']; ?> </ DIV>

               <a href="<?php echo $news['view']; ?> "> <? php echo $ news ['title']; ?> </a>

               <div class = "newsds">

                  <? php echo $ news ['description']; ?>

               </ DIV>

            </ DIV>

         </ DIV>

      </ DIV>

      <? php}?>

 

</ DIV>
 

 

7e8dd9fd62cf.png

Link to post
Share on other sites

css или col-sm-6 или перевод строки после каждого 2 блока

Link to post
Share on other sites

Спасибо, решил вопрос флекс боксами. Думал может  в php как то вывод изменить. 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.